?? projectpsxm_editlist.asp
字號:
strSQLWhere=strSQLWhere+" and 年度批次 like '"+NDPC+strQueryType+"'"
else if NDPC="" and not NDPC2="" then
strSQLWhere=strSQLWhere+" and 年度批次 like '"+NDPC2+strQueryType+"'"
end if
end if
end if
if not KXXBG="" then
strSQLWhere=strSQLWhere+" and 可行性報告 like '"+strQueryType+KXXBG+strQueryType+"'"
end if
if not TJBZ="" then
strSQLWhere=strSQLWhere+" and 推薦標志 like '"+strQueryType+TJBZ+strQueryType+"'"
end if
if not XGBZ="" then
strSQLWhere=strSQLWhere+" and 修改標志 like '"+strQueryType+XGBZ+strQueryType+"'"
end if
if not Depart="" then
strSQLWhere=strSQLWhere+" and left(項目負責人,3) like '"+strQueryType+Depart+strQueryType+"'"
end if
if not ZhuChiCom="" then
strSQLWhere=strSQLWhere+" and 主持單位 like '"+strQueryType+ZhuChiCom+strQueryType+"'"
end if
if not ShuoZaiQv="" then
strSQLWhere=strSQLWhere+" and 所在區 like '"+strQueryType+ShuoZaiQv+strQueryType+"'"
end if
if not FaRenCode="" then
strSQLWhere=strSQLWhere+" and 法人代碼 like '"+strQueryType+FaRenCode+strQueryType+"'"
end if
if not ComPanyPro="" then
strSQLWhere=strSQLWhere+" and 企業特性 like '"+strQueryType+ComPanyPro+strQueryType+"'"
end if
if not CompanyType="" then
strSQLWhere=strSQLWhere+" and 單位類型 like '%"+CompanyType+"%'"
end if
if not RegType="" then
strSQLWhere=strSQLWhere+" and 注冊類型 like '%"+RegType+"%'"
end if
strSQL=strSQL+StrSQLWhere
case ""
strsql="select * from XT_VD_ProjectName where 項目進度='立項' and 確認分配='Y'"
case else '各頁間轉換
orderby=request.querystring("orderby")
RQSstrsql=Request.QueryString("strsql")
if orderby="" then
strsql=RQSstrsql
else
if instr(RQSstrsql,"order")=0 then
strsql=RQSstrsql+" order by "+orderby+orderType
else
strsql=left(RQSstrsql,instr(RQSstrsql,"order")-1)+" order by "+orderby+orderType
end if
end if
end select
set objres=server.CreateObject ("adodb.recordset")
objres.CursorType =3
objres.CursorLocation =3
objres.LockType =2
objres.Open strsql,strconn
dim pagesum '頁數
dim thispagerecords '當前頁記錄條數
dim recordcode '記錄序號
dim curpage '當前頁碼
dim pagesize
pagesize=10
pagesum=objres.PageCount
if Request.QueryString("page")=""then curpage=1 else curpage=Request.QueryString("page")
if cint(curpage)> cint(pagesum) then curpage=pagesum '轉換成整數格式時必須的,大量實驗已經證明
%>
<form name=ConList method="post" action="ProjectPSYJ_Edit.asp?muldel=muldel&Backstrsql=<%=server.URLEncode(strsql)%>&page=<%=curpage%>">
<input type="hidden" name="submitType">
<table width="778" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="457" height="38"><img src="images/editlist_Project.gif" width="227" height="38"></td>
<td width="36" valign="top">
<div align="center"></div>
</td>
<td width="115"></td>
<td width="81" valign="top" align="center"> <a href="../Project/Project_Query.asp?Type=PSHZ&query=query"><img src="../public/images/query.gif" width="24" height="18" border="0"><br>
<font color="#003399">查詢</font></a></td>
<td width="44"></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="1" cellpadding="0" bordercolor="#0099FF" align="center" bgcolor="#006699">
<tr bordercolor="#0099FF" bgcolor="#6699CC">
<td width="29" height="24">
<div align="center"><a href="#">
<input type="checkbox" name="SelAll" onclick ="SelAll_onclick()"value="checkbox">
</a></div>
</td>
<td width="34" align="center" bgcolor="#6699CC">
<div align="center"><font color="#FFFFFF">序號</font></div>
</td>
<td width="54">
<div align="center"><a href="ProjectPSXM_EditList.asp?orderby=項目編碼&strsql=<%=server.URLEncode(strsql)%>&page=<%=curpage%>" class="menu">項目編碼</a></div>
</td>
<td width="154">
<div align="center"><a href="ProjectPSXM_EditList.asp?orderby=項目名稱&strsql=<%=server.URLEncode(strsql)%>&page=<%=curpage%>" class="menu">項目名稱</a></div>
</td>
<td width="98" align="center"><a href="ProjectPSXM_EditList.asp?orderby=項目類別名稱&strsql=<%=server.URLEncode(strsql)%>&page=<%=curpage%>" class="menu">項目類別</a></td>
<td width="60" align="center"><a href="ProjectPSXM_EditList.asp?orderby=技術領域&strsql=<%=server.URLEncode(strsql)%>&page=<%=curpage%>" class="menu">技術<br>
領域</a></td>
<td valign="top" width="159" align="center"><a href="ProjectPSXM_EditList.asp?orderby=主持單位&strsql=<%=server.URLEncode(strsql)%>&page=<%=curpage%>" class="menu">主持單位</a></td>
<td width="43" valign="top" align="center"><a href="ProjectPSXM_EditList.asp?orderby=項目進度&strsql=<%=server.URLEncode(strsql)%>&page=<%=curpage%>" class="menu">項目<br>
進度</a></td>
<td valign="top" align="center" colspan="2"><a href="ProjectPSXM_EditList.asp?orderby=進度狀況&strsql=<%=server.URLEncode(strsql)%>&page=<%=curpage%>" class="menu">進度<br>
狀況</a></td>
<td width="51" valign="top" align="center"><font color="#FFFFFF"><a href="ProjectPSXM_EditList.asp?orderby=匯總評分&strsql=<%=server.URLEncode(strsql)%>&page=<%=curpage%>" class="menu"">匯總<br>
打分</a></font></td>
</tr>
<%
if objres.RecordCount >pagesize*curpage then thispagerecords=pagesize else thispagerecords=objres.RecordCount-pagesize*(curpage-1)
recordcode=10*(curpage-1)
if objres.RecordCount >0 then
objres.MoveFirst
objres.Move((curpage-1)*10)
else
%>
<tr bgcolor="#FFFFFF">
<td colspan="12" height="12" valign="top">對不起,沒有符合要求的記錄! </td>
</tr>
<%
Response.End
end if
for i=1 to thispagerecords
recordcode=recordcode+1
%>
<tr bgcolor="#FFFFFF">
<td height="21">
<div align="center">
<input type="checkbox" name="checkCon"onclick="checkCon_onclick()" value=<% =objres.Fields("項目編碼").Value %>>
</div>
</td>
<td align="center">
<% =recordcode%>
</td>
<td align="center">
<% = objres.Fields("項目編碼").Value %>
</td>
<td> <a href="../Project/Project_edit1.asp?view=view&edit=edit&code=<% = objres.Fields("項目編碼").Value %>&name=<% = objres.Fields("項目名稱").Value %>&type=<%=objres.Fields ("項目類別").Value %>&strsql=<%=server.URLEncode(strsql)%>&page=<%=curpage%>" target="_blank" class=blank>
<% = objres.Fields("項目名稱").Value %>
</a> </td>
<td>
<% = objres.Fields("項目類別名稱").Value %>
</td>
<td align="center">
<% = objres.Fields("技術領域").Value %>
</td>
<td valign="top"> <a href="javascript:open1('<%=objres("項目負責人")%>')" class=blank>
<% = objres.Fields("主持單位").Value %>
</a> </td>
<td colspan="2" valign="top" align="center">
<% = objres.Fields("項目進度").Value %>
</td>
<td width="41" valign="top" align="center">
<% = objres.Fields("進度狀況").Value %>
</td>
<%HZDF=objres("匯總評分")%>
<%if not HZDF="" then%>
<td align="center"><a href="ProjectPSXM_edit.asp?Code=<%=objres("項目編碼")%>&strsql=<%=server.URLEncode (strsql)%>&page=<% =curpage%>">
<% = objres.Fields("匯總評分").Value%>
</a></td>
<%else%>
<td align="center"><a href="ProjectPSXM_edit.asp?Code=<%=objres("項目編碼")%>&strsql=<%=server.URLEncode (strsql)%>&page=<% =curpage%>">N</a></td>
<%end if%>
</tr>
<%
objres.MoveNext
next
%>
<tr bgcolor="#6699CC">
<td colspan="12" height="20" valign="top">
<div align="right">
<%
if curpage>1 then Response.Write ("<a href="+"ProjectPSXM_EditList.asp?page=1"+"&strsql="+server.URLEncode(strsql)+"> 首頁</a>"+" | ") else Response.Write "首頁 | "
if recordcode>pagesize then Response.Write ("<a href="+"ProjectPSXM_EditList.asp?page="+cstr(curpage-1)+"&strsql="+server.URLEncode(strsql)+"> 上一頁</a>"+" | ") else Response.Write "上一頁 | "
if recordcode<objres.RecordCount then Response.Write ("<a href="+"ProjectPSXM_EditList.asp?page="+cstr(curpage+1)+"&strsql="+server.URLEncode(strsql)+"> 下一頁</a>"+" | ") else Response.Write "下一頁 | "
if recordcode<objres.RecordCount then Response.Write ("<a href="+"ProjectPSXM_EditList.asp?page="+cstr (pagesum)+"&strsql="+server.URLEncode(strsql)+"> 末頁</a>"+" ") else Response.Write "末頁 "
%>
到第
<input type="text" style="background-color=#DFF8FF;height=15pt" name="toPage" size="4" maxlength="4">
頁
<input type="button" style="background-color=#DFF8FF;color=#000000;height=15pt" name="Submit1" value="go" onClick="window.location.href='ProjectPSXM_EditList.asp?strsql=<%=server.URLEncode(strsql)%>&page='+toPage.value">
第
<% =curpage %>
頁/共
<% =pagesum %>
頁/共
<% =objres.RecordCount %>
條記錄 </div>
</td>
</tr>
</table>
<%objres.Close
set objres=nothing
conn.close
set conn=nothing
%>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>注:您的工作流程為:填寫匯總打分和意見,提交保存。</td>
</tr>
</table>
</form>
<br>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -