home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
207.233.110.77
/
207.233.110.77.tar
/
207.233.110.77
/
vbasic
/
Scores-Grade.asp
< prev
next >
Wrap
Text File
|
2001-10-09
|
4KB
|
86 lines
<%@ LANGUAGE="VBSCRIPT" %>
<% Option Explicit %>
<!-- METADATA
TYPE="TypeLib"
FILE="C:\Program Files\Common Files\System\ADO\msado21.tlb"
-->
<!--#include file="DatabaseConnect.asp"-->
<!--#include file="Crypt-DeCrypt.asp"-->
<% If Session("ValidatedStudent") <> True Then
Response.Redirect "error.asp?error=denied"
End If %>
<HTML>
<head>
</head>
<body>
<%
Dim objRS 'Recordset Object
Dim sSQL 'SQL string
Dim i
Dim strUser 'Email of User
Dim strPath
Dim strTmp
strUser = Request.QueryString("email")
strPath = Request.QueryString("path")
sSQL = "SELECT * FROM Students WHERE email = '" & strUser & "';"
Set objRS = Server.CreateObject("ADODB.Recordset")
objRS.Open sSQL, objConn, adOpenDynamic, adLockOptimistic, adCmdText
'Make sure the student's account exists
If Not (objRS.EOF And objRS.BOF) Then
%>
<BR><CENTER>
<TABLE BORDER="5" BORDERCOLOR="blue" CELLSPACING="0" CELLPADDING="2">
<TR BGCOLOR="#87cefa">
<TD COLSPAN="12" ALIGN="Center"><FONT COLOR="#FFFFFF" SIZE="5"><B>Project Scores</B></FONT></TD>
</TR>
<TR BGCOLOR="#ffe4c4">
<TD ALIGN="center" WIDTH="50"><FONT COLOR="RED"><B>1</B></FONT></TD>
<TD ALIGN="center" WIDTH="50"><FONT COLOR="RED"><B>2</B></FONT></TD>
<TD ALIGN="center" WIDTH="50"><FONT COLOR="RED"><B>3</B></FONT></TD>
<TD ALIGN="center" WIDTH="50"><FONT COLOR="RED"><B>4</B></FONT></TD>
<TD ALIGN="center" WIDTH="50"><FONT COLOR="RED"><B>5</B></FONT></TD>
<TD ALIGN="center" WIDTH="50"><FONT COLOR="RED"><B>6</B></FONT></TD>
<TD ALIGN="center" WIDTH="50"><FONT COLOR="RED"><B>7</B></FONT></TD>
<TD ALIGN="center" WIDTH="50"><FONT COLOR="RED"><B>8</B></FONT></TD>
<TD ALIGN="center" WIDTH="50"><FONT COLOR="RED"><B>9</B></FONT></TD>
<TD ALIGN="center" WIDTH="50"><FONT COLOR="RED"><B>10</B></FONT></TD>
<TD ALIGN="center" WIDTH="50"><FONT COLOR="RED"><B>11</B></FONT></TD>
<TD ALIGN="center" WIDTH="50"><FONT COLOR="RED"><B>12</B></FONT></TD>
</TR>
<TR>
<TD ALIGN="center"><FONT COLOR="BLUE"><B><%=objRS("score1")%></B></FONT></TD>
<TD ALIGN="center"><FONT COLOR="BLUE"><B><%=objRS("score2")%></B></FONT></TD>
<TD ALIGN="center"><FONT COLOR="BLUE"><B><%=objRS("score3")%></B></FONT></TD>
<TD ALIGN="center"><FONT COLOR="BLUE"><B><%=objRS("score4")%></B></FONT></TD>
<TD ALIGN="center"><FONT COLOR="BLUE"><B><%=objRS("score5")%></B></FONT></TD>
<TD ALIGN="center"><FONT COLOR="BLUE"><B><%=objRS("score6")%></B></FONT></TD>
<TD ALIGN="center"><FONT COLOR="BLUE"><B><%=objRS("score7")%></B></FONT></TD>
<TD ALIGN="center"><FONT COLOR="BLUE"><B><%=objRS("score8")%></B></FONT></TD>
<TD ALIGN="center"><FONT COLOR="BLUE"><B><%=objRS("score9")%></B></FONT></TD>
<TD ALIGN="center"><FONT COLOR="BLUE"><B><%=objRS("score10")%></B></FONT></TD>
<TD ALIGN="center"><FONT COLOR="BLUE"><B><%=objRS("score11")%></B></FONT></TD>
<TD ALIGN="center"><FONT COLOR="BLUE"><B><%=objRS("score12")%></B></FONT></TD>
</TR>
<TR BGCOLOR="#87cefa">
<TD COLSPAN="12" ALIGN="Left">
<INPUT TYPE="Button" ALIGN="left" VALUE="Back to File List" onClick="document.location='user.asp?action=list&email=<%=strUser & "&path=" & strPath%>';">
<INPUT TYPE="Button" ALIGN="left" VALUE="Logout" onClick="document.location='default.asp';">
</TD>
</TR>
</TABLE></CENTER>
<BR>
<HR>
<P>If you have questions or comments please contact your Instructor:
<A HREF="mailto:<%=objRS("teacheremail")%>"><%=objRS("teacher")%></A></P>
<%
Else
Response.Write ("<H1>Account Not Found!</H1>")
End If
objRS.Close
Set objRS = Nothing
objConn.Close
Set objConn = Nothing
%>
</body>
</html>