<?php
$id = $convert->decode($_GET['id']);
$edit = $convert->decode($_GET['edit']);

$GetStuDetail = mysql_query("SELECT * FROM `student_registration` WHERE `sid` = '$id'");
$GetStuDetail1 = mysql_fetch_assoc($GetStuDetail);

$GetStep1Per = mysql_query("SELECT * FROM `step1_perosonal` WHERE `sid` = '$id'");
$GetStep1Per1 = mysql_fetch_assoc($GetStep1Per);

$GetStep1Contact = mysql_query("SELECT * FROM `step1_contact` WHERE `sid` = '$id'");
$GetStep1Contact1 = mysql_fetch_assoc($GetStep1Contact);


?>

<div class="page-content">
                            <ol class="breadcrumb">
                                
<li><a href="index.html">Home</a></li>
<li class="active"><a href="profile.html">Profile</a></li>
                            </ol>
                            <div class="container-fluid">
                                 
<div data-widget-group="group1">
<?php
$GetFormStatus = mysql_query("SELECT * FROM `student_registration` WHERE `sid` = '$id'");
$GetFormStatus1 = mysql_fetch_assoc($GetFormStatus);



$GetStatusMsg = mysql_query("SELECT * FROM `sgvu_form_comment_executive` WHERE `sid` = '$id' ORDER BY `id` DESC LIMIT 0, 1");
$GetStatusMsg1 = mysql_fetch_assoc($GetStatusMsg);
?>
<?php
if($GetFormStatus1['status'] == '0')
{
}
if($GetFormStatus1['status'] == '1')
{
echo "Form Cleared";
}
if($GetFormStatus1['status'] == '2')
{
echo '<h4><b>Panding Reasion: </b>'.$GetStatusMsg1['remark'].'</h4>';
}
?>


	<div class="row">
		<div class="col-sm-3">
			<div class="panel panel-profile">
			  <div class="panel-body">
			  <?php
										$GetPhoto=mysql_query("SELECT * FROM `step3_document` WHERE `doc_type` = 1 AND `sid` = '$id'");
										$GetPhoto1=mysql_fetch_assoc($GetPhoto);
										
										?>
			  
			    <img src="../new-admin/upload/<?php echo $GetPhoto1['image'];?>" class="img-circle" style="height:60px; width:60px">
			    <div class="name"><?php echo $GetStuDetail1['student_name'];  ?></div>
			    <div class="info">Reg. Date: <?php $rd=$GetStuDetail1['time'];
				echo date('d-m-Y', $rd);
				  ?></div>
			    <div class="info">SID: <?php echo $GetStuDetail1['sid'];
				
				  ?></div>
			  </div>
			</div><!-- panel -->
			<div class="list-group list-group-alternate mb-n nav nav-tabs">
				<a href="#tab-about" 	role="tab" data-toggle="tab" class="list-group-item active"><i class="ti ti-user"></i> Personal Details<span class="badge badge-primary">STEP 1</span></a>
				
				<a href="#tab-projects" role="tab" data-toggle="tab" class="list-group-item"><i class="ti ti-view-list-alt"></i> Contact Details<span class="badge badge-primary">STEP 1</span></a>
				<a href="#tab-photos" 	role="tab" data-toggle="tab" class="list-group-item"><i class="ti ti-view-grid"></i> Academic Details</a>
				<a href="#tab-edit" 	role="tab" data-toggle="tab" class="list-group-item"><i class="ti ti-pencil"></i> Documents</a>
				<a href="#tab-sms" 	role="tab" data-toggle="tab" class="list-group-item"><i class="ti ti-pencil"></i> Send SMS</a>
				<a href="#tab-email" 	role="tab" data-toggle="tab" class="list-group-item"><i class="ti ti-pencil"></i> Send Email</a>
				<a href="#tab-finish" 	role="tab" data-toggle="tab" class="list-group-item"><i class="ti ti-pencil"></i> Finish</a>
				
				</div>
		</div><!-- col-sm-3 -->
		<div class="col-sm-9">
			<div class="tab-content">
				<div class="tab-pane
				<?php
				if($edit == 'edit-contact')
							{
							echo 'active';
							}
				?>
				" id="tab-projects">
					<div class="panel panel-default">
						<div class="panel-heading">
							<h2>Contact Details</h2> &nbsp;&nbsp;&nbsp;
							<a href="admin.php?page=<?php echo $convert->encode("student-profile-scruitnizer");?>&&id=<?php echo $convert->encode($id); ?>&&edit=<?php echo $convert->encode("edit-contact"); ?>"><span class="badge badge-primary" >Edit</span></a>
						</div>
						<div class="panel-body">
							<div class="table-responsive">
							<?php
							if($edit == 'edit-contact')
							{
							include("module/scrutnizer/contact_details_edit.php");
							}
							else
							{
							include("module/scrutnizer/contact_details.php");
							}
							?>	
							
								
								
								
							</div><!-- /.table-responsive -->
						</div> <!-- /.panel-body -->
					</div>
				</div> <!-- #tab-projects -->

				
				
<div class="tab-pane" id="tab-sms">
					<div class="panel panel-default">
					    <div class="panel-heading">
					    	<h2>Compose SMS</h2>&nbsp;&nbsp;&nbsp;
							
					    </div>
						<div class="panel-body">
					      
							<div class="about-area">
								    <div class="table-responsive">
								      <form method="post" action="action-pages/scruitnizer/send-sms-action.php">
									  <input type="hidden" name="sid" value="<?php echo $id; ?>" />
<input type="hidden" name="student_mobile" value="<?php echo $GetStep1Contact1['student_mobile']; ?>" class="form-control"/>
<textarea name="sms" class="form-control" placeholder="Compose SMS"></textarea>

<br />

<button class="btn btn-primary" type="submit">Send</button>
</form>							
								    </div>
							</div>
							
						</div>
					</div>
				</div>
				
				
<div class="tab-pane" id="tab-email">
					<div class="panel panel-default">
					    <div class="panel-heading">
					    	<h2>Compose Email</h2>&nbsp;&nbsp;&nbsp;
							
					    </div>
						<div class="panel-body">
					      
							<div class="about-area">
								    <div class="table-responsive">
								      
  <form method="post" action="#">
<textarea name="" class="form-control" placeholder="Write e-mail"></textarea>

<br />
<button class="btn btn-primary" type="submit">Submit</button>
</form>							
							
								    </div>
							</div>
							
						</div>
					</div>
				</div>								
				
				
				
				
				
				
				
				
				
				
				
				
				
				<div class="tab-pane <?php
				if($edit == '')
							{
							echo 'active';
							}
							if($edit == 'edit-personal')
							{
							echo 'active';
							}
				?>" id="tab-about">
					<div class="panel panel-default">
					    <div class="panel-heading">
					    	<h2>Personal Details</h2>&nbsp;&nbsp;&nbsp;
							<a href="admin.php?page=<?php echo $convert->encode("student-profile-scruitnizer");?>&&id=<?php echo $convert->encode($id); ?>&&edit=<?php echo $convert->encode("edit-personal"); ?>"><span class="badge badge-primary" >Edit</span></a>
					    </div>
						<div class="panel-body">
					      
							<div class="about-area">
								    <div class="table-responsive">
								      
							<?php
							if($edit == 'edit-personal')
							{
							include("module/scrutnizer/perosal_details_edit.php");
							}
							else
							{
							include("module/scrutnizer/perosal_details.php");
							}
							?>	
							
								    </div>
							</div>
							
						</div>
					</div>
				</div>

				

				<div class="tab-pane 
				<?php
				if($edit == 'academic')
							{
							echo 'active';
							}
				?>" id="tab-photos">
					<div class="panel">
						<div class="panel-heading">
							<h2>Academic Details</h2>&nbsp;
							<a href="admin.php?page=<?php echo $convert->encode("student-profile-scruitnizer");?>&&id=<?php echo $convert->encode($id); ?>&&edit=<?php echo $convert->encode("academic"); ?>"><span class="badge badge-primary">Edit</span></a>
						</div>
						<div class="table-responsive">
	<?php
							
							{
							include("module/scrutnizer/academic_details.php");
							}
							?>	



							</div>
					</div>
				</div>

<div class="tab-pane <?php
				if($edit == 'document')
							{
							echo 'active';
							}
				?>" id="tab-edit">
					<div class="panel">
						<div class="panel-heading">
							<h2>Documents</h2>
						</div>
						<div class="table-responsive">
	<?php
							
							{
							include("module/scrutnizer/documents.php");
							}
							?>	



							</div>
					</div>
				</div>
				
				
				<div class="tab-pane <?php
				if($edit == 'finish')
							{
							echo 'active';
							}
				?>" id="tab-finish">
					<div class="panel">
						<div class="panel-heading">
							<h2>Form Finish</h2>
						</div>
						<div class="table-responsive">
	<?php
							
							{
							include("module/scrutnizer/finish.php");
							}
							?>	



							</div>
					</div>
				</div>
				
				
				
				
							</div><!-- .tab-content -->
		</div><!-- col-sm-8 -->
	</div>
</div>
                            </div> <!-- .container-fluid -->
                        </div>
						

<script type="text/javascript" src="assets/js/jquery-1.10.2.min.js"></script> 							<!-- Load jQuery -->
<script type="text/javascript" src="assets/js/jqueryui-1.10.3.min.js"></script> 							<!-- Load jQueryUI -->
<script type="text/javascript" src="assets/js/bootstrap.min.js"></script> 								<!-- Load Bootstrap -->
<script type="text/javascript" src="assets/js/enquire.min.js"></script> 									<!-- Load Enquire -->

<script type="text/javascript" src="assets/plugins/velocityjs/velocity.min.js"></script>					<!-- Load Velocity for Animated Content -->
<script type="text/javascript" src="assets/plugins/velocityjs/velocity.ui.min.js"></script>

<script type="text/javascript" src="assets/plugins/wijets/wijets.js"></script>     						<!-- Wijet -->

<script type="text/javascript" src="assets/plugins/codeprettifier/prettify.js"></script> 				<!-- Code Prettifier  -->
<script type="text/javascript" src="assets/plugins/bootstrap-switch/bootstrap-switch.js"></script> 		<!-- Swith/Toggle Button -->

<script type="text/javascript" src="assets/plugins/bootstrap-tabdrop/js/bootstrap-tabdrop.js"></script>  <!-- Bootstrap Tabdrop -->

<script type="text/javascript" src="assets/plugins/iCheck/icheck.min.js"></script>     					<!-- iCheck -->

<script type="text/javascript" src="assets/plugins/nanoScroller/js/jquery.nanoscroller.min.js"></script> <!-- nano scroller -->

<script type="text/javascript" src="assets/js/application.js"></script>
<script type="text/javascript" src="assets/demo/demo.js"></script>
<script type="text/javascript" src="assets/demo/demo-switcher.js"></script>

<!-- End loading site level scripts -->
    
    <!-- Load page level scripts-->
    
<script type="text/javascript" src="assets/plugins/form-fseditor/jquery.fseditor-min.js"></script>            			<!-- Fullscreen Editor -->
<script type="text/javascript" src="assets/plugins/bootbox/bootbox.js"></script> 	<!-- Bootbox -->

<script type="text/javascript" src="assets/demo/demo-profile.js"></script>

