?? projectexpert_edit1.asp
字號:
<!--#include file="../Include/TimeOut.asp"-->
<!--#include file="../Include/AdoConn.asp"-->
<!--#include file="../Include/online.asp"-->
<%modulecode="0405"%>
<%
Code=Request.QueryString ("Code")
strsqlzh=Request.QueryString("strsql")
page=Cstr(Request.Querystring("page"))
edit=Request.Querystring("edit")
strsql="select * from XT_VC_ProjectExpert where 項目編碼='"&Code&"'"
set objres=server.CreateObject ("adodb.recordset")
objres.CursorType =3
objres.CursorLocation =3
objres.LockType =2
objres.Open strsql,strconn
%>
<%
rstSQL="select * from xt_vd_ProjectName where 項目編碼='"&code&"'"
set rst=server.CreateObject ("adodb.recordset")
rst.Open rstSQL,strconn
%>
<%
JieGuo=""
YiJian=""
edit=""
JieGuo=request("JieGuo")
YiJian=request("YiJian")
set rstHzdf=server.createobject("ADODB.recordset")
StrsqlHzdf="select 匯總評分,匯總意見 from XT_TD_Project where 項目編碼='"&code&"'"
rstHzdf.open StrsqlHzdf,strconn
if not rstHzdf.eof then
JieGuo=rst("匯總評分")
YiJian=rst("匯總意見")
end if
if request("submittype")="submit" then
JieGuo=request("JieGuo")
YiJian=request("YiJian")
strsql1="update XT_TD_Project set 匯總評分='"&JieGuo&"',匯總意見='"&YiJian&"' where 項目編碼="+"'"+Code+"'"
conn.Execute strsql1,1
Response.Redirect "ProjectPSHZ_EditList.asp?strsql="+server.URLEncode ( Request.QueryString("strsql"))+"&page="+Cstr(page)
end if
%>
<%
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 '轉換成整數格式時必須的,大量實驗已經證明
%>
<html>
<head>
<title>專家評審意見</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<STYLE type=text/css>
TD {FONT-SIZE: 9pt}
A:link
{
COLOR: #000000;
FONT-FAMILY: 宋體;
FONT-SIZE: 9pt
}
A:visited
{
COLOR: #000000;
FONT-FAMILY: 宋體;
FONT-SIZE: 9pt
}
A:active
{
COLOR: #000000;
FONT-FAMILY: 宋體;
FONT-SIZE: 9pt
}
A:hover
{
COLOR: blue;
FONT-FAMILY: 宋體;
FONT-SIZE: 9pt
}
</style>
</head>
<Script Language=JavaScript>
<!--
function SelAll_onclick(){
if(ConList.SelAll.checked){
SetAll();
}
else{
UnSetAll();
}
}
function SetAll(){
var intCount;
if(ConList.all("checkCon").length > 1){
for(intCount = 0; intCount < ConList.all("checkCon").length; intCount++){
ConList.checkCon(intCount).checked = true;
}
}
else{
ConList.checkCon.checked = true;
}
}
function UnSetAll(){
var intCount;
if(ConList.all("checkCon").length > 1){
for(intCount = 0; intCount < ConList.all("checkCon").length; intCount++){
ConList.checkCon(intCount).checked = false;
}
}
else{
ConList.checkCon.checked = false;
}
}
function checkCon_onclick(){
var intCount;
ConList.SelAll.checked = true;
if(ConList.all("checkCon").length > 1){
for(intCount = 0; intCount < ConList.all("checkCon").length; intCount++){
if(ConList.checkCon(intCount).checked == false){
ConList.SelAll.checked = false;
}
}
}
else{
if(ConList.checkCon.checked == false){
ConList.SelAll.checked = false;
}
}
}
//-->
</Script>
<body bgcolor="#FFFFFF" text="#000000">
<table width="100%" border="0" cellspacing="1" cellpadding="3" align="center" bgcolor="#000000">
<tr bgcolor="#FF9900">
<td width="10%" valign="top"> 項目編碼</td>
<td width="10%" valign="top">
<% = rst.Fields("項目編碼").Value %>
</td>
<td width="10%" valign="top">項目名稱</td>
<td width="50%" valign="top"> <a href="../Project/Project_edit1.asp?view=view&edit=edit&code=<% = rst.Fields("項目編碼").Value %>&name=<% = rst.Fields("項目名稱").Value %>&type=<%=rst.Fields ("項目類別").Value %>&strsql=<%=server.URLEncode(backstrsql)%>&page=<%=curpage%>" target="_blank" class=blank>
<% = rst.Fields("項目名稱").Value %>
</a></td>
<td width="10%" valign="top">體系分類</td>
<%txfl=objres("體系分類")%>
<%if txfl="1" then%>
<td width="10%" valign="top">應用開發</td>
<%end if%>
<%if txfl="2" then%>
<td width="10%" valign="top">科技攻關</td>
<%end if%>
<%if txfl="3" then%>
<td width="10%" valign="top">科技產業</td>
<%end if%>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#DDEEFF">
<tr>
<td valign="top" height="158" colspan="2">
<form name="conlist" method="post" action="ProjectPSHZ_edit.asp?Code=<%=Code%>&strsql=<%=server.URLEncode(strsqlzh)%>&edit=<%=request.querystring("edit")%>&page=<%=Cstr(request.querystring("page"))%>" onsubmit="return checkfun()">
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#DDEEFF">
<INPUT type="hidden" name ="submittype" value="submit">
<tr>
<td width="2" height="12"></td>
<td valign="top" colspan="5"> </td>
</tr>
<tr>
<td height="29"></td>
<td valign="middle" width="123"> 匯總打分:</td>
<td width="1"></td>
<td valign="middle" width="562">
<input type="radio" name="JieGuo" value="A" <%if JieGuo="A" then response.write "checked" end if%><%if JieGuo="" or isnull(JieGuo) then response.write "checked" end if%>>
A
<input type="radio" name="JieGuo" value="B" <%if JieGuo="B" then response.write "checked" end if%>>
B
<input type="radio" name="JieGuo" value="C" <%if JieGuo="C" then response.write "checked" end if%>>
C </td>
<td valign="top" width="89"> </td>
<td width="2"></td>
</tr>
<tr>
<td height="97"></td>
<td valign="middle">匯總意見:</td>
<td></td>
<td colspan="2" valign="middle">
<textarea name="Yijian" cols="70" rows="5"><%=YiJian%></textarea>
</td>
<td></td>
</tr>
</table>
</form>
</td>
</tr>
<tr>
<td height="29" width="689" valign="top" bgcolor="#4089BF"> </td>
<td width="90" valign="top" bgcolor="#4089BF">
<input style=" BACKGROUND-COLOR: #e6f4ff;
BORDER-BOTTOM: #0099ff 1px solid;
BORDER-LEFT: #0099ff 1px solid;
BORDER-RIGHT: #0099ff 1px solid;
BORDER-TOP: #0099ff 1px solid;
COLOR: #336699;
HEIGHT: 18px;
width:30px:
TEXT-ALIGN: center"type="button" name="Submit2" value="取消" onClick="history.back()">
</td>
</tr>
</table>
<%
rst.Close
set rst=nothing
%>
<br>
</body>
</html>
<script language="vbscript">
function checkfun() '校驗表單
checkfun=true
if ConList.YiJian.value ="" then
checkfun=false
window.alert "意見不能為空,請重新輸入!"
exit function
end if
end function
</script>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -