| Current Path : /var/www/html/venkat/project1may2017/ |
| Current File : /var/www/html/venkat/project1may2017/size.php |
<?php
$quer1 = mysql_query("select * from projectrestriction where degree = '$degree'") or die("Invalid Accessss !!!");
if($row = mysql_fetch_array( $quer1 )) {
$ndate = $row['date1'];
$size_from = $row['size_from'];
$size_to = $row['size_to'];
}
/*if($sem == 8 || $sem == 3 || $summer == "yes" || $sem == 2) {
?>
<tr>
<td width="100"> Size of the Project Group </td>
<td width="16">:</td>
<td width="100">
<input type="radio" name="size" value="1">One </input>
</tr>
<?php
$quer1=mysql_query("select dept from projectstudent where rollno='$r'") or die("Invalid Access3 !!!");
if($row=mysql_fetch_array( $quer1 )) {
$depta = $row['dept'];
}
if($depta == "ec") {
$quer1=mysql_query("select area from projectarea where dept='$depta'group by area") or die("Invalid Access3 !!!");
echo(" <td> Area of the Project Group </td>");
echo(" <td> : </td>");
echo(" <td> <select name='area1' id='area1' />");
echo("<option value='#'>-Select-</option>");
while ($row = mysql_fetch_array( $quer1 )) {
$area=$row['area'];
echo("<option value=$area>$area</option>");
}
echo("</select></td></tr>");
}
}
else {
*/ ?>
<tr>
<td width="100"> Size of the Project Group </td>
<td width="16">:</td>
<td width="100">
<?php
for ($i = $size_from; $i <= $size_to; $i++) {
echo "<input type='radio' name='size' value=".$i.">".$i." </input>";
}
/* if($depta == "bm") { ?>
<input type="radio" name="size" value="5">Five </input>
<!-- <input type="radio" name="size" value="6">Six </input> -->
<?php
}
else if($depta == "ec") { ?>
<input type="radio" name="size" value="3">Three </input>
<?php
}
/* else { ?>
<input type="radio" name="size" value="3">Three </input>
<input type="radio" name="size" value="4">Four </input>
<input type="radio" name="size" value="5">Five </input>
<?php
}
*/ ?>
</td> </tr>
<tr>
<td width="100"> </td>
<td width="16"></td>
<td width="100"></td>
</tr>
<tr>
<?php
$quer1=mysql_query("select dept from projectstudent where rollno='$r'") or die("Invalid Access3 !!!");
if($row=mysql_fetch_array( $quer1 )) {
$depta = $row['dept'];
}
if($depta == "ec") {
$quer1=mysql_query("select area from projectarea where dept='$depta'group by area") or die("Invalid Access3 !!!");
echo(" <td> Area of the Project Group </td>");
echo(" <td> : </td>");
echo(" <td> <select name='area1' id='area1' />");
echo("<option value='#'>-Select-</option>");
while ($row = mysql_fetch_array( $quer1 )) {
$area=$row['area'];
echo("<option value=$area>$area</option>");
}
echo("</select></td></tr>");
}
?>