GetOne($sql); if ($pxdoclv_id){ $sql = "update x_pxdoclv set pxdoclv_body='$p_body' where pxdoclv_id=$pxdoclv_id"; }else{ $sql = "insert into x_pxdoclv (pxdoclv_lv,pxdoclv_doc_id,pxdoclv_committee_id,pxdoclv_pxcate_id,pxdoclv_body) values (0,$doc_id,".$committee_id.",$pxcate_id,'$p_body')"; } //echo $sql; $rs = $db->Execute($sql); die('提交成功,请关闭本窗口 关闭'); } //require_once('./member_login.php'); require_once('./admin/core/search.inc.php'); require_once('./list_link.inc.php'); /** * 显示信息列表 */ $doc_id = $_GET['doc_id']; $sel_paper_id=$db->GetOne("select doc_paper_id from gp_doc where doc_id=$doc_id"); $sel_page_id=$db->GetOne("select doc_page_id from gp_doc where doc_id=$doc_id"); $sel_release_id=$db->GetOne("select doc_release_id from gp_doc where doc_id=$doc_id"); $curr_p_release_id=$sel_release_id; //echo $curr_p_release_id; require_once('./get_release_page_info.inc.php'); require_once('./pageinfo.inc.php'); /* * 本版文章新闻块 */ require_once('./baseinfo.inc.php'); require_once('./list_page.inc.php'); //页面导航信息块 require_once('./list_navi.inc.php'); //热点导读信息块 require_once('./list_more.inc.php'); //本版文章新闻块 require_once('./list_link.inc.php'); //友情链接信息块 require_once('./list_more.inc.php'); require_once('./pageinfo.inc.php'); require_once('./list_paper.inc.php'); //加载本版信息 $tkey = $_GET['tkey']; $tkey = PreClearForSearchKey($tkey); $tkey_l = explode(" ", $tkey); $bkey = $_GET['bkey']; $bkey = PreClearForSearchKey($bkey); $bkey_l = explode(" ", $bkey); CheckRequest($doc_id,1); CheckRequest($tkey,2); CheckRequest($bkey,2); ///////////计数器///////////// $sql2 = "update gp_doc SET doc_counter=doc_counter+1 where doc_id = $doc_id"; $rs = $db->Execute($sql2); ///////////////////////////// $SQL = "SELECT * FROM gp_doc where doc_id=$doc_id AND doc_ent_id=$ent_id"; $rs = $db->Execute($SQL); if($rs) { $doc_id = $rs->fields[f_filter('doc_id')]; $doc_title_sub = $rs->fields[f_filter('doc_title_sub')]; $doc_title = $rs->fields[f_filter('doc_title')]; $doc_title_addon= $rs->fields[f_filter('doc_title_addon')]; $doc_source = $rs->fields[f_filter('doc_source')]; $doc_author = $rs->fields[f_filter('doc_author')]; $doc_foreword = $rs->fields[f_filter('doc_foreword')]; $doc_keywords = $rs->fields[f_filter('doc_keywords')]; //$doc_title = Get_title_img($doc_title,600,-1,0,"
"); //$doc_title_addon= Get_title_img($doc_title_addon,600,-1,0,"
"); // 如果没有图片,那么返回所有,否则返回600宽的图片 if ($tkey){ $rt = GetMarkStr($tkey_l,$doc_title); $doc_title = $rt[1]; $rt = GetMarkStr($tkey_l,$doc_title_addon); $doc_title_addon = $rt[1]; } $doc_body = $rs->fields[f_filter('doc_body')]; $bd = strip_tags($doc_body); $bd = str_replace(" ", "", $bd); $bd = str_replace(" ", "", $bd); $bd = str_replace("\r\n", "", $bd); $bd = shortstring($bd,180,''); $smarty->assign('_G_Description',$bd); if($doc_keywords==""){ $bd = strip_tags($doc_title); $bd = str_replace(" ", "", $bd); $bd = str_replace(" ", "", $bd); $bd = str_replace("\r\n", "", $bd); $bd = shortstring($bd,180,''); }else{ $bd =$doc_keywords; $bd = str_replace("\r", "", $bd); $bd = str_replace("\n", "", $bd); } $smarty->assign('_G_KEYWORDS',$bd); //echo $doc_body; $doc_body_show = $rs->fields[f_filter('doc_body_show')]; if($bkey){ //print_r($bkey_l); $rt = GetMarkStr($bkey_l,$doc_body); $doc_body = $rt[1]; } //$doc_author_id = $rs->fields[f_filter('doc_author_id')]; $doc_edit_time = $rs->fields[f_filter('doc_edit_time')]; $doc_edit_time = substr($doc_edit_time,0,10); //$doc_page_name_cn = $rs->fields[f_filter('doc_page_name_cn')]; $doc_page_id = $rs->fields[f_filter('doc_page_id')]; $doc_paper_id = $rs->fields[f_filter('doc_paper_id')]; //$doc_all_text = $rs->fields[f_filter('doc_all_text')]; //echo $doc_all_text; $doc_release_id = $rs->fields[f_filter('doc_release_id')]; //$doc_image_comment = $rs->fields[f_filter('doc_image_comment')]; /*--------------------------------------------------------- 附件操作 ---------------------------------------------------------*/ $doc_filename = $rs->fields[f_filter('doc_filename')]; if ($doc_filename!=""){ $doc_download = $rs->fields[f_filter('doc_download')]; $doc_filesize = $rs->fields[f_filter('doc_filesize')]; $s_doc_filesize = GetDisplayFilesize($doc_filesize); $doc_filename= "附件下载:
$doc_filename (文件大小: $s_doc_filesize)"; $doc_body .= "
$doc_filename"; } /*--------------------------------------------------------*/ } ///////////////////////////获得相关文章/////////$doc_keywords if ($doc_keywords!=''){ $keywords_list = explode(",", $doc_keywords); $i=0; foreach ($keywords_list as $value) { $sql = "select doc_id,doc_title from gp_doc where doc_id<>$doc_id AND doc_title<>'' AND doc_ent_id=$ent_id AND binary doc_keywords like '%$value%'"; $rs = $db->Execute($sql); while(!$rs->EOF) { $r_doc_title=str_replace("
", "", $rs->fields[f_filter('doc_title')]); $rl[$rs->fields[f_filter('doc_id')]]=$r_doc_title; $rs->MoveNext(); $i++; if (count($rl)==10) {break;} } if (count($rl)==10) {break;} } } $i=0; foreach ($rl as $key => $value) { $rarr[$i] = array( 'doc_id' => $key, 'doc_title' => $value ); $i++; } $smarty->assign('_relate_list',$rarr); //print_r($rl); $smarty->assign('id',$doc_id); $smarty->assign('title_sub',$doc_title_sub); $smarty->assign('title',$doc_title); $title_txt = strip_tags($doc_title); $title_txt = str_replace(" ", " ", $title_txt); $title_txt = str_replace(" ", " ", $title_txt); $title_txt = str_replace("\r\n", "", $title_txt); $smarty->assign('title_txt',$title_txt); $smarty->assign('title_addon',$doc_title_addon); $smarty->assign('doc_source',$doc_source); $smarty->assign('body',$doc_body); $smarty->assign('keywords',$doc_keywords);//引言 $smarty->assign('foreword',$doc_foreword);//引言 $smarty->assign('author',$doc_author);//作者 //$smarty->assign('doc_author_id',$doc_author_id); $smarty->assign('time',$doc_edit_time); //$smarty->assign('page_name_cn',$doc_page_name_cn); //$smarty->assign('doc_release_id',$doc_release_id); //$smarty->assign('doc_image_comment',$doc_image_comment); /*******************显示动态标签***************************/ if($doc_page_id==0){ $rs=$db->Execute("SELECT paper_name_cn,paper_editor FROM gp_paper WHERE paper_id=$doc_paper_id"); if ($rs){ $c_page_name_cn=$rs->fields[f_filter('paper_name_cn')]; $c_page_duty_editor=$rs->fields[f_filter('paper_editor')]; } }else{ $rs=$db->Execute("SELECT page_name_cn,page_duty_editor FROM gp_page WHERE page_id=$doc_page_id"); if ($rs){ $c_page_name_cn=$rs->fields[f_filter('page_name_cn')]; $c_page_duty_editor=$rs->fields[f_filter('page_duty_editor')]; } } //加载评论 $sql="select * from gp_remark where remark_doc_id=$doc_id order by remark_id desc"; //echo $sql; $rs = $db->Execute($sql); $i = 0; while(!$rs->EOF) { $ip = $rs->fields[f_filter('remark_ip')]; $time = $rs->fields[f_filter('remark_time')]; $time = substr($time,0,22); $content= $rs->fields[f_filter('remark_content')]; $content= shortstring($content,50); $arr[$i] = array( 'ip' => $ip, 'time' => $time, 'content'=> $content ); $rs->MoveNext(); $i++; if($i>2) break; } $doc_point=$_COOKIE["doc_".$doc_id."_point"]; //print_r($_COOKIE); if ($doc_point==""){ $smarty->assign('show_setpoint',1); }else{ $smarty->assign('show_setpoint',0); } $smarty->assign('remarklist',$arr); $base_dir="/admin";//getcheck_num.php里面用 require_once('./admin/lib/getcheck_num.php'); $smarty->assign('check_num',$check_num); $smarty->assign('_page_cn_name',strip_tags($c_page_name_cn)); //当前版面的中文名称 $smarty->assign('_page_editor',strip_tags($c_page_duty_editor)); //责任编辑 //$smarty->assign('_page_en_name',$page_name_en); //当前版面的英文名称 //$smarty->assign('_page_num',$page_sort); //当前版面的页码 $smarty->display('show_more.html'); //流量统计代码 echo ''; //www.51.la echo '我要啦免费统计'; if($_GET['pxmode']=='1'){ $pxcate_id=$_GET['pxcate_id']; $pingxuan_id=$_GET['pingxuan_id']; $committee_id=$_GET['c_id']; $sql="select pxdoclv_body from x_pxdoclv where pxdoclv_doc_id=$doc_id and pxdoclv_pxcate_id=$pxcate_id AND pxdoclv_committee_id=".$committee_id; //echo $sql; $pxdoclv_body =$db->GetOne($sql); if ($_SESSION){ ?>