position_item_manage.tpl.php 2.4 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. <!--
  6. $(function(){
  7. $.formValidator.initConfig({autotip:true,formid:"myform",onerror:function(msg){}});
  8. $("#title").formValidator({onshow:"<?php echo L('input').L('posid_title')?>",onfocus:"<?php echo L('posid_title').L('not_empty')?>"}).inputValidator({min:1,max:999,onerror:"<?php echo L('posid_title').L('not_empty')?>"});
  9. $("#url").formValidator({onshow:"<?php echo L('input').L('posid_url')?>",onfocus:"<?php echo L('posid_url').L('not_empty')?>"}).inputValidator({min:1,max:999,onerror:"<?php echo L('posid_url').L('not_empty')?>"});
  10. })
  11. //-->
  12. </script>
  13. <div class="pad_10">
  14. <div class="common-form">
  15. <form name="myform" action="?m=admin&c=position&a=public_item_manage" method="post" id="myform">
  16. <input type="hidden" name="posid" value="<?php echo $posid?>"></input>
  17. <input type="hidden" name="modelid" value="<?php echo $modelid?>"></input>
  18. <input type="hidden" name="id" value="<?php echo $id?>"></input>
  19. <table width="100%" class="table_form">
  20. <tr>
  21. <td width="100"><?php echo L('posid_title')?></td>
  22. <td><input type="text" name="info[title]" class="input-text" value="<?php echo $title?>" id="title" size="40"></input></td>
  23. </tr>
  24. <tr>
  25. <td><?php echo L('posid_thumb')?></td>
  26. <td><?php echo form::images('info[thumb]','thumb',$thumb,'content')?> </td>
  27. </tr>
  28. <tr>
  29. <td><?php echo L('posid_inputtime')?></td>
  30. <td><?php echo form::date('info[inputtime]', date('Y-m-d h:i:s',$inputtime), 1)?></td>
  31. </tr>
  32. <tr>
  33. <td><?php echo L('posid_desc')?></td>
  34. <td>
  35. <textarea name="info[description]" rows="2" cols="20" id="description" class="inputtext" style="height:100px;width:300px;"><?php echo $description?></textarea>
  36. </td>
  37. </tr>
  38. <tr>
  39. <td><?php echo L('posid_syn')?></td>
  40. <td>
  41. <input name="synedit" value="0" type="radio" <?php echo $synedit==0 ? 'checked="checked"' : ''?>> <?php echo L('enable')?><input name="synedit" value="1" type="radio" <?php echo $synedit==1 ? 'checked="checked"' : ''?>> <?php echo L('close')?>
  42. </td>
  43. </tr>
  44. </table>
  45. <div class="bk15"></div>
  46. <input name="dosubmit" type="submit" value="<?php echo L('submit')?>" class="dialog" id="dosubmit">
  47. </form>
  48. </div>
  49. </div>
  50. </body>
  51. </html>
  52. <script type="text/javascript">
  53. function category_load(obj)
  54. {
  55. var modelid = $(obj).attr('value');
  56. $.get('?m=admin&c=position&a=public_category_load&modelid='+modelid,function(data){
  57. $('#load_catid').html(data);
  58. });
  59. }
  60. </script>