?? cgindex.asp
字號:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<html>
<head>
<script language="JavaScript">
function send(){
var checked; //用于判斷是否選擇了查詢條件
checked=0;
if(myform.flag[0].checked){
checked=1;
}
if(myform.flag[1].checked){
checked=1;
}
if (checked==0){
alert("請選擇查詢條件");
myform.flag[0].focus();
return;
}
if (myform.flag[0].checked){
if (myform.qname.value==""){
alert("請輸入查詢內容");
myform.qname.focus();
return;
}
}
if (myform.flag[1].checked){
if (myform.sdate.value==""){
alert("請輸入查詢起始日期");
myform.sdate.focus();
return;
}
if (myform.edate.value==""){
alert("請輸入查詢結束日期");
myform.edate.focus();
return;
}
}
myform.submit();
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>采購信息查詢</title>
<link href="../style.css" rel="stylesheet" type="text/css">
</head>
<body>
<form action="checkcgindex.asp" method="post" name="myform">
<table width="97%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bordercolorlight="#9CA6C6" bordercolordark="#CCE3FF">
<tr bgcolor="#FF9933">
<td height="18" colspan="4" nowrap class="word_white"> 當前位置:采購管理> 采購信息查詢 >>></td>
</tr>
<tr bgcolor="#CCE3FF">
<td width="6%" height="27" bgcolor="#CCE3FF"><div align="center">
<input name="flag" type="checkbox" class="noborder" id="flag" value="1" checked>
</div></td>
<td width="15%" align="center" bgcolor="#CCE3FF">請選擇查詢條件:</td>
<td>
<select name="sel" class="wenbenkuang" id="sel">
<option value="spname" selected>商品名稱</option>
<option value="cs">廠商</option>
</select>
<select name="tj" class="wenbenkuang" id="tj">
<option value="=" selected>等于</option>
<option value="like">LIKE</option>
</select> <input name="qname" type="text" id="qname" size="30"> </td>
<td align="center"><input name="subb" type="button" class="btn_grey" id="subb2" onClick="send()" value="查詢"></td>
</tr>
<tr bgcolor="#CCE3FF">
<td height="27"> <div align="center">
<input name="flag" type="checkbox" class="noborder" id="flag" value="2">
</div></td>
<td height="25" align="center">請輸入查詢日期:</td>
<td width="54%"> 從
<input type="text" name="sdate" size="11" value="<%=year(date)&"-1-1"%>">
至
<input type="text" name="edate" size="11" value="<%=date()%>"> </td>
<td width="25%"> <div align="center">
<input name="but" type="button" class="btn_grey" id="but" onClick="window.location.href='checkcgindex.asp?type=all'" value="顯示全部數據">
</div></td>
</tr>
</table>
</form>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -