role_edit.tpl.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. defined('IN_ADMIN') or exit('No permission resources.');
  3. $show_validator = true;include $this->admin_tpl('header');?>
  4. <script type="text/javascript">
  5. <!--
  6. $(function(){
  7. $.formValidator.initConfig({autotip:true,formid:"myform",onerror:function(msg){}});
  8. $("#rolename").formValidator({onshow:"<?php echo L('input').L('role_name')?>",onfocus:"<?php echo L('role_name').L('not_empty')?>"}).inputValidator({min:1,max:999,onerror:"<?php echo L('role_name').L('not_empty')?>"});
  9. })
  10. //-->
  11. </script>
  12. <div class="pad_10">
  13. <div class="common-form">
  14. <form name="myform" action="?m=admin&c=role&a=edit" method="post" id="myform">
  15. <input type="hidden" name="roleid" value="<?php echo $roleid?>"></input>
  16. <table width="100%" class="table_form contentWrap">
  17. <tr>
  18. <td><?php echo L('role_name')?></td>
  19. <td><input type="text" name="info[rolename]" value="<?php echo $rolename?>" class="input-text" id="rolename"></input></td>
  20. </tr>
  21. <tr>
  22. <td><?php echo L('role_description')?></td>
  23. <td><textarea name="info[description]" rows="2" cols="20" id="description" class="inputtext" style="height:100px;width:500px;"><?php echo $description?></textarea></td>
  24. </tr>
  25. <tr>
  26. <td><?php echo L('enabled')?></td>
  27. <td><input type="radio" name="info[disabled]" value="0" <?php echo ($disabled=='0')?' checked':''?>> <?php echo L('enable')?> <label><input type="radio" name="info[disabled]" value="1" <?php echo ($disabled=='1')?' checked':''?>><?php echo L('ban')?></td>
  28. </tr>
  29. <tr>
  30. <td><?php echo L('listorder')?></td>
  31. <td><input type="text" name="info[listorder]" size="3" value="<?php echo $listorder?>" class="input-text"></input></td>
  32. </tr>
  33. </table>
  34. <div class="bk15"></div>
  35. <input name="dosubmit" type="submit" value="<?php echo L('submit')?>" class="button">
  36. </form>
  37. </div>
  38. </div>
  39. </body>
  40. </html>