У нас: 141825 рефератів
Щойно додані Реферати Тор 100
Скористайтеся пошуком, наприклад Реферат        Грубий пошук Точний пошук
Вхід в абонемент


aligns";$rgrp=mysql_query($q) , while($grp=mysql_fetch_array($rgrp)){

print "<option

value=\"".$grp["id"]."\">".$grp["name"]."</option>";

}

mysql_free_result($rgrp) ;

?>

</selectxbr>

<input type="submit" value="Search">

</form><hr><b>Find align :</b><br>< form

action="tstadm.php?id=<?php print $cusr["ident"]; ?>"

method="post">

<input type="hidden" name="frm" value="srca">

User:&nbsp;<select name="susr"Xoption value=" "x/option>

<?php

$q="select id,name from users" ; $rgrp=mysql__query ($q) ; while($grp=mysql_fetch_array($rgrp)){

print "<option

value=\"".$grp["id"]."\">".$grp["name"]."</option>";

}

mysql_free_result($rgrp);

</seiect><br>

<input type="submit" value="Search">

</formx/td></tr> <tr><td>

<?php

}?>

<input type="hidden" name="frm" value="add">

Title:&nbsp;<input type="text" name="attl"><br>

Align:Snbsp;<select name="aalg">

<?php

$q="select id,name from aligns";$rgrp=mysql_query($q)

while($grp=mysql_fetch_array($rgrp)){

print "<option

value=\"".$grp["id"]."\">".$grp["name"]."</option>";

}

mysql_free_result($rgrp);

?>

</select><br>

<input type="submit" value="Add">

</formxhrXb>New align:</bxbr><form

action="tstadm.php?id=<?php print $cusr["ident"]; ?>"

method="post">

<input type="hidden" name="frm" value="adda">

Title:&nbsp;<input type="text" name="attl"><br>

<input type="submit" value="Add"> </form></td>

<?php

}

mysql_free_result($rcus);

?>

<tr><td><b>Find test: </b><br><form

action="tstadm.php?id=<?php print $cusr["ident"]; ?>"

method="post">

<input type="hidden" name="frm" value="src">

User:&nbsp;<select name="susr"><option

value=""></option>

?php

$q="select id,name from users";$rgrp=mysql_query($q) ;

while {$grp=mysq.l_f etch_array ($rgrp) ) {

print "<option

value--\" " . $qrp [ "id" ] . "\">" . $grp [“name”].”<>/option”;

if($lst==2){

$fr=mysql_query("select * from aligns where

id=".$idalg);

$aal=mysql_fetch_array($fr);

?> <form action="tstadm. php?id=<?php print $cusr ["ident”];

?>"

method="post">

<input type="hidden" name="frm" value="aedt">

<input type="hidden" name="id" value="<?php print

$aal["id"]; ?>">

ID: $nbsp;<?php print $aal["id"]; ?><br>

Title:&nbsp;<input type="text" name="attl"

value="<?php print $aal["name"]; ?>"><br>

<input type="submit" value="Change">

</form>

<?php

mysql_free_result($fr); '

}

if($lst==4){

$q="select * from aligns".(strlen($q)>6?$q:"");

$rtst=mysql_query($q) ;

if (mysql_num_rows($rtst) ! =0) f

while($tsts=mysql_fetch_array($rtst)){

print "<a

href=\"tstadm.php?id=".$cusr["ident"]."&ida=".$tsts["id"]."\">"

$tsts [ "name" ] . "</a><br>";

)

}else{print "0 aligns found for you";}

Mysql_free_result($rtst);}

?>

</td><td><b>New test :</b><br><form

Action= “tstadm.php?id=<?php print $cusr["ident"]; ?”

method--"post">

<tr><td><form action="tstadm.php?id=<?php print

$cusr["ident"]; ?>" method="post">

<input type="hidden" name="frm" value="xqadd">

<input type="hiddsn" name="idtest" value="<?php print

$idtst; ?>">

<input type="text" name="txt">&nbsp;<input

type="submit" value="+">

</form>

</tdx/tr>

<?php

mysql_free_result($rqst);

print "</table>";

}

 

if($lst==l){

$q="select * from tests" . (strlen($q)>6?$q:"");

$rtst=mysql_query($q)/print "<table>";

if(mysql_num_rows($rtst)!=0){

while($tsts=mysql_fetch_array($rtst)){

Sialg=mysql_fetch_array(mysql_query("select name from aligns

vhere id='-' . $tsts ["idalign"] ) ) ;

Siusr=mysql_fetch_array(mysql_query{"select name from users

where id=".$tsts["idowner"]));

print "<trxtd><a

href=\"tstadm.php?id=".$cusr["ident"]."&idt=".$tsts["id"]."\">".

Ststs ["title"]."</aX/td>";

print "<td>".$ialg["name"]."</td>";

print "<td>".$iusr["name"]."</tc>";

print "<td><a

href=\”tstadm.php?id-“.$cusr[ident].”&dt=”.$tsts[“id”].”/”>del

ete</a></td></tr>”;

}

else{print "0 tests found for you”;

mysql-free_result($rtst: ) ; print “</table>”;

}?>

<input type="hidden" name="idtest" value="<?php print

$ans["idtest"]; ?>">

<input type="hidden" name="idquest" value="<?php print

$ans["idquest"]; ?>">

<input type="hidden" name="idans" value="<?php print

$ans["idans"); ?>">

<input type=" to::'.. " nan-.e="txt" value="<?php print

$ans["txt"]; ?>"></td><td>

<input type="text" name="scores" value="<?php print

$ans["scores"]; ?>"></td><td>

<input type ="submit" value="Change">

<a href="tstadm.php?id=<?php print $cusr["ident"];

?>&dt=<?php print $ans["idtest"]; ?>&dq=<?php print

$ans["idquest"]; ?>&da=<?php print

$ans["idans"]; ?>">delete</a>

</form></td></tr><tr>

<?php

}

mysql_free_result($rans);

<td><form action="tstadm.php?id=<?php print

$cusr["ident"] ; ?>" method="post">

<input type="hidden" name="frm" vaiue="xaadd">

<input type="hidden" name="idtest" value="<?php print

$qst["idtest"]; ?>">

<input type="hidden" name="idquest" value="<?php print

$qst["idquest"]; ?>">

<input type="text"

name="txt">&nbsp;<b>@</b>&nbsp;<input type="text"

name="scores">Snbsp;<input type="submit" value="+">

</form></td>

<?php

print"</tr>";}

?>


Сторінки: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25