📄 _dailyop_task.php
字号:
{
alert("任务分配人不能为空!");
document.MyForm.executant.value="";
document.MyForm.executant.focus();
return false;
}
if ( ThrowBlank(document.MyForm.tdate.value) == "" )
{
alert("开始时间不能为空!");
document.MyForm.tdate.value="";
document.MyForm.tdate.focus();
return false;
}
if ( ThrowBlank(document.MyForm.tdate2.value) == "" )
{
alert("结束时间不能为空!");
document.MyForm.tdate2.value="";
document.MyForm.tdate2.focus();
return false;
}
return CheckTime();
}
function btAddContinue_ondoc() //提交表单,根据由哪页提交到本页面决定提交到那个页面
{
if (CheckPages())
{
MyForm.action = "dailyop.php?action=task&sysaction=add&type=<?=$type?>&id=<?=$id?>";
MyForm.submit();
document.MyForm.btAddContinue.disabled = true;
}
}
function btGoBack(m_action) //返回到原来页面
{
MyForm.OperType.value = "" ;
MyForm.action=m_action;
MyForm.submit();
}
//===========显示或隐藏提醒时间========================
function Awake()
{
//document.all.AwakeDate.value="";
document.all.IfAwakeDate.style.display="";
}
function NoAwake()
{
document.all.IfAwakeDate.style.display="none";
}
//=========添加与会人员================================
var MyRepeat=null;
function addAttendee(type)
{
dal = window.open("dailyop.php?action=listday&sysaction=view","","statusbar=yes,toolsbar=yes,status=yes,width=700,height=500");
dal.moveTo(20,50);
}
function DelRepeat()
{
if(MyRepeat == null) return ;
MyRepeat.close();
MyRepeat = null ;
}
-->
</SCRIPT>
<div id="Layer1" style="position:absolute; left:0px; top:70px; z-index:1; width:100%">
<table width="90%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="edgingTop"></td>
<td width="22" class="edgingLabelBg"><img src="./images/edgingLable_left.gif"></td>
<td class="edgingLabelBg">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="edgingLabel" nowrap align="center">添 加 任 务 -Add Task</td>
</tr>
</table>
</td>
<td width="11" class="edgingLabelBg"><img src="./images/edgingLable_right.gif"></td>
</tr>
</table>
<table width="100%" cellspacing="0" cellpadding="0" border="0" class="edgingTable_1">
<form name=MyForm id=MyForm method=post>
<tr>
<td class="edgingTd_1">
<table width="100%" cellpadding="0" border="1" cellspacing="0" height="100%" bordercolordark="#ffffff" class="edgingTable_2">
<tr align="center">
<td>
<!-- 内容区开始 -->
<br>
<table width="92%" cellspacing="0">
<tr>
<td align="center"><fieldset style="width:92%"><legend class="LabelTitle"><img src="./images/icon_Add.gif" align="absmiddle" width="32" height="32">
[添加任务]</legend> <br>
<table cellpadding="3">
<tr>
<td colspan=1 width="15%" align="right" nowrap class="Shadow_white">任务主题:</td>
<td colspan=3>
<input name="title" maxlength = "20" style="width:400px" value="<?=$tas_t['title']?>">
<font color="red">* </font></td>
</tr>
<tr>
<td colspan="1" align="right" valign="top" nowrap class="Shadow_white">详细描述:</td>
<td colspan="3">
<textarea name="des" style="height: 150px; width: 400px"><?=$tas_t['des']?></textarea>
<font color="red">*</font> </td>
</tr>
<tr>
<td colspan=1 align="right" nowrap class="Shadow_white">分配给:</td>
<td colspan=3>
<input name="executant" style="WIDTH: 400px; HEIGHT: 21px" size=52 value="<?=$tas_t['executant']?>" readonly>
<a href="javascript:addAttendee()">◆</a>
</td>
</tr>
<tr>
<td colspan=1width=15% align="right" nowrap class="Shadow_white">开始时间:
</td>
<td colspan=3>
<script language=JavaScript>
var defaultdate="<?=$tas_t['tdate']?>";
arrowtag("tdate",defaultdate);
</script>
<select name=stime_1>
<?=$start_htm?>
</select>
<select name=stime_2>
<?=$start2_htm?>
</select>
</td>
</tr>
<tr>
<td colspan=1width=15% align="right" nowrap class="Shadow_white">结束时间:
</td>
<td colspan=3>
<script language=JavaScript>
var defaultdate="<?=$tas_t['tdate2']?>";
arrowtag("tdate2",defaultdate);
</script>
<select name=etime_1>
<?=$to_htm?>
</select>
<select name=etime_2>
<?=$to2_htm?>
</select>
</td>
</tr>
<tr>
<td colspan=1 align="right" nowrap class="Shadow_white">预先提醒:</td>
<td colspan=1 width=25% align="left"> 提前
<select name="awoke">
<?=$awoke_htm?>
</select>
小时 </td>
<td width=15% colspan=1 align="right" class="Shadow_white"> 优 先 级: </td>
<td colspan=1>
<select name=level>
<option value="未指定"
<? if($tas_t['level']=='未指定') { ?>
selected
<? } ?>
>未指定</option>
<option value="低"
<? if($tas_t['level']=='低') { ?>
selected
<? } ?>
>低</option>
<option value="中"
<? if($tas_t['level']=='中') { ?>
selected
<? } ?>
>中</option>
<option value="高"
<? if($tas_t['level']=='高') { ?>
selected
<? } ?>
>高</option>
</select>
</td>
</tr>
<? if($id) { ?>
<tr>
<td colspan=1 align="right" nowrap class="Shadow_white" style="color:red">
任务状态: </td>
<td colspan=1 width=25% align="left" >
<select name="state">
<option value="0"
<? if($tas_t['state']=='0') { ?>
selected
<? } ?>
>未开始</option>
<option value="进行中"
<? if($tas_t['state']=='进行中') { ?>
selected
<? } ?>
>进行中</option>
<option value="已完成"
<? if($tas_t['state']=='已完成') { ?>
selected
<? } ?>
>已完成</option>
<option value="等待中"
<? if($tas_t['state']=='等待中') { ?>
selected
<? } ?>
>等待中</option>
<option value="已推迟"
<? if($tas_t['state']=='已推迟') { ?>
selected
<? } ?>
>已推迟</option>
</select></td>
<td colspan=1 align="right" nowrap class="Shadow_white" style="color:red">
任务进度: </td>
<td colspan=1 align="left"> <input name="plan" style="width=50px" maxlength=3 value="<?=$tas_t['plan']?>">
% </td>
</tr>
<? } ?>
<tr>
<td height="50" colspan="4" align="center">
<input type="button" value=" 确 定 " class ="button" name="btAddContinue" onClick="btAddContinue_ondoc()" onMouseOver="onButton(this);" onMouseOut="offButton(this);">
<input type="reset" value=" 重 填 " class="button" name="retRewirte" onMouseOver="onButton(this);" onMouseOut="offButton(this);">
<input type="button" value=" 返 回 " class="button" name="btReturn" onClick="btGoBack('ListMonthCalendar.asp')" onMouseOver="onButton(this);" onMouseOut="offButton(this);">
<input type=hidden name="type" value="<?=$type?>"> <!--操作标识-->
</td>
</tr>
</table>
<br>
</fieldset></td>
</tr>
</table>
<br>
<!-- 内容区结束 -->
</td>
</tr>
</table>
</td>
</tr>
</form>
</table>
</td>
<td class="shadowRight"></td>
</tr>
<tr>
<td colspan="2" class="shadowBottom"></td>
</tr>
</table>
<br>
</div>
<? } ?>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -