📄 listhead.asp
字号:
<!-- #include file = "../../include/asphead.asp" -->
<!-- #include file = "../../include/function.asp" -->
<%CheckUser()%>
<link href="../../include/main.css" rel="stylesheet" type="text/css">
<script src="../../include/function.js" type="text/javascript"></script>
<script ID="clientEventHandlersJS" LANGUAGE="javascript">
<!--
function window_onload(){
btnAdd.disabled =false;
try
{
parent.RightPanel.rows=RightHeadTable.clientHeight + ",*";
}
catch(e)
{
}
MemoStatus.value=document.frmData.MemoStatus.value;
window.parent.RightData.navigate("list.asp?MemoStatusForSearch=" + MemoStatus.value);
}
function SelectMemoStatus() {
SearchList();
}
function SearchList() {
document.frmData.Search.value ="1";
document.frmData.MemoStatus.value =MemoStatus.value;
document.frmData.target ="RightData";
document.frmData.action="list.asp";
document.frmData.submit();
document.frmData.Search.value ="0"; //打上非查询标志,以便翻页、排序等处理
}
function AddRecord() {
var SheetAndRowID;
SheetAndRowID=document.frmData.SheetID.value+JoinChar+0;
if(window.showModalDialog("frame.asp?target=new.asp", "","dialogwidth:550px;dialogheight:327px;Status:0;center:1;resizable=1;")==true)
{
window.parent.RightData.navigate("list.asp");
}
}
function DelRecord()
{
var SelectedRow;
SelectedRow=window.parent.RightData.RowSelect();
if(SelectedRow=="")
{
alert("您要删除哪些记录?请选择。")
}
else
{
var RecordCount;
RecordCount=SelectedRow.split(",").length;
if(confirm("您确定要删除这" + RecordCount + "条记录吗?")==true)
{
document.frmData.RowSelect.value =SelectedRow;
document.frmData.target ="SaveArea";
document.frmData.action="del.asp";
document.frmData.submit();
}
}
}
function HasData()
{
if(PageNavigate.innerText!="" && document.frmData.CurPage.value>0) //用PageNavigate.innerText有无内容和CurPage.value判断list是否已经有数据
return(true);
else
return(false);
}
function PrintList() {
var curPageBody,PrintBody;
curPageBody=window.document.body.innerHTML;
PrintBody=RemoveNoPrint(curPageBody);
PrintBody=PrintBody + "<br>" + window.parent.RightData.document.body.innerHTML;
window.document.body.innerHTML=PrintBody;
window.print();
window.document.body.innerHTML=curPageBody;
}
function window_onresize() {
try
{
parent.RightPanel.rows=RightHeadTable.clientHeight + ",*," + parent.RightFoot.RightFootTable.clientHeight;
}
catch(e)
{
}
}
//-->
</script>
<%
dim StatusOption
StatusID=Request.Cookies("myFold")("StatusID")
if StatusID="" then
StatusID=0
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="window_onload()" onresize="window_onresize()">
<table id="RightHeadTable" name="RightHeadTable" width="100%" border="0" cellPadding=0 cellSpacing=0>
<tr height="20">
<td width="50%">
<p align="left" id="PageNavigate">
</p>
</td>
<td width="50%">
<p align="right">
<select name=MemoStatus style="WIDTH: 115px" LANGUAGE=javascript onchange="return SelectMemoStatus()">
<option selected=true value=0>All</option><option value=1>To Do</option><option value=2>Doing</option><option value=8> Ahead</option><option value=3> Normal</option><option value=4> Delay</option><option value=5>Paused</option><option value=6>Done</option><option value=7>To Do & Doing</option><option value=9999>[空白]</option>
</select>
<!--NoPrintStart-->
<input type="button" name="btnAdd" disabled value="录入" style="cursor:hand; WIDTH: 36px; HEIGHT: 24px" LANGUAGE="javascript" onclick="return AddRecord()">
<input type="button" name="btnDel" disabled value="删除" style="cursor:hand; WIDTH: 36px; HEIGHT: 24px" LANGUAGE="javascript" onclick="return DelRecord()">
<input type="button" name="btnPrint" value="打印" style="cursor:hand; WIDTH: 36px; HEIGHT: 24px" LANGUAGE="javascript" onclick="return PrintList()">
<!--NoPrintEnd-->
</p>
</td>
</tr>
<tr>
<td colspan="2">
<table width=100% cellspacing=1 bgcolor=999999>
<tr bgcolor='white'>
<td width='1%' title='全选/全清'><INPUT name=chkAll onClick=SelectAll() type=checkbox></td>
<td style='cursor:hand' width=12% onClick=ChgOrder('Fld4') title='按日期排序'>日期</td>
<td width=52%>备忘事项</td>
<td style='cursor:hand' width=13% onClick=ChgOrder('Fld7') title='按状态排序'>状态</td>
<td style='cursor:hand' width=13% onClick=ChgOrder('Fld11') title='按到期提醒排序'>到期提醒</td>
<td bgcolor=white width=10%>详细</td>
</tr>
</table>
</td>
<iframe id="SaveArea" name="SaveArea" style="visibility:hidden" width="0" height="0" frameborder="0" src="">
</iframe>
</tr>
<form METHOD="post" name="frmData">
<input TYPE="hidden" NAME="SheetID" value="<%=MemoSheet_ID%>">
<input TYPE="hidden" NAME="OrderBy" value="<%=Request.Cookies("Sheet")("OrderBy" & CoID & "-" & MemoSheet_ID)%>">
<input TYPE="hidden" NAME="CurPage">
<input TYPE="hidden" NAME="RowSelect">
<input TYPE="hidden" NAME="MemoStatus" value="<%=StatusID%>">
<input TYPE="hidden" NAME="Search" value="0">
</form>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -