create_html_show.tpl.php 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <?php
  2. defined('IN_ADMIN') or exit('No permission resources.');
  3. include $this->admin_tpl('header','admin');?>
  4. <div class="pad-10">
  5. <div class="explain-col">
  6. <?php echo L('html_notice');?>
  7. </div>
  8. <div class="bk10"></div>
  9. <div class="table-list">
  10. <table width="100%" cellspacing="0">
  11. <form action="?m=content&c=create_html&a=show" method="post" name="myform">
  12. <input type="hidden" name="dosubmit" value="1">
  13. <input type="hidden" name="type" value="lastinput">
  14. <thead>
  15. <tr>
  16. <th align="center" width="150"><?php echo L('according_model');?></th>
  17. <th align="center" width="386"><?php echo L('select_category_area');?></th>
  18. <th align="center"><?php echo L('select_operate_content');?></th>
  19. </tr>
  20. </thead>
  21. <tbody height="200" class="nHover td-line">
  22. <tr>
  23. <td align="center" rowspan="6">
  24. <?php
  25. $models = getcache('model','commons');
  26. $model_datas = array();
  27. foreach($models as $_k=>$_v) {
  28. if($_v['siteid']!=$this->siteid) continue;
  29. $model_datas[$_v['modelid']] = $_v['name'];
  30. }
  31. echo form::select($model_datas,$modelid,'name="modelid" size="2" style="height:200px;width:130px;" onclick="change_model(this.value)"',L('no_limit_model'));
  32. ?>
  33. </td>
  34. </tr>
  35. <tr>
  36. <td align="center" rowspan="6">
  37. <select name='catids[]' id='catids' multiple="multiple" style="height:200px;" title="<?php echo L('push_ctrl_to_select');?>">
  38. <option value='0' selected><?php echo L('no_limit_category');?></option>
  39. <?php echo $string;?>
  40. </select></td>
  41. <td><font color="red"><?php echo L('every_time');?> <input type="text" name="pagesize" value="10" size="4"> <?php echo L('information_items');?></font></td>
  42. </tr>
  43. <tr>
  44. <td><?php echo L('update_all');?> <input type="button" name="dosubmit1" value=" <?php echo L('submit_start_update');?> " class="button" onclick="myform.type.value='all';myform.submit();"></td>
  45. </tr>
  46. <?php if($modelid) { ?>
  47. <tr>
  48. <td><?php echo L('last_information');?> <input type="text" name="number" value="100" size="5"> <?php echo L('information_items');?><input type="button" class="button" name="dosubmit2" value=" <?php echo L('submit_start_update');?> " onclick="myform.type.value='lastinput';myform.submit();"></td>
  49. </tr>
  50. <tr>
  51. <td><?php echo L('update_time_from');?> <?php echo form::date('fromdate');?> <?php echo L('to');?> <?php echo form::date('todate');?><?php echo L('in_information');?> <input type="button" name="dosubmit3" value=" <?php echo L('submit_start_update');?> " class="button" onclick="myform.type.value='date';myform.submit();"></td>
  52. </tr>
  53. <tr>
  54. <td><?php echo L('update_id_from');?> <input type="text" name="fromid" value="0" size="8"> <?php echo L('to');?> <input type="text" name="toid" size="8"> <?php echo L('in_information');?> <input type="button" class="button" name="dosubmit4" value=" <?php echo L('submit_start_update');?> " onclick="myform.type.value='id';myform.submit();"></td>
  55. </tr>
  56. <?php } ?>
  57. <tr>
  58. <td></td>
  59. </tr>
  60. </tbody>
  61. </form>
  62. </table>
  63. </div>
  64. </div>
  65. <script language="JavaScript">
  66. <!--
  67. window.top.$('#display_center_id').css('display','none');
  68. function change_model(modelid) {
  69. window.location.href='?m=content&c=create_html&a=show&modelid='+modelid+'&pc_hash='+pc_hash;
  70. }
  71. //-->
  72. </script>