role_add.tpl.php 1.5 KB

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