|
|
<% set k_bul = Server.CreateObject("ADODB.Recordset")
k_bul.open "SELECT* FROM sinavlar order by idsinav asc",erdc,1,3
if not k_bul.eof then%>
<%
sinav=request.form("sinav")
ders=request.form("ders")
sinavno=request.form("sinavno")
testno=request.form("testno")
if sinav="" then
sinav=request.querystring("sinav")
end if
if ders="" then
ders=request.querystring("ders")
end if
if sinavno="" then
sinavno=request.querystring("sinavno")
end if
if testno="" then
testno=request.querystring("testno")
end if
if erc(sinav)<>"" and erc(ders)<>"" and erc(sinavno)<>"" and erc(testno)<>"" then
if erc(sinav)>0 and erc(ders)>0 and erc(sinavno)>0 and erc(testno)>0 Then
%>
<%
set a_kogr = Server.CreateObject("ADODB.Recordset")
a_kogr.open "SELECT* FROM sinavders where sinavkodu="&erc(sinav)&" and sinavno="&sinavno&" and testno="&testno&" order by idsinifders asc",erdc,1,3
if not a_kogr.eof then
%>
| Sıra |
Sınıf |
Ders |
<%
a_sira=1
do while not a_kogr.eof
on error resume next
set b_kogr = Server.CreateObject("ADODB.Recordset")
b_kogr.open "SELECT* FROM sinifders where idsd="&a_kogr("idsinifders")&"",erdc,1,3
%>
| <%=a_sira%> |
<%=b_kogr("sinifadi")%> |
<%=b_kogr("dersadi")%> |
<%
b_kogr.close
a_sira=a_sira+1
a_kogr.movenext
loop
a_kogr.close
%>
<%end if
end if
s_kogr.close%>
<%end if
end if
else
%>
Ders Ekleyiniz
<%
end if
%>
|
|