Exemplo n.º 1
0
 public static function delete($id)
 {
     $db = new DB();
     $bTools = new BatchTools();
     $result = $bTools->deleteBatches($id);
     if ($result) {
         $result = $db->delete(array($id), "batches");
     }
     return $result;
 }
Exemplo n.º 2
0
                            <div id="featured2">

                                <table id="usertable">
                                    <thead>
                                        <tr>
                                            <th>Id</th>
                                            <th>Display Name</th>
                                            <th>Course</th>
                                            <th>Year</th>
											<th></th>
                                        </tr>
                                    </thead>
                                    <tbody>
									<?php 
$batchTools = new BatchTools();
$batches = $batchTools->getAllBatches();
foreach ($batches as $batch) {
    ?>
                                           <tr>
                                                <td><?php 
    echo $batch->id;
    ?>
</td>
												 <td><?php 
    echo $batch->display_name;
    ?>
</td>
												 <td><?php 
    echo $batch->course;
    ?>