Advertisement
Guest User

Untitled

a guest
Jun 26th, 2014
20
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.16 KB | None | 0 0
  1.              <table class="table table-hover">
  2.                 <thead>
  3.                 <tr>
  4.                     <th>Path</th>
  5.                     <th>Module</th>
  6.                     <th>Controller</th>
  7.                     <th>Action</th>
  8.                     <th>Access Role</th>
  9.                     <th>Compare Operator</th>
  10.                     <th>Submit</th>
  11.                 </tr>
  12.                 </thead>
  13.                 <?
  14.                 $aRoutes = $this->getValue('aRoutes');
  15.                 if (count($aRoutes) == 0) {
  16.                     ?>
  17.                     <tr>
  18.                         <td colspan="7">No routes found!</td>
  19.                     </tr>
  20.                 <?
  21.                 } else {
  22.                     /**
  23.                      * @var Default_Model_RouteEntity $oRoute
  24.                      */
  25.                     foreach ($aRoutes as $oRoute) {
  26.                         ?>
  27.                         <tbody>
  28.                         <tr>
  29.                             <td><input type="text" class="form-control input-sm" name="path"
  30.                                        value="<?= $oRoute->getPath(); ?>"/></td>
  31.                             <td><input type="text" class="form-control input-sm" name="module"
  32.                                        value="<?= $oRoute->getModule(); ?>"/></td>
  33.                             <td><input type="text" class="form-control input-sm" name="controller"
  34.                                        value="<?= $oRoute->getController(); ?>"/></td>
  35.                             <td><input type="text" class="form-control input-sm" name="action"
  36.                                        value="<?= $oRoute->getAction(); ?>"/></td>
  37.                             <td>
  38.                                 <input type="text" class="form-control input-sm" name="accessRole"
  39.                                        value="<?= $oRoute->getAccessRole(); ?>"/>
  40.                                 <select class="form-control" name="role">
  41.                                     <option></option>
  42.                                     <?
  43.                                     $aRoles = IV_Doctrine_Base::getRoles();
  44.                                     foreach ($aRoles as $sName => $iValue) {
  45.                                         echo '<option value="' . $iValue . '">' . IV_Language_Base::translate($sName, 'en', 'default') . '</option>';
  46.                                     }
  47.                                     ?>
  48.                                 </select></td>
  49.                             <td>
  50.                                 <input type="text" class="form-control input-sm" name="roleCompareOperator"
  51.                                        value="<?= $oRoute->getRoleCompareOperator(); ?>"/>
  52.                             </td>
  53.                             <td>
  54.                                 <input type="hidden" name="id" value="<?= $oRoute->getId(); ?>"/>
  55.                                 <button type="button" class="btn btn-default btn-sm" id="route_update">Edit</button>
  56.  
  57.                             </td>
  58.                         </tr>
  59.                         </tbody>
  60.                     <?
  61.                     }
  62.                 } ?>
  63.             </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement