} else { $res2 = $sql2->results()[0]; $name_ini = $res2->name_initial; $full_name = $res2->name_full; } ?> <br> <div class="jumbotron col-sm-6 col-sm-offset-1"> <div> <h3><strong>Repeat Exam Form</strong></h3> </div> <?php $tra = new Transaction(); $fileObject = new accessFile(); $dataArray = $fileObject->read('Files/data_repeatExam'); if (!$user->isLoggedIn()) { Redirect::to('index.php'); } $prefix = 'easyID_'; $lastID = (int) $tra->lastID(); $newID = $lastID + 1; $transactionID = $tra->encodeEasyID($prefix, $newID); //echo $transactionID . '<br />'; $_SESSION['tId'] = $transactionID; $date1 = strtotime($dataArray[1]); $date2 = time(); $dayLimit = $date1 - $date2; $dayLimit = floor($dayLimit / (60 * 60 * 24)); $filledData = DB::getInstance()->query2('SELECT aca_year,aca_sem,assignments,result1,result2,result3 FROM results WHERE index_no=? AND sub_code=?', array($indexNo, $tmp_sub)); $semDisplay = '';
?> <div class="backgroundImg container-fluid"> <?php include 'adminSidebar.php'; ?> <br> <div class="jumbotron col-sm-5 col-sm-offset-1"> <?php $user = new User(); $fObject = new accessFile(); if (!$user->isLoggedIn()) { Redirect::to('index.php'); } //check for admin if ($user->hasPermission('admin')) { $inFile = $fObject->read('Files/admissionActivate'); $inDate1 = $inFile[0]; $inDate2 = $inFile[1]; if (Input::exists()) { if (Token::check(Input::get('token'))) { $newDate = Input::get('date1'); $newAmount = Input::get('date2'); $outData = $newDate . " " . $newAmount; $fObject->write('Files/admissionActivate', $outData); Redirect::to('edit_admissionActivation.php'); //refresh the page } } ?> <h3><strong>Update Admission Details</strong></h3> <form action="" method="post">
<div class="jumbotron col-sm-6 col-sm-offset-1"> <h3><strong>UCSC Registration</strong></h3> <?php //payfor other person check if (isset($_SESSION['p4o']) && $_SESSION['p4o'] == 1) { echo "<div class='text text-info'><strong>You are paying for " . $_SESSION['payeeName'] . ". </strong><button class='btn btn-default btn-xs'><a href='payForOtherRemove.php' title='Click here to remove other person.'>I have changed my mind</a></button></div> "; } ?> <div class="gap"> <span class="redColor"><strong>* This will not available for undergraduates who already registered with UCSC.</strong></span> <?php $encryptObject = new encrypt(); $tra = new Transaction(); $fileObject = new accessFile(); $dataArray = $fileObject->read('Files/data_UCSCregistration'); $urlArray = $fileObject->read_newLine('Files/URLs'); $user = new User(); $amount = $dataArray[0]; if (!$user->isLoggedIn()) { Redirect::to('index.php'); } $date1 = strtotime($dataArray[1]); $date2 = time(); $dayLimit = $date1 - $date2; $dayLimit = floor($dayLimit / (60 * 60 * 24)); if ($dayLimit < 0) { // echo "payment is closed!"; echo "<div class='alert alert-danger'>Payment is closed.</div>"; } else { if ($user->data()->year == 1) {
?> <div class="backgroundImg container-fluid"> <?php include "adminSidebar.php"; ?> <br> <div class="jumbotron col-sm-5 col-sm-offset-1"> <?php $user = new User(); $fObject = new accessFile(); if (!$user->isLoggedIn()) { Redirect::to('index.php'); } //check for admin if ($user->hasPermission('admin')) { $inFile = $fObject->read('Files/data_newAcaYear'); $inAmount = $inFile[0]; $inData = $inFile[1]; if (Input::exists()) { if (Token::check(Input::get('token'))) { $newDate = Input::get('date'); $newAmount = Input::get('amount'); $outData = $newAmount . " " . $newDate; $fObject->write('Files/data_newAcaYear', $outData); Redirect::to('edit_newAcaYear.php'); //refresh the page } } ?> <form action="" method="post">
<?php /** * Created by PhpStorm. * User: Lasi * Date: 12/31/15 * Time: 11:51 PM */ require_once 'core/init.php'; require 'SMS/sms.php'; require 'Files/accessFile.php'; $notification = new smsNotification(); $file = new accessFile(); $randomValue = rand(1000, 9999); $_SESSION['rSend'] = $randomValue; $detailArray = $file->read('Files/RouterPhone'); $messageArray = $file->read_newLine('Files/messages'); if (!isset($_POST['sending'])) { $pNum = $_SESSION['phone']; $to = '94' . substr($pNum, 1, 9); $notification->send($detailArray[0], $to, $messageArray[2] . " " . $randomValue, $detailArray[1]); } $_SESSION['s3'] = 1; //to check verification sended or not Redirect::to('forgetpassCheckPoint.php');
?> <div class="backgroundImg container-fluid"> <?php include "adminSidebar.php"; ?> <br> <div class="jumbotron col-sm-5 col-sm-offset-1"> <?php $user = new User(); $fObject = new accessFile(); if (!$user->isLoggedIn()) { Redirect::to('index.php'); } //check for admin if ($user->hasPermission('admin')) { $inFile = $fObject->read('Files/data_repeatExam'); $inAmount = $inFile[0]; $inData = $inFile[1]; if (Input::exists()) { if (Token::check(Input::get('token'))) { $newDate = Input::get('date'); $newAmount = Input::get('amount'); $outData = $newAmount . " " . $newDate; $fObject->write('Files/data_repeatExam', $outData); Redirect::to('edit_repeatExam.php'); } } ?> <form action="" method="post"> <h3><strong>Update Repeat Exam</strong></h3>
<?php include 'headerScript.php'; ?> </head> <body> <div id="wrapper"> <?php include "header.php"; ?> </div> <div class="backgroundImg container-fluid"> <?php include "studentSidebar.php"; $fileObject = new accessFile(); $dataArray = $fileObject->read('Files/admissionActivate'); $user = new User(); $startDate = $dataArray[0]; $endDate = $dataArray[1]; date_default_timezone_set("Asia/Colombo"); $curDate = date("Y-m-d"); ?> <!-- /. NAV SIDE --> <div class="container col-sm-9 " id="page-wrapper" > <div class="row"> <div class="col-sm-12"> <div class="col-sm-8"> <h2><strong>Student Dashboard</strong></h2> <h5>Welcome <?php echo $_SESSION['fname'] . " " . $_SESSION['lname']; ?>
?> <div class="backgroundImg container-fluid"> <?php include "adminSidebar.php"; ?> <br> <div class="jumbotron col-sm-5 col-sm-offset-1"> <?php $user = new User(); $fObject = new accessFile(); if (!$user->isLoggedIn()) { Redirect::to('index.php'); } //check for admin if ($user->hasPermission('admin')) { $inFile = $fObject->read('Files/data_UCSCregistration'); $inAmount = $inFile[0]; $inData = $inFile[1]; if (Input::exists()) { if (Token::check(Input::get('token'))) { $newDate = Input::get('date'); $newAmount = Input::get('amount'); $outData = $newAmount . " " . $newDate; $fObject->write('Files/data_UCSCregistration', $outData); Redirect::to('edit_UCSCregistration.php'); } } ?> <form action="" method="post"> <h3><strong>Update UCSC Registration</strong></h3>
?> <br> <div class="jumbotron col-sm-6 col-sm-offset-1"> <h3><strong>Registration For New Academic Year</strong></h3> <?php //payfor other person check if (isset($_SESSION['p4o']) && $_SESSION['p4o'] == 1) { echo "<div class='text text-info'><strong>You are paying for " . $_SESSION['payeeName'] . ". </strong><button class='btn btn-default btn-xs'><a href='payForOtherRemove.php' title='Click here to remove other person.'>I have changed my mind</a></button></div> "; } ?> <div class="gap"> <?php $encryptObject = new encrypt(); $tra = new Transaction(); $fileObject = new accessFile(); $dataArray = $fileObject->read('Files/data_newAcaYear'); $urlObject = $fileObject->read_newLine('Files/URLs'); $user = new User(); $amount = $dataArray[0]; if (!$user->isLoggedIn()) { Redirect::to('index.php'); } $prefix = 'easyID_'; $lastID = (int) $tra->lastID(); $newID = $lastID + 1; $transactionID = $tra->encodeEasyID($prefix, $newID); //echo $transactionID . '<br />'; $merchantCode = 'TESTMERCHANT'; $transactionAmount = $amount; $returnURL = $urlObject[0]; $Invoice = $encryptObject->encode($merchantCode, $transactionID, $transactionAmount, $returnURL);