define('EmpireCMSAdmin','1'); require('../e/class/connect.php'); //引入数据库配置文件和公共函数文件 require('../e/class/db_sql.php'); //引入数据库操作文件 require('../e/class/page.class.php'); //引入数据库操作文件 $link=db_connect(); //连接MYSQL $empire=new mysqlquery(); //声明数据库操作类 $type_arr = array('美洲市场','亚洲市场','中东市场','欧洲市场','非洲市场'); $qer['area'] = $dt = $_GET['area']; $query = ''; if ($dt === '0' || $dt) { $query .= " and area='{$dt}'"; $http_par = '&area='.$dt; } $p = $_GET['p']; (!$p||$p<=0)&&$p=1; $page_num =15; $start = ($p-1)*$page_num; $end = $p*$page_num; $infoNum = $empire->fetch1("select count(*) as num from phome_ecms_case where classid=56 $query"); $info = fetchAll("select * from phome_ecms_case where classid=56 $query order by id desc limit $start,$page_num"); $total = $infoNum['num']; unset($params['p']); $index = $parse['path'].'?'.http_build_query($qer); $index.="&"; $total_page = ceil($total/$page_num); $subPages = page_next($index,$page_num,$total,$total_page,$p,7,3); $pagetitle = $area_arr[$da].$type_arr[$dt]; if (!$pagetitle) { $pagetitle = 'Project'; } function fetchAll($query){ $rs = mysql_query($query); $list = array(); while($r = mysql_fetch_array($rs)){ $list[] = $r; } return $list; } db_close(); //关闭MYSQL链接 $empire=null; //注消操作类变量 ?> 产品案例-上海凯塔洛实业有限公司

工程案例