AddListInfo.php ( 文件浏览 )
文件源自:
帝国cms7.0_TAG静态化插件_简体GBK版
源码简介:
帝国cms7.0_TAG静态化插件_简体GBK版
- keepall 发布于 2016-12-09 21:17
- 浏览次数:528
- 下载次数: 3
- 下载需 100 积分
-
- 侵权举报
<?php define('EmpireCMSAdmin','1'); require("../../class/connect.php"); require("../../class/db_sql.php"); require("../../class/functions.php"); require("../../class/delpath.php"); require("../../class/t_functions.php"); require("../../data/dbcache/class.php"); require "../".LoadLang('pub/fun.php'); $link=db_connect(); $empire=new mysqlquery(); //验证用户 $lur=is_login(); $logininid=$lur['userid']; $loginin=$lur['username']; $loginrnd=$lur['rnd']; $loginlevel=$lur['groupid']; $loginadminstyleid=$lur['adminstyleid']; require("class/dp_config.php"); require("setconfig.php"); if($dp_r['isok']==0){ exit('请先配置当前插件目录下setconfig.php文件'); } $tagid=$_GET['tagid']; if(!$tagid){ printerror("数据库错误","",1,0,1); } $t=$empire->fetch1("select * from {$dbtbpre}enewstags where tagid=$tagid limit 1"); if($t[tagid]!=$tagid){ printerror("数据库错误","",1,0,1); } $page=(int)$_GET['page']; $start=0; $line=30;//每页显示条数 $page_line=20;//每页显示链接数 $offset=$page*$line;//总偏移量 //搜索 $where=''; $search=''; //搜索 $sear=$_GET['sear']; if($sear) { $tbname=$_GET['tbname']; $tbname=RepPostVar($tbname); if(empty($tbname)){ printerror("请选择数据表","",1,0,1); } $keyboard=RepPostVar2($_GET['keyboard']); if(empty($keyboard)){ printerror("请输入搜索词","",1,0,1); } $where=" where title like '%$keyboard%' "; $search="&tagid=$tagid&sear=1&keyboard=$keyboard&tbname=$tbname"; $num=$empire->gettotal("select count(*) as total from {$dbtbpre}ecms_".$tbname." ".$where); $returnpage=page2($num,$line,$page_line,$start,$page,$search); $sql=$empire->query("select * from {$dbtbpre}ecms_".$tbname." ".$where." limit $offset,$line"); } $changetbs=''; $tbsql=$empire->query("select tid,tbname,tname from {$dbtbpre}enewstable order by tid"); while($tbr=$empire->fetch($tbsql)) { $selected=''; if(empty($tbname)&&$tbr[tbname]==$public_r[tbname]){ $selected=' selected'; } if($tbname==$tbr[tbname]){ $selected=' selected'; } $changetbs.="<option value='".$tbr[tbname]."'".$selected.">".$tbr[tname]."(".$tbr[tbname].")</option>"; } //页面标题 $thispage='搜索信息推送至TAG'; //导航 $url='<a href="ListTags.php">TAGS管理</a>'; $url="<a href=ListTags.php>管理TAGS</a> -> <a href=\"ListTagInfo.php?tagid=$tagid\"><b>$t[tagname]</b></a> -> <a href='AddListInfo.php?enews=pilistadd&tagid=$tagid'>$thispage</a>"; ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?=$pagechar?>"> <link href="../../data/images/qcss.css" rel="stylesheet" type="text/css"> <title><?=$thispage?></title> <script> function CheckAll(form) { for (var i=0;i<form.elements.length;i++) { var e = form.elements[i]; if (e.name != 'chkall') e.checked = form.chkall.checked; } } function GetSelectId(form) { var ids=''; var dh=''; for (var i=0;i<form.elements.le[!==More==!]
...
展开> <收缩
Sponsored links
源码文件列表
温馨提示: 点击源码文件名可预览文件内容哦 ^_^ Sponsored links