'annually',"value"=>$data_4["monthly"]); } else { if ($pro_type=="anyt") $q_price=mysql_query("select price.*,products.paytype from tblpricing as price,tblproducts as products where price.currency=2 and price.relid=".$pro_id." and price.relid=products.id and tblpricing.type='product'"); else $q_price=mysql_query("select price.*,products.paytype from tblpricing as price,tblproducts as products where price.currency=2 and price.type='".$pro_type."' and price.relid=".$pro_id." and price.relid=products.id"); $d_price=mysql_fetch_array($q_price); foreach($d_price as $name=>$value) { if (trim($value)!="0.00" && trim($value)!="-1.00") { $price_value[$name]=$value; } } switch ($price_type) { case "min": if ($price_value["paytype"]=="recurring") { if(array_key_exists("monthly",$price_value)) $array_returned=array("type"=>'monthly',"value"=>$price_value["monthly"]); elseif(array_key_exists("quarterly",$price_value)) $array_returned=array("type"=>'quarterly',"value"=>$price_value["quarterly"]); elseif(array_key_exists("semiannually",$price_value)) $array_returned=array("type"=>'semiannually',"value"=>$price_value["semiannually"]); elseif(array_key_exists("annually",$price_value)) $array_returned=array("type"=>'annually',"value"=>$price_value["annually"]); } elseif($price_value["paytype"]=="onetime") { if(array_key_exists("msetupfee",$price_value)) $array_returned=array("type"=>'msetupfee',"value"=>$price_value["msetupfee"]); elseif(array_key_exists("qsetupfee",$price_value)) $array_returned=array("type"=>'qsetupfee',"value"=>$price_value["qsetupfee"]); elseif(array_key_exists("ssetupfee",$price_value)) $array_returned=array("type"=>'ssetupfee',"value"=>$price_value["ssetupfee"]); elseif(array_key_exists("monthly",$price_value)) $array_returned["onetime"]=$price_value["monthly"]; } break; case "all": if ($price_value["paytype"]=="recurring") { $array_pay_type=array(0=>"monthly",1=>"quarterly",2=>"semiannually",3=>"annually",4=>"biennially",5=>"triennially"); foreach($array_pay_type as $key=>$val) { if(array_key_exists($val,$price_value)) { $array_returned[$val]=$price_value[$val]; } } } elseif($price_value["paytype"]=="onetime") { if(array_key_exists("msetupfee",$price_value)) $array_returned=array("type"=>'msetupfee',"value"=>$price_value["msetupfee"]); elseif(array_key_exists("qsetupfee",$price_value)) $array_returned=array("type"=>'qsetupfee',"value"=>$price_value["qsetupfee"]); elseif(array_key_exists("ssetupfee",$price_value)) $array_returned=array("type"=>'ssetupfee',"value"=>$price_value["ssetupfee"]); elseif(array_key_exists("monthly",$price_value)) $array_returned["onetime"]=$price_value["monthly"]; } break; } } return $array_returned; } function have_promotion($proid) { $data_return=array(); $query=mysql_query("select * from tblpromotions where ((expirationdate>='".date("Y-m-d",time())."' and `maxuses`=0) or (expirationdate='0000-00-00' and (`maxuses`-`uses`>0))) and (appliesto like '".$proid.",%' or appliesto like '%,".$proid.",%' or appliesto like '%,".$proid."' or appliesto='".$proid."') order by value desc limit 0,1"); if (mysql_num_rows($query)>0) { $data=mysql_fetch_array($query); $data_return["value"]=$data["value"]; $data_return["type"]=$data["type"]; $data_return["code"]=$data["code"]; $data_return["date"]=$data["expirationdate"]; $data_return["notes"]=$data["notes"]; return $data_return; } else return $data_return["value"]=0; } if($pagename=="domain") require_once("functions.php"); //$selected="linhosting"; $sql_first=mysql_query("select c.*,l.id,l.key_word from tblcontents c,tblcontentlinks l where l.id=c.link_id and l.key_word='".$selected."'"); $data_first=mysql_fetch_array($sql_first); ?>
    '; $persian_name=split("[,]",$data_pare_group["other_groups"]); foreach($persian_name as $key=>$value) { $sql_p_n=mysql_query("select * from `tblgroups_features` where id=".$value); $data_p_n=mysql_fetch_array($sql_p_n); echo '
  • '.$data_p_n["gr_name"].'
  • '; } echo '
