晋太元中,武陵人捕鱼为业。缘溪行,忘路之远近。忽逢桃花林,夹岸数百步,中无杂树,芳草鲜美,落英缤纷。渔人甚异之,复前行,欲穷其林。 林尽水源,便得一山,山有小口,仿佛若有光。便舍船,从口入。初极狭,才通人。复行数十步,豁然开朗。土地平旷,屋舍俨然,有良田、美池、桑竹之属。阡陌交通,鸡犬相闻。其中往来种作,男女衣着,悉如外人。黄发垂髫,并怡然自乐。 见渔人,乃大惊,问所从来。具答之。便要还家,设酒杀鸡作食。村中闻有此人,咸来问讯。自云先世避秦时乱,率妻子邑人来此绝境,不复出焉,遂与外人间隔。问今是何世,乃不知有汉,无论魏晋。此人一一为具言所闻,皆叹惋。余人各复延至其家,皆出酒食。停数日,辞去。此中人语云:“不足为外人道也。”(间隔 一作:隔绝) 既出,得其船,便扶向路,处处志之。及郡下,诣太守,说如此。太守即遣人随其往,寻向所志,遂迷,不复得路。 南阳刘子骥,高尚士也,闻之,欣然规往。未果,寻病终。后遂无问津者。
| DIR:/home/bolconlineco/public_html/coordinator/ |
| Current File : //home/bolconlineco/public_html/coordinator/studentInfoAgian.php |
<?php
ob_start();
ob_flush();
session_start();
include('includes/headerOld.php');
include('functions.php');
include ('../PHPMailer/class.phpmailer.php');
include ('../PHPMailer/class.smtp.php');
if(!isset($_SESSION['coordinator']) || $_SESSION['coordinatorrole'] != 2) {
header("location:../index.php");
exit();
}
header("Cache-Control: no-cache, must-revalidate");
$id = $_GET['Id']; ?>
<style>
.tble tr {
display: block;
margin-bottom: 10px;
}
</style>
<script src="../combine/colorbox-master/jquery.colorbox.js"></script>
<link rel="stylesheet" href="../combine/colorbox-master/colorbox.css" />
<script>
$("document").ready(function(){
$("#nte tr:odd").addClass('high');
});
function checkValue (vv)
{
if(vv==='3')
{
document.getElementById('otther').style.display="inline-block";
}
else
{
document.getElementById('otther').style.display="none";
}
}
function checking (vv)
{
if(vv==='paid')
{
document.getElementById('showpayment').style.display="inline-block";
}
else
{
document.getElementById('showpayment').style.display="none";
}
}
function checke (vv)
{
if(vv==='3')
{
document.getElementById('otther').style.display="inline-block";
}
else
{
document.getElementById('otther').style.display="none";
}
}
$("#date1").datepick({dateFormat:'dd/mm/yyyy'});
</script>
<script>
$("document").ready(function(){
$("#ddd").datepicker({dateFormat:'dd/mm/yy'});
});
</script>
<script>
$("#date").datepick({dateFormat:'dd/mm/yyyy'});
$(".group1").colorbox({rel:'group1'});
</script>
<?php include('inc.php');
$student_notification = $notification;
if(isset($_POST['add-fee'])) {
$fee=sql_strip($_POST['fee']);
$query = mysql_query("insert into tbl_fee values ('','$id','$fee')") or die(mysql_error());
echo "<script>window.location.href='studentInfo.php?Id=$id&fe'</script>";
}
if(isset($_POST['add-fees']))
{
// $payment=sql_strip($_POST['payment']);
// $amount=sql_strip($_POST['amount']);
// $fee_desc=sql_strip($_POST['fee_desc']);
// $date=sql_strip($_POST['ss']);
// $payment_type=sql_strip($_POST['payment_type']);
// if($payment=='paid')
// {
// $queryInstall = mysql_query("insert into tbl_fees_install values ('','$id','','$amount','$payment_type','$fee_desc','$date',1)") or die(mysql_error());
// } else if($payment=='payable') {
// $queryInstall = mysql_query("insert into tbl_fees_install values ('','$id','$amount','','','$fee_desc','$date',0)") or die(mysql_error());
// }
// //header("location:studentInfo.php?Id=$id");
// //exit();
// echo "<script>window.location.href='studentInfo.php?Id=$id&af'</script>";
}
?>
<?php
if(isset($_POST['add_install']))
{
// $amount=sql_strip($_POST['amount']);
// $date=sql_strip($_POST['date']);
// $iddd=$_GET['eid'];
// $query="insert into tbl_install values ('','$id','$amount','$date')";
// mysql_query($query) or die(mysql_error());
// echo "<script>window.location.href='studentInfo.php?Id=$id&af'</script>";
}
if(isset($_POST['pay_update']))
{
// $payble=sql_strip($_POST['payble']);
// $paiddate=sql_strip($_POST['paiddate']);
// $eid=sql_strip($_GET['eid']);
// $queryq="update tbl_install set paid='$payble',piad_date='$paiddate' where id='$eid'";
// $result=mysql_query($queryq) or die(mysql_error());
// echo "<script>window.location.href='studentInfo.php?Id=$id&af'</script>";
}
if(isset($_POST['update-fees'])) {
// $payment=sql_strip($_POST['pt']);
// $nfid=$_GET['feid'];
// $amount=sql_strip($_POST['amount']);
// $fee_desc=sql_strip($_POST['fee_desc']);
// $date=sql_strip($_POST['ss']);
// if($payment=='paid') {
// $type=sql_strip($_POST['payment_type']);
// $queryInstall = mysql_query("update tbl_fees_install set paid='$amount',des='$fee_desc',fee_date='$date',bankname='$type' where id='$nfid'") or die(mysql_error());
// } else if($payment=='payable') {
// $queryInstall = mysql_query("update tbl_fees_install set payble='$amount',des='$fee_desc',fee_date='$date' where id='$nfid'") or die(mysql_error());
// }
// // header("location:studentInfo.php?Id=$id");
// echo "<script>window.location.href='studentInfo.php?Id=$id&uf'</script>";
}
if(isset($_POST['vsubmit'])){
$vid=$_POST['vid'];
$rre=mysql_query("select * from tbl_studentvideos where videoId='$vid'") or die(mysql_error());
$qq="insert into tbl_studentvideos values ('','$id','$vid')";
mysql_query($qq) or die(mysql_error());
header("location:studentInfo.php?Id=$id");
exit();
}
if(isset($_POST['upda_amount'])) {
// $upd_am=$_POST['upd_am'];
// $uq=mysql_query("update tbl_fee set fee='$upd_am' where rollno='$id'") or die(mysql_error());
// echo "<script>window.location.href='studentInfo.php?Id=$id&uf'</script>";
}
if(isset($_POST['st_document']))
{
$name=$_FILES['document']['name'];
$tmpname=$_FILES['document']['tmp_name'];
$title=$_POST['title'];
$ext=pathinfo($name,PATHINFO_EXTENSION);
$array=array('jpg','jpeg','png','pdf','doc','docx');
if(in_array($ext,$array))
{
$rand=rand();
$filename=$rand.$name;
if(move_uploaded_file($tmpname, '../combine/stdocs/'.$filename))
{
$InsertDoc=mysql_query("insert into tbl_stdocs values ('','$title','$filename','$id')") or die(mysql_error());
echo "<script>window.location.href='studentInfo.php?Id=$id&vn'</script>";
}
} else {
echo "<script>window.location.href='studentInfo.php?Id=$id&nv'</script>";
}
}
if(isset($_GET['imgid']))
{
$imgid=$_GET['imgid'];
$qq="select filename from tbl_stdocs where id='$imgid'";
$rr=mysql_query($qq) or die(mysql_error());
$fet=mysql_fetch_array($rr);
if(file_exists('../combine/stdocs/'.$fet['filename']))
{
unlink('../combine/stdocs/'.$fet['filename']) ;
}
$q="delete from tbl_stdocs where id='$imgid'";
mysql_query($q) or die(mysql_error());
echo "<script>window.location.href='studentInfo.php?Id=$id&de'</script>";
}
?>
<script type="text/javascript">
$(function() {
$("#tabs").tabs({ fx: { height: 'toggle', opacity: 'toggle' } });
});
</script>
<script type="text/javascript">
$(document).ready(function(){
$(".ui-corner-top").corner("top 10px");
$(".ui-corner-all").corner("10px");
});
</script>
<div style="padding:10px;">
<!-- <p><strong><span id="stassignhead">Tutor:</span></strong><span id="studenassignment"><?php echo $tutorFetch['full']; ?></span></p>-->
<?php
$qquery_t=mysql_query("select tutorId from assigncourse where rollno='$id'") or die(mysql_error());
$ffetch_t=mysql_fetch_array($qquery_t);
$gTutorFetch="select tutorId,concat_ws(' ',firstname,lastname) as full from tutor where tutorId=".$ffetch_t['tutorId'];
$gTutorResultt=mysql_query($gTutorFetch) or die(mysql_error());
$tutorFetcher=mysql_fetch_array($gTutorResultt); ?>
<div class="row clearfix">
<!-- BEGIN EXAMPLE TABLE PORTLET-->
<div class="portlet box blue">
<div class="portlet-title clearfix">
<div class="caption"> <i class="fa fa-globe"></i>Student Id : <?php echo $id; ?>
<span style="margin-left: 50px;">Student Name : </span><?php echo $fname.' '.$lname;?></div>
</div>
<div class="portlet-body clearfix">
<!-- <div><span style="font-size:18px;">Course Name:</span> <span style="color:#28166F;font-size:18px"><?php //echo $resultSEt['courseName']; ?></span></div>
<div><span style="font-size:18px;">Tutor Name:</span> <span style="color:#28166F;font-size:18px"><?php //echo $tutorFetcher['full']; ?></span></div><br /> -->
<div style="-moz-border-radius: 10px 10px 10px 10px;" class="ui-tabs ui-widget ui-widget-content ui-corner-all" id="tabs">
<ul style="-moz-border-radius: 10px 10px 10px 10px;" class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all">
<li style="-moz-border-radius-topleft: 10px; -moz-border-radius-topright: 10px;" class="ui-corner-top ui-tabs-selected ui-state-active"><a href="#tabs-1">Personal Details</a></li>
<li style="-moz-border-radius-topleft: 10px; -moz-border-radius-topright: 10px;" class="ui-corner-top ui-state-default"><a href="#ui-tabs-9">Address</a></li>
<li style="-moz-border-radius-topleft: 10px; -moz-border-radius-topright: 10px;" class="ui-corner-top ui-state-default"><a href="#ui-tabs-3">Courses</a></li>
<li style="-moz-border-radius-topleft: 10px; -moz-border-radius-topright: 10px;" class="ui-corner-top ui-state-default"><a href="#ui-tabs-12">Add certificates & Documents</a></li>
<li style="-moz-border-radius-topleft: 10px; -moz-border-radius-topright: 10px;" class="ui-corner-top ui-state-default"><a href="#ui-tabs-11">Notification</a></li>
</ul>
<div style="" id="tabs-1" class="tabsContent ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide"><ul class="thumbs">
<table class="table table-striped">
<tr>
<th>Status:</th>
<td>
<?php
if(isset($_POST['submit-status'])) {
$st=$_POST['st']; ?>
<form action="" method="post">
<select name="studstatus" class="cstat" style="width:230px;">
<option value="">Status</option>
<?php $select_status = "SELECT * FROM status WHERE Status = 1";
$select_status2 = mysql_query($select_status);
while($select_status3 = mysql_fetch_array($select_status2)){ ?>
<option value="<?php echo $select_status3['StatusId']; ?>" <?php if($st == $select_status3['StatusId']){ echo "selected"; }?>><?php echo $select_status3['StatusName']; ?></option>
<?php } ?>
</select>
<input type="date" name="titles" value="" id="otther" style="width:160px; display:none;" />
<input type="submit" name="updatest" value="" class="update" />
<input type="submit" name="submm" class="cancel" value="" onClick="document.href='studentInfo.php'" />
</form>
<?php
} else {
$selectStt = "SELECT * FROM status WHERE StatusId = '".$studentstatus."' ";
$selectStt2 = mysql_query($selectStt);
$selectStt3 = mysql_fetch_array($selectStt2);
echo $selectStt3['StatusName'];
}?>
</td>
<td><?php if(!isset($_POST['submit-status']))
{
?>
<form action="studentInfo.php?Id=<?php echo $id;?>#tabs-1" method="post">
<div id="btn">
<input type="hidden" name="st" value="<?php echo $studentstatus; ?>" />
<input type="submit" name="submit-status" class="edit" value="" style="width:40px;" />
</div>
</form>
<?php
} else {
?>
<?php
}
?>
</td>
<th>Stage:</th>
<td>
<?php
if(isset($_POST['submit_stage'])){
$st=$_POST['sta']; ?>
<form action="" method="post">
<select name="stage" class="cstat" style="width:230px;">
<option value="">Select Stage</option>
<?php $select_status = "SELECT * FROM stages ORDER BY id DESC";
$select_status2 = mysql_query($select_status);
while($select_status3 = mysql_fetch_array($select_status2)){ ?>
<option value="<?php echo $select_status3['id']; ?>" <?php if($st == $select_status3['id']){ echo "selected"; }?>><?php echo $select_status3['title']; ?></option>
<?php } ?>
</select>
<input type="date" name="titles" value="" id="otther" style="width:160px; display:none;" />
<input type="submit" name="update_stage" value="" class="update" />
<input type="submit" name="submm" class="cancel" value="" onClick="document.href='studentInfo.php'" />
</form>
<?php
} else {
if(isset($stage) && !empty($stage)){
$stage_sql = mysql_fetch_array(mysql_query("SELECT title FROM stages WHERE id='$stage'"));
echo $stage_sql['title'];
}
}?>
</td>
<td><?php if(!isset($_POST['submit_stage'])){
?>
<form action="studentInfo.php?Id=<?php echo $id;?>#tabs-1" method="post">
<div id="btn">
<input type="hidden" name="sta" value="<?php echo $stage; ?>" />
<input type="submit" name="submit_stage" class="edit" value="" style="width:40px;" />
</div>
</form>
<?php
}
?>
</td>
<th>Admission Source:</th>
<td>
<?php
if(isset($_POST['submit_admission_source'])) {
$st=$_POST['ad_s']; ?>
<form action="" method="post">
<select name="admission_source" class="cstat" style="width:230px;">
<option value="">Admission Srource</option>
<?php $select_status = "SELECT * FROM admission_sources ORDER BY id DESC";
$select_status2 = mysql_query($select_status);
while($select_status3 = mysql_fetch_array($select_status2)){ ?>
<option value="<?php echo $select_status3['title']; ?>" <?php if($st == $select_status3['title']){ echo "selected"; }?>><?php echo $select_status3['title']; ?></option>
<?php } ?>
</select>
<input type="date" name="titles" value="" id="otther" style="width:160px; display:none;" />
<input type="submit" name="update_admission_source" value="" class="update" />
<input type="submit" name="submm" class="cancel" value="" onClick="document.href='studentInfo.php'" />
</form>
<?php
} else {
echo $admission_source;
}?>
</td>
<td><?php if(!isset($_POST['submit_admission_source'])){
?>
<form action="studentInfo.php?Id=<?php echo $id;?>#tabs-1" method="post">
<div id="btn">
<input type="hidden" name="ad_s" value="<?php echo $admission_source; ?>" />
<input type="submit" name="submit_admission_source" class="edit" value="" style="width:40px;" />
</div>
</form>
<?php
}
?>
</td>
</tr>
</table>
<table width="330" border="0" id="personnaldetails" class="tablestyle table table-striped table-bordered table-hover">
<thead>
<tr>
<td id="col">Registration Date:</td>
<td id="col2"><?php
if(isset($_POST['submit-1']))
{
$rr=$_POST['regist'];
$full=explode('-',$rr);
?>
<form action="" method="post" autocomplete="off">
<select name="day">
<option value="<?php echo $full[2]; ?>"><?php echo $full[2];?></option>
<?php
for( $d=01; $d<=31; $d++)
{
?>
<option value="<?php echo str_pad($d,2,'0',STR_PAD_LEFT);?>"><?php echo str_pad($d,2,'0',STR_PAD_LEFT);?></option>
<?php
}
?>
</select>
<select name="month">
<option value="<?php echo $full[1];?>"><?php echo $full[1];?></option>
<?php
for( $d=01; $d<=12; $d++)
{ ?>
<option value="<?php echo str_pad($d,2,'0',STR_PAD_LEFT);?>"><?php echo str_pad($d,2,'0',STR_PAD_LEFT);?></option>
<?php
}
?>
</select>
<select name="year">
<option value="<?php echo $full[0]; ?>"><?php echo $full[0];?></option>
<?php
for($d=date("Y"); $d>=1960; $d--)
{
if($full[0]==$d)
{
}else{
?>
<option value="<?php echo str_pad($d,2,'0',STR_PAD_LEFT);?>"><?php echo str_pad($d,2,'0',STR_PAD_LEFT);?></option>
<?php
}
}
?>
</select>
<input type="submit" name="registrationdate" value="" class="update" style="width:30px;" />
<input type="submit" name="submm" class="cancel" value="" onClick="document.href='studentInfo.php'" />
</form>
<?php
}else{
echo date('d/m/Y',strtotime($registrationdate));
}
?>
</td>
<td>
<?php if(!isset($_POST['submit-1']))
{
?>
<form action="studentInfo.php?Id=<?php echo $id;?>#tabs-1" method="post">
<div id="btn">
<input type="hidden" name="regist" value="<?php echo $registrationdate; ?>" />
<input type="submit" name="submit-1" class="edit" value="" style="width:40px;" />
</div>
</form>
<?php
}else{
?>
<?php
}
?>
</td>
<td>
</td>
</tr>
</thead>
<tbody>
<tr>
<td id="col">StudentID:</td>
<td id="col2"><?php echo $rollno;?></td>
</tr>
<tr>
<td id="col">Course:</td>
<td id="col2"><?php echo $resultSEt['courseName'];?></td>
</tr>
<tr>
<td id="col">Title:</td>
<td id="col2"><?php
if(isset($_POST['title-3']))
{
$title=$_POST['tit'];
?>
<form action="" method="post">
<select name="titles" id="tt" onchange='checkValue(this.value)' class="cstat">
<option value="<?php echo $title; ?>"><?php echo $title; ?></option>
<option value="Mr">Mr</option>
<option value="Mrs">Mrs</option>
<option value="Miss">Miss</option>
<option value="Mis">Mis</option>
<option value="3">Other</option>
</select>
<input type="text" name="title" value="" id="otther" style="width:160px; display:none;" />
<input type="submit" name="updatetitle" value="" class="update" />
<input type="submit" name="submm" class="cancel" value="" onClick="document.href='studentInfo.php'" />
</form>
<?php
}else{
echo $title;
}
?></td>
<td><?php if(!isset($_POST['title-3']))
{
?>
<form action="studentInfo.php?Id=<?php echo $id;?>#tabs-1" method="post">
<div id="btn">
<input type="hidden" name="tit" value="<?php echo $title; ?>" />
<input type="submit" name="title-3" class="edit" value="" style="width:40px;" />
</div>
</form>
<?php
}else{
?>
<?php
}
?></td>
</tr>
<tr>
<td id="col">First Name:</td>
<td id="col2"><?php
if(isset($_POST['submit-3']))
{
$firstname=$_POST['firstname'];
?>
<form action="" method="post">
<input type="text" name="firstname" value="<?php echo $firstname; ?>" />
<input type="hidden" name="oldfname" value="<?php echo $firstname; ?>" />
<input type="submit" name="updatefname" value="" class="update" />
<input type="submit" name="submm" class="cancel" value="" onClick="document.href='studentInfo.php'" />
</form>
<?php
}else{
echo $fname;
}
?></td>
<td><?php if(!isset($_POST['submit-3']))
{
?>
<form action="studentInfo.php?Id=<?php echo $id;?>#tabs-1" method="post">
<div id="btn">
<input type="hidden" name="firstname" value="<?php echo $fname; ?>" />
<input type="submit" name="submit-3" class="edit" value="" style="width:40px;" />
</div>
</form>
<?php
}else{
?>
<?php
}
?></td>
</tr>
<tr>
<td id="col">Last Name:</td>
<td id="col2"><?php
if(isset($_POST['submit-4']))
{
$lname=$_POST['lname'];
?>
<form action="" method="post">
<input type="text" name="lastname" value="<?php echo $lname; ?>" />
<input type="hidden" name="oldlname" value="<?php echo $lname; ?>" />
<input type="submit" name="updatelname" value="" class="update" />
<input type="submit" name="submm" class="cancel" value="" onClick="document.href='studentInfo.php'" />
</form>
<?php
}else{
echo $lname;
}
?></td>
<td><?php if(!isset($_POST['submit-4']))
{
?>
<form action="studentInfo.php?Id=<?php echo $id;?>#tabs-1" method="post">
<div id="btn">
<input type="hidden" name="lname" value="<?php echo $lname; ?>" />
<input type="submit" name="submit-4" class="edit" value="" style="width:40px;" />
</div>
</form>
<?php
}else{
?>
<?php
}
?></td>
</tr>
<tr>
<td id="col">Date OF Birth:</td>
<td id="col2"><?php
if(isset($_POST['submit-5']))
{
$dateob=$_POST['dateob'];
$full=explode('-',$dateob);
?>
<form action="" method="post">
<select name="day">
<option value="<?php echo $full[2]; ?>"><?php echo $full[2];?></option>
<?php
for( $d=01; $d<=31; $d++)
{
?>
<option value="<?php echo str_pad($d,2,'0',STR_PAD_LEFT);?>"><?php echo str_pad($d,2,'0',STR_PAD_LEFT);?></option>
<?php
}
?>
</select>
<select name="month">
<option value="<?php echo $full[1];?>"><?php echo $full[1];?></option>
<?php
for( $d=01; $d<=12; $d++)
{
?>
<option value="<?php echo str_pad($d,2,'0',STR_PAD_LEFT);?>"><?php echo str_pad($d,2,'0',STR_PAD_LEFT);?></option>
<?php
}
?>
</select>
<select name="year">
<option value="<?php echo $full[0]; ?>"><?php echo $full[0];?></option>
<?php
for($d=date("Y"); $d>=1960; $d--)
{
if($full[0]==$d)
{
}else{
?>
<option value="<?php echo str_pad($d,2,'0',STR_PAD_LEFT);?>"><?php echo str_pad($d,2,'0',STR_PAD_LEFT);?></option>
<?php
}
}
?>
</select>
<input type="submit" name="updatedob" value="" class="update" />
<input type="submit" name="submm" class="cancel" value="" onClick="document.href='studentInfo.php'" />
</form>
<?php
}else{
echo date('d/m/Y',strtotime($dob));
}
?></td>
<td><?php if(!isset($_POST['submit-5']))
{
?>
<form action="studentInfo.php?Id=<?php echo $id;?>#tabs-1" method="post">
<div id="btn">
<input type="hidden" name="dateob" value="<?php echo $dob; ?>" />
<input type="submit" name="submit-5" class="edit" value="" style="width:40px;" />
</div>
</form>
<?php
}else{
?>
<?php
}
?></td>
</tr>
<tr>
<td id="col">Email: </td>
<td id="col2"><?php
if(isset($_POST['submit-email']))
{
$email=$_POST['email'];
?>
<form action="" method="post">
<input type="text" name="newemail" value="<?php echo $email; ?>" />
<input type="hidden" name="oldemail" value="<?php echo $email; ?>" />
<input type="submit" name="updateemail" value="" class="update" />
<input type="submit" name="submm" class="cancel" value="" onClick="document.href='studentInfo.php'" />
</form>
<?php
}else{
echo $email;
}
?></td>
<td><?php if(!isset($_POST['submit-email']))
{
?>
<form action="studentInfo.php?Id=<?php echo $id;?>#tabs-1" method="post">
<div id="btn">
<input type="hidden" name="email" value="<?php echo $email; ?>" />
<input type="submit" name="submit-email" class="edit" value="" style="width:40px;" />
</div>
</form>
<?php
}else{
?>
<?php
}
?></td>
</tr>
<tr>
<td id="col">Password: </td>
<td id="col2"><?php
if(isset($_POST['submit-pass']))
{
$email=$_POST['email'];
?>
<form action="" method="post">
<input type="password" name="newpass" id="passcheck" value="" />
<input type="hidden" name="passemail" value="<?php echo $email; ?>" />
<input type="checkbox" name="chec" id="check" style="margin:0;width: 16px;height: 14px;" />Show password
<input type="submit" name="updatepass" value="" class="update" />
<input type="submit" name="submm" class="cancel" value="" onClick="document.href='studentInfo.php'" />
</form>
<?php
}else{
echo "Change Password";
}
?></td>
<td><?php if(!isset($_POST['submit-pass']))
{
?>
<form action="studentInfo.php?Id=<?php echo $id;?>#tabs-1" method="post">
<div id="btn">
<input type="hidden" name="email" value="<?php echo $email; ?>" />
<input type="submit" name="submit-pass" class="edit" value="" style="width:40px;" />
</div>
</form>
<?php
}else{
?>
<?php
}
?></td>
</tr>
</tbody>
</table>
</ul>
</div>
<div style="" id="ui-tabs-9" class="tabsContent ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide"><ul class="thumbs">
<table width="330" border="0" id="personnaldetails" class="tablestyle table table-striped table-bordered table-hover">
<tbody>
<tr>
<td id="col">Address :</td>
<td id="col2"><?php
if(isset($_POST['submit-6']))
{
$address1=$_POST['address1'];
?>
<form action="" method="post">
<input type="text" name="newaddress1" value="<?php echo $address1; ?>" />
<input type="hidden" name="oldaddress1" value="<?php echo $address1; ?>" />
<input type="submit" name="updateaddress1" value="" class="update" />
<input type="submit" name="submm" class="cancel" value="" onClick="document.href='studentInfo.php'" />
</form>
<?php
} else {
echo $address;
}
?></td>
<td><?php if(!isset($_POST['submit-6']))
{
?>
<form action="studentInfo.php?Id=<?php echo $id;?>#tabs-1" method="post">
<div id="btn">
<input type="hidden" name="address1" value="<?php echo $address; ?>" />
<input type="submit" name="submit-6" class="edit" value="" style="width:40px;" />
</div>
</form>
<?php
} else {
?>
<?php
}
?></td>
</tr>
<tr>
<td id="col">City:</td>
<td id="col2"><?php
if(isset($_POST['submit-7']))
{
$city=$_POST['city'];
?>
<form action="" method="post">
<input type="text" name="newcity" value="<?php echo $city; ?>" />
<input type="hidden" name="oldcity" value="<?php echo $city; ?>" />
<input type="submit" name="updatecity" value="" class="update" />
<input type="submit" name="submm" class="cancel" value="" onClick="document.href='studentInfo.php'" />
</form>
<?php
}else{
echo $city;
}
?></td>
<td><?php if(!isset($_POST['submit-7']))
{
?>
<form action="studentInfo.php?Id=<?php echo $id;?>#tabs-1" method="post">
<div id="btn">
<input type="hidden" name="city" value="<?php echo $city; ?>" />
<input type="submit" name="submit-7" class="edit" value="" style="width:40px;" />
</div>
</form>
<?php
}else{
?>
<?php
}
?></td>
</tr>
<tr>
<td id="col">PostCode:</td>
<td id="col2">
<?php
if(isset($_POST['PoCode']))
{
$postcode=$_POST['postcode'];?>
<form action="studentInfo.php?Id=<?php echo $id;?>#tabs-1" method="post">
<input type="text" name="postcodes" value="<?php echo $postcode; ?>" />
<input type="hidden" name="oldrepostcode" value="<?php echo $postcode; ?>" />
<input type="submit" name="postcodeupdate" value="" class="update" />
<input type="submit" name="submm" class="cancel" value="" onClick="document.href='studentInfo.php'" />
</form>
<?php
} else {
echo $postcode;
}
?>
</td>
<td>
<?php if(!isset($_POST['PoCode']))
{
?>
<form action="studentInfo.php?Id=<?php echo $id;?>#tabs-1" method="post">
<div id="btn">
<input type="hidden" name="postcode" value="<?php echo $postcode; ?>" />
<input type="submit" name="PoCode" class="edit" value="" style="width:40px;" />
</div>
</form>
<?php
}else{
?>
<?php
}
?>
</td>
</tr>
<tr>
<td id="col">Country:</td>
<td id="col2"><?php
if(isset($_POST['submit-8']))
{
$country=$_POST['country'];
?>
<form action="" method="post">
<select name="newcountry">
<option value="<?php echo $country; ?>"><?php echo $country; ?></option>
<?php
$q="SELECT * FROM country where name !='$country' order by name";
$r=mysql_query($q) or die(mysql_error());
while($cont=mysql_fetch_array($r))
{
?>
<option value="<?php echo $cont['name']; ?>"><?php echo $cont['name']; ?></option>
<?php
}
?>
</select>
<input type="submit" name="updatecountry" value="" class="update" />
<input type="submit" name="submm" class="cancel" value="" onClick="document.href='studentInfo.php'" />
</form>
<?php
}else{
echo $country;
}
?></td>
<td><?php if(!isset($_POST['submit-8']))
{
?>
<form action="studentInfo.php?Id=<?php echo $id;?>#tabs-1" method="post">
<div id="btn">
<input type="hidden" name="country" value="<?php echo $country; ?>" />
<input type="submit" name="submit-8" class="edit" value="" style="width:40px;" />
</div>
</form>
<?php
}else{
?>
<?php
}
?></td>
</tr>
<tr>
<td id="col">Phone:</td>
<td id="col2"><?php
if(isset($_POST['submit-9']))
{
$phone=$_POST['phone'];
?>
<form action="" method="post">
<input type="text" name="phone" value="<?php echo $phone; ?>" />
<input type="submit" name="updatephone" value="" class="update" />
<input type="submit" name="submm" class="cancel" value="" onClick="document.href='studentInfo.php'" />
</form>
<?php
}else{
echo $phone;
}
?></td>
<td><?php if(!isset($_POST['submit-9']))
{
?>
<form action="studentInfo.php?Id=<?php echo $id;?>#tabs-1" method="post">
<div id="btn">
<input type="hidden" name="phone" value="<?php echo $phone; ?>" />
<input type="submit" name="submit-9" class="edit" value="" style="width:40px;" />
</div>
</form>
<?php
}else{
?>
<?php
}
?></td>
</tr>
<tr>
<td id="col">Mobile:</td>
<td id="col2"><?php
if(isset($_POST['submit-10']))
{
$mobile=$_POST['mobile'];
?>
<form action="" method="post">
<input type="text" name="mobile" value="<?php echo $mobile; ?>" />
<input type="submit" name="updatemobile" value="" class="update" />
<input type="submit" name="submm" class="cancel" value="" onClick="document.href='studentInfo.php'" />
</form>
<?php
}else{
echo $mobile;
}
?></td>
<td><?php if(!isset($_POST['submit-10']))
{
?>
<form action="studentInfo.php?Id=<?php echo $id;?>#tabs-1" method="post">
<div id="btn">
<input type="hidden" name="mobile" value="<?php echo $mobile; ?>" />
<input type="submit" name="submit-10" class="edit" value="" style="width:40px;" />
</div>
</form>
<?php
}else{
?>
<?php
}
?></td>
</tr>
</tbody>
</table>
</ul>
</div>
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom" id="ui-tabs-3">
<ul class="thumbs">
<div class="portlet-body clearfix">
<div class="col-md-12">
<h3>Registered Courses</h3>
<div class="table">
<table class="table table-responsive table-bordered">
<thead>
<tr>
<th>No:</th>
<th>Catagory Name:</th>
<th>Course Name:</th>
<th>Tutor Name:</th>
</tr>
</thead>
<?php
$count=1;
$rollno = $_GET['Id'];
$sql="select ac.*, cat.CategoryName,c.courseName,c.courseId,t.firstname,t.lastname
FROM assigncourse ac
JOIN course c ON c.courseId = ac.courseid
JOIN tutor t ON t.tutorId = ac.tutorId
JOIN category cat ON c.catId = cat.CategoryId
WHERE ac.rollno='$rollno'";
$rr=mysql_query($sql) or die(mysql_error());
while($row=mysql_fetch_array($rr))
{
?>
<tbody class="tbody">
<tr>
<td><?php echo $count++; ?></td>
<td><?php echo $row['CategoryName']; ?></td>
<td><a style="color:black" href="student_course_detail.php?courseId=<?php echo $row['courseId']; ?>&rollno=<?php echo $_GET['Id']; ?>"><?php echo $row['courseName']; ?></a></td>
<td><?php echo $row['firstname']; ?> <?php echo $row['lastname']; ?></td>
</tr>
</tbody>
<?php
}
?>
</table>
</div>
</ul>
</div>
<div style="" id="ui-tabs-12" class="tabsContent ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide">
<ul class="thumbs">
<form action="" method="post" enctype="multipart/form-data" id="MyUploadForm">
<div class="full">
<div class="label">Title:</div>
<div class="inputs">
<input class="validate[required] form-control hwidth" type="text" name="title" id="doc" value="" required/>
</div>
</div>
<div class="full">
<div class="label">Documents:</div>
<div class="inputs">
<input class="validate[required] form-control hwidth" type="file" name="document" id="doc" value="" required />
</div>
</div>
<div class="full">
<div class="label"></div>
<div class="inputs">
<input class="add2 btn btn-success" type="submit" name="st_document" value="Add" id="submit-btn" />
</div>
</div>
</form>
<h2>Student Docs</h2>
<table class="uniq table table-striped table-bordered table-hover" id="sample_2">
<thead>
<tr>
<th> Sr# </th>
<th> Title </th>
<th> Docs </th>
<th> Action </th>
</tr>
</thead>
<tbody>
<?php
$q="select * from tbl_stdocs where rollno='$id'";
$r=mysql_query($q) or die(mysql_error());
$i=0;
while($fesh=mysql_fetch_array($r))
{
$i++; ?>
<tr>
<td> <?php echo $i; ?> </td>
<td> <?php echo $fesh['title']; ?> </td>
<td> <a href="../combine/stdocs/<?php echo $fesh['filename']; ?>" class="group1" target="_new"><img src="../combine/stdocs/<?php echo $fesh['filename']; ?>" width="100" height="100" /></a> </td>
<td> <a href="studentInfo.php?Id=<?php echo $id; ?>&imgid=<?php echo $fesh['id'];?>" onClick="return confirm('Are you Sure you Want to delete')"><img src="../images/delete-icon.png" /></a> </td>
</tr>
<?php } ?>
</tbody>
</table>
</ul>
</div>
<div style="" id="ui-tabs-11" class="tabsContent ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide">
<ul class="thumbs">
<?php
if(isset($_GET['insert']))
{
?>
<div class="errors"><p style="color:green;"><?php echo $_GET['insert']; ?></p></div>
<?php
}
?>
<?php
if(isset($messageSent))
{
?>
<div class="errors"><p style="color:green;"><?php echo $messageSent; ?></p></div>
<?php
}
?>
<?php
if(isset($_POST['add_message'])){
$messageSent="Notification has been sent";
$rollno=$_POST['id'];
$notification=$_POST['notification'];
//$date=date('Y-m-d');
//$insert="INSERT INTO user_notification (rollno, notification, now_date,notify_by) VALUES ('$rollno','$notification','$date','adnan')";
$insert="UPDATE student SET notification ='$notification' WHERE rollno='$rollno'";
// echo $insert;
// exit;
$query=mysql_query($insert) or die(mysql_error());
if($query){
header("location:studentInfo.php?Id=$id#ui-tabs-11");
//header('location:studentInfo.php?insert="Notification has been sent Successfully"');
}
else {
//header('location:studentInfo.php?error="Some Error has been occured"');
}
}
?>
<form action="" method="post" enctype="multipart/form-data" id="">
<div class="col-md-2">
<h4><b>Notification:</b></h4>
</div>
<div class="col-md-10">
<input type="hidden" name="id" id="id" value="<?php echo $id; ?>">
<div class="form-group">
<textarea style="width:600px; height:200px;font-size:16px;" name="notification" id="notification" class="form-control input=lg" placeholder="Write here..."><?php echo $student_notification; ?></textarea>
</div>
<div class="form-group">
<input type="submit" name="add_message" id="add_message" value="Update & Send" class="btn btn-success" style="width:150px; height:40;font-size: 14px; ">
</div>
</div>
</form>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div> <!-- end content -->
</div><!-- end wrapper -->
<script>
CKEDITOR.replace( 'desc2',
{
filebrowserBrowseUrl : 'ckfinder/ckfinder.html',
filebrowserImageBrowseUrl : 'ckfinder/ckfinder.html?Type=Images',
filebrowserFlashBrowseUrl : 'ckfinder/ckfinder.html?Type=Flash',
filebrowserUploadUrl : 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files',
filebrowserImageUploadUrl : 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images',
filebrowserFlashUploadUrl : 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash'
});
CKEDITOR.replace( 'desc3',
{
filebrowserBrowseUrl : 'ckfinder/ckfinder.html',
filebrowserImageBrowseUrl : 'ckfinder/ckfinder.html?Type=Images',
filebrowserFlashBrowseUrl : 'ckfinder/ckfinder.html?Type=Flash',
filebrowserUploadUrl : 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files',
filebrowserImageUploadUrl : 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images',
filebrowserFlashUploadUrl : 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash'
});
CKEDITOR.replace( 'desc4',
{
filebrowserBrowseUrl : 'ckfinder/ckfinder.html',
filebrowserImageBrowseUrl : 'ckfinder/ckfinder.html?Type=Images',
filebrowserFlashBrowseUrl : 'ckfinder/ckfinder.html?Type=Flash',
filebrowserUploadUrl : 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files',
filebrowserImageUploadUrl : 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images',
filebrowserFlashUploadUrl : 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash'
});
CKEDITOR.replace( 'desc5',
{
filebrowserBrowseUrl : 'ckfinder/ckfinder.html',
filebrowserImageBrowseUrl : 'ckfinder/ckfinder.html?Type=Images',
filebrowserFlashBrowseUrl : 'ckfinder/ckfinder.html?Type=Flash',
filebrowserUploadUrl : 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files',
filebrowserImageUploadUrl : 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images',
filebrowserFlashUploadUrl : 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash'
});
CKEDITOR.replace( 'desc6',
{
filebrowserBrowseUrl : 'ckfinder/ckfinder.html',
filebrowserImageBrowseUrl : 'ckfinder/ckfinder.html?Type=Images',
filebrowserFlashBrowseUrl : 'ckfinder/ckfinder.html?Type=Flash',
filebrowserUploadUrl : 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files',
filebrowserImageUploadUrl : 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images',
filebrowserFlashUploadUrl : 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash'
});
CKEDITOR.replace( 'desc7',
{
filebrowserBrowseUrl : 'ckfinder/ckfinder.html',
filebrowserImageBrowseUrl : 'ckfinder/ckfinder.html?Type=Images',
filebrowserFlashBrowseUrl : 'ckfinder/ckfinder.html?Type=Flash',
filebrowserUploadUrl : 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files',
filebrowserImageUploadUrl : 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images',
filebrowserFlashUploadUrl : 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash'
});
CKEDITOR.replace( 'desc8',
{
filebrowserBrowseUrl : 'ckfinder/ckfinder.html',
filebrowserImageBrowseUrl : 'ckfinder/ckfinder.html?Type=Images',
filebrowserFlashBrowseUrl : 'ckfinder/ckfinder.html?Type=Flash',
filebrowserUploadUrl : 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files',
filebrowserImageUploadUrl : 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images',
filebrowserFlashUploadUrl : 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash'
});
CKEDITOR.replace( 'desc9',
{
filebrowserBrowseUrl : 'ckfinder/ckfinder.html',
filebrowserImageBrowseUrl : 'ckfinder/ckfinder.html?Type=Images',
filebrowserFlashBrowseUrl : 'ckfinder/ckfinder.html?Type=Flash',
filebrowserUploadUrl : 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files',
filebrowserImageUploadUrl : 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images',
filebrowserFlashUploadUrl : 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash'
});
CKEDITOR.replace( 'desc10',
{
filebrowserBrowseUrl : 'ckfinder/ckfinder.html',
filebrowserImageBrowseUrl : 'ckfinder/ckfinder.html?Type=Images',
filebrowserFlashBrowseUrl : 'ckfinder/ckfinder.html?Type=Flash',
filebrowserUploadUrl : 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files',
filebrowserImageUploadUrl : 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images',
filebrowserFlashUploadUrl : 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash'
});
</script>
<script src="tabs/jquery-ui-1.js" type="text/javascript"></script>
<script src="tabs/ui_002.js" type="text/javascript"></script>
<?php include('../includes/footer-old.php'); ?>
|