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/LEController.php';
$controller = new LEController();
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
						    <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 LEController();
$LEs = $controller->getLEHistory($name, $dev);
$_SESSION['histles'] = serialize($LEs);
$LE = current($LEs);
$count = count($LEs);
$i = 0;
while ($LE != NULL) {
    echo '<tr>';
    echo '<td>' . ($i + 1) . '</td>';
    if ($i + 1 != $count) {
        echo '<td><a href="' . $path . $LE->getFilepath() . '">' . $LE->getName() . '</a></td>';
    } else {
        echo '<td>' . $LE->getName() . '</a></td>';
    }
    echo '<td>' . $LE->getSubject() . '</td>';
    // echo '<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'.$LE->getDateUploaded().'</td>';
						    <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/LEController.php';
$controller = new LEController();
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
示例#4
0
 public function plusrevLE()
 {
     require './application/controllers/LEController.php';
     session_start();
     if (isset($_SESSION['le']) && isset($_POST['counters'])) {
         $le = unserialize($_SESSION['le']);
         //$lo = current($los);
         //print_r($le);
         $rev = $_POST['reviewer'];
         $controller = new LEController();
         $ok = $controller->setRev($rev, $le);
         redirect('/redirect/admin_view6');
     }
 }