'; foreach($persian_name as $keyy=>$valuee) { $table_elements=array(); $table_features=array(); $pro_feature_txt=array(); $pro_feature_inline_txt=array(); $product_id_array=array(); echo '
'; $sql_1=mysql_query("select id,gid from tblproducts where gid=".$valuee." order by `order`"); while($data_1=mysql_fetch_array($sql_1)) { $sql_2=mysql_query("select pro_id,name_pe,pro_feature,MP,dlink from tbldetailed_prodisc where pro_id=".$data_1["id"]); while($data_2=mysql_fetch_assoc($sql_2)) { $table_elements[]=$data_2; } } $sql_3=mysql_query("select id,gfeature from tblgroups_features where id=".$valuee); while($data_3=mysql_fetch_assoc($sql_3)) { $table_features[]=$data_3; } echo ''; $pro_feature_txt=split("[|]",$table_features[0]["gfeature"]); $steps=1; $rown=1; $clbg="odd"; foreach($pro_feature_txt as $keys=>$value) { if($steps==1) { echo ''; foreach($table_elements as $te) { $pro_feature_inline_txt[$te["pro_id"]]=split("[|]",$te["pro_feature"]); array_push($pro_feature_inline_txt[$te["pro_id"]],$te["MP"]); array_push($product_id_array,$te["pro_id"]); $dlink[$te["pro_id"]]=$te["dlink"]; foreach($te as $key => $ite_val) { if ($key=="name_pe") { echo ""; } } } echo ""; } else { if ($clbg=="odd") $clbg=""; elseif($clbg=="") $clbg="odd"; echo ''; echo ''; foreach($pro_feature_inline_txt as $kte) { //$table_elements[ echo ""; } echo ""; $rown++; } $steps++; } { echo ''; echo ''; foreach($product_id_array as $idkey => $id_val) { echo ''; } echo ''; $price_type_text=array("monthly"=>"ماهيانه","quarterly"=>"سه ماهه","semiannually"=>"شش ماهه","annually"=>"ساليانه","biennially"=>"2ساله","triennially"=>"3ساله","onetime"=>"هزینه"); foreach($product_id_array as $idkey => $id_val) { echo ''; } echo ""; } echo "
 

".$ite_val."

'; $nvalue=str_replace("+","",$value); echo $nvalue.'"; if($kte[$rown]=="OK") echo ''; elseif($kte[$rown]=="NO") echo ''; else echo $kte[$rown]; echo "
مشخصات فنی'; if (trim($dlink[$id_val])!="") echo 'اطلاعات بیشتر'; echo '
 '; $array_price=array(); $array_price=get_pricing($id_val,"product","all"); $promotion=have_promotion($id_val); if ($promotion["value"]>0) { $promote_note=explode("|",$promotion["notes"]); echo '
'.$promote_note[0].'
'; } foreach($array_price as $pkey=>$pvalue) { echo '
'; echo $price_type_text[$pkey].":"."
"; if ($promotion["value"]!=0) { if($promotion["type"]=="Percentage") $new_value=$pvalue-($pvalue*($promotion["value"]/100)); elseif($promotion["type"]=="Fixed Amount") $new_value=$pvalue-$promotion["value"]; echo 'ت'.($new_value/10).''; } else echo 'ت'.$pvalue/10; echo '
'; } echo 'خرید آنلاین
"; echo '
'; } } } else { echo '
    '; $persian_name=$spcarray; foreach($spcarray as $key=>$value) { $sql_p_n=mysql_query("select * from `tblgroups_features` where id=".$value); $data_p_n=mysql_fetch_array($sql_p_n); echo '
  • '.$data_p_n["gr_name"].'
  • '; } echo '
