⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 edit.asp

📁 具有计划、任务、通告、公文、员工档案、等网络办公功能
💻 ASP
字号:
<%response.expires=0%>
<%Response.Buffer=true%>
<!-- #include file="../conn_lr.asp"-->
<!-- #include file="../css.asp"-->
<%
oabusyname=request.cookies("oabusyname")
oabusyusername=request.cookies("oabusyusername")
oabusyuserdept=request.cookies("oabusyuserdept")
oabusyuserlevel=request.cookies("oabusyuserlevel")
if oabusyusername="" then 
	response.write("<script language=""javascript"">")
	response.write("window.top.location.href='../../default.asp';")
	response.write("</script>")
	response.end
end if
%>
<html><head>
<title>新增会议</title>
<meta http-equiv=Content-Type content="text/html; charset=gb2312">
<!-- #include file="../inc/css.asp" -->
<%	'定义变量
	dim Number,opFlag,title,image
	on error resume next
	
	'获取输入参数:记录号和操作标志
	Number=request("Number")
	if Number="" then Number="0"
	Number=Cint(Number)
	opFlag=request("opFlag")
	
	'创建记录访问对象
	Set rs = Server.CreateObject("ADODB.Recordset")
	
	'初始化参数
	if opFlag<>"cmdAddNew" then
	
		'打开记录源,并定位到输入参数决定的记录号
		rs.Open Session("SQL"),Session("conn"),1,3
		rs.move number
		if opFlag="cmdEdit" then if rs("vtext")<>"" then response.write("<script language=JavaScript>alert('    该会议已经召开,并做了会议纪要,不能修改会议基本信息!'); window.history.back();</script>")
		'日期显示变量
		temptime  = "" & rs("vtime")
		fromYear  = mid(temptime,1,4)
		fromMonth = mid(temptime,6,2)
		fromDay   = mid(temptime,9,2)
		fromMinute= mid(temptime,15,2)
		fromHour  = mid(temptime,12,2)
		title="编辑会议信息"
	else
		'日期显示变量
		temptime  = date()
		fromYear  = year(temptime)
		fromMonth = right("0" & month(temptime),2)
		fromDay   = right("0" & day(temptime),2)
		fromMinute= "00"
		fromHour  = "08"
		title="新增会议安排"
	end if
	image="../images/meeting.gif"
