?? addhelp.asp
字號:
<%@ codepage ="936" %>
<!--#include file="../../conn/conn.asp"-->
<%
if Request.Cookies("globalec")("globalecmaster")="" or Request.Cookies("globalec")("masterflag")="" then
response.write "<script language='javascript'>"
response.write"this.location.href='../login.asp';</SCRIPT>"
response.end
end if
if instr(Request.Cookies("globalec")("masterflag"),"101")=0 then
response.redirect "../err.asp"
response.end
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>添加幫助信息</title>
<link rel="stylesheet" type="text/css" href="../css/style.css">
<style type="text/css">
<!--
.style1 {font-weight: bold}
-->
</style>
</head>
<script LANGUAGE="JavaScript">
function check()
{
if (document.form.showname.value=="")
{
alert("請輸入標題!")
document.form.showname.focus()
document.form.showname.select()
return
}
if (document.form.sortid.value=="")
{
alert("請選擇所屬類別!")
document.form.sortid.focus()
return
}
if (document.form.addname.value=="")
{
alert("請輸入添加者!")
document.form.addname.focus()
document.form.addname.select()
return
}
document.form.submit()
}
</script>
<table width="98%" border="0" cellspacing="0" cellpadding="0" align=center class="tableBorder">
<tr>
<th height=25 colspan="2" class="tableHeaderText">幫助信息管理 </th>
</tr>
<tr>
<td colspan="2" class="forumRowHighlight"><p><B>注意</B>:<BR>
①類別直接與發布的信息相關聯,刪除類別可能會影響到以前發布的幫助信息。<BR> </td>
</tr>
<tr>
<td width="10%" height=25 class="forumRowHighlight"> <B>操作選項</B></td>
<FORM name=searchForm action="index.asp" method=post onsubmit="javascript:if(doSearch()==false) return false;"><td class="forumRowHighlight">
關鍵字:<input name="keywords" type="text" value="<%=keywords%>">
商機類別:
<select name="sortid" size="1">
<%
set rs1=conn.execute("select * from help_sort")
do while not rs1.eof
response.write "<option value='"&rs1("sortid")&"'>"&rs1("sort")&"</option>"&chr(13)+chr(10)
rs1.movenext
loop
rs1.close
%>
</select> <input type="submit" value="立刻查找" id=submit name=submit>
</td></form>
</tr>
<tr>
<td height=25 class="forumRowHighlight"> </td>
<td class="forumRowHighlight"><a href="index.asp">管理幫助信息</a> | <a href="addhelp.asp">添加幫助信息</a> | <a href="sort.asp">管理幫助類別</a> | <a href="Admin_Class_Ok.asp?action=add_help_sort">添加幫助類別</a> | [<a href="javascript:location.reload()">刷新頁面</a>] </td>
</tr>
</table>
<script language = "JavaScript">
sall=new Array();
<%
Dim i
i=0
set rs=conn.execute("select * from help_type")
do while not rs.eof
%>
sall[<%=i%>]=new Array("<%=rs("typename")%>","<%=rs("sortid")%>","<%=rs("typeid")%>");
<%
i=i+1
rs.movenext
loop
rs.close
set rs=nothing
%>
function changeselect(selvalue)
{
document.form.typeid.length=0;
var selvalue=selvalue;
var i;
for(i=0;i<sall.length;i++)
{
if(sall[i][1]==selvalue)
{
var newOption1=new Option(sall[i][0],sall[i][2]);
document.all.typeid.add(newOption1);
}
}
}
</script>
<form method="POST" action="savehelp.asp" name="form">
<TABLE width="100%" border="0" align=center cellpadding="0" cellspacing="1" class="tableBorder">
<tr>
<th height=25 colspan="2" class="tableHeaderText">添加商業信息</th>
</tr>
<TR ALIGN="center">
<TD>
<TABLE width="100%" height="111" border="0" cellpadding="2" cellspacing="1" bordercolorlight="#CEE7FF" bordercolordark="#CEE7FF" style="border-collapse: collapse">
<TR>
<TD width="170" align="right" class="Forumrow" height="12"><b>標題:</b></TD>
<TD height="12" class="Forumrow"> <input name="showname" type="text" class="smallInput" id="showname" size="50">
*</TD>
</TR>
<TR>
<TD width="170" align="right" height="9" class="Forumrow"><b>所屬類別:</b></td>
<TD width="784" height="9" valign="middle" class="Forumrow"> <select name="sortid" onChange="changeselect(document.form.sortid.options[document.form.sortid.selectedIndex].value)" size="1">
<option selected value="">--請選擇行業大類--</option>
<%
set rs1=conn.execute("select * from help_sort")
do while not rs1.eof
response.write "<option value='"&rs1("sortid")&"'>"&rs1("sort")&"</option>"&chr(13)+chr(10)
rs1.movenext
loop
rs1.close
%>
</select>
<select name="typeid">
<option selected value="">--請選擇行業子類--</option>
</select> *</TD>
</TR>
<TR>
<TD align="right" height="4" class="Forumrow"><b>信息添加者:</b></td>
<TD width="784" height="4" valign="middle" class="Forumrow"> <input name="addname" type="text" class="smallInput" id="addname" value="<%=webname%>信息中心" size="50">
*</TD>
</TR>
<TR>
<TD height="52" align="right" class="Forumrow"><b>信息內容:</b></TD>
<TD class="Forumrow"> <textarea name="content" style="display:none"></textarea><iframe ID="eWebEditor1" src="../../editor/ewebeditor.asp?id=content&style=standard&originalfilename=d_originalfilename &savefilename=d_savefilename &savepathfilename=d_savepathfilename" frameborder="0" scrolling="no" width="617" HEIGHT="450"></iframe></TD>
</TR>
<TR height="40">
<TD colspan="2" align="center" class="Forumrow" height="28"><input type="button" name="Submit" value=" 提 交 保 存" class="smallInput" onclick="check()">
<input type="reset" name="Submit2" value=" 重 填" class="smallInput">
</TR>
</TABLE></TD>
</TR>
</TABLE>
</FORM>
<!--#include file="../copy.asp" -->
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -