include 'headerScript.php'; ?> </head> <body> <?php include "header.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/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');
?> </head> <body> <?php include "header.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_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');
echo "Full name doesn't exist"; } 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));
<?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');
<br> <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 {
<title>User Dashboard</title> <?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'];
?> </head> <body> <?php include "header.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');
<?php /** * Created by PhpStorm. * User: lasith-niro * Date: 17/10/15 * Time: 12:21 */ require_once 'core/init.php'; require 'Files/accessFile.php'; $user = new User(); $fileObject = new accessFile(); $notify = new Notification(); if (!$user->isLoggedIn()) { Redirect::to('index.php'); } $notifyArray = $fileObject->read_newLine('Files/notificationTEXT'); if (Input::exists()) { if (Token::check(Input::get('token'))) { $validate = new Validate(); $validation = $validate->check($_POST, array('username' => array('required' => true), 'msgID' => array('required' => true))); if ($validation->passed()) { //Redirect::to('payForOtherSuccess.php'); ////Checking if username exists or not//// //$userId = $user->data()->id; $username = Input::get('username'); $msgCode = Input::get('msgID'); if (!$username == null) { $user2 = new User(); if ($user->find($username)) { //get user id
<?php include "header.php"; ?> <div class="backgroundImg container-fluid"> <?php include "studentSidebar.php"; ?> <br> <div class="jumbotron col-sm-6 col-sm-offset-1"> <h3><strong>Repeat Exam Payment</strong></h3> <?php //echo "The 2 digit representation of current month with leading zero is: " . date("m") . '<br />'; $encryptObject = new encrypt(); $tra = new Transaction(); $fileObject = new accessFile(); $dataArray = $fileObject->read('Files/data_repeatExam'); $urlArray = $fileObject->read_newLine('Files/URLs'); $user = new User(); $oneAmount = $dataArray[0]; $time = $_SESSION['num']; $amount = $oneAmount * $time; //echo $amount; 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) {
* Time: 11:43 PM */ require_once 'core/init.php'; require_once 'fpdf/fpdf.php'; require 'Files/accessFile.php'; //require_once 'qr/qrcode.php'; ?> <!DOCTYPE html> <html lang="en"> <head> <title>Admission | Card</title> </head> </html> <?php $user = new User(); $fObject = new accessFile(); //$qr = new qrcode(); //$qr->link("http://www.easypaysl.com"); //$file = $qr->get_image(); //$qr->save_image($file,'images/QR1.png'); $inFile = $fObject->read('Files/admissionActivate'); $issuedDate = $inFile[0]; $indexNo = $user->data()->indexNumber; //$sql3="SELECT name_full,reg_no,years,semester,cs_is from u_student WHERE index_no=$indexNo "; $details = DB::getInstance()->get2('u_student', array('index_no', '=', $indexNo)); if (!$details->count()) { echo 'No Records'; } else { foreach ($details->results() as $stu) { $name = $stu->name_full; $reg = $stu->reg_no;
?> </head> <body> <?php include "header.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_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');
include "studentSidebar.php"; ?> <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];