📄 res_create.asp
字号:
<%
Option Explicit
'----------------------------------------------------------------------------------
'本页:
' 资源生成编辑页面
'说明:
'
'----------------------------------------------------------------------------------
%>
<!--#include file="inc/Config.class.asp"-->
<!--#include file="inc/DBControl.class.asp"-->
<!--#include file="inc/FunctionLib.class.asp"-->
<!--#include file="inc/Manager.class.asp"-->
<!--#include file="inc/Template.class.asp"-->
<%
Dim Cfg, Db, FLib, Tpl, Admin
Set Cfg = New Config
Set Db = New DBControl
Set FLib = New FunctionLib
Set Admin = New Manager
Set Tpl = New TemplateEngine
If Not Admin.Logined Then
FLib.Alert "对不起,你已经超时或未登录","./",1
Response.End
End If
If Not Admin.CheckPopedom("TSYS_GROUP4_CREATE") Then
FLib.Alert "权限不足", "BACK", 0
Response.End
ENd If
Dim Work
Work = Request("Work")
Db.Open()
%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="inc/style.css" type="text/css">
<SCRIPT LANGUAGE="JavaScript" src="inc/FunctionLib.js"></script>
<script language="JavaScript">
<!--
function my_RCSelector_Open()
{
var result = RCSelector_Open(2, document.all.class_list.value);
if(!result) return false;
var val = "";
for(var i=0; i<result.length; i++)
{
if(val == "")
{
val += result[i].id;
}else{
val += "," + result[i].id;
}
}
document.all.class_list.value = val;
}
function chkForm(obj)
{
if(obj.class_list.value == "")
{
alert("请确定[频道]");
obj.class_list.focus();
return false;
}
if(obj.sTime.value == "")
{
alert("请输入[开始时间]");
obj.sTime.focus();
return false;
}else{
if(!IsDate(obj.sTime.value))
{
alert("[开始时间]格式有误");
obj.sTime.focus();
return false;
}
}
if(obj.eTime.value == "")
{
alert("请输入[结束时间]");
obj.eTime.focus();
return false;
}else{
if(!IsDate(obj.eTime.value))
{
alert("[结束时间]格式有误");
obj.eTime.focus();
return false;
}
}
if(obj.TopNum.value == "")
{
alert("请输入[生成数目]");
obj.TopNum.focus();
return false;
}
return true;
}
//-->
</script>
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="tabTitleBar">
<tr>
<td> 频道更新 > 资源生成</td>
</tr>
</table>
<br>
<table width="75%" border="0" align="center" cellpadding="3" cellspacing="0">
<form name="form1" method="post" action="Res_Create_Process.asp" onsubmit="return chkForm(this);">
<tr>
<td width="19%" align="right">频道:</td>
<td width="81%"><input name="class_list" type="text" class="input_text" id="class_list" value="0">
<input name="Submit5" type="button" class="input_button" onclick="my_RCSelector_Open()" value="...">
(不含子节点,'0'表示所有频道)</td>
</tr>
<tr>
<td align="right" valign="top">生成范围:</td>
<td><table width="100%" border="0" cellpadding="3" cellspacing="0">
<tr>
<td width="16%">依据字段:</td>
<td width="84%"><input name="CreateByField" id="CreateByField1" type="radio" value="1" checked>
<label for="CreateByField1">添加时间</label>
<input type="radio" name="CreateByField" id="CreateByField2" value="2">
<label for="CreateByField2">最后修改时间</label></td>
</tr>
<tr>
<td>起始时间:</td>
<td><input name="sTime" type="text" class="input_text" id="sTime" value="<%=NOW()-1%>">
</td>
</tr>
<tr>
<td>结束时间:</td>
<td><input name="eTime" type="text" class="input_text" id="eTime" value="<%=NOW()%>">
</td>
</tr>
<tr>
<td>约 束:</td>
<td> <input type="radio" name="ResType" id="ResType1" value="1" checked>
<label for="ResType1">已审核</label> <input type="radio" name="ResType" id="ResType2" value="2">
<label for="ResType2">未审核</label> <input type="radio" name="ResType" id="ResType3" value="3">
<label for="ResType3">常规资源(已审、未审)</label> </td>
</tr>
<tr>
<td> </td>
<td><input name="UnCreated" id="UnCreated" type="checkbox" class="input_checkbox" id="UnCreated" value="1" checked>
<label for="UnCreated">排除已生成过的资源</label></td>
</tr>
<tr>
<td> </td>
<td>仅前
<input type="text" name="TopNum" id="TopNum" size="8" value="100" class="input_text" onKeyPress="if (event.keyCode < 45 || event.keyCode > 57) event.returnValue = false;">
条资源 (为'0'则表示不限数目)</td>
</tr>
</table></td>
</tr>
<tr>
<td align="right"> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><input name="Submit43" type="submit" class="input_button" value="提 交">
<input name="Submit223" type="reset" class="input_button" value="复位">
<input name="Submit323" type="button" class="input_button" onClick="window.history.back()" value="返回">
<input name="Work" type="hidden" id="Work" value="StartCreate"> </td>
</tr>
</form>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -