linkage_edit.tpl.php 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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=edit" method="post" id="myform">
  13. <table width="100%" class="table_form contentWrap">
  14. <?php
  15. if(isset($_GET['parentid'])) { ?>
  16. <tr>
  17. <td><?php echo L('linkage_parent_menu')?></td>
  18. <td>
  19. <?php echo form::select_linkage($info['keyid'], 0, 'info[parentid]', 'parentid', L('cat_empty'), $_GET['parentid'])?>
  20. </td>
  21. </tr>
  22. <?php } ?>
  23. <tr>
  24. <td><?php echo L('linkage_name')?></td>
  25. <td>
  26. <input type="text" name="info[name]" value="<?php echo $name?>" class="input-text" id="name" size="30"></input>
  27. </td>
  28. </tr>
  29. <tr>
  30. <td><?php echo L('linkage_desc')?></td>
  31. <td>
  32. <textarea name="info[description]" rows="2" cols="20" id="description" class="inputtext" style="height:45px;width:300px;"><?php echo $description?></textarea>
  33. </td>
  34. </tr>
  35. <?php
  36. if(isset($_GET['parentid'])) { ?>
  37. <input type="hidden" name="info[siteid]" value="<?php echo $this->_get_belong_siteid($keyid)?>" class="input-text" id="name" size="30"></input>
  38. <input type="hidden" name="linkageid" value="<?php echo $linkageid?>">
  39. <input name="dosubmit" type="submit" value="<?php echo L('submit')?>" class="dialog" id="dosubmit">
  40. <?php } else { ?>
  41. <tr>
  42. <td><?php echo L('linkage_menu_style')?></td>
  43. <td>
  44. <input name="info[style]" value="0" type="radio" <?php if($style==0) {?>checked<?php }?>>&nbsp;<?php echo L('linkage_option_style')?>&nbsp;&nbsp;
  45. <input name="info[style]" value="1" type="radio" <?php if($style==1) {?>checked<?php }?>>&nbsp;<?php echo L('linkage_pop_style')?>&nbsp;&nbsp;
  46. <input name="info[style]" value="2" type="radio" <?php if($style==2) {?>checked<?php }?>>&nbsp;<?php echo L('linkage_select_style')?>,<?php echo L('linkage_select_show')?><input type="text" name="info[level]" value="<?php echo $setting['level']?>" class="input-text" id="level" size="5"></input><?php echo L('linkage_select_level')?>
  47. </td>
  48. </tr>
  49. <tr>
  50. <td><?php echo L('site_select')?></td>
  51. <td>
  52. <?php echo form::select($sitelist,$siteid,'name="info[siteid]"',L('all_site'))?><input type="hidden" name="linkageid" value="<?php echo $linkageid?>">
  53. <input type="hidden" name="info[keyid]" value="<?php echo $keyid?>">
  54. <input name="dosubmit" type="submit" value="<?php echo L('submit')?>" class="dialog" id="dosubmit">
  55. </td>
  56. </tr>
  57. <?php } ?>
  58. </table>
  59. </form>
  60. </div>
  61. </div>
  62. </body>
  63. </html>