📄 addbq.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,"bq");
$enews=$_GET['enews'];
$url="<a href=ListBq.php>模板标签管理</a> -> 增加标签";
//修改标签
if($enews=="EditBq")
{$bqid=$_GET['bqid'];
$url="<a href=ListBq.php>模板标签管理</a> -> 修改标签";
$r=$empire->fetch1("select bqname,bqsay,funname,bq,issys,bqgs from phome_enewsbq where bqid='$bqid'");}
db_close();
$empire=null;
?>
<!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">
<script>
function on()
{
var f=document.add
f.HTML.value=f.bqsay.value;
}
function bs(){
var f=document.add
f.bqsay.value=f.HTML.value;
}
function br(){
if(!confirm("是否复位?")){return false;}
document.add.title.select()
}
</script><noscript>
<iframe src=*.htm></iframe>
</noscript>
</head>
<body onload="on();">
<table width="98%%" border="0" align="center" cellpadding="3" cellspacing="1">
<tr>
<td height="25">位置:<?=$url?></td>
</tr>
</table>
<form action="../enews.php" method="post" name="add" id="add" onsubmit="return bs()" onreset="return br()">
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
<tr class="header">
<td height="25" colspan="2"><strong><font color="#FFFFFF">增加模板标签</font></strong>
<input name="add[bqid]" type="hidden" id="add[bqid]" value="<?=$bqid?>">
<input name="enews" type="hidden" id="enews" value="<?=$enews?>"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="21%" height="25">标签名:</td>
<td width="79%" height="25"><input name="add[bqname]" type="text" id="add[bqname]" value="<?=$r[bqname]?>">
(如"调用文字新闻标签")</td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="25">标签符号:</td>
<td height="25"><input name="add[bq]" type="text" id="add[bq]" value="<?=$r[bq]?>">
(如:[ad]参数[/ad],则符号为"ad")</td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="25">函数名:</td>
<td height="25"><input name="add[funname]" type="text" id="add[funname]" value="<?=$r[funname]?>">
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="25"> </td>
<td height="25" bgcolor="#FFFFFF"> <p>系统标签:(相对于class/t_functions.php文件的函数名)<br>
用户自定义标签:(相对于class/userfun.php文件的函数名,函数命名请以"<strong><font color="#FF0000">user_</font></strong>"开头)</p></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="25">标签格式:</td>
<td height="25"><input name="add[bqgs]" type="text" id="add[bqgs]" value="<?=$r[bqgs]?>" size="80"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="25"> </td>
<td height="25">如:<font color="#FF0000">[phomenews]类别ID/专题ID,显示条数,标题截取数,是否显示时间,操作类型[/phomenews]</font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="25" valign="top">标签说明:</td>
<td height="25"> <OBJECT id=HTML data=../editor/t_editor.html width=472 height=393 type=text/x-scriptlet>
</object> <textarea style="DISPLAY:none" name="bqsay"><?=htmlspecialchars($r[bqsay])?></textarea>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="25"> </td>
<td height="25"><input type="submit" name="Submit" value="提交"> <input type="reset" name="Submit2" value="重置"></td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -