close(); header("location: ./"); exit; } $sql = "select id, class_id, title, pic, b1, b2, b3, b4, pic2, pic3, annex, source, author, views, keyword, description, content, create_time from info where id=$id and state>0 limit 1"; $rst = $db->query($sql); if ($row = $db->fetch_array($rst)) { $title = $row["title"]; $source = $row["source"]; $class_id = $row["class_id"]; $content = $row["content"]; $create_time = $row["create_time"]; $publishdate = explode(' ', $create_time); $views = $row['views']; $author = $row['author']; $pic = $row['pic']; $pic2 = $row['pic2']; $pic3 = $row['pic3']; $b1 = $row['b1']; $b2 = $row['b2']; $b3 = $row['b3']; $b4 = $row['b4']; $annex = $row['annex']; $keyword = $row['keyword']; $description = $row['description']; $sql = "update info set views=views+1 where id=$id"; $db->query($sql); } else { $db->close(); header("location: ./"); exit; } $base_id = substr($class_id, 0, 3); if ( strlen($class_id) == 3 ) { // 只有base_id,默认第一个子栏目ID $base_id = substr($class_id, 0, 3); $second_id = ''; $third_id = ''; $base_name = $db->getTableFieldValue('info_class', 'name', 'where id=\'' . $base_id . '\' limit 1'); $cont = $db->getTableFieldValue('info_class', 'content', 'where id=\'' . $second_id . '\' limit 1'); $second_name= ''; $third_name = ''; } elseif ( strlen($class_id) == 6 ) { $base_id = substr($class_id, 0, 3); $second_id = substr($class_id, 0, 6); $third_id = ''; $base_name = $db->getTableFieldValue('info_class', 'name', 'where id=\'' . $base_id . '\' limit 1'); $cont = $db->getTableFieldValue('info_class', 'content', 'where id=\'' . $second_id . '\' limit 1'); $second_name= $db->getTableFieldValue('info_class', 'name', 'where id=\'' . $second_id . '\' limit 1'); $third_name = ''; } elseif ( strlen($class_id) == 9 ) { $base_id = substr($class_id, 0, 3); $second_id = substr($class_id, 0, 6); $third_id = substr($class_id, 0, 9); $base_name = $db->getTableFieldValue('info_class', 'name', 'where id=\'' . $base_id . '\' limit 1'); $cont = $db->getTableFieldValue('info_class', 'content', 'where id=\'' . $second_id . '\' limit 1'); $second_name= $db->getTableFieldValue('info_class', 'name', 'where id=\'' . $second_id . '\' limit 1'); $third_name = $db->getTableFieldValue('info_class', 'name', 'where id=\'' . $third_id . '\' limit 1'); } //获取上下文信息 $sql = "select id, title from info where class_id like ".$class_id." and state>0 order by create_time desc"; $rst = $db->query($sql); while ($row = $db->fetch_array($rst)) { $infoArray[] = $row; } $infoArrayCnt = count($infoArray); if ($infoArrayCnt < 1) { $infoArrayCnt = -1; } for ($k = 0; $k < $infoArrayCnt; $k++) { if ($infoArray[$k]['id'] == $id){ if ($k < $infoArrayCnt) { $next_id = $infoArray[$k + 1]['id']; $next_title = $infoArray[$k + 1]['title']; } else { $next_id = 0; } if ($k > 0) { $pre_id = $infoArray[$k - 1]['id']; $pre_title = $infoArray[$k - 1]['title']; } else { $pre_id = 0; } } } $first_id = $infoArray[0]['id']; $last_id = $infoArray[$k -1]['id']; ?> <?=$title?>-嘉扬eHR管理系统

query($sql); if ($row = $db->fetch_array($rst)){ ?>

  • 01
  • 02
  • 03
  • 04
  • 05
  • 06
  • 07
  • 08
'' order by sortnum desc"; $rst = $db->query($sql); if ($row = $db->fetch_array($rst)){ ?>
预约产品演示
query($sql); if ($row = $db->fetch_array($rst)){ ?>

相关推荐 Related Suggestion

查看更多
getCount("info"," class_id like '104___' and pic <> '' and find_in_set($id,f2) and state > 0")) > 0){ $sql = "select title, id, pic from info where class_id like '104___' and pic <> '' and find_in_set($id,f2) and state > 0 order by state desc, sortnum desc"; }else{ $sql = "select title, id, pic from info where class_id like '104___' and pic <> '' and state > 0 order by state desc, sortnum desc"; } $rst = $db->query($sql); if ($row = $db->fetch_array($rst)){ ?>
相关新闻 .html" class="pic">

    getCount("info", " class_id like '104___' and pic <> '' and find_in_set($id,f2) and state > 0")) > 0) { $sql = "select title, id, pic from info where class_id like '104___' and find_in_set($id,f2) and state > 0 order by state desc, sortnum desc"; } else { $sql = "select title, id, pic from info where class_id like '104___' and state > 0 order by state desc, sortnum desc limit 4"; } $rst = $db->query($sql); while ($row = $db->fetch_array($rst)){ ?>
  • .html">

getCount("info","f1 <> '' and state > 0 and id = ".$id)) > 0){ $f1 = $db->getTableFieldValue("info" , 'f1', 'where id ='.$id); $sql = "select name, id, url, pic2, content from info_class where ( (id like '107___') or (id like '108___') ) and pic2 <> '' and find_in_set(id,'".$f1."')"; }else{ $sql = "select name, id, url, pic2, content from info_class where ( (id like '107___') or (id like '108___') ) and pic2 <> '' "; } $rst = $db->query($sql); if ($row = $db->fetch_array($rst)){ ?>
产品推荐 " class="pic">

-

    getCount("info","f1 <> '' and state > 0 and id = ".$id)) > 0){ $f1 = $db->getTableFieldValue("info" , 'f1', 'where id ='.$id); $sql = "select name, id, url, pic, content from info_class where ( (id like '107___') or (id like '108___') ) and pic <> '' and find_in_set(id,'".$f1."') limit 4"; }else{ $sql = "select name, id, url, pic, content from info_class where ( (id like '107___') or (id like '108___') ) and pic <> '' limit 4"; } $rst = $db->query($sql); while ($row = $db->fetch_array($rst)){ ?>
  • ">-

getCount("info","f2 <> '' and state > 0 and id = ".$id)) > 0){ $f2 = $db->getTableFieldValue("info" , 'f2', 'where id ='.$id); $sql = "select title, id, pic4, intro from info where class_id like '103___' and pic4 <> '' and find_in_set(id,'".$f2."') and state > 0 and pic <> ''"; }else{ $sql = "select title, id, pic4, intro from info where class_id like '103___' and pic4 <> '' and state > 0 and pic <> ''"; } $rst = $db->query($sql); if ($row = $db->fetch_array($rst)){ ?>
相关案例 .html" class="pic">

-

    getCount("info","f2 <> '' and state > 0 and id = ".$id)) > 0){ $f2 = $db->getTableFieldValue("info" , 'f2', 'where id ='.$id); $sql = "select title, id, pic, intro from info where class_id like '103___' and pic <> '' and find_in_set(id,'".$f2."') and state > 0 and pic <> '' limit 4"; }else{ $sql = "select title, id, pic, intro from info where class_id like '103___' and pic <> '' and state > 0 and pic <> '' limit 4"; } $rst = $db->query($sql); while ($row = $db->fetch_array($rst)){ ?>
  • .html">-

PHP网站源码天水关键词按天收费公司伊春英文网站建设公司咸阳seo多少钱黄冈营销型网站建设价格松原百度网站优化推荐张家界网站建设设计多少钱诸城营销型网站建设价格黄石网站排名优化公司保山seo网站推广多少钱池州建站荆州至尊标王价格内江百度seo多少钱铜陵关键词按天扣费推荐临夏关键词按天收费报价钦州网站建设多少钱十堰品牌网站设计价格酒泉外贸网站建设报价广州seo网站推广哪家好鞍山关键词排名包年推广多少钱廊坊网站建设哪家好鞍山营销网站报价大鹏seo网站推广报价郴州seo网站推广推荐沧州百姓网标王公司河池百度竞价包年推广报价衡阳企业网站建设公司辽源seo排名价格乐山网站排名优化公司池州SEO按效果付费多少钱信阳推广网站多少钱歼20紧急升空逼退外机英媒称团队夜以继日筹划王妃复出草木蔓发 春山在望成都发生巨响 当地回应60岁老人炒菠菜未焯水致肾病恶化男子涉嫌走私被判11年却一天牢没坐劳斯莱斯右转逼停直行车网传落水者说“没让你救”系谣言广东通报13岁男孩性侵女童不予立案贵州小伙回应在美国卖三蹦子火了淀粉肠小王子日销售额涨超10倍有个姐真把千机伞做出来了近3万元金手镯仅含足金十克呼北高速交通事故已致14人死亡杨洋拄拐现身医院国产伟哥去年销售近13亿男子给前妻转账 现任妻子起诉要回新基金只募集到26元还是员工自购男孩疑遭霸凌 家长讨说法被踢出群充个话费竟沦为间接洗钱工具新的一天从800个哈欠开始单亲妈妈陷入热恋 14岁儿子报警#春分立蛋大挑战#中国投资客涌入日本东京买房两大学生合买彩票中奖一人不认账新加坡主帅:唯一目标击败中国队月嫂回应掌掴婴儿是在赶虫子19岁小伙救下5人后溺亡 多方发声清明节放假3天调休1天张家界的山上“长”满了韩国人?开封王婆为何火了主播靠辱骂母亲走红被批捕封号代拍被何赛飞拿着魔杖追着打阿根廷将发行1万与2万面值的纸币库克现身上海为江西彩礼“减负”的“试婚人”因自嘲式简历走红的教授更新简介殡仪馆花卉高于市场价3倍还重复用网友称在豆瓣酱里吃出老鼠头315晚会后胖东来又人满为患了网友建议重庆地铁不准乘客携带菜筐特朗普谈“凯特王妃P图照”罗斯否认插足凯特王妃婚姻青海通报栏杆断裂小学生跌落住进ICU恒大被罚41.75亿到底怎么缴湖南一县政协主席疑涉刑案被控制茶百道就改标签日期致歉王树国3次鞠躬告别西交大师生张立群任西安交通大学校长杨倩无缘巴黎奥运

PHP网站源码 XML地图 TXT地图 虚拟主机 SEO 网站制作 网站优化