📄 admin_photoaddall.asp
字号:
<%@language=vbscript codepage=936 %>
<%
option explicit
response.buffer=true
Const PurviewLevel=2
Const CheckChannelID=4
Const PurviewLevel_Photo=3
%>
<!--#include file="inc/conn.asp"-->
<!--#include file="Ad_ChkPurview.asp"-->
<!--#include file="inc/config.asp"-->
<!--#include file="inc/func.asp"-->
<!--#include file="inc/Ad_code_Photo.asp"-->
<%
dim ClassID,SpecialID
dim SkinID,LayoutID,SkinCount,LayoutCount,ClassMaster,BrowsePurview,AddPurview,ReName
ReName=trim(request("ReName"))
ClassID=session("ClassID_Photo")
SpecialID=session("SpecialID_Photo")
if ClassID="" then
ClassID=0
else
ClassID=Clng(ClassID)
end if
if SpecialID="" then
SpecialID=0
else
SpecialID=Clng(SpecialID)
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="MicroPhoto FrontPage 3.0">
<title>添加图片</title>
<link rel="stylesheet" type="text/css" href="Ad_Style.css">
<script language = "JavaScript">
function CheckForm()
{
if (document.myform.ClassID.value=="")
{
alert("图片所属栏目不能指定为含有子栏目的栏目!");
document.myform.ClassID.focus();
return false;
}
if (document.myform.ClassID.value==0)
{
alert("图片所属栏目不能指定为外部栏目!");
document.myform.ClassID.focus();
return false;
}
if (document.myform.PhotoName.value=="")
{
alert("图片名称不能为空!");
document.myform.PhotoName.focus();
return false;
}
if (document.myform.Keyword.value=="")
{
alert("关键字不能为空!");
document.myform.Keyword.focus();
return false;
}
if (document.myform.PhotoUrl_Thumb.value=="")
{
alert("缩略图地址不能为空!");
document.myform.PhotoUrl_Thumb.focus();
return false;
}
if (document.myform.PhotoUrl.value=="")
{
alert("原始图片地址不能为空!");
document.myform.PhotoUrl.focus();
return false;
}
}
</script>
</head>
<body leftmargin="2" topmargin="0" marginwidth="0" marginheight="0">
<% if ReName="1" then %>
<form method="POST" name="myform" onSubmit="return CheckForm();" action="Admin_PhotoSaveAllReName.asp" target="_self">
<% else %>
<form method="POST" name="myform" onSubmit="return CheckForm();" action="Admin_PhotoSaveAll.asp" target="_self">
<% end if %>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="border">
<tr class="title">
<td height="22" align="center"><b>添 加 图 片</b></td>
</tr>
<tr align="center">
<td>
<table width="100%" border="0" cellpadding="2" cellspacing="1">
<tr class="tdbg">
<td width="100" align="right"><strong>所属栏目:</strong></td>
<td colspan="2"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><select name='ClassID'>
<%call Admin_ShowClass_Option(3,ClassID)%>
</select></td>
<td><%response.write "<font color='#FF0000'><strong>注意:</strong></font><font color='#0000FF'>1、不能指定为含有子栏目的栏目,或者外部栏目"
if AdminPurview=2 and AdminPurview_Article=3 then
response.write "<br> 2、你只能在<font color='#FF0000'>红色栏目</font>及其子栏目中发表文章</font>"
end if%>
</td>
</tr>
</table>
</td>
</tr>
<tr class="tdbg">
<td width="100" align="right"><strong>图片名称:</strong></td>
<td colspan="2"><input name="PhotoName" type="text" id="PhotoName" value="" size="50" maxlength="255">
<font color="#FF0000">*</font></td>
</tr>
<tr class="tdbg">
<td width="100" align="right"><strong>关键字:</strong></td>
<td colspan="2"><input name="Keyword" type="text"
id="Keyword" size="50" maxlength="255"> <font color="#FF0000">*</font><br>
<font color="#0000FF">用来查找相关图片,可输入多个关键字,中间用<font color="#FF0000">“|”</font>隔开。不能出现""'*?,.()等字符。</font></td>
</tr>
<tr class="tdbg">
<td width="100" align="right"><strong>图片作者:</strong></td>
<td colspan="2"> <input name="Author" type="text"
id="Author" size="20" maxlength="100"> <font color="#FF0000"> </font>
<strong>信箱:</strong> <input name="AuthorEmail" type="text" id="AuthorEmail" size="30" maxlength="100">
<strong> 主页:
<input name="AuthorHomepage" type="text"
id="CopyFrom2" value="http://" size="30" maxlength="100">
</strong></td>
</tr>
<tr class="tdbg">
<td width="100" align="right"><strong>缩略图地址:</strong></td>
<td colspan="2">文件名格式:<input name="PhotoUrl_Thumb" type="text" id="PhotoUrl_Thumb2" size="30" maxlength="200">
<font color="#FF0000"> 开始:</font> <input name="PhotoUrl_Start" type="text" id="PhotoUrl_Start1" size="5" maxlength="5">
<font color="#FF0000"> 结束:</font> <input name="PhotoUrl_End" type="text" id="PhotoUrl_End1" size="5" maxlength="5">
<font color="#FF0000"> 数字序号通配符为#号</font></td>
</tr>
<tr class="tdbg">
<td width="100" align="right"><strong>原始图片地址:</strong></td>
<td colspan="2">文件名格式:<input name="PhotoUrl" type="text" id="PhotoUrl" size="30" maxlength="200">
</td>
</tr>
<tr class="tdbg">
<td width="100" align="right"><strong>图片地址二:</strong></td>
<td colspan="2">文件名格式:<input name="PhotoUrl2" type="text" id="PhotoUrl2" size="30" maxlength="200">
</td>
</tr>
<tr class="tdbg">
<td width="100" align="right"><strong>图片地址三:</strong></td>
<td colspan="2">文件名格式:<input name="PhotoUrl3" type="text" id="PhotoUrl3" size="30" maxlength="200">
</td>
</tr>
<tr class="tdbg">
<td width="100" align="right"><strong>图片地址四:</strong></td>
<td colspan="2">文件名格式:<input name="PhotoUrl4" type="text" id="PhotoUrl4" size="30" maxlength="200">
</td>
</tr>
<tr class="tdbg">
<td width="100" align="right" valign="middle"><strong>图片简介:</strong><br>
支持各种UBB代码</td>
<td colspan="2"><textarea name="PhotoIntro" cols="80" rows="5" id="PhotoIntro"></textarea>
</td>
</tr>
<tr class="tdbg">
<td width="100" align="right"><strong>图片大小:</strong></td>
<td colspan="2">缩略图:
<input name="PhotoSize_Thumb" type="text" id="PhotoSize_Thumb" size="6" maxlength="10">
K 原始图片:
<input name="PhotoSize" type="text" id="PhotoSize" size="6" maxlength="10">
K 图片二:
<input name="PhotoSize2" type="text" id="PhotoSize2" size="6" maxlength="10">
K 图片三:
<input name="PhotoSize3" type="text" id="PhotoSize3" size="6" maxlength="10">
K 图片四:
<input name="PhotoSize4" type="text" id="PhotoSize4" size="6" maxlength="10">
K </td>
</tr>
<%if AdminPurview=1 or AdminPurview_Photo<=2 then%>
<tr class="tdbg">
<td width="100" align="right"><strong>图片属性:</strong></td>
<td> <input name="OnTop" type="checkbox" id="OnTop" value="yes">
固顶 <input name="Hot" type="checkbox" id="Hot" value="yes" onclick="javascript:document.myform.Hits.value=<%=HitsOfHot%>">
热门图片 <input name="Elite" type=checkbox id="Elite" value="yes">
推荐图片</td>
<td width="96"><strong>图片评分等级:</strong> <select name="Stars" id="Stars">
<option value="5">★★★★★</option>
<option value="4">★★★★</option>
<option value="3" selected>★★★</option>
<option value="2">★★</option>
<option value="1">★</option>
<option value="0">无</option>
</select> <font color="#FF0000">*</font></td>
</tr>
<tr class="tdbg">
<td width="100" align="right"><strong>点击次数:</strong></td>
<td colspan="2">本日:
<input name="DayHits" type="text" id="DayHits" value="0" size="10" maxlength="10">
本周:
<input name="WeekHits" type="text" id="WeekHits" value="0" size="10" maxlength="10">
本月:
<input name="MonthHits" type="text" id="MonthHits" value="0" size="10" maxlength="10">
总计:
<input name="Hits" type="text" id="Hits" value="0" size="10" maxlength="10"></td>
</tr>
<%end if%>
<tr class="tdbg">
<td width="100" align="right"><strong>查看等级:</strong></td>
<td colspan="2"><select name="PhotoLevel" id="select">
<option value="9999" selected>游客</option>
<option value="999">注册用户</option>
<option value="99" >收费用户</option>
<option value="9">VIP用户</option>
<option value="5">管理员</option>
</select> <font color="#0000FF">只有具有相应权限的人才能查看此图片。</font></td>
</tr>
<tr class="tdbg">
<td width="100" align="right"><strong>查看点数:</strong></td>
<td colspan="2"><input name="PhotoPoint" type="text" id="PhotoPoint" value="0" size="5" maxlength="3">
<font color="#0000FF">如果大于0,则用户查看此图片时将消耗相应点数。(对游客和管理员无效)</font></td>
</tr>
<%if AdminPurview=1 or AdminPurview_Photo<=2 then%>
<tr class="tdbg">
<td width="100" align="right"><strong>录入时间:</strong></td>
<td colspan="2"><input name="UpdateTime" type="text" id="UpdateTime" value="<%=now()%>" maxlength="50">
时间格式为“年-月-日 时:分:秒”,如:<font color="#0000FF">2003-5-12 16:32:47</font></td>
</tr>
<tr class="tdbg">
<td width="100" align="right"><strong>立即发布:</strong></td>
<td colspan="2"><input name="Passed" type="checkbox" id="Passed" value="yes" checked>
是<font color="#0000FF">(如果选中的话将直接发布,否则审核后才能发布。)</font></td>
</tr>
<%end if%>
</table>
</td>
</tr>
</table>
<div align="center">
<p>
<input name="Action" type="hidden" id="Action" value="Add">
<input
name="Add" type="submit" id="Add" value=" 添 加 " style="cursor:hand;">
<input name="Cancel" type="button" id="Cancel" value=" 取 消 " onClick="window.location.href='Ad_PhotoManage.asp'" style="cursor:hand;">
</p>
</div>
</form>
</body>
</html>
<%
call CloseConn()
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -