Server : Apache System : Linux profile 3.10.0-1160.88.1.el7.x86_64 #1 SMP Tue Mar 7 15:41:52 UTC 2023 x86_64 User : apache ( 48) PHP Version : 8.0.28 Disable Function : NONE Directory : /var/www/html/mmishra/indem/webbioexam/biomedical/ |
<?php
include "header.inc";
$tbl = 'tbl_registration';
$id = $_REQUEST["id"];
$regid = $_REQUEST["regid"];
$remoteip = $_SERVER["REMOTE_ADDR"];
if ($_POST["submit"] == "DELETE") {
mysql_query("delete from $tbl where id=$id");
$id = 0;
}
if ($_POST["submit"] == "FIND") {
$rs = mysql_query("select * from $tbl where fullname like '%$fullname%'");
echo "<table border='1' width='100%'><ttitle>Existing Applications</ttitle>
<tr><th>ID</th><th>Registration ID</th><th>Fullname</th><th>DOB</th><th>S/o</th><th>Address</th><th>Phone</th></tr>";
while ($o = mysql_fetch_object($rs)) {
$id = $o->id;
$regid = $o->regid;
$fullname = $o->fullname;
$dob = $o->dob;
$gender = $o->gender;
$fathername = $o->fathername;
$address = $o->address;
$state = $o->state;
$pincode = $o->pincode;
$phone = $o->phone;
echo "<tr><td><a href='find-edit.php?id=$o->id'>$o->id</a></td>
<td>$o->regid</td><td>$o->fullname</td><td>$o->dob</td><td>$o->fathername</td><td>$o->address</td><td>$o->phone</td></tr>";
}
echo "</table>";
} else if ($id) {
include "fetchrecord.inc";
}
if ($_POST["submit"] == "SAVE") {
$msg = "";
$fullname = $_POST["fullname"];
if (!$fullname) $msg = "Please enter your name";
$dob = $_POST["dob"];
if (!$dob || $dob == '0000-00-00 00:00:00') $dob = date('y-m-d');//date('Y-m-d');
$sysdate = date('y-m-d');
if ($dob == $sysdate) $msg= "Please enter your correct date of birth";
$pob = $_POST["pob"];
if (!$pob) $msg = "Please enter your place of birth";
$gender = $_POST["gender"];
if (!$gender) $gender = 'Male';
$nationality = $_POST["nationality"];
if (!$nationality) $nationality = "Indian";
$fathername = $_POST["fathername"];
if (!$fathername) $msg = "Please enter your father name";
$address = $_POST["address"];
if (!$address) $msg = "Please enter your address";
$state = $_POST["state"];
$pincode = $_POST["pincode"];
if (!$pincode) $msg = "Please enter pin code";
$phone = $_POST["phone"];
$fax = $_POST["fax"];
$email = $_POST["email"];
if (!$email) $msg = "Please enter a valid email address";
$txntype = $_POST["txntype"];
$txnnumber = $_POST["txnnumber"];
if (!$txnnumber) $msg = "Please enter the DD/Cash Receipt No.";
$amount = $_POST["amount"];
if (!$amount) $amount = "1000";
$depositdate = $_POST["depositdate"];
if (!$depositdate || $depositdate == '0000-00-00 00:00:00') $depositdate = date('y-m-d');//date('Y-m-d');
$bankbranch = $_POST["bankbranch"];
$stream = $_POST["stream"];
if (!$stream) $stream = 'IT/CS';
$bi = $_POST["bi"];
$hci = $_POST["hci"];
$ins = $_POST["ins"];
$mi = $_POST["mi"];
$ro = $_POST["ro"];
$se = $_POST["se"];
$wcc = $_POST["wcc"];
$ce = $_POST["ce"];
$category = $_POST["category"];
if (!$category) $category = 'GE';
$ge_name = $_POST["ge_name"];
if (!$ge_name) $ge_name = 'GATE';
$ge_discipline = $_POST["ge_discipline"];
$ge_rank = $_POST["ge_rank"];
$ge_year = $_POST["ge_year"];
$qd_university = $_POST["qd_university"];
$qd_discipline = $_POST["qd_discipline"];
$qd_degree = $_POST["qd_degree"];
$qd_examdate = $_POST["qd_examdate"];
if (!$qd_examdate || $qd_examdate == '0000-00-00 00:00:00') $qd_examdate = date('y-m-d');//date('Y-m-d');
$qd_finalresultexpectedby = $_POST["qd_finalresultexpectedby"];
$qd_minmarks = $_POST["qd_minmarks"];
$qd_overallgrade = $_POST["qd_overallgrade"];
$we_datefrom1 = $_POST["we_datefrom1"];
$we_dateto1 = $_POST["we_dateto1"];
$we_employer1 = $_POST["we_employer1"];
$we_position1 = $_POST["we_position1"];
$we_nature1 = $_POST["we_nature1"];
$we_datefrom2 = $_POST["we_datefrom2"];
$we_dateto2 = $_POST["we_dateto2"];
$we_employer2 = $_POST["we_employer2"];
$we_position2 = $_POST["we_position2"];
$we_nature2 = $_POST["we_nature2"];
$we_datefrom3 = $_POST["we_datefrom3"];
$we_dateto3 = $_POST["we_dateto3"];
$we_employer3 = $_POST["we_employer3"];
$we_position3 = $_POST["we_position3"];
$we_nature3 = $_POST["we_nature3"];
$photo = $_FILES["photo"];
if ($msg) {
echo "<center><font size=4px color='red'>$msg</font></center>";
} else {
$regid = "IIITA-MTECH-$stream-2012";
if (mysql_num_rows(mysql_query("select * from $tbl where id=$id"))) {
mysql_query("update $tbl set fullname='$fullname',
dob='$dob', pob='$pob', gender='$gender', nationality='$nationality', fathername='$fathername',
address='$address', state='$state', pincode='$pincode', phone='$phone', fax='$fax', email='$email',
txntype='$txntype', txnnumber='$txnnumber', amount='$amount', depositdate='$depositdate', bankbranch='$bankbranch',
stream='$stream', bi='$bi', hci='$hci', ins='$ins', mi='$mi', ro='$ro', se='$se', wcc='$wcc', ce='$ce',
category='$category', ge_name='$ge_name', ge_discipline='$ge_discipline', ge_rank='$ge_rank', ge_year='$ge_year',
qd_university='$qd_university', qd_discipline='$qd_discipline', qd_degree='$qd_degree', qd_examdate='$qd_examdate',
qd_finalresultexpectedby='$qd_finalresultexpectedby', qd_minmarks='$qd_minmarks', qd_overallgrade='$qd_overallgrade',
we_datefrom1='$we_datefrom1', we_dateto1='$we_dateto1', we_employer1='$we_employer1', we_position1='$we_position1',
we_nature1='$we_nature1', we_datefrom2='$we_datefrom2', we_dateto2='$we_dateto2', we_employer2='$we_employer2',
we_position2='$we_position2', we_nature2='$we_nature2', we_datefrom3='$we_datefrom3', we_dateto3='$we_dateto3',
we_employer3='$we_employer3', we_position3='$we_position3', we_nature3='$we_nature3', app_status='$app_status',
date_modification=now(), flag='2', remoteip='$remoteip' where id=$id");
} else {
mysql_query("insert into $tbl(regid,fullname,dob,pob,gender,nationality,fathername,address,state,pincode,
phone,fax,email,txntype,txnnumber,amount,depositdate,bankbranch,stream,bi,hci,ins,mi,ro,se,wcc,ce,category,
ge_name,ge_discipline,ge_rank,ge_year,qd_university,qd_discipline,qd_degree,qd_examdate,qd_finalresultexpectedby,
qd_minmarks,qd_overallgrade,we_datefrom1,we_dateto1,we_employer1,we_position1,we_nature1,we_datefrom2,we_dateto2,
we_employer2,we_position2,we_nature2,we_datefrom3,we_dateto3,we_employer3,we_position3,we_nature3,app_status,
date_creation,date_modification,flag,remoteip)
values('$regid','$fullname','$dob','$pob','$gender','$nationality','$fathername','$address','$state','$pincode',
'$phone','$fax','$email','$txntype','$txnnumber','$amount','$depositdate','$bankbranch','$stream','$bi','$hci','$ins',
'$mi','$ro','$se','$wcc','$ce','$category',
'$ge_name','$ge_discipline','$ge_rank','$ge_year','$qd_university','$qd_discipline','$qd_degree','$qd_examdate',
'$qd_finalresultexpectedby',
'$qd_minmarks','$qd_overallgrade','$we_datefrom1','$we_dateto1','$we_employer1','$we_position1','$we_nature1','$we_datefrom2',
'$we_dateto2','$we_employer2','$we_position2','$we_nature2','$we_datefrom3','$we_dateto3','$we_employer3',
'$we_position3','$we_nature3','Pending',now(),now(),'1','$remoteip')");
$id = mysql_insert_id();
}
if ($photo) {
$photo = upload_file($id);
mysql_query("update $tbl set regid='$regid/$id',photo='$photo' where id=$id");
}
//header("Location: dataentry.php?regid=$regid-$id");
//header("Location: appform2.php?id=$id");
}
}
echo "<input type='hidden' name='id' value='$id'>
<table width='100%'>
<tr><td>
<table>
<tr><td>Full Name</td><td width=80%> <input type='text' name='fullname' size='40' maxlength='50' value='$fullname'>
<input type='submit' name='submit' value='FIND'> <a href='find-edit.php'>New Entry</a></td></tr>
<tr><td>Date of Birth</td><td>";
$myCalendar = new tc_calendar("dob", true, false);
if ($dob) {
$yr = date("Y",strtotime($dob));
$mth = date("m",strtotime($dob));
$dt = date("d",strtotime($dob));
$myCalendar->setDate($dt, $mth, $yr);
}
$myCalendar->setIcon("images/calendar.gif");
$myCalendar->setPath("classes/");
$myCalendar->setYearInterval(1970, 1999);
$myCalendar->dateAllow('1970-01-01', '1999-12-31');
$myCalendar->setDateFormat('j F Y');
//output the calendar
$myCalendar->writeScript();
echo "</td></tr>
<tr><td>Place of Birth </td><td> <input type='text' name='pob' size='10' maxlength='50' value='$pob'></td></tr>
<tr><td>Gender </td><td>";
$genders = array("Male","Female");
foreach ($genders as $gen) {
echo "<input type='radio' name='gender' value='$gen'";
if ($gen == $gender) echo " checked";
echo "> $gen ";
}
echo "
</td></tr>
<tr><td valign='top'>Category</td><td>";
$categories = array("GE","SC","ST","PH","SN","NR","OB");
foreach ($categories as $cat) {
echo "<input type='radio' name='category' value='$cat'";
if ($cat == $category) echo " checked";
if ($cat == 'SN') echo " onclick='javascript:enablespn()'";
else echo " onclick='javascript:disablespn()'";
echo " /> $cat ";
}
echo "</td></tr>
<tr><td>Nationality</td><td><input type='text' name='nationality' size='50' maxlength='150' value='$nationality'></td></tr>
<tr><td>Father Name</td><td><input type='text' name='fathername' size='50' maxlength='150' value='$fathername'></td></tr>
<tr><td>Address</td><td><textarea name='address' rows='3' cols='50' maxlength='150' value='$address' >$address</textarea></td></tr>
<tr><td>State</td><td>
<select name='state'>";
$states = array('Andaman & Nicobar','Andhra Pradesh','Arunachal Pradesh','Assam','Bihar','Chandigarh',
'Chhattisgarh','Dadra & Nagar Haveli','Lakshadweep','Madhya Pradesh','Maharashtra','Manipur','Meghalaya','Mizoram',
'Nagaland','New Delhi','Orissa','Daman & Diu','Delhi','Goa','Gujarat','Haryana','Himachal Pradesh','Jammu & Kashmir',
'Jharkhand','Karnataka','Kerala','Puducherry','Punjab','Rajasthan','Sikkim','Tamil Nadu','Tripura',
'Uttar Pradesh','Uttarakhand','West Bengal');
foreach ($states as $stat) {
echo "<option value='$stat'";
if ($stat == $state) echo " selected";
echo ">$stat</option>";
}
echo "</select>
</td></tr>
<tr><td>Pin Code</td><td><input type='text' onkeypress='return isNumberKey(event)' name='pincode' size='10' maxlength='6' value='$pincode'>
</td></tr><tr><td>Contact No.</td><td> <input type='text' name='phone' size='50' maxlength='50' value='$phone'>
</td></tr><tr><td>Fax No.</td><td> <input type='text' name='fax' size='50' maxlength='50' value='$fax'>
</td></tr><tr><td>Email </td><td> <input type='text' name='email' size='50' maxlength='50' value='$email'>
</td></tr>
</table>
</td><td valign=top>
<img src='$photo' height=120 width=120 /><br>
Upload your photograph <sup>*</sup> (.jpg file only)<br>
<input type='file' name='photo' size='20' value='$photo' /> <br><br>
</td></tr>
<tr><td colspan=2><hr>
<b>Application Fee</b><br><br>
Click the option below for application fee submission
</td></tr>
<tr><td>
<table>
<tr><td><input type='radio' name='txntype' value='DD' checked /> DD
<input type='radio' name='txntype' value='Cash Receipt' /> Cash Receipt
</td></tr>
<tr><td>Amount Rs.</td><td>
<select name='amount'>",
$amounts = array('1000','500');
foreach ($amounts as $amt){
echo "<option value='$amt'";
if ($amt == $amount) echo " selected";
echo ">$amt</option>";
}
echo "</select>
</td></tr>
<tr><td>DD No./Cash Receipt No.</td><td><input type='text' name='txnnumber' size='15' maxlength='25' value='$txnnumber'></td></tr>
<tr><td>Dated</td><td>";
$myCalendar = new tc_calendar("depositdate", true, false);
if ($depositdate) {
$yr = date("Y",strtotime($depositdate));
$mth = date("m",strtotime($depositdate));
$dt = date("d",strtotime($depositdate));
$myCalendar->setDate($dt, $mth, $yr);
}
$myCalendar->setIcon("images/calendar.gif");
$myCalendar->setPath("classes/");
$myCalendar->setYearInterval(2012, 2012);
$myCalendar->dateAllow('2012-01-01', '2012-04-30');
$myCalendar->setDateFormat('j F Y');
//output the calendar
$myCalendar->writeScript();
echo "</td></tr>
<tr><td>Bank & Branch Name</td><td><input type='text' name='bankbranch' size='50' maxlength='150' value='$bankbranch'></td></tr>
</table>
</td></tr>
<tr><td colspan=2>
<hr>
<b>Qualifying Degree<sup>#</sup> already obtained or in progress</b>
</td></tr>
<tr><td colspan=2>
<table>
<tr><td>University/Institute</td>
<td>Discipline</td>
<td>Degree</td>
<td>Exam Date</td>
<td>Final results expected by <br> (if degree not completed)</td>
<td>Min. Pass Marks, % or <br>Grade Average</td>
<td>Overall % or Grade Average<br> (if degree completed)</td>
</tr>
<tr><td><input type='text' name='qd_university' size='20' maxlength='25' value='$qd_university'> </td>
<td><input type='text' name='qd_discipline' size='20' maxlength='25' value='$qd_discipline'> </td>
<td><input type='text' name='qd_degree' size='20' maxlength='25' value='$qd_degree'> </td>
<td>";
$myCalendar = new tc_calendar("qd_examdate", true, false);
if ($qd_examdate) {
$yr = date("Y",strtotime($qd_examdate));
$mth = date("m",strtotime($qd_examdate));
$dt = date("d",strtotime($qd_examdate));
$myCalendar->setDate($dt, $mth, $yr);
}
$myCalendar->setIcon("images/calendar.gif");
$myCalendar->setPath("classes/");
$myCalendar->setYearInterval(2005, 2012);
$myCalendar->dateAllow('2005-01-01', '2012-12-31');
$myCalendar->setDateFormat('j F Y');
//output the calendar
$myCalendar->writeScript();
echo "</td>
<td><input type='text' name='qd_finalresultexpectedby' size='20' maxlength='25' value='$qd_finalresultexpectedby'> </td>
<td><input type='text' name='qd_minmarks' size='20' maxlength='25' value='$qd_minmarks'> </td>
<td><input type='text' name='qd_overallgrade' size='20' maxlength='25' value='$qd_overallgrade'> </td>
</tr>
</table>
</td></tr>
<tr><td colspan=2>
<hr>
<b>GATE exam details<sup>#</sup> Not for B.Pharma/MBBS/BVSc & AH/Sponsored candidates. GRE details for NRI/FN Candidates.</b>
</td></tr>
<tr><td colspan=2>
<table>
<tr><td>Exam Name </td>
<td>Exam Discipline </td>
<td>Exam Year </td>
<td>Rank/Score </td>
</tr>
<tr><td><select name='ge_name'>";
$genames = array('GATE','GRE');
foreach ($genames as $gem) {
echo "<option value='$gem'";
if ($gem == $ge_name) echo " selected";
echo "> $gem </option>";
}
echo"</select></td>
<td><input type='text' name='ge_discipline' size='20' maxlength='50' value='$ge_discipline'> </td>
<td><input type='text' name='ge_year' size='20' maxlength='50' value='$ge_year'> </td>
<td><input type='text' name='ge_rank' size='20' maxlength='50' value='$ge_rank'> </td>
</tr>
</table>
</td></tr>
<tr><td colspan=2>
<hr>
<b>a)</b> Please select any one of the streams:";
$checked1 = ""; $checked2 = ""; $checked3 = "";
if (!$stream) $stream = "IT/CS";
if ($stream == "IT/CS") $checked1 = "checked";
if ($stream == "ECE") $checked2 = "checked";
if ($stream == "BIO") $checked3 = "checked";
echo "<input type='radio' name='stream' value='IT/CS' $checked1 onclick=\"javascript: enableitcs()\" /> IT/CS
<input type='radio' name='stream' value='ECE' $checked2 onclick=\"javascript: enableece()\" /> ECE
<input type='radio' name='stream' value='BIO' $checked3 onclick=\"javascript: enablebi()\" /> BIO
</td></tr>
<tr><td colspan=2>
<b>b)</b> Please give preferences for your specialization according to your chosen stream<br>
(Please put numbers agains the specializations according to your preference with 1 for highest preference
and 2 for second preference. Please do not repeat any number otherwise preference will be considered as per order below.<br>
For example, if software engineering is your first preference then put 1 against that specialization)<br><br>
<table>
<tr><td> Bio-Informatics </td><td><input type='text' name='bi' size='1' maxlength='1' value='$bi' ></td></tr>
<tr><td> Human Computer Interface </td><td> <input type='text' name='hci' size='1' maxlength='1' value='$hci' ></td></tr>
<tr><td> Intellegent Systems </td><td> <input type='text' name='ins' size='1' maxlength='1' value='$ins' ></td></tr>
<tr><td> Micro-Electronics </td><td> <input type='text' name='mi' size='1' maxlength='1' value='$mi' ></td></tr>
<tr><td> Robotics </td><td> <input type='text' name='ro' size='1' maxlength='1' value='$ro' ></td></tr>
<tr><td> Software Engineering </td><td> <input type='text' name='se' size='1' maxlength='1' value='$se' ></td></tr>
<tr><td> Wireless Communication and Computation</td><td><input type='text' name='wcc' size='1' maxlength='1' value='$wcc' ></td></tr>
<tr><td> Communication Engineering </td><td> <input type='text' name='ce' size='1' maxlength='1' value='$ce' ></td></tr>
</table><br>
<b>Note: The specialization offered to selected candidates will be based on their position in the merit list
and the preferences given above.</b><br>
</td></tr>
<tr><td colspan=2>
<hr>
<b>Working Experience<sup>@</sup> (if applicable latest three only)</b>
</td></tr><tr><td colspan=2>
<table>
<tr><td colspan=2 align='center'>Dates (From -To)</td><td>Employer</td><td>Position</td><td>Nature of Work</td></tr>
<tr><td><input type='text' name='we_datefrom1' size='20' maxlength='20' value='$we_datefrom1' ></td>
<td><input type='text' name='we_dateto1' size='20' maxlength='20' value='$we_dateto1' > </td>
<td><input type='text' name='we_employer1' size='25' maxlength='50' value='$we_employer1' ></td>
<td><input type='text' name='we_position1' size='25' maxlength='50' value='$we_position1' ></td>
<td><input type='text' name='we_nature1' size='25' maxlength='50' value='$we_nature1' ></td>
</tr>
<tr><td><input type='text' name='we_datefrom2' size='20' maxlength='20' value='$we_datefrom2' ></td>
<td><input type='text' name='we_dateto2' size='20' maxlength='20' value='$we_dateto2' ></td>
<td><input type='text' name='we_employer2' size='25' maxlength='50' value='$we_employer2' ></td>
<td><input type='text' name='we_position2' size='25' maxlength='50' value='$we_position2' ></td>
<td><input type='text' name='we_nature2' size='25' maxlength='50' value='$we_nature2' ></td>
</tr>
<tr><td><input type='text' name='we_datefrom3' size='20' maxlength='20' value='$we_datefrom3' ></td>
<td><input type='text' name='we_dateto3' size='20' maxlength='20' value='$we_dateto3' ></td>
<td><input type='text' name='we_employer3' size='25' maxlength='50' value='$we_employer3' ></td>
<td><input type='text' name='we_position3' size='25' maxlength='50' value='$we_position3' ></td>
<td><input type='text' name='we_nature3' size='25' maxlength='50' value='$we_nature3' ></td>
</tr>
</table>
</td></tr>
<tr><td><br>
<input type='submit' name='submit' value='SAVE'> ";
if ($id) echo "<input type='submit' name='submit' value='DELETE'>";
echo "</td></tr></table>
";
?>
<br>
* Scanned copy of Photograph can be uploaded on the online application form.<br>
# Attach attested copies of certificates, marks sheet etc. See information brochure for certificates required.<br>
@ For sponsered candidates only. A candidate presenetly working (including those on projects) must provide a "No Objection / Relieving certificate" from the employer.<br>
Working Experience required for Sponsored applicants only.<br>
<b>For any technical problem please contact at 0532-2922151, 2922152, 2922282.</b><br>
<?php
include "footer.inc";
?>