?? empmain_codemain.asp
字號:
<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="Connections/EmpMain.asp" -->
<!--#include file="EmpMain_CheckRight.asp"-->
<%
if fncheckupart(1)=true or fncheckupart(2)=true then
else
response.Write("沒有權(quán)限訪問該頁!")
response.end
end if
dim crm_class,CRM_numRows
Set crm_class = Server.CreateObject("ADODB.Recordset")
CRM_numRows= "SELECT selectName,ID FROM class_name"
crm_class.open CRM_numRows,MM_EmpMain_STRING,1,3
Dim CRM1
Dim CRM1_numRows
Set CRM1 = Server.CreateObject("ADODB.Recordset")
CRM1_numRows = "SELECT OptionContent,ID FROM class_name where ID = " & request("ID")
CRM1.open CRM1_numRows,MM_EmpMain_STRING,1,3
if CRM1.eof then
optioncontent=""
else
optioncontent=CRM1("Optioncontent")
end if
%>
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="CSS/SellWellWeb.css" type="text/css">
<script language="javascript" src="js_Lib/fnCheckForm.js"></script>
<script>
function doReload(obj){
if(obj.selectedIndex==0){
return
}
window.location = "Empmain_CodeMain.asp?ID="+obj.options[obj.selectedIndex].value
}
</script>
</head>
<body bgcolor="#EAF4FF" topmargin="2" class="body">
<form method="POST" action="EmpMain_CodeMain_Process.asp" name="form1">
<fieldset style="padding: 2" class="fiedset">
<legend><font size="2">選擇項維護(hù)</font></legend>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="98%" id="AutoNumber1" align="center">
<tr>
<td width="29%" class="Caption" nowrap>
<div align="right"><font size="2">選擇項名稱:</font></div>
</td>
<td width="71%" class="ValueArea">
<select name="textfield" class="Text" onChange="doReload(this)">
<option />
<%while not crm_class.EOF%>
<option <%if request("ID") <> "" then%><%if Cint(request("ID")) = Cint(crm_class("ID")) then%>selected<%end if%><%end if%> value="<%=crm_class("ID")%>"><%=crm_class("selectname")%></option>
<%
crm_class.movenext
wend
%>
</select>
</td>
</tr>
<tr>
<td colspan="2"><textarea class="text" rows="10" name="OptionContent"><%=optioncontent%></textarea></td>
</tr>
</table>
</fieldset>
<input type="hidden" name="ID" value="<%=trim(request("ID"))%>">
<input type="button" value="提交" name="B1" class="button" onclick="fnCheckForm()">
<input type="reset" value="重置" name="B2" class="button">
</p>
</form>
<p>注:<br>
1.本模塊用于企業(yè)自己設(shè)定公司設(shè)置,<br>
如部門,職位等.<br>
2.每個選項請用“,“分隔。<br>
3.請不要使用諸如”<>#$%^&*()”““等的特殊字符</p>
</body>
</html>
<%
crm_class.Close()
Set crm_class= Nothing
%>
<%
CRM1.Close()
Set CRm1 = Nothing
%>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -