SourceCodeSky QQ客服 SourceCodeSky 400电话 客服电话 暂无
首页 » 源代码 » 帝国cms7.0_TAG静态化插件_简体GBK版 » /简体GBK版/upload/e/dongpo/tag/PushToTag.php

PushToTag.php ( 文件浏览 )

  • keepall 发布于 2016-12-09 21:17
  • 浏览次数:453
  • 下载次数: 3
  • 下载需 100 积分
  • 侵权举报
<?php
define('EmpireCMSAdmin','1');
require("../../class/connect.php");
require("../../class/db_sql.php");
require("../../class/functions.php");
require("../../data/dbcache/class.php");
$link=db_connect();
$empire=new mysqlquery();
$editor=1;
//验证用户
$lur=is_login();
$logininid=$lur['userid'];
$loginin=$lur['username'];
$loginrnd=$lur['rnd'];
$loginlevel=$lur['groupid'];
$loginadminstyleid=$lur['adminstyleid'];
require("class/dp_funs.php");
require("class/dp_config.php");
require("setconfig.php");
if($dp_r['isok']==0){
    exit('请先配置当前插件目录下setconfig.php文件');
}


//ID
$id=$_GET['id'];
$bookid=explode(',',$id);
$count=count($bookid);
$mbk='';

if($ver){
    $p='_index';
}else{
    $p='';
}
//栏目
$classid=(int)$_GET['classid'];
$tid=(int)$_GET['tid'];
if($classid){
    for($i=0;$i<$count;$i++){
        $btt=GetBK($bookid[$i],$classid);
        $mbk.='<span>《'.$btt[title].'》</span>';
    }
}elseif($tid){
    $tbr=$empire->fetch1("select tbname from {$dbtbpre}enewstable where tid='$tid'");
    $tbname=$tbr['tbname'];
    for($i=0;$i<$count;$i++){
        $b=$empire->fetch1("select checked,classid from {$dbtbpre}ecms_".$tbname.$p." where id=$bookid[$i] limit 1");
        if(!$b[checked]){
            return '';
        }
        $btt=GetBK($bookid[$i],$b[classid]);
        $mbk.='<span>《'.$btt[title].'》</span>';
    }
}else{
    echo '错误';
    exit();
}


if($sinfo&&empty($id))
{
    $firstpost=1;
}
$time=time();
//专题
$i=0;
$query="select tagid,tagname,num,isgood from {$dbtbpre}enewstags  order by isgood desc,tagid desc";
$sql=$empire->query($query);

$thispage='推送信息至TAG';
?>
<!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>
<style type="text/css">
    .noa span{white-space:nowrap;}
</style>
</head>

<body>


<form name="form1" method="post" action="do.php">
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
    <tr class=header>
      <td>
      推送信息到TAG
      </td>
    </tr>
    <tr  bgcolor="#FFFFFF">
      <td style="padding:10px 15px; line-height:27px;">
      <b>想要推送的信息:</b><br><div class="noa"><?=$mbk?></div>
      </td>
    </tr>
    <tr  bgcolor="#FFFFFF">
      <td style="padding:10px 15px; line-height:27px;">
      <b>请选择目标Tag:</b><br>
      <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr bgcolor="#FFFFFF">

    <?
  while($r=$empire->fetch($sql))
  {
      $i+=1;
  ?>
     
      <td height="25" width=25%><input name="tagid[]" type="checkbox" id="tagid[]" value="<?=$r[tagid]?>"<?=$check?>>
        <?=$r['tagname']?></td>
  <?php
    if($i%4==0){
          echo '</tr><tr bgcolor="#FFFFFF">';
      }
    
  }
  ?>
         </tr>
       </table>

      </td>
    </tr>

    <tr bgcolor="#FFFFFF"> 
      <td height="25" style="padding:10p[!==More==!]			
...
展开> <收缩

下载源码到电脑,阅读使用更方便

1 积分

快速下载
还剩0行未阅读,继续阅读
免费下载源码
Sponsored links

源码文件列表

温馨提示: 点击源码文件名可预览文件内容哦 ^_^
...
名称 大小 修改日期
/dp_funs6.6替换.php 41.06 KB 2014-11-12 10:08:00
/简体GBK版/TAG静态化插件 使用说明.rtf 11.58 KB 2014-05-15 10:33:48
/简体GBK版/upload/e/dongpo/tag/AddClass.php 4.21 KB 2014-05-14 14:58:20
/简体GBK版/upload/e/dongpo/tag/AddListInfo.php 6.23 KB 2014-05-14 18:59:44
/简体GBK版/upload/e/dongpo/tag/AddTag.php 6.05 KB 2014-05-15 08:08:20
/简体GBK版/upload/e/dongpo/tag/AddTagF.php 6.33 KB 2014-05-14 16:32:44
/简体GBK版/upload/e/dongpo/tag/do.php 3.29 KB 2014-05-15 16:34:06
/简体GBK版/upload/e/dongpo/tag/ListClass.php 3.63 KB 2014-05-15 07:47:16
/简体GBK版/upload/e/dongpo/tag/ListTagF.php 3.22 KB 2014-06-19 16:22:10
/简体GBK版/upload/e/dongpo/tag/ListTagInfo.php 4.85 KB 2014-05-14 19:01:38
/简体GBK版/upload/e/dongpo/tag/ListTags.php 7.31 KB 2014-05-15 09:48:34
/简体GBK版/upload/e/dongpo/tag/PushToTag.php 3.42 KB 2014-05-14 19:12:04
/简体GBK版/upload/e/dongpo/tag/setconfig.php 597 Bytes 2014-05-15 16:48:38
/简体GBK版/upload/e/dongpo/tag/TagHtml.php 7.10 KB 2014-05-14 22:15:52
/简体GBK版/upload/e/dongpo/tag/class/dp_config.php 300 Bytes 2014-05-14 12:08:10
/简体GBK版/upload/e/dongpo/tag/class/dp_funs.php 40.69 KB 2014-06-19 20:06:10
/简体GBK版/upload/e/dongpo/tag/install/index.php 2.81 KB 2014-05-14 12:15:32
/简体GBK版/upload/e/dongpo/tag/install/install.php 2.06 KB 2014-05-15 10:32:50
/简体GBK版/upload/e/dongpo/tag/install/uninstall.php 507 Bytes 2014-05-15 10:35:24
Sponsored links
正在加载中……

Switch to the English version?

Yes
SourceCodeSky 英文版
No
SourceCodeSky 中文版

完善个人资料,获价值¥30元积分奖励!