%>
<style>
.css0{<%=vinputtext%>;border:none;filter:chroma(color=#ffffff);}
</style>
<script language=JavaScript>

function ds(sstr)
{
 var dstr="";
 
 for (i=0;i<sstr.length;i++)
 {   if (sstr.charAt(i)!=' ') dstr+=sstr.charAt(i);
 }
 return dstr;
}

function oninput()
{
var rid,title;
rid=ds(document.submitinput.vattend.value);
title=ds(document.submitinput.vtitle.value);
//显示日期
document.submitinput.vtime.value ="";
document.submitinput.vtime.value +=document.submitinput.fYear.value + "-" 
document.submitinput.vtime.value +=document.submitinput.fMonth.value + "-" 
document.submitinput.vtime.value +=document.submitinput.fDay.value + " " 
document.submitinput.vtime.value +=document.submitinput.fHour.value + ":" 
document.submitinput.vtime.value +=document.submitinput.fMinute.value + ""
//对用户是否输入信息进行判断
if((rid=="")||(title==""))
{
alert("对不起,会议主题和会议参与人都不能为空!");
document.submitinput.vtitle.focus();
return false;
}
if(document.submitinput.vplace.value=="")
{
alert("对不起,会议地点不能为空!");
document.submitinput.vplace.focus();
return false;
}
if(document.submitinput.vplace.value.length>255)
{alert("对不起,您输入的会议地点太长,请重新输入!");
 document.submitinput.vplace.focus();
 return false;
}
rphtml('vtitle','vplace','vaim','vattendother','vattend','vcompere','vspeaker');
document.submitinput.submit();
}
function add_users(to)
{
var return_value;

return_value=showModalDialog("../public/userlist.asp?muilt=yes&to=" + to,null,"dialogWidth:25;dialogHeight:16;dialogTop:250;dialogLeft:260;status:no;scrollbars:no;help:no");

if((typeof(return_value)=="undefined") ||(return_value=="*") || (return_value==""))
  return;
else
  var str1="";
  var str2="";
  tmpstr=return_value.split("*");
  str1=tmpstr[0];
  str2=tmpstr[1];

  document.submitinput.all(str2).value=str1 ;
  
}


</script>

</head>
<body   id=all  onLoad="document.submitinput.vtitle.focus()">

<form name=submitinput action="save.asp?opFlag=<%=opFlag%>&Number=<%=Number%>" method=post>
<!-- #include file="../inc/title.asp" -->
<% if opFlag="cmdSee" then%>
  <table width="95%" border="0" cellspacing="0" cellpadding="0" align="center">
    <tr>
      <td><a href="<% if opFlag="cmdEdit" then response.write("edit")  else	response.write("disp")%>text.asp?opFlag=<%=opFlag%>&Number=<%=Number%>">会议纪要</a> 
      </td>
    </tr>
  </table>

<%end if%>

  
<table cellspacing=1 cellpadding=0 width=95% bgcolor="<%=Session("vtablebordercolor")%>" border=0 class=vtext align="center">
	<tr bgcolor=<%=Session("vtabletitlebackcolor")%>> 
	  <td class=p9 align=right topmargin="bottom" width="90" height="30">&nbsp;会议的时间:</td>
	  <td class=p9 topmargin="bottom" bgcolor="<%=Session("vtabletitlebackcolor")%>" colspan="2"> 
		<select  size=1 name=fYear>
		<option value="<%=fromYear%>" selected><%=fromYear%></option>
		<script language=javascript>
			for(i=2001;i<2050;i++)
			{
			document.write("<option value="+i+">"+i+"</option>");
			}
		</script>
		</select>
	<select size=1 name=fMonth>         
          <option value="<%=fromMonth%>" selected><%=fromMonth%></option>         
          <script language=javascript>         
			for(i=1;i<13;i++)         
			{         
			t=i.toString()         
			if( i<10 ) t="0" + t         
			document.write("<option value="+ t+">"+ t + "</option>");         
			}         
		</script>         
        </select>         
        <select class=p9 size=1 name=fDay>         
          <option value="<%=fromDay%>" selected><%=fromDay%></option>         
          <script language=javascript>         
			for(i=1;i<32;i++)         
			{         
			t=i.toString()         
			if( i<10 ) t="0" + t         
			document.write("<option value="+ t+">"+ t + "</option>");         
			}         
		</script>         
        </select>         
        <select size=1 name=fHour>         
          <option value="<%=fromHour%>" selected><%=fromHour%></option>         
          <script language=javascript>         
			for(i=0;i<24;i++)         
			{         
			t=i.toString()         
			if( i<10 ) t="0" + t         
			document.write("<option value="+ t+">"+ t + "</option>");         
			}         
		</script>         
        </select>         
        <select size=1 name=fMinute>         
          <option value="<%=fromMinute%>" selected><%=fromMinute%></option>         
          <option          
        value=0 >00</option>         
          <option value=10>10</option>         
          <option value=20>20</option>         
          <option value=30>30</option>         
          <option          
        value=40>40</option>         
          <option value=50>50</option>         
        </select>         
        <input type="hidden" name="vtime">         
        <input type="hidden" name="vdate" value="<%=nowdate%>">         
      </td>         
    </tr>         
    <tr bgcolor=<%=Session("vtabletitlebackcolor")%>>          
	<td class=p9 align=right width="90" height="30" bgcolor="<%=Session("vtabletitlebackcolor")%>" >&nbsp;会议的主题:</td>         
	<td class=p9 colspan="2" bgcolor="<%=Session("vcolcolor")%>" >          
        <input size=57  name=vtitle style="width:100%;" class=css0  value="<%=rs("vtitle")%>" onKeyDown=gonext("vattend")>         
	</td>         
    </tr>         
    <tr bgcolor=#dadfd0>          
	<td class=p9 align=right bgcolor=<%=Session("vtabletitlebackcolor")%> width="90" height="30">&nbsp;会议参与人:</td>         
	<td class=p9 bgcolor=<%=Session("vcolcolor")%>>          
          <input  title=请从地址簿选择   size=57 name="vattend" value="<%=rs("vattend")%>" style="width:100%;" class=css0 onKeyDown=gonext("vattendother")>         
	</td>         
	<td class=p9 align=center bgcolor="<%=Session("vtabletitlebackcolor")%>" width="10%" onMouseOver="this.className='coolbar'" onMouseOut="this.className='coolBarflat'"  onMouseDown="this.className='coolBardown'"  onClick="add_users('vattend');document.submitinput.vattendother.focus();" >          
	<img name=usersel src="../images/man.gif" width="16" height="16" align="absmiddle" >地址薄          
	</td>         
    </tr>         
    <tr bgcolor=#dadfd0>          
	<td class=p9 align=right bgcolor=<%=Session("vtabletitlebackcolor")%> width="90" height="30">&nbsp;其他参与人:</td>         
	<td class=p9 bgcolor=<%=Session("vcolcolor")%> colspan="2">          
          <input size=57  value="<%=rs("vattendother")%>"  name=vattendother style="width:100%;" title="参加会议的本系统用户以外的人员" class=css0 onKeyDown=gonext("vcompere")>         
	</td>         
    </tr>         
    <tr bgcolor=#dadfd0>          
	<td class=p9 align=right bgcolor=<%=Session("vtabletitlebackcolor")%> width="90" height="30">&nbsp;会议主持人:</td>         
	<td class=p9 bgcolor=<%=Session("vcolcolor")%>>          
	  <input size=21  name=vcompere style="width:100%;"  value="<%=rs("vcompere")%>" class=css0 onKeyDown=gonext("vspeaker")>         
	</td>         
	<td class=p9 align=center bgcolor="<%=Session("vtabletitlebackcolor")%>" width="10%" onMouseOver="this.className='coolbar'" onMouseOut="this.className='coolBarflat'"  onMouseDown="this.className='coolBardown'"  onClick="add_users('vcompere');document.submitinput.vspeaker.focus();" >          
	<img name=usersel src="../images/man.gif" width="16" height="16" align="absmiddle" >地址薄         
	</td>         
    </tr>         
    <tr bgcolor=#dadfd0>          
	<td class=p9 align=right bgcolor=<%=Session("vtabletitlebackcolor")%> width="90" height="30">&nbsp;会议发言人:</td>         
	<td class=p9 bgcolor=<%=Session("vcolcolor")%>>          
	  <input size=21 name=vspeaker style="width:100%;"  value="<%=rs("vspeaker")%>" class=css0 onKeyDown=gonext("vplace")>         
	</td>         
	<td class=p9 align=center bgcolor="<%=Session("vtabletitlebackcolor")%>" width="10%" onMouseOver="this.className='coolbar'" onMouseOut="this.className='coolBarflat'"  onMouseDown="this.className='coolBardown'"  onClick="add_users('vspeaker');document.submitinput.vplace.focus();" onKeyDown=gonext("vplace")>          
	  <img name=usersel src="../images/man.gif" width="16" height="16" align="absmiddle" >地址薄         
	</td>         
    </tr>         
    <tr bgcolor=#dadfd0>          
	<td class=p9 align=right bgcolor=<%=Session("vtabletitlebackcolor")%> width="90" height="30">&nbsp;会议的地点:</td>         
	<td class=p9 bgcolor=<%=Session("vcolcolor")%> colspan="2">          
	  <input size=57  name=vplace style="width:100%;" class=css0  value="<%=rs("vplace")%>" onKeyDown=gonext("vaim")>         
	</td>         
    </tr>         
    <tr bgcolor=#dadfd0>          
	<td class=p9 align=right bgcolor=<%=Session("vtabletitlebackcolor")%> width="90" height="70">&nbsp;会议的目的:</td>         
	<td class=p9 bgcolor=<%=Session("vcolcolor")%> colspan="2">          
          <textarea name=vaim rows=6 cols=55 style="width:100%;" class=css0><%=rs("vaim")%></textarea>         
      </td>         
       
</table>         
         
         
<table class=p9 cellspacing=0 cellpadding=0 width=90% border=0 align="center">         
         
    <tr>          
	<td>         
	  <p align=center> <br>         
         <button class=vinputbutton  style="height=24"  onClick="oninput();" id=button1 ><img src="../images/save.gif" align="absmiddle">&nbsp;保存</button>&nbsp;
         <button class=vinputbutton  style="height=24"  onClick=javascript:history.go(-1); id=button2 ><img src="../images/back.gif" align="absmiddle">&nbsp;返回</button>
         </p>
                
	</td>         
    </tr>              
</table>         
	<input type=hidden name=vtext value="">         
	<input type=hidden name=vstatus value="未开">         
</form>         
<% '关闭记录源
   rs.close
   set rs=nothing
%>   
</body>
</html>         

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -