<?php require "control/core/init.php"; $current_url = Cryption::encryt64($url = "http://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']); Session::put('current_url', $current_url); ?> <!DOCTYPE html> <html> <head> <title></title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content=""> <meta name="keywords" content=""> <meta charset="UTF-8"> <!-- CSS --> <link href="css/bootstrap.min.css" rel="stylesheet" media="screen"> <link href="css/calendar.min.css" rel="stylesheet"> <link href="css/media-player.min.css" rel="stylesheet"> <link href="css/form.min.css" rel="stylesheet"> <link href="css/style.min.css" rel="stylesheet"> <!-- CSS font --> <link href="css/icomoon.min.css" rel="stylesheet"> <link href="fonts/font-awesome-4.3.0/css/font-awesome.min.css" rel="stylesheet"> <style type="text/css"> .c-block { margin-bottom: 40px; } </style> </head> <body>
echo "</tr>"; echo "<tr>"; echo "<td>Class</td>"; echo "<td>{$get->class_name}</td>"; echo "</tr>"; echo "<tr>"; echo "<td>Gender</td>"; echo "<td>{$get->stud_gender}</td>"; echo "</tr>"; echo "<tr>"; echo "<td>DOB</td>"; echo "<td>{$get->stud_dob}</td>"; echo "</tr>"; echo "</table>"; echo '<div class="view-more">'; echo '<a class="btn btn-primary" href="view.php?sid=' . Cryption::encryt64(Input::get('detail')) . '&tid=' . Token::generate() . '">View More..</a>'; echo '</div>'; } echo '</div>'; echo '<div class="col-xs-4 pic" style="padding:0px;">'; echo '<a href="img/profile-pics/student/' . $get->dp_name . '" data-rel="shadowbox[album]" class="img-popup" title="' . $get->stud_fname . '">'; echo '<i class="icon-expand"></i>'; echo '<img class="block" src="data:image;base64,' . $get->stud_dp . '" alt="">'; echo '</a>'; echo '</div>'; } else { if (Input::exists() && Input::get('search-person')) { $code = addslashes(Input::get('search-person')); $sql = "SELECT * FROM student_tbl WHERE stud_id LIKE ? OR stud_fname LIKE ? OR stud_lname LIKE ? OR stud_age LIKE ? OR stud_grade LIKE ? OR stud_birthcert LIKE ?"; $results = DB::getInstance()->query($sql, array('%' . $code . '%', '%' . $code . '%', '%' . $code . '%', '%' . $code . '%', '%' . $code . '%', '%' . $code . '%')); $obj = $results->result();