ak47suk1

Untitled

May 26th, 2011
197
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 the database.';
  25.     } else if ($counter == 1) {
  26.         echo "a course outline in the database.";
  27.     } else {
  28.         echo $counter . " course outline(s) in the database.";
  29.     }
  30.     ?>
  31.  
  32.         <?php
  33.         echo br(1) . anchor('courseoutline/add', 'Create New Course Outline', 'id=wordz');
  34.         ?>
  35.  
  36.         <?php if (!empty($query)) {
  37.             echo br(2); ?>
  38.  
  39.         <table id="courseresult">
  40.             <tr id="tablehead">
  41.                 <td id="result-td">Course Code</td>
  42.                 <td id="result-td">Course Name</td>
  43.                 <td id="result-td">Functions</td>
  44.             </tr>
  45.             <?php foreach ($query as $q): ?>
  46.                 <tr id ="tablecell">
  47.  
  48.                     <td id="result-td" width="15%"><?php echo $q->co_code ?></td>
  49.                     <td id="result-td" width=""><?php echo $q->co_name ?></td>
  50.                     <td id ="result-td" width="25%"><?php ?>
  51.                         <?php echo anchor('courseoutline/read/' . $q->co_id, 'Preview', 'id=buttonz'); ?>
  52.                         <?php echo anchor('courseoutline/edit/' . $q->co_id, 'Edit', 'id=buttonz'); ?>
  53.                         <?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?')")); ?>
  54.                     </td>
  55.  
  56.                 </tr>
  57.             <?php endforeach;
  58.         } ?>
  59.     </table>
  60.  
  61. </p>
  62. <?php
  63. echo br(2);
  64. echo anchor('taxonomy', '<= Back to Main Page', 'id=wordz');
  65. echo anchor('controlpanel/logout', 'Logout', 'id=wordz');
  66. ?> </div>
RAW Paste Data