loadCodes(); date_default_timezone_set ("Asia/Riyadh"); //echo date('d-m-Y H:i:s'); require("config.inc.php"); require_once ('extensions/function.php'); require_once ('options.inc.php'); $active_link_home = "class=\"Active\""; $offset = $_GET['offset']; $offset = strip_tags($offset); $offset = trim($offset); /*if ( $offset == "" ) { $title_page = ""; } else { $title_page = " - صفحة - " . $offset; } */ $meta_description = $description_categories; $meta_keywords = $keywords_categories; $home_title = $title_categories." - ".$home_title.$title_page; require_once ('templates/header.php'); ?>
-
idcateg = $id_categories; // number of numeric links on the left and right from current $pager->seo = $seo; // number of numeric links on the left and right from current $pager->home_categories = "cat"; // number of numeric links on the left and right from current $pager->ext_categories = "cat"; // number of numeric links on the left and right from current $pager->on_first_last = true; // show links to the first and last item $pager->on_prev_next = true; // show links to the previous and next item $pager->links_range = 5; // number of numeric links on the left and right from current $res = mysql_query("SELECT COUNT(id) FROM games") or die(mysql_error()); $pager->total = mysql_result($res, 0, 0); $sql_search = "SELECT * FROM games ORDER BY id DESC LIMIT " . $pager->offset . ", " . $pager->limit . ""; $countRows = mysql_query($sql_search); while ($row_search = mysql_fetch_array($countRows)) { $id_search = $row_search["id"]; $title_search = $row_search["title"]; $description = $row_search["description"]; if ($row_search["thumb_url"]==""){ $photo = $row_search["folder"]."/".$row_search["thumb"]; }else{ $photo = $row_search["thumb_url"]; } //$title_search = substr($title_search, 0, strrpos($title_search, " ")); $description = substr($description, 0, strrpos($description, " ")); ?>
"><?php echo $title_search; ?>
total == "0"){ echo "
لا يوجد اي محتويات
"; echo ""; } else { echo "
"; echo "    "; } ?>