linkage_add.tpl.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. defined('IN_ADMIN') or exit('No permission resources.');
  3. include $this->admin_tpl('header');?>
  4. <script type="text/javascript">
  5. $(document).ready(function() {
  6. $.formValidator.initConfig({autotip:true,formid:"myform",onerror:function(msg){}});
  7. $("#name").formValidator({onshow:"<?php echo L('input').L('linkage_name')?>",onfocus:"<?php echo L('linkage_name').L('not_empty')?>"}).inputValidator({min:1,max:999,onerror:"<?php echo L('linkage_name').L('not_empty')?>"});
  8. })
  9. </script>
  10. <div class="pad_10">
  11. <div class="common-form">
  12. <form name="myform" action="?m=admin&c=linkage&a=add" method="post" id="myform">
  13. <table width="100%" class="table_form contentWrap">
  14. <tr>
  15. <td><?php echo L('linkage_name')?></td>
  16. <td>
  17. <input type="text" name="info[name]" value="<?php echo $name?>" class="input-text" id="name" size="30"></input>
  18. </td>
  19. </tr>
  20. <tr>
  21. <td><?php echo L('menu_description')?></td>
  22. <td>
  23. <textarea name="info[description]" rows="2" cols="20" id="description" class="inputtext" style="height:45px;width:300px;"><?php echo $description?></textarea>
  24. </td>
  25. </tr>
  26. <tr>
  27. <td><?php echo L('menu_style')?></td>
  28. <td>
  29. <input name="info[style]" value="0" checked="checked" type="radio">&nbsp;<?php echo L('drop_down_style')?>&nbsp;&nbsp;<input name="info[style]" value="1" type="radio">&nbsp;<?php echo L('pop_style')?>
  30. </td>
  31. </tr>
  32. <tr>
  33. <td><?php echo L('sites')?></td>
  34. <td>
  35. <?php echo form::select($sitelist,'','name="info[siteid]"',L('all_sites'))?>
  36. </td>
  37. </tr>
  38. </table>
  39. <div class="bk15"></div>
  40. <input name="dosubmit" type="submit" value="<?php echo L('submit')?>" class="dialog" id="dosubmit">
  41. </form>
  42. </div>
  43. </div>
  44. </body>
  45. </html>