session_start(); $session_id=session_id(); $sid = session_id(); include("cms/config.php"); require_once("inc/common.php"); $qty = 10; $pagesize = 12; $back_link = "javascript:history.go(-1);"; $no_msg = "We Are Updating Our Products."; $bw = 30; $bh = 30; $id = request('SecID'); if (!empty($id)){ $strId = explode("-",$id); } $ip = $_SERVER['REMOTE_ADDR']; function get_date(){ return date("Y")."-".date("m")."-".date("d"); } function image_height($filepath){ if (file_exists($filepath)){ list($width, $height) = getimagesize($filepath); }else{ $height = 0; } return $height; } function image_width($filepath){ if (file_exists($filepath)){ list($width, $height) = getimagesize($filepath); }else{ $width = 0; } return $width; } function section_name($secid=''){ $sql = "SELECT secname FROM sections WHERE recid = $secid"; $qry = mysql_query($sql); if (mysql_num_rows($qry)>0){ $fld = mysql_fetch_array($qry); $return = $fld[0].""; }else{ $return="Our Products"; } mysql_free_result($qry); return $return; } function spec_name($speid){ $sql = "SELECT spec_detail FROM tbl_spec WHERE spec_id = $speid"; $qry = mysql_query($sql); if (mysql_num_rows($qry)>0){ $fld = mysql_fetch_array($qry); $return = $fld[0].""; }else{ $return=""; } mysql_free_result($qry); return $return; } function gen_f_link($parent){ $sql = "SELECT row_id FROM tbl_gen WHERE parent = ".$parent." ORDER BY rank LIMIT 0,1"; $qry = mysql_query($sql); if (mysql_num_rows($qry)>0){ $fld = mysql_fetch_array($qry); $return = $fld[0]; }else{ $return=0; } mysql_free_result($qry); return $return; } ?>
|
||||||||
|