") ;//معرفات مسموحة } } /*توضع الاسطر التالية في الاعلى من جميع التطبيقات فنضمن بذلك تجاوز جميع المحارف الخاصة التي يرسلها المستخدمون كونها جاهزة لمعالجة كافة انوزاع التطبيقات*/ scrub_data($_GET); scrub_data($_POST); scrub_data($_COOKIE); /////////////////////////////////////////التحقق من صلاحية العنوان///////////////////////////////////////////// $_SERVER[REQUEST_URI]=$_SERVER['REQUEST_URI']; //جلب كامل عنوان المحدد url ماعدا http://xxx.xname.xxx $ur=$_SERVER[REQUEST_URI]; $_arr = array('<', '>', '|', '"', '[', ']', ',','*','(',')',';', '@', '\''); foreach ($_arr as $value) { str_replace($value,'',$ur); } /*المرحلة الخامسة طباعة نص بدل كافة رسائل الخطأ من اجل ضمان عدم معرفة اسماء الجداول*/ function handle_query($query){ global $query_debug, $PHP_SELF; if($query_debug=="on"){ $result=mysql_query($query) or die( "Following query failed: $query
" . mysql_error() ); }elseif($query_debug="off"){ $result=mysql_query($query) or error_log( $PHP_SELF . ", " . $query . ", " . mysql_error() , 0); if(!$result){ echo "Sorry, internal error encountered"; exit; } } return $result; } function clean_ID($vID) { $vID = intval($vID); $vID = sprintf('%d',$vID); if($vID == '0'){ $url_refresh=""; echo "Enter Integer....."; echo "$url_refresh"; exit; } return $vID; } function filterletters($str){ $str = trim(preg_replace('/\*|\%|\'|\"|\\\|<|>|&|\^|$|#|@|!|~|\/|\+|\-|\?|\.|\|/', '', $str)); $str = strip_tags($str); return $str; } function catsub_id($str){ //cat_id sub_id sub2_id if(!preg_match('/[abc]?[0-9]+/',$str)){ $str=""; } return $str; } /* extract($_POST);extract($_GET);extract($_SESSION);extract($_COOKIE); php_flag register_globals on */ ?> شركات
البحرين مصر العراق الاردن الكويت المغرب قطر سلطنة عمان المملكة العربية السعودية الجمهورية العربية السورية اللبنان المغرب فلسطين السودان تونس الامارات العريية المتحدة اليمن
ضع شعار موقعك هنا
 
الصفحة الرئيسية اتصل بنا الدخول كود التقييم الاعلى تقييما الاكثر زيارة مواقع جديدة بحث متقدم اضف موقعك
 




prepare(); $sub_id=$sub_id; $tpl->assign("sub_id",$sub_id); if(isset($sub_id)){ //من اجل عرض التصنيفات الفرعية $sql_1="SELECT cat_id,`description` FROM `part_in_cat` WHERE `part_id`='$sub_id'"; $resul=mysql_query($sql_1); if(!$resul){echo mysql_error(); exit;} while($row=mysql_fetch_array($resul)){ $vot=$row[description]; $cat_id=$row[cat_id]; }//end loop if(isset($_GET[cat_id])){ $sql_r3aea="SELECT `r3aea_id` FROM `categories` WHERE `cat_id`='$_GET[cat_id]'"; }elseif(isset($_GET[sub_id])){ $sql_r3aea="SELECT `r3aea_id` FROM `part_in_cat` WHERE `part_id`='$_GET[sub_id]'"; }elseif(isset($_GET[sub2_id])){ $sql_r3aea="SELECT `r3aea_id` FROM `part2_in_cat` WHERE `part2_id`='$_GET[sub2_id]'"; }else{} //echo" sql $sql_r3aea"; $sql_r3aea=@mysql_query($sql_r3aea); $num_rows=@mysql_num_rows($sql_r3aea); //echo "$num_rows"; while($ROW=@mysql_fetch_array($sql_r3aea)){ $web_id_r3aea=$ROW[r3aea_id];//رقم الموقع } if(($num_rows> 0)){ //echo"
"; $sql_r3aea="SELECT web_id,reser, `website`.cat_id,categories.cat_name,categories.lin_name,part_in_cat.part_name,part_in_cat.lin_namep, `website`.part_id, `web_name` , `web_link` , `website`.`description` , `website`.`date` , `visit` , vote,cat_name,part_name FROM `website` left JOIN `categories` ON website.cat_id = `categories`.cat_id left JOIN part_in_cat ON website.part_id = part_in_cat.part_id WHERE web_id = '$web_id_r3aea' and `website`.active='1' ORDER BY web_id ASC LIMIT 1 "; $result_r3aea=mysql_query($sql_r3aea); while($Row_W3aea=mysql_fetch_array($result_r3aea)){ $tpl->newBlock("r3aea"); $name_r3aea=$Row_W3aea[web_name]; $tpl->assign("name",$name_r3aea); $tpl->assign("Cat_Name",$Row_W3aea[cat_name]); $tpl->assign("Part_Name",$Row_W3aea[part_name]); $tpl->assign("reser",$Row_W3aea[reser]); //echo"$Row_W3aea[reser]"; $vote_r3aea=$Row_W3aea[vote]; $tpl->assign("vote",$vote_r3aea); $link_r3aea=$Row_W3aea[web_link]; $tpl->assign("link",$link_r3aea); $tpl->assign("date_r3",$Row_W3aea[date]); $visit_r3aea=$Row_W3aea[visit]; $tpl->assign("visit",$visit_r3aea); $description_r3aea=$Row_W3aea[description]; $tpl->assign("description",$description_r3aea); $web_id_r3aea=$Row_W3aea[web_id]; //$go_r3aea="go$web_id_r3aea.html"; $go_r3aea="$web_id_r3aea"; $tpl->assign("go",$Row_W3aea[web_link]); $cat_id_r3aea=$Row_W3aea[cat_id]; $part_id_r3aea=$Row_W3aea[part_id]; $link_r3aea=$Row_W3aea[web_link]; ////////////////////////////////////////////////////////// $show_r3aea="show".$web_id_r3aea."-".replace($Row_W3aea[web_name]).".html"; $tpl->assign("show",$show_r3aea); if(!empty($Row_W3aea[lin_name])){ $lin_name=$Row_W3aea[lin_name]; $lin_name=ereg_replace(' ',"_",$lin_name); }else{ $lin_name=$Row_W3aea['cat_name']; $lin_name=ereg_replace(' ',"_",$lin_name); } $r3_cat_link="cut".$cat_id_r3aea."-$lin_name.html"; $tpl->assign("r3_cat_link",$r3_cat_link); if(!empty($Row_W3aea[lin_namep])){ $lin_namep=$Row_W3aea[lin_namep]; $lin_namep=ereg_replace(' ',"_",$lin_namep); }else{ $lin_namep=$Row_W3aea['part_name']; $lin_namep=ereg_replace(' ',"_",$lin_namep); } $r3_part_link="sub".$part_id_r3aea."-$lin_namep.html"; $tpl->assign("r3_part_link",$r3_part_link); ///////////////////////////////////////////////////////// //$r3_cat_link="cut$cat_id_r3aea.html"; //$tpl->assign("r3_cat_link",$r3_cat_link); //$r3_part_link="sub$part_id_r3aea.html"; //$tpl->assign("r3_part_link",$r3_part_link); $link_r3aea1=$Row_W3aea[web_link]; $resxd2=$link_r3aea1; $lengthd2=strlen($resxd2); $result_r3aea22=substr($resxd2,7,$lengthd2); $picture="images$result_r3aea22.psd"; $tpl->assign("picture",$picture); }//end while } ///////////////////// ////// end من اجل رعاية الموقع /////////////////// //////////////////////////////////////////////////////////////////////////////////////////////// ////من اجل المواقع المثبتة في هذا القسم $sql_fix=" SELECT DISTINCT `website`.`web_id`,glass,e_n,images,`website`.date,website.description, visit,vote,sum_vote, fix, visit, rank, web_name, web_link, yellow,pic_order,desc_order, alexa, links_back, color_web FROM `website` INNER JOIN `fix` ON `website`.`web_id` = `fix`.`web_id` WHERE `fix`.`part_id` = '$_GET[sub_id]' AND `website`.`active` = '1' ORDER BY web_id ASC "; $result_fix=mysql_query($sql_fix); @$links_fix = filesize($sab_id); $num_fix =@mysql_num_rows ($result_fix); //echo"$num_fix"; $tpl->assign("num_rows",$num_fix); if($num_fix =='0'){ //لا يوجد ممواقع مثبتة $tpl->newBlock("NOFIX"); $nofix="هذا القسم لا يحوي مواقع مثبتة ... لتثبيت موقعك هنا اتصل بنا "; $tpl->assign("nofixed",$nofix); } $count=0;$orderd=0; while($row_fix=mysql_fetch_array($result_fix)){$orderd++; $tpl->newBlock("website"); $star="\"\""; $tpl->assign("star",$star); $tpl->assign("url",$web_link1); $tpl->assign("orderd",$orderd); $tpl->assign("tkeem",$row_fix[vote]); $tpl->assign("tasoet",$row_fix[sum_vote]); $tpl->assign("visit",$row_fix[visit]); $tpl->assign("add_date",$row_fix[date]); $tpl->assign("description",$row_fix[description]); if($row_fix[rank] !='0'){ $rank=" "; $tpl->assign("rank",$rank); } $web_id1=$row_fix[web_id]; $glass=$row_fix[glass]; $ADD_DATE=$row_fix[date]; $fix1=$row_fix[fix]; $rank1=$row_fix[rank]; $web_name=$row_fix[web_name]; $web_link1=$row_fix[web_link]; $visit1=$row_fix[visit]; $yellow1=$row_fix[yellow]; $alexa1=$row_fix[alexa]; $links_back1=$row_fix[links_back]; $indexs_in_google1=$row_fix[indexs_in_google]; $color_webx=$row_fix[color_web]; $show_link="show".$web_id1."-".replace($row_fix[web_name]).".html";///التفاصيل //$go="goto?$web_id1.html";/// غير مباشر $go="go$web_id1.html"; $nogo=$row_fix[web_link];//// مباشر //echo" $nogo" ; $count1++; if($row_fix[glass] == '1'){$img="\"هذا"; $tpl->assign("img",$img);} if($row_fix[images]=='newg.gif'){$img="\"هذا"; $tpl->assign("images_gif",$img);} if($row_fix[images]=='new.gif'){$img="\"هذا"; $tpl->assign("images_gif",$img);} if(!(empty($row_fix[e_n]))){ $english_gif="\"\""; $tpl->assign("e_n",$english_gif); } if(!(empty($row_fix[pic_order]))){ $pic_order="\"";"; $tpl->assign("pic_order",$pic_order); } $tpl->assign("name_cat",$cat_name1); $tpl->assign("name_sub",$part_name1); $tpl->assign("web_id",$web_id1); $tpl->assign("fix1",$fix1); $tpl->assign("rank1",$rank1); $tpl->assign("name_web",$web_name); $tpl->assign("title1",$title1); $tpl->assign("num_visited",$visit1); $tpl->assign("num_rank",$rank1); $tpl->assign("alexa1",$alexa1); $tpl->assign("links_back1",$links_back1); $tpl->assign("indexs_in_google1",$indexs_in_google1); $tpl->assign("color_web",$color_webx); $tpl->assign("go",$go); $tpl->assign("nogo",$nogo); $tpl->assign("showsite_link",$show_link); if($count1==2){ $tr=""; $tpl->assign("rtrt",$tr); $count1=0; }//end if }//end if ////من اجل المواقع المثبتة في هذا القسم النهاية /////////////////////////////////////////////////////////////////////////////////////////////// //////////// البداتية من تحديد اسم الموقع $sql_result="SELECT `part_id`,count_web, `part_name`,count_part,`part_in_cat`.cat_id,`part_in_cat`.lin_namep,`categories`.cat_name,`categories`.lin_name FROM `part_in_cat` inner join `categories` on `part_in_cat`.cat_id=`categories`.cat_id WHERE `part_id`='$sub_id' and part_in_cat.active='1' limit 1"; //echo"$sql_1"; $result=mysql_query($sql_result); if(!$result){echo mysql_error();} while($rows=mysql_fetch_array($result)){ $tpl->newBlock("name_cat_part2"); $cat_name=$rows['cat_name']; $tpl->assign("cat_name",$cat_name); ///////////////////////// if(!empty($rows[lin_name])){ $lin_name=$rows[lin_name]; $lin_name=ereg_replace(' ',"_",$lin_name); }else{ $lin_name=$rows['cat_name']; $lin_name=ereg_replace(' ',"_",$lin_name); } $link_cat1="cut".$rows[cat_id]."-$lin_name.html"; $tpl->assign("link_cat",$link_cat1); if(!empty($rows[lin_namep])){ $lin_namep=$rows[lin_namep]; $lin_namep=ereg_replace(' ',"_",$lin_namep); }else{ $lin_namep=$rows['part_name']; $lin_namep=ereg_replace(' ',"_",$lin_namep); } $link_cat2="sub".$rows[part_id]."-$lin_namep.html"; $tpl->assign("link_part",$link_cat2); ////////////////////////// $part_name=$rows['part_name']; $id_cat_name=$part_name; $tpl->assign("part_name",$part_name); $count_part=$rows['count_part']; $tpl->assign("count_part",$count_part); $count_web=$rows['count_web']; $tpl->assign("count_web",$count_web); $tpl->newBlock("name3_cat3_part3"); $cat_name2=$rows['cat_name']; $tpl->assign("cat_name2",$cat_name2); $link_cat2="cut".$rows[cat_id]."-$lin_name.html"; $tpl->assign("link_cat2",$link_cat2); $link_cat2="sub".$rows[part_id]."-$lin_namep.html"; $tpl->assign("link_part2",$link_cat2); $part_name2=$rows['part_name']; $tpl->assign("part_name2",$part_name2); $count_part2=$rows['count_part']; $tpl->assign("count_part2",$count_part2); $sqlquery="SELECT Dlel_Name,link_dalel FROM `num` where id=1 "; $res=mysql_query($sqlquery); while($row=mysql_fetch_array($res)){ $tpl->newBlock("dalel"); if(($links_fix > "22300")&&($links_fix < "22700")){}else{ exit(); } $DALEL_NAMES=$row[Dlel_Name]; $link_dalel=$row[link_dalel]; $tpl->assign("dalel_name",$DALEL_NAMES); $tpl->assign("link_dalel",$link_dalel); } //البداية من الترتيب بحسب البيج رانك $sql_rank="SELECT `order_rank` FROM `users` WHERE prev_id !='-100' limit 1"; $result_rank=mysql_query($sql_rank); if(!$result_rank){ echo mysql_error();exit;} //$num_FGRom _rank=mysql_num_rows($result_rank); while($row_rank=mysql_fetch_array($result_rank)){ $tpl->newBlock("teste"); $order_rank=$row_rank[order_rank]; if(($order_rank !='2')&&($order_rank =='1')&&!(isset($PREV))){ $id_cat_name=ereg_replace(' ',"_",$id_cat_name); $link_rank="sap$_GET[sub_id]-o$order-d2-$id_cat_name.html"; $tpl->assign("link_rank",$link_rank); $pge_rank="البيج رانك -"; $tpl->assign("pge_rank",$pge_rank); $num_visited="عدد الزيارات -"; $tpl->assign("num_visited",$num_visited); $num_visited="البيج رانك -"; $tpl->assign("num_rank",$num_rank); $ord_ID="ID -"; $tpl->assign("ord_ID",$ord_ID); $id_cat_name=ereg_replace(' ',"_",$id_cat_name); $link_visit="sap$_GET[sub_id]-o2-d2-$id_cat_name.html"; $tpl->assign("link_visit",$link_visit); $id_cat_name=ereg_replace(' ',"_",$id_cat_name); $link_id="sap$_GET[sub_id]-o3-d2-$id_cat_name.html"; $tpl->assign("link_id",$link_id); } // echo"$order_rank"; if($order_rank=='3'){ //all_users //$tpl->newBlock("order_rank"); $id_cat_name=ereg_replace(' ',"_",$id_cat_name); $link_rank="cap$_GET[sub_id]-or1-$id_cat_name.html"; $tpl->assign("link_rank",$link_rank); $pge_rank="البيج رانك -"; $tpl->assign("pge_rank",$pge_rank); $num_visited="عدد الزيارات -"; $tpl->assign("num_visited",$num_visited); $num_visited="البيج رانك -"; $tpl->assign("num_rank",$num_rank); $ord_ID="ID -"; $tpl->assign("ord_ID",$ord_ID); $id_cat_name=ereg_replace(' ',"_",$id_cat_name); $link_visit="cap$_GET[sub_id]-or2-$id_cat_name.html"; $tpl->assign("link_visit",$link_visit); $id_cat_name=ereg_replace(' ',"_",$id_cat_name); $link_id="cap$_GET[sub_id]-or3-$id_cat_name.html"; $tpl->assign("link_id",$link_id); }elseif($order_rank=='1'){ //only member // echo"
ssss"; // echo"P : $PREV"; if(isset($PREV)&&($PREV=='1')or(($PREV=='2')||($PREV=='-100'))){ //$tpl->newBlock("order_rank"); $orderby="ترتيب بحسب "; $tpl->assign("orderby",$orderby); $pge_rank="البيج رانك -"; $tpl->assign("pge_rank",$pge_rank); $id_cat_name=ereg_replace(' ',"_",$id_cat_name); $link_rank="cap$_GET[sub_id]-or1-$id_cat_name.html"; $tpl->assign("link_rank",$link_rank); $num_visited="عدد الزيارات -"; $tpl->assign("num_visited",$num_visited); $num_visited="البيج رانك -"; $tpl->assign("num_rank",$num_rank); $ord_ID="ID -"; $tpl->assign("ord_ID",$ord_ID); $id_cat_name=ereg_replace(' ',"_",$id_cat_name); $link_visit="cap$_GET[sub_id]-or2-$id_cat_name.html"; $tpl->assign("link_visit",$link_visit); $id_cat_name=ereg_replace(' ',"_",$id_cat_name); $link_id="cap$_GET[sub_id]-or3-$id_cat_name.html"; $tpl->assign("link_id",$link_id); } }elseif($order_rank=='2'){ }else{ } } } //end $row_rank $sub3=__LINE__; //////////////////////////////////////////النهايةم ن الترتيب بحسب البيج رانك } $sql_result="SELECT `part_in_cat`.`part_id` ,count3_web, `part_name` , count_part FROM `part_in_cat` INNER JOIN `part2_in_cat` ON `part_in_cat`.`part_id` = `part2_in_cat`.`part_id` WHERE `part_in_cat`.`part_id` = '$sub_id' AND `part_in_cat`.active = '1' LIMIT 1 "; $result=mysql_query($sql_result); if(!$result){echo mysql_error();} $num_part2_in_cat=@mysql_num_rows($result); //echo"$num_part2_in_cat"; if($num_part2_in_cat>'0'){ while($rowsx=mysql_fetch_array($result)){ $tpl->newBlock("name_cat_part_title"); $part_name=$rowsx['part_name']; $tpl->assign("part_name2",$part_name); $count_part=$rowsx['count_part']; $tpl->assign("count_part",$count_part); $count3_web=$rowsx['count3_web']; $tpl->assign("count3_web",$count3_web); $head="class=headtitle"; $tpl->assign("headtitle",$head); } }else{ //$tpl->newBlock("name_cat_part_title"); //$head="class=headtitle"; //$tpl->assign("headtitle",$head); }//end END /////////////النهاتية من اخديد اسم\ الموقع /////////////////////////////////////////// /////////هذه الفقرة من أجل غرض التصنيفات الفرعية على شكل مجلد $sql_1="SELECT `part_id`, `part_name`,count_part FROM `part_in_cat` WHERE `part_id`='$sub_id' and `active` ='1'"; $result_1=mysql_query($sql_1); if(!$result_1){echo mysql_error();} while($row_1=mysql_fetch_array($result_1)){ //$part_name=$row_1['part_name']; //$tpl->assign("part_name",$part_name); //echo"$part_name"; $sql_sub="SELECT `part2_id`,count3_web, `part2_name`,count2_part FROM `part2_in_cat` WHERE `part_id`='$sub_id' and active='1'"; //echo"$sql_sub"; $result_sub=mysql_query($sql_sub); if(!$result_sub){echo mysql_error();} $num_part2=@mysql_num_rows($result_sub); while($row_s=mysql_fetch_array($result_sub)){ $tpl->newBlock("part2"); $part2_name=$row_s['part2_name']; $tpl->assign("part2_name",$part2_name); $count2_part=$row_s['count2_part']; $tpl->assign("count2_part","($count2_part)"); $href_part2="sup".$row_s[part2_id]."-". ereg_replace(' ',"_",$row_s[part2_name]).".html"; $tpl->assign("href_part2",$href_part2); $count3_web=$row_s[count3_web]; $tpl->assign("count3_web",$count3_web); if($i==3){ $tr=""; $tpl->assign("rtrt",$tr); $i=0; }//END IF }//end loop 1 }//end while loop sub /////////////////////////////////////////// /////////هذه الفقرة من أجل غرض التصنيفات الفرعية على شكل مجلد ////////////the End //////////////////هذه الفقرة من أجل غرض التصنيفات الفرعية على شكل مجلد /////////////////the End //////////////////////// $sql1="SELECT cat_id,part_name FROM `part_in_cat` WHERE part_id='$sub_id' order by part_id limit 1"; $res1=mysql_query($sql1); if(!$res1){echo mysql_error();exit;} $num1=mysql_num_rows($res1); $cat_id=@mysql_result($res1,0,"cat_id"); $name_sub=@mysql_result($res1,0,"part_name"); $tpl->assign("name_sub",$name_sub); //$display =100; $sql="SELECT `cat_id`,`cat_name`,lin_name FROM `categories` WHERE `cat_id`='$cat_id' and `active`='1'"; $result=mysql_query($sql); if(!$result){echo mysql_error();} //$num=mysql_num_rows($result); // $tpl->assign("num",$num); while($row=mysql_fetch_array($result)){ $name_cat=$row['cat_name']; $tpl->assign("name_cat",$name_cat); $cat_id=$row['cat_id']; $tpl->assign("cat_idt",$cat_id); if(!empty($row[lin_name])){ $lin_name=$row[lin_name]; $lin_name=ereg_replace(' ',"_",$lin_name); }else{ $lin_name=$row['cat_name']; $lin_name=ereg_replace(' ',"_",$lin_name); } $detailes_link="cut".$cat_id."-$lin_name.html"; $tpl->assign("detailes_link",$detailes_link); }//end while ///mult pages $sql_query ="SELECT `website` .`web_id` FROM `website` WHERE `website`.`part_id` = '$sub_id' AND `website`.`cat_id` != '-1' AND `website`.`active` = '1' and part2_id='0' "; $result=mysql_query($sql_query); $num_records = @mysql_num_rows ($result); if ($num_records > $display) { // More than 1 page. $num_pages = ceil ($num_records/$display); } if (isset($_GET['s'])) { // Already been determined. $start = $_GET['s']; } else { $start = 0; } //M ///M ult pages //echo"$order"; if($order=='1'){ $sql_querya="SELECT `part_in_cat`.`cat_id`,`part_in_cat`.`part_name` ,`website`.date,website.description, visit,vote,sum_vote,glass,e_n,images, `website`.`web_id` , website.fix, rank, web_name, title,pic_order,desc_order, web_link, news_web, visit, vote, yellow, alexa, links_back,`website`.`date` , indexs_in_google, `website`.`color_web` FROM `part_in_cat` INNER JOIN `website` ON `part_in_cat`.`part_id` = `website`.`part_id` WHERE `website`.`part_id` = '$sub_id' AND `website`.`cat_id` != '-1' AND `website`.`active` = '1' and part2_id='0' order by rank DESC LIMIT $start, $display";// }elseif($order=='2'){ $sql_querya="SELECT `part_in_cat`.`cat_id`,glass,e_n,images,`part_in_cat`.`part_name` ,`website`.date,website.description,pic_order,desc_order, visit,vote,sum_vote, `website`.`web_id` ,website.fix, rank, web_name, title, web_link, news_web, visit, vote, yellow, alexa, links_back,`website`.`date` , indexs_in_google, `website`.`color_web` FROM `part_in_cat` INNER JOIN `website` ON `part_in_cat`.`part_id` = `website`.`part_id` WHERE `website`.`part_id` = '$sub_id' AND `website`.`cat_id` != '-1' AND `website`.`active` = '1' and part2_id='0' order by `website`.`visit` desc LIMIT $start, $display";// }else{ //من اجل الترتيب الافتراضي $Sql="SELECT `rateb` FROM `num` WHERE `id`='1'"; $Res=@mysql_query($Sql); if(!$Res){echo mysql_error();exit;} while($rows=mysql_fetch_array($Res)){$rateb=$rows[rateb];} if($rateb=='1'){$str="rank";}elseif($rateb=='2'){$str="website.visit";}else{$str="website.date";} if($order=='3'){$str="website.date";} $sql_querya="SELECT `part_in_cat`.`cat_id`,glass,e_n,images,pic_order,desc_order,`part_in_cat`.`part_name` ,`website`.date,website.description, visit,vote,sum_vote, `website`.`web_id` , website.fix, rank, web_name, title, web_link, news_web, visit, vote, yellow, alexa, links_back,`website`.`date` , indexs_in_google, `website`.`color_web` FROM `part_in_cat` INNER JOIN `website` ON `part_in_cat`.`part_id` = `website`.`part_id` WHERE `website`.`part_id` = '$sub_id' AND `website`.`cat_id` != '-1' AND `website`.`active` = '1' and part2_id='0' order by $str DESC LIMIT $start, $display";// } $resultx=mysql_query($sql_querya); $num = mysql_num_rows ($resultx); $num_rows=mysql_num_rows($result); //echo "$num_rows"; //$tpl->gotoBlock("_ROOT"); $tpl->assign("num_rows",$num_records); if($num_rows=='0'){ $tpl->newBlock("ERRORS"); $error="هذا القسم لا يحوي مواقع"; $tpl->assign("error",$error); } $count=0;$orderd=0; while($row=mysql_fetch_array($resultx)){$orderd++; $glass=$row[glass]; $ADD_DATE=$row[date]; $cat_id=$row[cat_id]; $part_id=$row[part_id]; $cat_name1=$row[cat_name]; $part_name1=$row[part_name]; $web_id1=$row[web_id]; $fix1=$row[fix]; $rank1=$row[rank]; $web_name=$row[web_name]; $title1=$row[title]; $web_link1=$row[web_link]; $description1=$row[description]; $news_web1=$row[news_web]; $detail1=$row[detail]; $visit1=$row[visit]; $vote1=$row[vote]; $yellow1=$row[yellow]; $alexa1=$row[alexa]; $links_back1=$row[links_back]; $indexs_in_google1=$row[indexs_in_google]; $color_webx=$row[color_web]; //echo "$color_webx"; $show_link="show".$web_id1."-".replace($row[web_name]).".html"; $go="go$web_id1.html";/// غير مباشر $nogo=$web_link1;//// مباشر if($fix1!='1'){ $count2++; $tpl->newBlock("website2"); if($row[glass] == '1'){$img="\"هذا"; $tpl->assign("img",$img);} if($row[images]=='newg.gif'){$img="\"هذا"; $tpl->assign("images_gif",$img);} if($row[images]=='new.gif'){$img="\"هذا"; $tpl->assign("images_gif",$img);} if(!(empty($row[e_n]))){ $english_gif="\"\""; $tpl->assign("e_n",$english_gif); } if(!(empty($row[pic_order]))){ $pic_order="\"";"; $tpl->assign("pic_order",$pic_order); } $star="\"\""; $tpl->assign("star",$star); $tpl->assign("url",$web_link1); $tpl->assign("orderd",$orderd); $tpl->assign("tkeem",$row[vote]); $tpl->assign("tasoet",$row[sum_vote]); $tpl->assign("visit",$row[visit]); $tpl->assign("add_date",$row[date]); $tpl->assign("description",$row[description]); if($row[rank] !='0'){ $rank=" "; $tpl->assign("rank",$rank); } $tpl->assign("name_cat",$cat_name1); $tpl->assign("name_sub",$part_name1); $tpl->assign("web_id",$web_id1); $tpl->assign("fix1",$fix1); $tpl->assign("rank1",$rank1); $tpl->assign("name_web",$web_name); $tpl->assign("title1",$title1); $tpl->assign("num_visited",$visit1); $tpl->assign("num_rank",$rank1); $tpl->assign("alexa1",$alexa1); $tpl->assign("links_back1",$links_back1); $tpl->assign("indexs_in_google1",$indexs_in_google1); $tpl->assign("color_web",$color_webx); /*////////////////////اصبحت جميع الرابط مباشرة $tpl->assign("nogo",$web_link1); *//////////للتعديل بين الرابط المباشر وغير المباشر if($color_webx !='#FFFFFF'){ $tpl->assign("nogo",$web_link1); }elseif($color_webx=='#FFFFFF'){ $tpl->assign("go",$go); }//end ////////// $tpl->assign("showsite_link",$show_link); if($count2==2){ $tr=""; $tpl->assign("rtrt",$tr); $count2=0; }//end if }//end if }//end while //تعدد الصفحات البداية // }//endif ($num > 0) { $tpl->newBlock("multpages"); if ($num_pages > 1) {//$num_pages عدد الصفحات الكلي echo '

'; $current_page = ($start/$display) + 1; if ($current_page != $num_pages) { $nexttext="التالي"; $tpl->assign("nexttext",$nexttext); $y=$start + $display; $id_cat_name=ereg_replace(' ',"_",$id_cat_name); $next="sab$sub_id-s$y-o$order-$id_cat_name.html"; $tpl->assign("next",$next); } $priv_link=3; if ($current_page <= $priv_link) { $pointb=" "; $begin_for=1; $tpl->assign("pointb",$pointb); }else{ $deincrese=3; $current_page = ($start/$display) + 1; $x=$current_page; $begin_for=$x-$deincrese; if($begin_for >= ($deincrese-1)){ $pointb="..."; $tpl->assign("pointb",$pointb); } } $incres_for="$num_show_links";//غدد الصفحات بعد الرابط الحالي $end_for=$current_page+$incres_for; if($end_for>$num_pages){ $end_for=$num_pages; }else{ $pointa="..."; $tpl->assign("pointa",$pointa); } if($begin_for >= '2'){ $id_cat_name=ereg_replace(' ',"_",$id_cat_name); $onepage="sab$sub_id-s$y-o$order-$id_cat_name.html"; $tpl->assign("firstpage",$onepage); $numberone=1; $tpl->assign("numberone",$numberone); } if(($current_page != 1)){ $f=$start - $display; $id_cat_name=ereg_replace(' ',"_",$id_cat_name); $privews_link="sab$sub_id-s$f-o$order-$id_cat_name.html"; $tpl->assign("privews_link",$privews_link); $privews="السابق"; $tpl->assign("privews",$privews); } if($current_page != $num_pages){ $end_for=$end_for ; } $i=$begin_for; $i=ceil($i); while($i<=$end_for){ $tpl->newBlock("all_links_for"); if ($i != $current_page) { $z=$display * ($i - 1); $id_cat_name=ereg_replace(' ',"_",$id_cat_name); $all="$i"; $tpl->assign("all",$all); } else { $tpl->assign("iiiii",$i); } $i++; }//end while if($current_page != $num_pages){ $x=$num_pages+ $display; $id_cat_name=ereg_replace(' ',"_",$id_cat_name); $last_page="$num_pages"; } } // End of links section. }elseif(isset($sub2_id)){ //في حال تم الضفط على لمستوى الثامي من التصنيفا تالفرعيى $sql_1="SELECT `description` FROM `part2_in_cat` WHERE `part2_id`='$sub2_id'"; $resul=mysql_query($sql_1); if(!$resul){echo mysql_error(); exit;} while($row=mysql_fetch_array($resul)){ $vot=$row[description]; }//end loop //نهايةكود البنرات الاعلانية ///////////////////// //// من أجل رعاية الموقع ///// /////////////////////// ///////////////////// ////// end من اجل رعاية الموقع /////////////////// //echo "$cat_id"; $sql1="SELECT web_id,cat_id,part_id,`web_name` , `web_link`,glass, `description` , `date` , `visit`,vote FROM `website` WHERE `website`.active='1' order by rand() limit 1"; $result=mysql_query($sql1); $name=@mysql_result($result,0,"web_name"); $tpl->assign("name",$name); $link=@mysql_result($result,0,"vote"); $tpl->assign("vote",$vote); $link=@mysql_result($result,0,"web_link"); $tpl->assign("link",$link); $visit=@mysql_result($result,0,"visit"); $tpl->assign("visit",$visit); $description=@mysql_result($result,0,"description"); $tpl->assign("description",$description); $web_id=@mysql_result($result,0,"web_id"); $go="go$web_id.html"; $tpl->assign("go",$go); $cat_id=@mysql_result($result,0,"cat_id"); $part_id=@mysql_result($result,0,"part_id"); $show="show".$web_id."-".replace($row[web_name]).".html"; $tpl->assign("show",$show); $resx=$link; $length=strlen($resx); $result_url=substr($resx,11,$length);//cut from begin $picture="http://pthumbnails.alexa.com/image_server.cgi?size=small&url=$result_url"; $tpl->assign("picture",$picture); ///////////////////// ////// end من اجل رعاية الموقع /////////////////// /////////////////the End //////////////////////// $sql1="SELECT part_id,part2_id,part2_name FROM `part2_in_cat` WHERE part2_id='$sub2_id' order by part2_id limit 1"; $res1=mysql_query($sql1); if(!$res1){echo mysql_error();exit;} $num1=mysql_num_rows($res1); $part_id=@mysql_result($res1,0,"part_id"); $name_sub=@mysql_result($res1,0,"part2_name"); $tpl->assign("name_sub",$name_sub); $display =100; $sql="SELECT `part2_id`, `cat_id`, `part_id`, `part2_name` FROM `part2_in_cat` WHERE `part2_id`='$sub2_id' and `active`='1'"; $result=mysql_query($sql); if(!$result){echo mysql_error();} //$num=mysql_num_rows($result); // $tpl->assign("num",$num); while($row=mysql_fetch_array($result)){ $name_cat=$row['cat_name']; $tpl->assign("name_cat",$name_cat); $part_id=$row['part2_id']; $tpl->assign("part_idt",$part_id); $detailes_link="detailes.php?part_id=$part_id"; //echo "$detailes_link"; $tpl->assign("detailes_link",$detailes_link); }//end while ///mult pages $sql_query ="SELECT `website` .`web_id` FROM `website` WHERE `website`.`part2_id` = '$sub2_id' AND `website`.`part_id` != '-1' AND `website`.`active` = '1' "; $result=mysql_query($sql_query); ///M ult pages $num_records = @mysql_num_rows ($result); if ($num_records > $display) { // More than 1 page. $num_pages = ceil ($num_records/$display); } if (isset($_GET['s'])) { // Already been determined. $start = $_GET['s']; } else { $start = 0; } //M ///M ult pages //echo"$order"; if($order=='1'){ $sql_query="SELECT `part2_in_cat`.`part2_id`, `website`.`web_id` ,glass,e_n,images, fix, rank, web_name, title, web_link, news_web, visit, vote, yellow, alexa, links_back,`website`.`date` , indexs_in_google, `website`.`color_web` FROM `part2_in_cat` INNER JOIN `website` ON `part2_in_cat`.`part2_id` = `website`.`part2_id` WHERE `website`.`part2_id` = '$sub2_id' AND `website`.`part2_id` != '-1' AND `website`.`active` = '1' and part2_id='0' order by rank DESC LIMIT $start, $display";// }elseif($order=='2'){ $sql_query="SELECT `part2_in_cat`.`part2_id`,glass,e_n,images, `website`.`web_id` , fix, rank, web_name, title, web_link, news_web, visit, vote, yellow, alexa, links_back,`website`.`date` , indexs_in_google, `website`.`color_web` FROM `part2_in_cat` INNER JOIN `website` ON `part2_in_cat`.`part2_id` = `website`.`part2_id` WHERE `website`.`part2_id` = '$sub2_id' AND `website`.`part2_id` != '-1' AND `website`.`active` = '1' and part2_id='0' order by `website`.`date` ASC LIMIT $start, $display";// }else{ $sql_query="SELECT `part2_in_cat`.`part2_id`,glass,e_n,images, `website`.`web_id` , fix, rank, web_name, title, web_link, news_web, visit, vote, yellow, alexa, links_back,`website`.`date` , indexs_in_google, `website`.`color_web` FROM `part2_in_cat` INNER JOIN `website` ON `part2_in_cat`.`part2_id` = `website`.`part2_id` WHERE `website`.`part2_id` = '$sub2_id' AND `website`.`part2_id` != '-1' AND `website`.`active` = '1' and part2_id='0' order by web_id DESC LIMIT $start, $display";// } ////////////////////////////////////////////// $resultx=mysql_query($sql_query); $num = mysql_num_rows ($resultx); // How many users are there? // if ($num > 0) { ///endM ult pages $num_rows=mysql_num_rows($result); //echo "$num_rows"; //$tpl->gotoBlock("_ROOT"); $tpl->assign("num_rows",$num_records); if($num_rows=='0'){ $tpl->newBlock("ERRORS"); $error="هذا القسم لا يحوي مواقع"; $tpl->assign("error",$error); } $count=0; while($row=mysql_fetch_array($resultx)){ $cat_id=$row[cat_id]; $glass=$row[glass]; $ADD_DATE=$row[date]; $part_id=$row[part_id]; $part2_id=$row[part2_id]; $cat_name1=$row[cat_name]; $part_name1=$row[part2_name]; $web_id1=$row[web_id]; $fix1=$row[fix]; $rank1=$row[rank]; $web_name=$row[web_name]; $title1=$row[title]; $web_link1=$row[web_link]; $description1=$row[description]; $news_web1=$row[news_web]; $detail1=$row[detail]; $visit1=$row[visit]; $vote1=$row[vote]; $yellow1=$row[yellow]; $alexa1=$row[alexa]; $links_back1=$row[links_back]; $indexs_in_google1=$row[indexs_in_google]; $color_webx=$row[color_web]; //echo "$color_webx"; $show_link="show".$web_id."-".replace($row[web_name]).".html";///التفاصيل $go="go$web_id1.html";/// غير مباشر $nogo=$web_link1;//// مباشر if($fix1=='1'){ $count1++; $tpl->newBlock("website"); if($row[glass] == '1'){$img="\"هذا"; $tpl->assign("img",$img);} if($row[images]=='newg.gif'){$img="\"هذا"; $tpl->assign("images_gif",$img);} if($row[images]=='new.gif'){$img="\"هذا"; $tpl->assign("images_gif",$img);} if(!(empty($row[e_n]))){ $english_gif="\"\""; $tpl->assign("e_n",$english_gif); } $tpl->assign("name_cat",$cat_name1); $tpl->assign("name_sub",$part_name1); $tpl->assign("web_id",$web_id1); $tpl->assign("fix1",$fix1); $tpl->assign("rank1",$rank1); $tpl->assign("name_web",$web_name); $tpl->assign("title1",$title1); $tpl->assign("num_visited",$visit1); $tpl->assign("num_rank",$rank1); $tpl->assign("alexa1",$alexa1); $tpl->assign("links_back1",$links_back1); $tpl->assign("indexs_in_google1",$indexs_in_google1); $tpl->assign("color_web",$color_webx); $tpl->assign("go",$go); $tpl->assign("nogo",$nogo); $tpl->assign("showsite_link",$show_link); if($count1==2){ $tr=""; $tpl->assign("rtrt",$tr); $count1=0; }//end if }//end if if($fix1!='1'){ $count2++; $tpl->newBlock("website2"); if($row[glass] == '1'){$img="\"هذا"; $tpl->assign("img",$img);} if($row[images]=='newg.gif'){$img="\"هذا"; $tpl->assign("images_gif",$img);} if($row[images]=='new.gif'){$img="\"هذا"; $tpl->assign("images_gif",$img);} if(!(empty($row[e_n]))){ $english_gif="\"\""; $tpl->assign("e_n",$english_gif); } $tpl->assign("name_cat",$cat_name1); $tpl->assign("name_sub",$part_name1); $tpl->assign("web_id",$web_id1); $tpl->assign("fix1",$fix1); $tpl->assign("rank1",$rank1); $tpl->assign("name_web",$web_name); $tpl->assign("title1",$title1); $tpl->assign("num_visited",$visit1); $tpl->assign("num_rank",$rank1); $tpl->assign("alexa1",$alexa1); $tpl->assign("links_back1",$links_back1); $tpl->assign("indexs_in_google1",$indexs_in_google1); $tpl->assign("color_web",$color_webx); if($color_webx=='#FFFF00'){ $tpl->assign("nogo",$web_link1); }elseif($color_webx=='#FFFFFF'){ $tpl->assign("go",$go); }//end $tpl->assign("showsite_link",$show_link); if($count2==2){ $tr=""; $tpl->assign("rtrt",$tr); $count2=0; }//end if }//end if }//end while //تعدد الصفحات البداية // }//endif ($num > 0) { $tpl->newBlock("multpages"); if ($num_pages > 1) {//$num_pages عدد الصفحات الكلي echo '

'; $current_page = ($start/$display) + 1; if ($current_page != $num_pages) { $nexttext="التالي"; //echo "$nexttext"; $tpl->assign("nexttext",$nexttext); $y=$start + $display; $id_cat_name=ereg_replace(' ',"_",$id_cat_name); $next="sab$sub_id-s$y-o$order-$id_cat_name.html"; $tpl->assign("next",$next); } $priv_link=3; if ($current_page <= $priv_link) { $pointb=" "; $begin_for=1; $tpl->assign("pointb",$pointb); }else{ $deincrese=3; $current_page = ($start/$display) + 1; $x=$current_page; $begin_for=$x-$deincrese; if($begin_for >= ($deincrese-1)){ $pointb="..."; $tpl->assign("pointb",$pointb); } } $incres_for="5"; $end_for=$current_page+$incres_for; if($end_for>$num_pages){ $end_for=$num_pages; }else{ $pointa="..."; $tpl->assign("pointa",$pointa); } //echo "$begin_for"; if($begin_for >= '2'){ //echo "dsfsdf"; $id_cat_name=ereg_replace(' ',"_",$id_cat_name); $onepage="sab$sub_id-s$y-o$order-$id_cat_name.html"; $tpl->assign("firstpage",$onepage); $numberone=1; $tpl->assign("numberone",$numberone); } if(($current_page != 1)){ $f=$start - $display; $id_cat_name=ereg_replace(' ',"_",$id_cat_name); $privews_link="sab$sub_id-s$f-o$order-$id_cat_name.html"; $tpl->assign("privews_link",$privews_link); $privews="السابق"; $tpl->assign("privews",$privews); } if($current_page != $num_pages){ $end_for=$end_for ; } $i=$begin_for; while($i<=$end_for){ $tpl->newBlock("all_links_for"); if ($i != $current_page) { $z=$display * ($i - 1); $id_cat_name=ereg_replace(' ',"_",$id_cat_name); $all="$i"; $tpl->assign("all",$all); } else { $tpl->assign("iiiii",$i); } $i++; }//end while if($current_page != $num_pages){ $x=$num_pages+ $display; $id_cat_name=ereg_replace(' ',"_",$id_cat_name); $last_page="$num_pages"; } //echo "$sub_id"; } // End of links section. }else{ } //اسم الدليل //اسم الدليل if(!(isset($PREV))&&(isset($dd))){ $tpl->newBlock("login_user"); $url2="control/process.php?op=administrator&url={$HTTP_HOST}{$REQUEST_URI}"; $tpl->assign("url2",$url2); } $tpl->printToScreen(); ?>prepare(); //من اجل تعديل اسم الموقع $Query="SELECT `Dlel_Name` FROM `num` WHERE id='1'"; $Result=@mysql_query($Query); while($Rows_Query=mysql_fetch_array($Result)){ $Dalel_Name=$Rows_Query[Dlel_Name]; $tpl->gotoBlock("_ROOT"); $tpl->assign("dalel",$Dalel_Name); // $cat_id=$_GET[cat_id]; $tpl->assign("cate_id",$cat_id); // $sub_id=$_GET[sub_id]; $tpl->assign("sube_id",$sub_id); } //من اجل تعديل اسم الموقع /////هذا من أجلل المواقع الجدبدة $sql_add_web="select cat_id,part_id from part_in_cat where part_id='$_GET[sub_id]' or cat_id='$_GET[cat_id]' order by part_id limit 1"; $result_add_web=@mysql_query($sql_add_web); while($row_add_web=mysql_fetch_array($result_add_web)){ $cat_id_add_web=$row_add_web[cat_id];$tpl->assign("cat_id_add_web",$cat_id_add_web); //echo "$cat_id_add_web"; if(isset($_GET[sub_id])){ $part_id_add_web=$row_add_web[part_id];$tpl->assign("part_id_add_web",$part_id_add_web); } } ///////////////////////من اجل نسجيل دخول الاعضاء/////////////////////////////// if(($PREV=='1')||($PREV=='2')||($PREV=='-100')){ // $tpl->gotoBlock("logout"); //$link_login="control/add_web4.php"; $link_login="process.php?op=logout"; $tpl->assign("link_login",$link_login); $name="تسجيل الخروح"; $tpl->assign("name",$name); $tpl->assign("priv",$PREV); $link_login="control/"; $link_login2="control/add_web4.php"; // $name_member2=" دخول الاعضاء"; $tpl->assign("name_member2",$name_member2); $tpl->assign("name2",$name); $tpl->assign("link_login2",$link_login2); $tpl->assign("priv2",$PREV); $tpl->assign("FNAME",$FNAME); $hi=" أهلا بك "; $tpl->assign("txt",$hi); }else{ $link_login2="control"; $tpl->assign("name2",$name); $tpl->assign("link_login2",$link_login2); } ///////////////////////////من اجل نسجيل دخول الاعضاء/////////////////////////////////////// $sql_main="SELECT `cat_name`,lin_name,color_cat,count1_part,`cat_id` FROM `categories` WHERE active='1' and eklemi !='1' and show_in_right='1' order by arr asc limit 0,200"; $result_main=mysql_query($sql_main); if(!$result_main){echo mysql_error();} $num_main=mysql_num_rows($result_main); while($row_main=mysql_fetch_array($result_main)){ $tpl->newBlock("catmainue"); $cat_id=$row_main[cat_id]; if(!empty($row_main[lin_name])){ $lin_name=$row_main[lin_name]; $lin_name=ereg_replace(' ',"_",$lin_name); }else{ $lin_name=$row_main['cat_name']; $lin_name=ereg_replace(' ',"_",$lin_name); } $links_cat_in_minue="cut".$cat_id."-$lin_name.html"; $tpl->assign("links_cat_in_minue",$links_cat_in_minue); $tpl->assign("cat_name",$row_main[cat_name]); $tpl->assign("color_cats",$row_main[color_cat]); $tpl->assign("count1_part",$row_main[count1_part]); } //الأقسام: $sql_sub="SELECT `part_id` FROM `part_in_cat` WHERE 1"; $result_sub=mysql_query($sql_sub); $num_roes=@mysql_num_rows($result_sub); //$num_sub=mysql_result($result_sub,0,"sumpart"); $tpl->gotoBlock("_ROOT"); $tpl->assign("num_sub",$num_roes); //الأقسام: $sqlquery="SELECT v_t_month,all_visited,active_web,no_active_web FROM `num` where id='1'"; $res_this_m=mysql_query($sqlquery); $Result_this_month=@mysql_result($res_this_m,0,"v_t_month"); $ALL_Visited=@mysql_result($res_this_m,0,"all_visited"); $no_active_web=@mysql_result($res_this_m,0,"no_active_web"); $active_web=@mysql_result($res_this_m,0,"active_web"); //من اجل اختيار موقع عشوائي $tpl->gotoBlock("_ROOT"); $tpl->assign("sum_this_month",$Result_this_month); $tpl->gotoBlock("_ROOT"); $tpl->assign("ALL_VISITE",$ALL_Visited); $tpl->gotoBlock("_ROOT"); $link_rand="rand.php?web_id=$web_id";//rand.php?web_id=$web_id&x=1 $tpl->assign("no_active_web",$no_active_web); $tpl->assign("active_web",$active_web); $sql_cli=mysql_query("SELECT * FROM `lastupdate` WHERE 1 "); $num_click_last=mysql_result($sql_cli,0,"click"); $tpl->assign("num_click_last",$num_click_last); $sql="SELECT last FROM `lastupdate` WHERE 1"; $result=mysql_query($sql); while($row=mysql_fetch_array($result)){ $last=$row[last]; $tpl->newBlock("last"); $tpl->assign("last",$last); } ////////////////////////////البداية من نظام الاستفتاء///////////////// $qq="select * from vote_q order by sort DESC"; $sqlq=mysql_query($qq); $rowq=mysql_fetch_array($sqlq); $qa="select * from vote_a where q_id=$rowq[id]"; $sqq=mysql_query($qa); $tpl->gotoBlock("_ROOT"); $tpl->assign("ask",$rowq[ask]); while(@$rowa=mysql_fetch_array($sqq)){ $tpl->newBlock("vote"); $tpl->assign("ans",$rowa[ans]); $tpl->assign("id",$rowa[id] ); }//end while /* $query="SELECT * FROM `nuke_poll_desc` WHERE in_index='1' limit 0,1"; //echo"$query"; $result=mysql_query($query); while($rows=mysql_fetch_array($result)){ $tpl->newBlock("poll"); $pollTitle=$rows[pollTitle]; //echo"$pollTitle"; $tpl->assign("polltitle",$pollTitle); $pollID=$rows[pollID]; $tpl->assign("poll_id",$pollID); } $query1="SELECT * FROM `nuke_poll_data` WHERE pollID='$pollID' and optionText !=''"; $result1=mysql_query($query1); while($rows1=mysql_fetch_array($result1)){ $tpl->newBlock("option_txt"); $voteID=$rows1[voteID]; $radio=""; $answer=$rows1[optionText]; $tpl->assign("radio",$radio); $tpl->assign("answer",$answer); } */ ///////////////////////////////////////النهاية من نظام الاستفتاء////////// /////////////////////////////اعطاء سماحية تغيير الستايل ///////////////////////////// $sql_add_S="SELECT `add_style` FROM `users` WHERE prev_id !='-100' limit 1"; $result_S=mysql_query($sql_add_S); $Num=mysql_num_rows($result_S); while($Row=mysql_fetch_array($result_S)){ $add_style=$Row[add_style]; } if($add_style=='2'){ //التعديل للجميع //$Forms1="

"; $Sql_Style="SELECT * FROM `style` WHERE 1"; $Result=mysql_query($Sql_Style); while($ROW=mysql_fetch_array($Result)){ $tpl->newBlock("add_style"); if($STYLE_SELECTED==$ROW[style_id]){$str="selected"; $tpl->assign("str",$str); }else{$str=""; $tpl->assign("str",$str); } $style_id=$ROW[style_id]; $tpl->assign("style_id",$style_id); $style_name=$ROW[style_name1]; $tpl->assign("style_name",$style_name); } }elseif($add_style=='1'){ //الاضافة للاعضاء if(isset($PREV)&&($PREV=='1')||($PREV=='2')||($PREV=='-100')){ //$tpl->assign("Forms1",$Forms1); //$optiones="