📄 e_bigclassmanage.asp
字号:
<td align="center" bgcolor="#FFFFFF">
<select size="1" name="bigclasszs" style="font-family: 宋体; font-size: 9pt" <%if not(request.cookies(eChuang)("key")="super" or request.cookies(eChuang)("key")="typemaster") then%>disabled<%end if%>>
<option value="1">新闻媒体模板</option>
<option value="2">图片产品模板</option>
<option <%if rs6("bigclasszs")="3" then%>selected<%end if%> value="3">网址推荐模板</option>
<option <%if rs6("bigclasszs")="4" then%>selected<%end if%> value="4">软件文章模板</option>
</select>
</td>
<td align=center>
<select size="1" name="E_BigClassView" style="font-family: 宋体; font-size: 9pt" <%if not(request.cookies(eChuang)("key")="super" or request.cookies(eChuang)("key")="typemaster") then%>disabled<%end if%>>
<option <%if rs6("E_BigClassView")="1" then%> selected <%end if%>value="1">显示</option>
<option <%if rs6("E_BigClassView")="0" then%> selected <%end if%>value="0">不显示</option>
</select>
</td>
<td align=center>
<select name="typeid" style="font-family: 宋体; font-size: 9pt" <%if not(request.cookies(eChuang)("key")="super" or request.cookies(eChuang)("key")="typemaster") then%>disabled<%end if%>>
<%if request.cookies(eChuang)("key")<>"bigmaster" then
do while not rstype.EOF
master2=rstype("typemaster")
if master2<>"" then
tmaster2=split(master2,"|")
for i=0 to ubound(tmaster2)
if request.cookies(eChuang)("username")=trim(tmaster2(i)) then
typemaster2=true
exit for
else
typemaster2=false
end if
next
end if
if (typemaster2=true and request.cookies(eChuang)("key")="typemaster") or request.cookies(eChuang)("key")="super" or request.cookies(eChuang)("key")="check" or request.cookies(eChuang)("key")="selfreg" then%>
<option value="<%=rstype("typeid")%>" <%if rs6("typeid")=cint(rstype("typeid")) then%>selected<%end if%>><%=rstype("typename")%></option>
<%end if
rstype.MoveNext
loop
else
Set rs = Server.CreateObject("ADODB.Recordset")
sql ="SELECT * From "& db_Type_Table &" where typeid="&rs6("typeid")
RS.open sql,Conn,3,3%>
<option value="<%=rs6("typeid")%>"><%=rs("typename")%></option>
<%
rs.close
set rs=nothing
end if%>
</select>
</td>
<td align=center><input class=text type="text" name="bigclassorder" size="10" value="<%=rs6("bigclassorder")%>" ONKEYPRESS="event.returnValue=IsDigit();" <%if not(request.cookies(eChuang)("key")="super" or request.cookies(eChuang)("key")="typemaster") then%>disabled<%end if%> style="font-size: 9pt; color: #000000; background-color: #EAEAF4; solid #EAEAF4" onMouseOver ="this.style.backgroundColor='#ffffff'" onMouseOut ="this.style.backgroundColor='#EAEAF4'"></td>
<td align=center><input class=text type="text" name="url" size="14" value="<%=rs6("url")%>" style="font-size: 9pt; color: #000000; background-color: #EAEAF4; solid #EAEAF4" onMouseOver ="this.style.backgroundColor='#ffffff'" onMouseOut ="this.style.backgroundColor='#EAEAF4'"></td>
<td align=center><input class=text type="text" name="bigclassmaster" size="8" value="<%=rs6("bigclassmaster")%>" <%if not(request.cookies(eChuang)("key")="super" or request.cookies(eChuang)("key")="typemaster") then%>disabled<%end if%> style="font-size: 9pt; color: #000000; background-color: #EAEAF4; solid #EAEAF4" onMouseOver ="this.style.backgroundColor='#ffffff'" onMouseOut ="this.style.backgroundColor='#EAEAF4'"></td>
<td align=center>
<%if request.cookies(eChuang)("key")="super" or request.cookies(eChuang)("key")="typemaster" then%>
<a href="E_BigClassKill.asp?bigclassid=<%=rs6("bigclassid")%>">删除</a>
<%end if%>
</td>
</tr>
<%end if
RS6.MoveNext
Loop
set rstype=nothing
rs6.close
set rs6=nothing
%>
<tr>
<td height="25" colspan="1" align="center" >
<a href="javascript:window.location.reload()" target=mainmenu title="添加栏目类别后请更新左栏菜单项" style="font-family: 宋体; font-size: 9pt">刷新左栏</a>
</td>
<td colspan="8" align="center" >
<input type="submit" name="Submit2" value="保存" style="font-family: 宋体; font-size: 9pt" <%if not(request.cookies(eChuang)("key")="super" or request.cookies(eChuang)("key")="typemaster") then%>disabled<%end if%> style="font-size: 9pt; color: #000000; background-color: #EAEAF4; solid #EAEAF4" onMouseOver ="this.style.backgroundColor='#ffffff'" onMouseOut ="this.style.backgroundColor='#EAEAF4'">
<!--
<input type="button" value="添加文章" style="font-family: 宋体; font-size: 9pt" onclick="javascript:window.open('NewsAddd1.asp','_self','')" <%if not(request.cookies(eChuang)("key")="super" or request.cookies(eChuang)("key")="typemaster" or request.cookies(eChuang)("key")="check" or request.cookies(eChuang)("key")="selfreg") then%>disabled<%end if%> style="font-size: 9pt; color: #000000; background-color: #EAEAF4; solid #EAEAF4" onMouseOver ="this.style.backgroundColor='#ffffff'" onMouseOut ="this.style.backgroundColor='#EAEAF4'">
-->
</td>
</tr>
</form>
<%if request.cookies(eChuang)("key")="super" or request.cookies(eChuang)("key")="typemaster" then%>
<form method="post" action="E_BigClassSet.asp?action=add">
<tr >
<td align="center">添加大类</td>
<td align=center><input class=text type="text" name="E_BigClassName" size="10" style="font-size: 9pt; color: #000000; background-color: #EAEAF4; solid #EAEAF4" onMouseOver ="this.style.backgroundColor='#ffffff'" onMouseOut ="this.style.backgroundColor='#EAEAF4'"></td>
<td align="center" bgcolor="#FFFFFF">
<select size="1" name="bigclasszs" style="font-family: 宋体; font-size: 9pt" <%if not(request.cookies(eChuang)("key")="super" or request.cookies(eChuang)("key")="typemaster") then%>disabled<%end if%>>
<option value="1">新闻媒体模板</option>
<option value="2">图片产品模板</option>
<option value="3">网址推荐模板</option>
<option value="4">软件文章模板</option>
</select>
</td>
<td align=center>
<select size="1" name="E_BigClassView" style="font-family: 宋体; font-size: 9pt">
<option selected value="1">显示</option>
<option value="0">不显示</option>
</select>
</td>
<td align=center>
<%set rstype=createobject("adodb.recordset")
sql="select * from "& db_Type_Table &" order by typeorder"
rstype.Open sql,conn,1,3%>
<select name="typeid" style="font-family: 宋体; font-size: 9pt">
<%do while not rstype.EOF
master3=rstype("typemaster")
if master3<>"" then
tmaster3=split(master3,"|")
for i=0 to ubound(tmaster3)
if request.cookies(eChuang)("username")=trim(tmaster3(i)) then
typemaster3=true
exit for
else
typemaster3=false
end if
next
end if
if request.cookies(eChuang)("key")="super" or (typemaster3=true and request.cookies(eChuang)("key")="typemaster") then%>
<option <%if typeid=trim(rstype("typeid")) then%>selected<%end if%> value="<%=rstype("typeid")%>"><%=rstype("typename")%></option>
<%end if
rstype.MoveNext
loop
set rstype=nothing
%>
</select>
</td>
<td align=center><input class=text type="text" name="bigclassorder" size="10" ONKEYPRESS="event.returnValue=IsDigit();" style="font-size: 9pt; color: #000000; background-color: #EAEAF4; solid #EAEAF4" onMouseOver ="this.style.backgroundColor='#ffffff'" onMouseOut ="this.style.backgroundColor='#EAEAF4'"></td>
<td align=center><input class=text type="text" name="url" size="14" value="0" style="font-size: 9pt; color: #000000; background-color: #EAEAF4; solid #EAEAF4" onMouseOver ="this.style.backgroundColor='#ffffff'" onMouseOut ="this.style.backgroundColor='#EAEAF4'"></td>
<td align=center><input class=text type="text" name="bigclassmaster" size="8" style="font-size: 9pt; color: #000000; background-color: #EAEAF4; solid #EAEAF4" onMouseOver ="this.style.backgroundColor='#ffffff'" onMouseOut ="this.style.backgroundColor='#EAEAF4'"></td>
<td align=center><input type="submit" name="Submit2" value="添加" style="font-family: 宋体; font-size: 9pt" style="font-size: 9pt; color: #000000; background-color: #EAEAF4; solid #EAEAF4" onMouseOver ="this.style.backgroundColor='#ffffff'" onMouseOut ="this.style.backgroundColor='#EAEAF4'"></td>
</tr>
</form>
<%
set rstype=nothing
end if
if request.cookies(eChuang)("key")="typemaster" or request.cookies(eChuang)("key")="super" then
%>
<tr >
<td colspan="8" align=center>
<input type=button value="发表无大类文章" class=button onClick="javascript:window.open('newsadd1.asp?typeid=<%=typeid%>','_self','')" style="font-size: 9pt; color: #000000; background-color: #EAEAF4; solid #EAEAF4" onMouseOver ="this.style.backgroundColor='#ffffff'" onMouseOut ="this.style.backgroundColor='#EAEAF4'">
<input type=button value="编辑无大类文章" class=button onClick="javascript:window.open('E_bigclassNO.asp?typeid=<%=typeid%>','_self','')" style="font-size: 9pt; color: #000000; background-color: #EAEAF4; solid #EAEAF4" onMouseOver ="this.style.backgroundColor='#ffffff'" onMouseOut ="this.style.backgroundColor='#EAEAF4'">
</td>
</tr>
<%end if%>
</table>
</body>
</html>
<!--#include file=Admin_Bottom.asp-->
<%else
response.write "<script>alert('对不起,你无权操作!');history.go(-1);</Script>"
Response.End
end if
end if
conn.close
set conn=nothing%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -