📄 listnewstemp.php
字号:
<?
require("../../class/connect.php");
include("../../class/db_sql.php");
include("../../class/config.php");
include("../../class/functions.php");
$link=db_connect();
$empire=new mysqlquery();
$logininid=$_COOKIE['enewsloginuserid'];
$loginin=$_COOKIE['enewsloginusername'];
$loginrnd=$_COOKIE['enewsloginrnd'];
$loginlevel=$_COOKIE['enewsloginlevel'];
$editor=1;
is_login($logininid,$loginin,$loginrnd);
//验证权限
CheckLevel($logininid,$loginin,$classid,"template");
$url="管理模板 -> <a href=ListNewstemp.php>内容模板管理</a>";
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>管理内容模板</title>
<link href="../../data/images/css.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1">
<tr>
<td>位置:<?=$url?></td>
</tr>
</table>
<br>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
<tr class="header">
<td width="13%" height="25"><div align="center"><font color="#FFFFFF">ID</font></div></td>
<td width="52%" height="25"><div align="center"><font color="#FFFFFF">模板名</font></div></td>
<td width="35%" height="25"><div align="center"><font color="#FFFFFF">操作</font></div></td>
</tr>
<?
$msql=$empire->query("select mid,mname from phome_enewsmod order by mid");
while($mr=$empire->fetch($msql))
{
?>
<tr bgcolor="#DBEAF5">
<td height="25" colspan="3"><b><?=$mr[mname]?></b></td>
</tr>
<?
$sql=$empire->query("select tempid,tempname,isdefault from phome_enewsnewstemp where modid='$mr[mid]'");
while($r=$empire->fetch($sql))
{
?>
<tr bgcolor="ffffff">
<td height="25"><div align="center"><?=$r[tempid]?></div></td>
<td height="25"><div align="center"><?=$r[tempname]?></div></td>
<td height="25"><div align="center">
[<a href="AddNewstemp.php?enews=EditNewstemp&tempid=<?=$r[tempid]?>">修改</a>]
[<a href="../enews.php?enews=DelNewstemp&tempid=<?=$r[tempid]?>" onclick="return confirm('删除此模板,将删除所属的类别及类别,确认要删除?');">删除</a>]</div></td>
</tr>
<?
}
}
?>
</table>
</body>
</html>
<?
db_close();
$empire=null;
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -