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 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ادخال نقاط الامتحان</title>
<?php
ini_set("display_errors","on");
$nom_user=$_POST["nom_user"];
$passwd_mysql=$_POST["passwd_mysql"];
$id_user=$_POST['id_user'];
?>
<style type="text/css">
<!--
.Style2 {color: #003399}
body {
background-color: #004080;
}
.Style68 {color: #FFFFFF;
font-weight: bold;
font-size: 24px;
}
.Style69 {
color: #FFFFFF;
font-size: 36px;
}
.Style39 {color: #003399; font-weight: bold; }
.Style70 {font-weight: bold}
-->
</style>
</head>
<body>
/////
/////
<!-- ------------------------------------debut ecrire seulement 1-9 -------------------------------------->
<script language="JavaScript" src="lib/jquery-1.6.1.min.js" type="text/javascript"></script>
<script language="JavaScript" type="text/javascript">
$('.intni').live('keyup', function () {
this.value = this.value.replace(/[^ 0-9 ]/g,'');
this.value = this.value.replace(' ','');
});
</script>
<!-- ------------------------------------fin ecrire seulement 1-9 -------------------------------------->
<?php
if ($_POST) {$ncrefd=$_POST["ncrefd"];}
$iannee=$_POST["iannee"];
$annexe='17';
if ($_POST) {$nom_user=$_POST["nom_user"];}
//if ($_POST) {$profil=$_POST["profil"];}
//echo "nom_user",' : ', $nom_user ,'<br/>';echo "profil",' : ', $profil ,'<br/>';
if ($_POST) {$crefd=$_POST["crefd"];}
if ($_POST) {$cr=$_POST["cr"];}
//echo "ncrefd.crefd.cr";echo $ncrefd.$crefd.$cr;echo "ncrefd";echo $ncrefd;
if (isset($ncrefd)==FALSE)
{
?>
<script type="text/JavaScript">
//document.location = "index.php";
document.location = "Authentification/index.php";
</script>
<?php
}
include("stand/siege.php");
include("tamadros.php");
if (!empty($_POST)) {$code=$_POST["code"];}
if (!empty($_POST)) {$num_page=$_POST["num_page"];}
if (!empty($_POST)) {$num_insert=$_POST["num_insert"];}
if (!empty($_POST)) {$code= substr($_POST["code"],0,3);}
if (!empty($_POST)) {$matiere=$_POST["matiere"];}
if (!empty($_POST)) {$ligne=$_POST["ligne"];}
//if (!empty($_POST)) {$tri=$_POST["tri"];}
//if ($_POST) {$ordrec=$_POST["ordrec"];}
if (!empty($_POST)) {$ligne=$_POST["ligne"];}
?>
<p> </p>
<?php
if (($_POST['code']!='100') and ($_POST['matiere']!='10') and $ligne<=$ligne)
{
$passwd_mysql=$_POST["passwd_mysql"];//echo 'passwd_mysql_FORM_not_dev222::'.$passwd_mysql;
$id_user=$_POST['id_user'];
include("cnxs.php");
//$position=$ordrec;
$db=mysql_select_db($sclrt.$ncrefd);//$db=mysql_select_db($sclrt.$annexe);
if ($db==FALSE) die("erreur de connexion a la base de donnees scolarité ");
$sql0="SELECT CODE_MAT FROM MAT_CLASSE WHERE CODE= '$code' AND MATIERE='$matiere'" ;
$res0=mysql_query($sql0);
$cod_mat0= mysql_fetch_array($res0);
mysql_free_result($res0);
$code_mat=$cod_mat0['CODE_MAT'];
//echo "code_mat",' : ', $code_mat ,'<br/>';
$i=1;
?>
<table width="681" align="center">
<tr bgcolor="#ff00ff">
<td colspan="4"><div align="center"><span class="Style68">حجز نقاط الامتحان <?php echo "القسم",' : ', $code ;?> <?php echo "المادة",' : ', $matiere ;?> <?php echo 'رقم الورقة'.$num_page;?></span></div></td>
</tr>
</table>
<form action="" method="post" name="form1" id="form1" >
<div align="center">
<table width="659" height="35" border="1" align="center" bgcolor="#E1EAEA">
<tr>
<td width="171"><div align="center"><strong>النقطة </a></strong></div></td>
<td width="227"><div align="center"><strong>رقم التسجيل </a></strong></div></td>
<td width="118"><div align="center"><strong>الرقم التسلسلي </a></strong></div></td>
</tr>
<?php
$i=1; $rang=0;?>
<?php
for ($i=1; $i<=$ligne; $i++)
{
//$ordrec=$line["ORDREC"];
$rang=$rang+1;
$rang_1=$rang%2;
?>
<tr <?php if ($rang_1=='1'){?> bgcolor="#FCE9F2"<?php }?>>
<td width="171"><div align="right"><span class="Style2">
<input name="note_dev<?php echo $i ?>" type="text" id="note_dev<?php echo $i ?>" size="5" maxlength="5" />
</span></div></td>
<td width="227"><div align="right">
<div align="center">
<table width="130" border="0" align="center">
<tr>
<td><input name="annexe" type="text" id="annexe" style="color: #9900CC; font-weight: bold" dir="rtl" value="17" size="1" maxlength="2" /></td>
<td><select name="anneeins<?php echo $i ?>" id="anneeins<?php echo $i ?>" style="color: #9900CC; font-weight: bold" dir="rtl">
<option></option>
<option <?php if (isset($_POST['anneeins'])) {if($_POST['anneeins']==2000) echo "selected";}?>>2000</option>
<option <?php if (isset($_POST['anneeins'])) {if($_POST['anneeins']==2001) echo "selected";}?>>2001</option>
<option <?php if (isset($_POST['anneeins'])) {if($_POST['anneeins']==2002) echo "selected";}?>>2002</option>
<option <?php if (isset($_POST['anneeins'])) {if($_POST['anneeins']==2003) echo "selected";}?>>2003</option>
<option <?php if (isset($_POST['anneeins'])) {if($_POST['anneeins']==2004) echo "selected";}?>>2004</option>
<option <?php if (isset($_POST['anneeins'])) {if($_POST['anneeins']==2005) echo "selected";}?>>2005</option>
<option <?php if (isset($_POST['anneeins'])) {if($_POST['anneeins']==2006) echo "selected";}?>>2006</option>
<option <?php if (isset($_POST['anneeins'])) {if($_POST['anneeins']==2007) echo "selected";}?>>2007</option>
<option <?php if (isset($_POST['anneeins'])) {if($_POST['anneeins']==2008) echo "selected";}?>>2008</option>
<option <?php if (isset($_POST['anneeins'])) {if($_POST['anneeins']==2009) echo "selected";}?>>2009</option>
<option <?php if (isset($_POST['anneeins'])) {if($_POST['anneeins']==2010) echo "selected";}?>>2010</option>
<option <?php if (isset($_POST['anneeins'])) {if($_POST['anneeins']==2011) echo "selected";}?>>2011</option>
</select></td>
<td><input name="nseq<?php echo $i ?>" type="text" id="nseq<?php echo $i ?>" size="5" maxlength="5" style="color: #9900CC; font-weight: bold" <?php if (isset($_post['nseq'])){?>value="<?php echo $_REQUEST['nseq']; ?>"<?php } ?> class="intni" /></td>
</tr>
</table>
</div>
</div>
</td>
<td width="118"><div align="center"><strong>
<input name="ordrec<?php echo $i ?>" type="text" id="ordrec<?php echo $i ?>" size="5" maxlength="5" class="intni"/>
</strong></div> </a></td>
</tr>
<script language="javascript">
function verifier2()
{
if(document.form1.ordrec<?php echo $i ?>.value== "" & (document.form1.anneeins<?php echo $i ?>.value== "" || document.form1.nseq<?php echo $i ?>.value== "" ))
{
alert("ادخل من فضلك رقم التسجيل أو رقم الترتيب في السطر<?php echo $i ?> ");
document.form1.ordrec<?php echo $i ?>.focus();
return;
}
if(document.form1.note_dev<?php echo $i ?>.value<0 || document.form1.note_dev<?php echo $i ?>.value>20 || isNaN(document.form1.note_dev<?php echo $i ?>.value)==true)
{
alert("ادخل من فضلك النقطة <?php echo $i ?>");
document.form1.form1.note_dev<?php echo $i ?>.focus();
return;
}
document.form1.action="upd_not_exa_17.php?ncrefd=<?php echo $ncrefd;?>&crefd=<? echo $crefd?>&cr=<? echo $cr?>";
document.form1.submit();
}
</script>
<?php
}
?>
</table>
<p>
<input name="crefd" type="hidden" id="crefd" value="<?php echo $crefd;?>" />
<input name="ncrefd" type="hidden" id="ncrefd" value="<?php echo $ncrefd;?>" />
<input name="iannee" type="hidden" id="iannee" value="<?php echo $iannee;?>" />
<input name="cr" type="hidden" id="cr" value="<?php echo $cr;?>" />
<input name="code" type="hidden" id="crefd4" value="<?php echo $code;?>" />
<input name="code_mat" type="hidden" id="code_mat" value="<?php echo $code_mat;?>" />
<input name="matiere" type="hidden" id="ncrefd5" value="<?php echo $matiere;?>" />
<input name="ordrec" type="hidden" id="ordrec" value="<?php echo $ordrec;?>" />
<input name="i" type="hidden" id="i" value="<?php echo $i;?>" />
<input name="ordrec" type="hidden" id="ordrec" value="<?php echo $ordrec;?>" />
<input name="num_page" type="hidden" id="num_page" value="<?php echo $num_page;?>" />
<input name="num_insert" type="hidden" id="num_insert" value="<?php echo $num_insert;?>" />
<span class="Style39">
<input name="nom_user" type="hidden" id="nom_user" value="<?php echo $nom_user; ?>" />
<input name="passwd_mysql" type="hidden" id="passwd_mysql" value="<?php echo $passwd_mysql; ?>" />
<input name="id_user" type="hidden" id="id_user" value="<?php echo $id_user; ?>" />
</span>
<input type="button" name="Submit" value="تسجيل " onclick= "verifier2()" />
</p>
</div>
</form>
<div align="center">
<?php
}
else
{
?>
<span class="Style69">
<?php echo 'هناك خطأ في المعطيات ';
}
?>
</span>
<script language="javascript1.3">
</div>
<p> </p>
</body>
</html> |
Partager