%@ Language=VBScript %>
<% dim sqlQuery dim RSBuffer, RSbuffer2, RSbuffer3, RSData, RSData2,RSCONSTANT dim conn dim userID dim surveyID dim newDate,nmonth,ndate,nyear dim totalArea dim totalFac,totalPPC,totalPandC,totalProf,totalAscProf,totalAsstProf,totalDoc,totalMast,totalBach dim totalProDeg, totalPEReg, totalPES dim sumExpAcd, sumExpInd, sumActPowT, sumActNonPow, sumExpOthInd,SumActPowR dim sumMaFTEnr,sumMaPTEnr,sumDoFTEnr,sumDoPTEnr,sumMaFTGra,sumMaPTGra,sumDoFTGra, sumDoPTGra dim schoolName dim filename dim userToBeUpdated,actionTaken, actionChosen dim reportChoiceDesc, reportChoiceValidTill dim adminMail, userMail dim mail set Conn = Server.CreateObject("ADODB.connection") Conn.Open ConnectionString userID = 0 if session("userID") <> "" then userID = cint(session("userID")) sqlQuery = "select * from tbl_IEEE_approved_user where AUADMIN=1 and AUUSID="&userID set RSBuffer= conn.Execute(sqlQuery) if RSbuffer.eof = true then Response.Redirect("surveyAdminLogin.asp?loginFail=yes") end if else if session("userID") = "" then Response.Redirect("surveyAdminLogin.asp?loginFail=yes") end if end if 'Response.Write "user ID:"&session("userID") if userID = 0 then Response.Redirect("surveyAdminLogin.asp?loginFail=yes") else if Request.form("surveyID")<>"" then surveyID = cint(Request.form("surveyID")) else surveyID =0 end if filename="surveyReport.asp" 'make a constantList dim constantList(40) 'fill out the constant list sqlQuery ="select * from tbl_IEEE_constant order by CNID" set RSbuffer = conn.Execute(sqlQuery) i=1 do while RSbuffer.EOF = false 'reDim preserve constantList(i) constantList(i) = trim(RSbuffer("CNVALUE")) RSbuffer.movenext i= i+1 loop actionChosen = trim(Request.Form("actionChosen")) 'Response.Write "actionChosen:"&actionChosen&"| IEEE Survey Administrator page | |
| <% end if 'end if not blnExportToExcel then %> |
<%
'Response.Write "Action chosen:"&actionChosen&" " if actionChosen = "" then %> <% else if actionChosen = "listUnapproved" then %> <% else if actionChosen = "newSurvey" then %> <% end if end if end if %> |