'; foreach($persian_name as $keyy=>$valuee) { $table_elements=array(); $table_features=array(); $pro_feature_txt=array(); $pro_feature_inline_txt=array(); $product_id_array=array(); echo '
'; $sql_1=mysql_query("select id,gid from tblproducts where gid=".$valuee." order by `order`"); while($data_1=mysql_fetch_array($sql_1)) { $sql_2=mysql_query("select pro_id,name_pe,pro_feature,MP,dlink from tbldetailed_prodisc where pro_id=".$data_1["id"]); while($data_2=mysql_fetch_assoc($sql_2)) { $table_elements[]=$data_2; } } $sql_3=mysql_query("select id,gfeature from tblgroups_features where id=".$valuee); while($data_3=mysql_fetch_assoc($sql_3)) { $table_features[]=$data_3; } echo ''; $pro_feature_txt=split("[|]",$table_features[0]["gfeature"]); $steps=1; $rown=1; $clbg="odd"; foreach($pro_feature_txt as $keys=>$value) { if($steps==1) { echo ''; foreach($table_elements as $te) { $pro_feature_inline_txt[$te["pro_id"]]=split("[|]",$te["pro_feature"]); array_push($pro_feature_inline_txt[$te["pro_id"]],$te["MP"]); array_push($product_id_array,$te["pro_id"]); $dlink[$te["pro_id"]]=$te["dlink"]; foreach($te as $key => $ite_val) { if ($key=="name_pe") { echo ""; } } } echo ""; } else { if ($clbg=="odd") $clbg=""; elseif($clbg=="") $clbg="odd"; echo ''; echo ''; foreach($pro_feature_inline_txt as $kte) { //$table_elements[ echo ""; } echo ""; $rown++; } $steps++; } { echo ''; echo ''; foreach($product_id_array as $idkey => $id_val) { echo ''; } echo ''; $price_type_text=array("monthly"=>"ماهيانه","quarterly"=>"سه ماهه","semiannually"=>"شش ماهه","annually"=>"ساليانه","biennially"=>"2ساله","triennially"=>"3ساله","onetime"=>"هزینه"); foreach($product_id_array as $idkey => $id_val) { echo ''; } echo ""; } echo "
 

".$ite_val."

'; $nvalue=str_replace("+","",$value); echo $nvalue.'"; if($kte[$rown]=="OK") echo ''; elseif($kte[$rown]=="NO") echo ''; else echo $kte[$rown]; echo "
مشخصات فنی'; if (trim($dlink[$id_val])!="") echo 'اطلاعات بیشتر'; echo '
 '; $array_price=array(); $array_price=get_pricing($id_val,"product","all"); $promotion=have_promotion($id_val); if ($promotion["value"]>0) { $promote_note=explode("|",$promotion["notes"]); echo '
'.$promote_note[0].'
'; } foreach($array_price as $pkey=>$pvalue) { echo '
'; echo $price_type_text[$pkey].":"."
"; if ($promotion["value"]!=0) { if($promotion["type"]=="Percentage") $new_value=$pvalue-($pvalue*($promotion["value"]/100)); elseif($promotion["type"]=="Fixed Amount") $new_value=$pvalue-$promotion["value"]; echo 'ت'.($new_value/10).''; } else echo 'ت'.$pvalue/10; echo '
'; } echo 'خرید آنلاین
"; echo '
'; } echo '
'; } if (($data_pare_group["multi_group"]=="y")) { echo '
'; } } $show_texts=explode('|',$data_first["html_pe"]); print htmlspecialchars_decode($show_texts[0]); $pro_cat_g=mysql_real_escape_string($_GET["pc"]); $selected_pare_cat=mysql_real_escape_string($_GET["spc"]); if ($pro_cat_g!=0) get_table($pro_cat_g); elseif(trim($selected_pare_cat)!="") { $spcarray=split("[,]",$selected_pare_cat); get_table(0,$spcarray); } print htmlspecialchars_decode($show_texts[1]); ?>
صفحه اصلی > هاست > ثبت دامنه > نمایندگی ثبت دامنه > گواهینامه SSL > طراحی سایت > وبلاگ > ".$data_selected_hotbar["link_pe"].""; ?>