<?php echo $this->fetch('header.html'); ?>
<div class="row">
<div class="span12">
<h1>权限管理</h1>
<ul class="nav nav-tabs">
	<li><a href="<?php echo $this->_var['appadmin']; ?>?m=admin_permission"><?php echo $this->_var['lang']['permission_admin']; ?></a> </li>
  <li>  <a href="<?php echo $this->_var['appadmin']; ?>?m=admin_permission&a=add"><?php echo $this->_var['lang']['permission_add']; ?></a></li>
   <li> <a href="<?php echo $this->_var['appadmin']; ?>?m=admin_permission&a=saveconfig"><?php echo $this->_var['lang']['permission_write']; ?></a></li>
    
</ul>
 

<table  class="table table-bordered">
  <tr>
    <td width="4%" align="center">ID</td>
    <td width="16%" align="center"><?php echo $this->_var['lang']['name']; ?></td>
    <td width="10%" align="center">m</td>
  
    <td width="40%" align="center"><?php echo $this->_var['lang']['permission']; ?></td>
    <td width="20%" align="center"><?php echo $this->_var['lang']['operation']; ?></td>
  </tr>
  <?php $_from = $this->_var['data']; if (!is_array($_from) && !is_object($_from)) { $_from=array();}; $this->push_vars('', 'c');if (count($_from)):
    foreach ($_from AS $this->_var['c']):
?>
  <tr>
    <td align="center"><?php echo $this->_var['c']['id']; ?></td>
    <td align="center"><?php echo $this->_var['c']['title']; ?></td>
    <td align="center"><?php echo $this->_var['c']['m']; ?></td>
     
    <td align="center"><?php echo $this->_var['c']['access']; ?></td>
    <td align="center"> <a href="<?php echo $this->_var['appadmin']; ?>?m=admin_permission&a=add&id=<?php echo $this->_var['c']['id']; ?>"><?php echo $this->_var['lang']['edit']; ?></a> 
  </td>
  </tr>
  <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  
</table>
 
</div>
</div>

<?php echo $this->fetch('footer.html'); ?>