<!-- <th>Date Uploaded</th> -->
									<th>Uploaded</th>
									<th>Status</th>
									<th>Rating</th>
									<th>Comments</th>
								
								</tr>
							</thead>
					        <tbody>
					        <?php 
require './application/controllers/LOController.php';
$controller = new LOController();
//$controller = new LEController();
//Either Controller works for both LE and LO for review-list.php
// $username = '******'.$username;
$controller = new LOController();
$user = $this->session->userdata('username');
if (isset($_POST['searchName'])) {
    $subject = null;
    $dateFrom = null;
    $dateTo = null;
    $order = null;
    //find by subject
    if (isset($_POST['subject']) && isset($_POST['subjectCheck'])) {
        $subject = $_POST['subject'];
    }
    //find by date
    if (isset($_POST['dateFrom']) && isset($_POST['dateTo']) && isset($_POST['dateCheck'])) {
        $dateFrom = $_POST['dateFrom'];
        $dateTo = $_POST['dateTo'];
    }
						    <thead>
								<tr>
									<th class="color-code">#</th>
									<th>Name</th>
									<th>Subject</th>
									<!-- <th>Date Uploaded</th> -->
									<th>Uploaded</th>
									<th>Rating</th>
									<th>Comments</th>
									<th>Reviewer</th>
								</tr>
							</thead>
					        <tbody>
						        <?php 
$controller = new LOController();
$LOs = $controller->getLOHistory($name, $dev);
$_SESSION['histlos'] = serialize($LOs);
$LO = current($LOs);
$count = count($LOs);
$i = 0;
while ($LO != NULL) {
    echo '<tr>';
    echo '<td>' . ($i + 1) . '</td>';
    if ($i + 1 != $count) {
        echo '<td><a href="' . $path . $LO->getFilepath() . '">' . $LO->getName() . '</a></td>';
    } else {
        echo '<td>' . $LO->getName() . '</a></td>';
    }
    echo '<td>' . $LO->getSubject() . '</td>';
    // echo '<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'.$LO->getDateUploaded().'</td>';
Example #3
0
 public function plusrevLO()
 {
     require './application/controllers/LOController.php';
     session_start();
     if (isset($_SESSION['lo']) && isset($_POST['counters'])) {
         $lo = unserialize($_SESSION['lo']);
         //$lo = current($los);
         //print_r($lo);
         $rev = $_POST['reviewer'];
         $controller = new LOController();
         $ok = $controller->setRev($rev, $lo);
         redirect('/redirect/admin_view5');
     }
 }
						    <thead>
								<tr>
									<th class="color-code"></th>
									<th>Name</th>
									<th>Subject</th>
									<!-- <th>Date Uploaded</th> -->
									<th>Uploaded</th>
									<th>Rating</th>
									<th>Comments</th>
									<th>Reviewer</th>
								</tr>
							</thead>
					        <tbody>
					        <?php 
//require './application/controllers/LOController.php';
$controller = new LOController();
if (isset($_POST['searchName'])) {
    $subject = null;
    $dateFrom = null;
    $dateTo = null;
    $order = null;
    //find by subject
    if (isset($_POST['subject']) && isset($_POST['subjectCheck'])) {
        $subject = $_POST['subject'];
    }
    //find by date
    if (isset($_POST['dateFrom']) && isset($_POST['dateTo']) && isset($_POST['dateCheck'])) {
        $dateFrom = $_POST['dateFrom'];
        $dateTo = $_POST['dateTo'];
    }
    //order by
img/icon-colorcode.png" alt="color code" /> --></th>
										<th>Name</th>
										<th>Subject</th>
										<!-- <th>Date Uploaded</th> -->
										<th>Uploaded</th>
										<th>Rating</th>
										<th>Comments</th>
										<th>Status</th>
										<th>Reviewer</th>
										<th>Author</th>
									</tr>
								</thead>
						        <tbody>
						        <?php 
require './application/controllers/LOController.php';
$controller = new LOController();
// $username = '******'.$username;
//$user = $this->session->userdata('username');
if (isset($_POST['searchName'])) {
    $subject = null;
    $dateFrom = null;
    $dateTo = null;
    $order = null;
    //find by subject
    if (isset($_POST['subject']) && isset($_POST['subjectCheck'])) {
        $subject = $_POST['subject'];
    }
    //find by date
    if (isset($_POST['dateFrom']) && isset($_POST['dateTo']) && isset($_POST['dateCheck'])) {
        $dateFrom = $_POST['dateFrom'];
        $dateTo = $_POST['dateTo'];