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

AddTag.php ( 文件浏览 )

  • keepall 发布于 2016-12-09 21:17
  • 浏览次数:475
  • 下载次数: 3
  • 下载需 100 积分
  • 侵权举报
<?php
define('EmpireCMSAdmin','1');
require("../../class/connect.php");
require("../../class/db_sql.php");
require("../../class/functions.php");
$link=db_connect();
$empire=new mysqlquery();
$editor=2;
//验证用户
$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文件');
}

$enews=$_GET['enews'];
$postword='增加';
$r[isgood]=0;
//修改
if($enews=="edittag")
{
    $postword='修改';
    $tagid=(int)$_GET['tagid'];
    $r=$empire->fetch1("select * from {$dbtbpre}enewstags where tagid='$tagid'");
    $add=$empire->fetch1("select * from {$dbtbpre}enewstagsadd where tagid='$tagid'");
    $addr=$add;
}

$navclass='';
$ccsql=$empire->query("select classname,classid from {$dbtbpre}enewstagsclass");
while($ccr=$empire->fetch($ccsql)){
    $sl='';
    if($ccr[classid]==$r[cid]){
        $sl=' selected';
    }
    $navclass.='<option value="'.$ccr[classid].'" '.$sl.'>'.$ccr[classname].'</option>';
}

//列表模板
$listtemp_options='';
$mod_options='';
$msql=$empire->query("select mid,mname from {$dbtbpre}enewsmod order by myorder,mid");
while($mr=$empire->fetch($msql))
{
    $listtemp_options.="<option value=0 style='background:#99C4E3'>".$mr[mname]."</option>";
    $l_sql=$empire->query("select tempid,tempname from ".GetTemptb("enewslisttemp")." where modid='$mr[mid]'");
    while($l_r=$empire->fetch($l_sql))
    {
        if($l_r[tempid]==$add[tempid])
        {$l_d=" selected";}
        else
        {$l_d="";}
        $listtemp_options.="<option value=".$l_r[tempid].$l_d."> |-".$l_r[tempname]."</option>";
    }

    if($mr[mid]==$add[modid])
    {$m_d=" selected";}
    else
    {$m_d="";}
    $mod_options.="<option value=".$mr[mid].$m_d.">".$mr[mname]."</option>";

}

$tagpath='';
if($dp_r['path']){
    $tagpath=$dp_r['path'].'/';
}

//页面标题
$thispage=$postword.'TAG';
//导航
$url='<a href="ListTags.php">TAGS管理</a> -> '.$thispage;

?>

<!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>
</head>

<body>
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
  <tr>
    <td>当前位置:<?=$url?></td>
  </tr>
</table>
<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 height="25" colspan="2"><?=$thispage?> 
        <input name="enews" type="hidden" id="enews" value="<?=$enews?>"> 
        <input name="tagid" type="hidden" id="tagid" value="<?=$tagid?>">
        <input name="oldpy" type="hidden" id="oldpy" value="<?=$add[py]?>">
        <input name="oldcid" type="hidden" id="ol[!==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元积分奖励!