📄 scheduleedit.asp
字号:
<!--#include file="../config.ini"-->
<!--#include file="../commfunction.inc" -->
<html>
<head>
<title>编辑日程</title>
<script language="javascript">
function open_Event_Name(){
popupWin = window.open('help.asp?ID=Event_Name', 'remote', 'width=300,height=200')
}
function open_Event_Date() {
popupWin = window.open('help.asp?ID=Event_Date', 'remote', 'width=300,height=200')
}
function open_Event_Time() {
popupWin = window.open('help.asp?ID=Event_Time', 'remote', 'width=300,height=200')
}
function open_Event_Category() {
popupWin = window.open('help.asp?ID=Event_Category', 'remote', 'width=300,height=200')
}
function open_Event_Location() {
popupWin = window.open('help.asp?ID=Event_Location', 'remote', 'width=300,height=200')
}
function open_Event_Description() {
popupWin = window.open('help.asp?ID=Event_Description', 'remote', 'width=300,height=200')
}
function VerifyData() {
if (document.form1.Event_Name.value == ""){
alert("请输入主题!");
return false;
}
else if(document.form1.date.value == ""){
alert("请选择日期!");
return false;
}
else if(CheckDate(document.form1.date.value)){
alert("日期格式错误!");
return false;
}
else if(document.form1.time.value == ""){
alert("请选择开始时间!");
return false;
}
else if(document.form1.endtime.value == ""){
alert("请选择结束时间!");
return false;
}
//else if (document.form1.relativetype.value == "其他"){
// if(document.form1.TaskType2.value == "-1"){
// alert("请选择相关其他类型!");
// return false;}
// }
else if (document.form1.relativetype.value == "客户"){
// if(document.form1.TaskType1.value == "-1"){
// alert("请选择相关客户类型!");
//return false;}
if(document.form1.accountname.value == ""){
alert("请选择客户!");
return false;}
}
var daistring=""
for(i=0;i<form1.Right.length;i++)
{
form1.Right.selectedIndex=i
var a=form1.Right.value.split("/");
daistring=daistring+a[0]+",";
}
form1.attendant.value=daistring;
daistring="";
return true;
}
function adddata()
{
if (form1.Left.value!="")
{ var A=form1.Left.value.split("/");
form1.Right.options.add(new Option( A[1],form1.Left.value) );
form1.Left.options.remove(form1.Left.selectedIndex);
}
}
function deldata()
{
if (form1.Right.value!="")
{
var A=form1.Right.value.split("/");
form1.Left.options.add(new Option( A[1],form1.Right.value) );
form1.Right.options.remove(form1.Right.selectedIndex);
}
}
function relativetype_onchange()
{
if (form1.relativetype.value=="其他"){
accountnamesub.style.display='none';
accountname.style.display='none';
TaskType1.style.display='none';
TaskType2.style.display='block';
form1.account.value=-1;
form1.accountname.value="";
form1.TaskType1.value=-1;
form1.TaskType2.value=-1;
}
if (form1.relativetype.value=="客户"){
accountnamesub.style.display='block';
accountname.style.display='block';
TaskType1.style.display='block';
TaskType2.style.display='none';
form1.TaskType1.value=-1;
form1.TaskType2.value=-1;
}
}
function Continued_onchange()
{
if (form1.Continued.value=="0")
ContinueDate.style.display='none';
if (form1.Continued.value=="1")
ContinueDate.style.display='block';
}
function ContinuedDate_onchange()
{
if (form1.ContinuedDate.value!="5")
{
form1.CustDate.value='';
TDCustDate.style.display='none';
TDCustDateSub.style.display='none';
}
if (form1.ContinuedDate.value=="5")
{
form1.CustDate.value='';
TDCustDate.style.display='block';
TDCustDateSub.style.display='block';
}
}
</script>
<!--#include file="style.asp"-->
<LINK href="../global.css" rel=STYLESHEET type=text/css>
<script language=javascript src="../tools/OpenWindow.js"></script>
</head>
<body bgcolor="#FFFFFF" vlink="#48576C" link="#48576C" alink="#000000" topmargin="3">
<script language=javascript src="../tools/newcalendar.js"></script>
<div id="overDiv" style="position:absolute; z-index:1000;"></div>
<%
dim RSFORM
Set Conn=Server.CreateObject("ADODB.Connection")
Conn.Open Connstring
Set RSFORM = Server.CreateObject("ADODB.Recordset")
RSFORM.Open "Schedule", Conn, 2, 2
RSFORM.Find "id='" & request("ID") & "'"
strAssignedto=getfieldvalue("usertable","LoginId",Trim(RSFORM("Assignedto")),"UserName")
strAccount=getfieldvalue("account","accountid",RSFORM("account"),"account")
%>
<form action="scheduleeditsave.asp" name="form1" method="Post" onSubmit="return VerifyData()">
<input type=hidden name=reload value=<%=request("reload")%>>
<table width="100%" height="20" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="25"><strong><font size="2" class=title><b>编辑日程</b></font></strong></td>
<td> </td>
</tr>
<tr >
<td height="16" colspan="2" background="../images/title.gif"></td>
</tr>
<tr>
<td height=4></td>
</tr>
<tr><td><div align="center" style="cursor:hand">
<input type="image" src="../images/button_save.gif" border=0>
<img src="../images/button_cancel.gif" style="cursor:hand" border=0 language=javascript onclick="form1.reset();">
<img src="../images/button_back.gif" style="cursor:hand" border=0 language=javascript onclick="history.go(-1);">
</DIV></td>
</tr>
</table>
<table border="0" cellspacing="0" width="100%">
<tr>
<td width="100%"> <font size="1">
<div align="center"><font face="Verdana" size="1">
<input type="hidden" name="ID" value="<%=request("Id")%>">
<input type="hidden" name="orderby" value="<%=request("orderby")%>">
<input type="hidden" name="page" value="<%=request("page")%>">
<input type="hidden" name="SearchFor" value="<%=request("SearchFor")%>">
<input type="hidden" name="SearchWhere" value="<%=request("SearchWhere")%>">
</font> </div>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr bgcolor="#FFFFFF"><td align=center valign="middle">
<table border="0" cellpadding="0" cellspacing="1" style="border-collapse: collapse" bordercolor="#ffffff" width="100%" id="AutoNumber1" height="281">
<tr>
<td width="10%" height="24" bgcolor="DEDFDE"> <div align="center"><font color="#FF0000">* </font>主题</div></td>
<td width="40%" height="24" bgcolor="efefef"> <font size="2" color=red>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -