📄 listf.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,"f");
$tid=(int)$_GET['tid'];
$tbname=RepPostVar($_GET['tbname']);
if(!$tid||!$tbname)
{
printerror("ErrorUrl","history.go(-1)");
}
$url="数据表:[phome_ecms_".$tbname."] -> <a href=ListF.php?tid=$tid&tbname=$tbname>字段管理</a>";
$sql=$empire->query("select * from phome_enewsf where tid='$tid' order by myorder");
?>
<!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>
<form name="form1" method="post" action="../enews.php">
<table width="98%%" border="0" align="center" cellpadding="3" cellspacing="1">
<tr>
<td><input type="button" name="Submit2" value="新建字段" onclick="self.location.href='AddF.php?enews=AddF&tid=<?=$tid?>&tbname=<?=$tbname?>';"></td>
</tr>
</table>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
<tr class="header">
<td width="7%" height="25"><div align="center"><font color="#FFFFFF">顺序</font></div></td>
<td width="32%" height="25"><div align="center"><font color="#FFFFFF">字段名</font></div></td>
<td width="30%"><div align="center"><font color="#FFFFFF">字段标识</font></div></td>
<td width="12%"><div align="center"><font color="#FFFFFF">采集项</font></div></td>
<td width="19%" height="25"><div align="center"><font color="#FFFFFF">操作</font></div></td>
</tr>
<?
while($r=$empire->fetch($sql))
{
if($r[iscj])
{$iscj="是";}
else
{$iscj="否";}
if($r[isadd])
{
$do="[<a href='AddF.php?tid=$tid&tbname=$tbname&enews=EditF&fid=".$r[fid]."'>修改</a>] [<a href='../enews.php?tid=$tid&tbname=$tbname&enews=DelF&fid=".$r[fid]."' onclick=\"return confirm('确认要删除?');\">删除</a>]";
}
else
{
$do="<font color=red>系统字段</font>";
}
?>
<tr bgcolor="ffffff">
<td height="25"><div align="center">
<input name="myorder[]" type="text" id="myorder[]" value="<?=$r[myorder]?>" size="3">
<input type=hidden name=fid[] value=<?=$r[fid]?>>
</div></td>
<td height="25"><div align="center"><?=$r[f]?></div></td>
<td><div align="center"><?=$r[fname]?></div></td>
<td><div align="center"><?=$iscj?></div></td>
<td height="25"><div align="center"><?=$do?></div></td>
</tr>
<?
}
?>
<tr bgcolor="ffffff">
<td height="25"> </td>
<td height="25" colspan="4"><input type="submit" name="Submit" value="修改字段顺序">
(值越小越前面) <input name="enews" type="hidden" id="enews" value="EditFOrder">
<input name="tid" type="hidden" id="tid" value="<?=$tid?>">
<input name="tbname" type="hidden" id="tbname" value="<?=$tbname?>"></td>
</tr>
</table>
</form>
<table width="98%%" border="0" align="center" cellpadding="3" cellspacing="1">
<tr>
<td><div align="center"> [<a href="javascript:window.close();">关闭</a>] </div></td>
</tr>
</table>
</body>
</html>
<?
db_close();
$empire=null;
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -