ak47suk1

eloki course outline management

May 26th, 2011
282
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. echo anchor('taxonomy', '<= Back to Main Page', 'id=wordz');
  3. echo anchor('controlpanel/logout', 'Logout', 'id=wordz');
  4. ?>
  5.  
  6. <h1>Welcome to E-LOKI Control Panel</h1>
  7. <div id="accordion_member" >
  8.     <?php if (!empty($admin_only)) {
  9.         ?>
  10.  
  11.         <p id="ayat" />
  12.  
  13.         <?php
  14.         $this->load->view('admin_view');
  15.     }
  16.     ?>
  17.  
  18.     <h3 ><a href="#">
  19.             -=[Your Course Outline List]=-</a>
  20.     </h3>    
  21.  
  22.     <p>You have <?php
  23.     if ($counter <= 0) {
  24.         echo 'no course outline in
  25.    the database.';
  26.     } else if ($counter == 1) {
  27.         echo "a course outline in
  28.    the database.";
  29.     } else {
  30.         echo $counter . " course outline(s) in
  31.    the database.";
  32.     }
  33.     ?>
  34.  
  35.         <?php
  36.         echo br(1) . anchor('courseoutline/add', 'Create New Course Outline', 'id=wordz');
  37.         ?>
  38.  
  39.         <?php if (!empty($query)) {
  40.             echo br(2); ?>
  41.  
  42.         <table id="courseresult">
  43.             <tr id="tablehead">
  44.                 <td id="result-td">Course Code</td>
  45.                 <td id="result-td">Course Name</td>
  46.                 <td id="result-td">Functions</td>
  47.             </tr>
  48.             <?php foreach ($query as $q): ?>
  49.                 <tr id ="tablecell">
  50.  
  51.                     <td id="result-td" width="15%"><?php echo $q->co_code ?></td>
  52.                     <td id="result-td" width=""><?php echo $q->co_name ?></td>
  53.                     <td id ="result-td" width="25%"><?php ?>
  54.                         <?php echo anchor('courseoutline/read/' . $q->co_id, 'Preview', 'id=buttonz'); ?>
  55.                         <?php echo anchor('courseoutline/edit/' . $q->co_id, 'Edit', 'id=buttonz'); ?>
  56.                         <?php echo anchor('courseoutline/delete/' . $q->co_id, 'Delete', array('id' => 'buttonz', 'onclick' => "return confirm('Are you sure that you want to delete this course outline?')")); ?>
  57.                     </td>
  58.  
  59.                 </tr>
  60.             <?php endforeach;
  61.         } ?>
  62.     </table>
  63.  
  64. </p>
  65. <?php
  66. echo br(2);
  67. echo anchor('taxonomy', '<= Back to Main Page', 'id=wordz');
  68. echo anchor('controlpanel/logout', 'Logout', 'id=wordz');
  69. ?> </div>
RAW Paste Data