📄 addspacestyle.php
字号:
<?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=getcvar('loginuserid');
$loginin=getcvar('loginusername');
$loginrnd=getcvar('loginrnd');
$loginlevel=getcvar('loginlevel');
$editor=1;
is_login($logininid,$loginin,$loginrnd);
//验证权限
CheckLevel($logininid,$loginin,$classid,"spacestyle");
$enews=$_GET['enews'];
$url="<a href='ListSpaceStyle.php'>管理会员空间模板</a> -> 增加会员空间模板";
if($enews=="EditSpaceStyle")
{
$styleid=(int)$_GET['styleid'];
$r=$empire->fetch1("select * from {$dbtbpre}enewsspacestyle where styleid='$styleid'");
$url="<a href='ListSpaceStyle.php'>管理会员空间模板</a> -> 修改会员空间模板:<b>".$r[stylename]."</b>";
}
//会员组
$line=5;//一行显示五个
$i=0;
$mgsql=$empire->query("select groupid,groupname from {$dbtbpre}enewsmembergroup order by level");
while($level_r=$empire->fetch($mgsql))
{
$i++;
$br='';
if($i%$line==0)
{
$br='<br>';
}
if(strstr($r['membergroup'],','.$level_r['groupid'].','))
{$checked=" checked";}
else
{$checked="";}
$membergroup.="<input type='checkbox' name='membergroup[]' value='$level_r[groupid]'".$checked.">".$level_r[groupname]." ".$br;
}
db_close();
$empire=null;
//风格
$loginadminstyleid=(int)getcvar('loginadminstyleid');
?>
<!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="../adminstyle/<?=$loginadminstyleid?>/adminstyle.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="0">
<tr>
<td height="25">位置:<?=$url?></td>
</tr>
</table>
<form name="form1" method="post" action="ListSpaceStyle.php">
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
<tr class="header">
<td width="21%" height="25">增加会员空间模板</td>
<td width="79%" height="25"><input name="enews" type="hidden" id="enews" value="<?=$enews?>">
<input name="styleid" type="hidden" id="styleid" value="<?=$styleid?>"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="25">模板名称</td>
<td height="25"> <input name="stylename" type="text" id="stylename" value="<?=$r[stylename]?>" size="30">
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="25">模板缩略图</td>
<td height="25"> <input name="stylepic" type="text" id="stylepic" value="<?=$r[stylepic]?>" size="30">
<a onclick="window.open('../editor/file.php?userid=<?=$logininid?>&username=<?=$loginin?>&rnd=<?=$loginrnd?>&type=1&classid=<?=$classid?>&doing=2&field=stylepic','','width=700,height=550,scrollbars=yes');" title="选择已上传的图片"><img src="../../data/images/changeimg.gif" width="22" height="22" border="0" align="absbottom"></a>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="25">可选择此模板的会员组<br>
<font color="#666666">(不选为不限制会员组)</font> </td>
<td height="25"><?=$membergroup?></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="25">模板目录</td>
<td height="25"> e/space/template/
<input name="stylepath" type="text" id="stylepath" value="<?=$r[stylepath]?>" size="9">
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="25" valign="top"> <p>模板说明</p></td>
<td height="25"><textarea name="stylesay" cols="60" rows="5"><?=$r[stylesay]?></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 + -