📄 addnew.asp
字号:
<%Response.Expires = -1
Response.ExpiresAbsolute = Now() - 1
Response.cachecontrol = "no-cache"%>
<%
' *** Restrict Access To Page: Grant or deny access to this page
MM_authorizedUsers=""
MM_authFailedURL="../../index.asp"
MM_grantAccess=false
If Session("userssdfgfhtrh") <> "" Then
If (true Or CStr(Session("MM_UserAuthorization"))="") Or _
(InStr(1,MM_authorizedUsers,Session("MM_UserAuthorization"))>=1) Then
MM_grantAccess = true
End If
End If
If Not MM_grantAccess Then
MM_qsChar = "?"
If (InStr(1,MM_authFailedURL,"?") >= 1) Then MM_qsChar = "&"
MM_referrer = Request.ServerVariables("URL")
if (Len(Request.QueryString()) > 0) Then MM_referrer = MM_referrer & "?" & Request.QueryString()
MM_authFailedURL = MM_authFailedURL & MM_qsChar & "accessdenied=" & Server.URLEncode(MM_referrer)
Response.Redirect(MM_authFailedURL)
End If
%>
<!--#include file="../../Connections/oavbsconn.asp" -->
<%
Dim levels__MMColParam
levels__MMColParam = "1"
If (Session("names") <> "") Then
levels__MMColParam = Session("names")
End If
%>
<%
Dim levels
Dim levels_numRows
Set levels = Server.CreateObject("ADODB.Recordset")
levels.ActiveConnection = MM_oavbsconn_STRING
levels.Source = "SELECT 姓名,操作名称 FROM levelssdfgsfgtrgrthe5fgbdnjyu76 WHERE 姓名 = '" + Replace(levels__MMColParam, "'", "''") + "' and 操作名称='录入人事档案'"
levels.CursorType = 0
levels.CursorLocation = 2
levels.LockType = 1
levels.Open()
levels_numRows = 0
%>
<%if not levels.eof or not levels.bof then%>
<%function DbCombox()
Dim Recordset1__MMColParam
Recordset1__MMColParam = "对所有人群发"
If (Request("MM_EmptyValue") <> "") Then
Recordset1__MMColParam = Request("MM_EmptyValue")
End If
Dim Recordset1
Dim Recordset1_numRows
Set Recordset1 = Server.CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection = MM_oavbsconn_STRING
Recordset1.Source = "SELECT 部门 FROM sms部门表 WHERE 部门 <> '对所有人群发' and 开关='开' ORDER BY 排序 ASC"
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 1
Recordset1.Open()
while not Recordset1.eof
msg = msg & "<option value=""" &Recordset1("部门") & """>" & Recordset1("部门") & "</option>"
Recordset1.movenext
wend
Recordset1.close
set Recordset1 = nothing
DbCombox = msg
End function
Recordset1_numRows = 0
%>
<%
Dim Repeat1__numRows
Dim Repeat1__index
Repeat1__numRows = 30
Repeat1__index = 0
r_numRows = r_numRows + Repeat1__numRows
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<style type="text/css">
<!--
.style1 {
color: #FFFFFF;
font-weight: bold;
}
.style2 {font-size: 12px}
.style2 {font-size: 12px}
-->
</style>
<link href="../../css/link1.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style3 {color: #FFFFFF}
.style4 {color: #FF0000}
.tx {height: 16px; width: 30px; border-color: black black #000000; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 1px; border-left-width: 0px; font-size: 9pt; background-color: #eeeeee; color: #0000FF}
-->
</style>
<div align="center">
<script language="JavaScript">
<!--
function check()
{
var canceled = false;
if (document.form1.姓名.value=="") {
window.alert ("请输入姓名!")
document.form1.姓名.focus()
return false
}
if(document.form1.姓名.value.length <2) {
window.alert ("姓名需要至少2个字符!")
document.form1.姓名.focus()
return false
}
if (document.form1.性别.value=="选择性别") {
window.alert ("请选择性别!")
document.form1.性别.focus()
return false
}
if (document.form1.婚姻状况.value=="null") {
window.alert ("请选择婚姻状况!")
document.form1.性别.focus()
return false
}
if (document.form1.户口所在地.value=="null") {
window.alert ("请选择户口所在地!")
document.form1.性别.focus()
return false
}
if (document.form1.民族.value=="null") {
window.alert ("请选择民族!")
document.form1.性别.focus()
return false
}
if (document.form1.政治面貌.value=="null") {
window.alert ("请选择政治面貌!")
document.form1.政治面貌.focus()
return false
}
if (document.form1.血型.value=="null") {
window.alert ("请选择血型!")
document.form1.血型.focus()
return false
}
if (document.form1.学历.value=="null") {
window.alert ("请选择学历!")
document.form1.学历.focus()
return false
}
if (document.form1.userdept.value=="%") {
window.alert ("请选择部门!")
document.form1.userdept.focus()
return false
}
if (document.form1.录入人.value=="") {
window.alert ("请输入录入人!")
document.form1.录入人.focus()
return false
}
}
-->
</SCRIPT>
<script language="JavaScript" src="../bwdfhdghndgh/inc/PublicJS.js"></script>
<script language="JavaScript" src="../shenpi/swfj.js"></script>
<script language="JavaScript" src="../shenpi/fawen.js"></script>
<script language=javascript>
var upfj;
upfj=0; //上传附件没有错误
//--------------------------------send fujian file------------------------------
function sendfj(fileid){
var NameUrl="<%=NameUrl%>" //保存公文文件url路径
var FjUrl="<%=FjUrl%>" //保存附件文件url路径
var FjDelUrl="<%=FjDelUrl%>" //上传失败删除临时文件
var MaxSize="<%=session("MaxSize")%>" //限制上传附件文件的大小
var fileform = document.submitinput;
PsoPath=fileform.elements[fileid].value
//PsoPath=document.submitinput.filefj0.value
PsoFile=PsoPath //定义附件的文件名
PsoType=""
while(PsoFile.indexOf("\\")>0) //获得附件的文件名
{
i = PsoFile.indexOf("\\")
PsoFile = PsoFile.substring(i + 1, PsoFile.length);
} //获得附件的文件名
PsoPath=PsoPath.substring(0,PsoPath.lastIndexOf("\\")) //获得附件的路径
PsoType=PsoFile
if (PsoType.lastIndexOf(".")>0) //获得附件的扩展名
{
i = PsoType.lastIndexOf(".")
PsoType = PsoType.substring(i + 1, PsoType.length);
}
result=form.web.upload(FjUrl,PsoFile,PsoPath,MaxSize) //向服务器上传附件
//document.submitinput.fujian.value=PsoFile
if (!result)
{
result=form.web.sendurl(FjDelUrl,"",""); //删除前面上传的临时文件
alert("上传附件失败或附件不存在!");
fileform.elements[fileid].focus();
upfj=1;
return false; //上传附件失败,返回起草公文页面
}
else{
result=form.web.sendurl(NameUrl,PsoFile,PsoType)
}
}
//------------------end function-------------------------------------------------------
function checkform() {
upfj=0;
//-------发送附件
var fileform = document.submitinput; //调用上传附件函数
for ( var i= 0 ; i <fileform.elements.length ; i ++ ) {
if ( fileform.elements[i].type == "file" && fileform.elements[i].name !="file" ) {
if (fileform.elements[i].value!="") {
sendfj(i);
if(upfj==1) return false;
}
}
}//for
//--------发送附件
document.submitinput.submit()
return false;
}
</script>
</head>
<body onload=document.form1.编号.focus()>
<form name="form1" method="post" action="addpostsadfasd.asp" onsubmit='return check();'>
<table width="96%" border="0" cellpadding="0" cellspacing="0" bgcolor="#5AAE18">
<tr>
<td width="6" height="21"><img src="../../img/bbs/leftlin1.gif" width="6" height="21"></td>
<td width="936" bgcolor="#5AAE18"><div align="center"><span class="style3"><span class="style1">档 案 录 入</span></span></div></td>
<td width="6" height="21"> </td>
</tr>
</table>
<table width="96%" border="0" cellpadding="3" cellspacing="1" bgcolor="#5AAE18">
<tr bgcolor="#FFFFFF">
<td width="15%"><div align="right">编 号:</div></td>
<td width="27%"><input name="编号" type="text" id="编号" size="15" maxlength="50">
</td>
<td width="58%"><div align="left"> 姓名:
<input name="姓名" type="text" id="姓名" size="15" maxlength="15">
<span class="style4">*</span> 曾用名:
<input name="曾用名" type="text" id="曾用名" size="15" maxlength="15">
</div></td>
</tr>
<tr bgcolor="#FFFFFF">
<td><div align="right">性 别:</div></td>
<td><select name="性别" id="性别">
<option value="选择性别" selected>选择性别</option>
<option value="男">男</option>
<option value="女">女</option>
</select></td>
<td><div align="left"> 出生日期:
<input name="qishi" type="text" id="qishi" size="10" maxlength="10" readonly="true">
<input name="sdaf" type="button" id="sdaf" onClick="OpenWindowAndSetValue('../bwdfhdghndgh/Inc/SelectDate.asp',280,120,window,document.form1.qishi);document.form1.qishi.focus();" value="选择日期">
婚姻状况:
<select name="婚姻状况" id="婚姻状况">
<option value="null" selected>选择婚姻状况</option>
<option value="未婚">未婚</option>
<option value="已婚">已婚</option>
<option value="已离异">已离异</option>
</select>
</div></td>
</tr>
<tr bgcolor="#FFFFFF">
<td><div align="right">籍 贯:</div></td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -