-
Notifications
You must be signed in to change notification settings - Fork 0
/
home.php
executable file
·174 lines (148 loc) · 8.69 KB
/
home.php
1
<?phpif (!defined(BASE_PATH)) { header(SITE_URL);}$commonObj->autoload("studentFxn");$commonObj->autoload("courseFxn");$commonObj->autoload("masterFxn");$commonObj->autoload("examFxn");$studentFxn = new studentFxn();$courseFxn = new courseFxn();$masterFxn = new masterFxn();$examFxn = new examFxn();?><div id="page-wrapper"> <div class="row"> <div class="col-lg-12"> <?php if (isset($_SESSION['st_id'])) { $pkgData = json_decode($studentFxn->getStudentOptPaper(array("stu_id" => $_SESSION['st_id']))); $stuData = json_decode($studentFxn->getStudentList(array('id' => $_SESSION['st_id'])));// $pprData = json_decode($exmFxn->getPaperOfPkg(array("pkg_id" => $pkg_id)));// $pkg_data = json_decode($exmFxn->getPackageList(array("pkg_id" => $pkg_id))); echo $commonObj->getSuccessMsg(); echo $commonObj->getErrorMsg(); $commonObj->unsetMessage(); } ?> <h3 class="page-header">Dashboard</h3> </div> <!-- /.col-lg-12 --> </div> <!-- /.row --> <div class="row"> <div class="col-lg-8"> <div class="panel panel-default"> <div class="panel-heading"> Quick View </div> <!-- .panel-heading --> <div class="panel-body"> <div class="panel-group" id="accordion"> <div class="panel panel-default"> <div class="panel-heading"> <h4 class="panel-title"> <?php if (isset($_SESSION['st_id'])) { ?> <a data-toggle="collapse" data-parent="#accordion" href="#collapseOne">Hi, <?php echo $stuData[0]->f_name . " " . $stuData[0]->m_name . " " . $stuData[0]->l_name; ?></a> </h4> </div> <div id="collapseOne" class="panel-collapse collapse in"> <div class="panel-body"> <p style="padding:3px;"> <label>My Unique Id: </label> <?php echo $stuData[0]->student_id; ?> <span style="margin-left: 100px;"> <label>Joining Date: </label> <?php echo $stuData[0]->created; ?> </span> </p> <p style="padding:3px;"> <label>My Email: </label> <?php echo $stuData[0]->email; ?> <span style="margin-left: 100px;"> </span> </p> <p style="padding:3px;"> <label>Contact: </label> <?php echo $stuData[0]->mobile; ?> </p> <p style="padding:3px;"> <label>state: </label> <?php echo $stuData[0]->state; ?> </p> <p style="padding:3px;"> <label>City: </label> <?php echo $stuData[0]->city; ?> </p> <p style="padding:3px;"> <label>Pincode: </label> <?php echo $stuData[0]->zipcode; ?> </p> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"> <h4 class="panel-title"> <a data-toggle="collapse" data-parent="#accordion" href="#collapseTwo">My Packages</a> </h4> </div> <div id="collapseTwo" class="panel-collapse collapse"> <div class="panel-body"> <?php foreach ($pkgData as $pkgK => $pkgV) { $pkgName = json_decode($examFxn->getPackageList(array("id" => $pkgV->id))); ?> <ol> <li> <a href="<?php echo SITE_URL . "?page=student_myExamPackage&st_id=" . $empFxn->encode($_SESSION['st_id']); ?>"><?php echo $pkgName[0]->name; ?></a> <ul> <?php $pprSel = json_decode($examFxn->getStudentSelectedPapers(array("st_id" => $_SESSION['st_id'], "pkg_id" => $pkgV->id))); foreach ($pprSel as $pprK => $pprV) { $ppr_name = json_decode($examFxn->getPaperList(array("id" => $pprV->ppr_id))); ?> <li> <a href="<?php echo SITE_URL . "?page=student_myExamPapers&pkg_id=" . $examFxn->encode($pkgV->id); ?>"><?php echo $ppr_name[0]->name; ?></a> </li> <?php } ?> </ul> </li> </ol> <?php } ?> </div> </div> </div> <!-- <div class="panel panel-default"> <div class="panel-heading"> <h4 class="panel-title"> <a data-toggle="collapse" data-parent="#accordion" href="#collapseThree">Collapsible Group Item #3</a> </h4> </div> <div id="collapseThree" class="panel-collapse collapse"> <div class="panel-body"> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. </div> </div> </div> --> </div> </div> <!-- .panel-body --> </div> <?php } ?> </div> </div></div><!--Core Scripts - Include with every page--> <!--<script src="js/jquery-1.10.2.js"></script>--> <!--<script src="js/bootstrap.min.js"></script>--><!-- <script src="<?php echo JS_URL; ?>/plugins/metisMenu/jquery.metisMenu.js"></script> Page-Level Plugin Scripts - Dashboard <script src="<?php echo JS_URL; ?>/plugins/morris/raphael-2.1.0.min.js"></script> <script src="<?php echo JS_URL; ?>/plugins/morris/morris.js"></script> SB Admin Scripts - Include with every page <script src="<?php echo JS_URL; ?>/sb-admin.js"></script> Page-Level Demo Scripts - Dashboard - Use for reference <script src="<?php echo JS_URL; ?>/demo/dashboard-demo.js"></script>-->