import_program_add.tpl.php 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <?php defined('IN_ADMIN') or exit('No permission resources.');?>
  2. <?php include $this->admin_tpl('header', 'admin');?>
  3. <style>
  4. <!--
  5. #show_funcs_div{position:absolute ;background-color:#fff;border:#D0D0D0 solid 1px; border-top-style:none;display:none}
  6. .show_funcs_div{height:200px;overflow-y:scroll;}
  7. #show_funcs_div ul li{padding:3px 0 3px 5px;}
  8. #show_funcs_div ul li:hover{background-color:#EEEEEE;cursor:hand;}
  9. .funcs_div{background:#fff; width:160px; border:solid #D0D0D0 1px;}
  10. .funcs{border:none;background:none}
  11. -->
  12. </style>
  13. <div id="show_funcs_div" onmouseover="clearh()" onmouseout="hidden_funcs_div_1()">
  14. <ul>
  15. <?php if (isset($spider_funs) && is_array($spider_funs)) foreach ($spider_funs as $k=>$v):?>
  16. <li onclick="insert_txt('<?php echo $k;?>')"><?php echo $v?>(<?php echo $k;?>)</li>
  17. <?php endforeach;?>
  18. </ul>
  19. </div>
  20. <div class="pad-lr-10">
  21. <form name="myform" action="?m=collection&c=node&a=import_program_add&nodeid=<?php if(isset($nodeid)) echo $nodeid?>&type=<?php echo $type?>&ids=<?php echo $ids?>&catid=<?php echo $catid?>" method="post" id="myform">
  22. <fieldset>
  23. <legend><?php echo L('the_new_publication_solutions')?></legend>
  24. <table width="100%" class="table_form">
  25. <tr>
  26. <td width="120"><?php echo L('category')?>:</td>
  27. <td>
  28. <?php echo $cat['catname'];?>
  29. </td>
  30. </tr>
  31. <tr>
  32. <td width="120"><?php echo L('the_withdrawal_of_the_summary')?>:</td>
  33. <td>
  34. <label><input name="add_introduce" type="checkbox" value="1"><?php echo L('if_the_contents_of_intercepted')?></label><input type="text" name="introcude_length" value="200" size="3"><?php echo L('characters_to_a_summary_of_contents')?>
  35. </td>
  36. </tr>
  37. <tr>
  38. <td width="120"><?php echo L('the_withdrawal_of_thumbnails')?>:</td>
  39. <td>
  40. <label><input type='checkbox' name='auto_thumb' value="1"><?php echo L('whether_access_to_the_content_of')?></label><input type="text" name="auto_thumb_no" value="1" size="2" class=""><?php echo L('picture_a_caption_pictures')?>
  41. </td>
  42. </tr>
  43. <tr>
  44. <td width="120"><?php echo L('import_article_state')?>:</td>
  45. <td>
  46. <?php if(!empty($cat['setting']['workflowid'])) {echo form::radio(array('1'=>L('pendingtrial'), '99'=>L('fantaoboys')), '1', 'name="content_status"');} else {echo form::radio(array('99'=>L('fantaoboys')), '99', 'name="content_status"');}?>
  47. </td>
  48. </tr>
  49. </table>
  50. </fieldset>
  51. <div class="bk10"></div>
  52. <fieldset>
  53. <legend><?php echo L('corresponding_labels_and_a_database_ties') ?></legend>
  54. <div class="table-list">
  55. <table width="100%" cellspacing="0">
  56. <thead>
  57. <tr>
  58. <th align="left"><?php echo L('the_original_database_field')?></th>
  59. <th align="left"><?php echo L('explain')?></th>
  60. <th align="left"><?php echo L('label_field__collected_with_the_result_')?></th>
  61. <th align="left"><?php echo L('handler_functions')?></th>
  62. </tr>
  63. </thead>
  64. <tbody>
  65. <?php
  66. foreach($model as $k=>$v) {
  67. if (in_array($v['formtype'], array('catid', 'typeid', 'posids', 'groupid', 'readpoint','template'))) continue;
  68. ?>
  69. <tr>
  70. <td align="left"><?php echo $v['field']?></td>
  71. <td align="left"><?php echo $v['name']?></td>
  72. <td align="left"><input type="hidden" name="model_field[]" value="<?php echo $v['field']?>"><?php echo form::select($node_field, (in_array($v['field'], array('inputtime', 'updatetime')) ? 'time' : $v['field']), 'name="node_field[]"')?></td>
  73. <td align="left"><div class="funcs_div"><input type="text" name="funcs[]" class="funcs"><a href="javascript:void(0)" onclick="clearh();show_funcs(this);" onmouseout="hidden_funcs_div_1()"><img src="<?php echo IMG_PATH?>admin_img/toggle-collapse-dark.png"></a></div></td>
  74. </tr>
  75. <?php
  76. }
  77. ?>
  78. </tbody>
  79. </table>
  80. </fieldset>
  81. <div class="btn">
  82. <input type="submit" class="button" name="dosubmit" value="<?php echo L('submit')?>"/>
  83. </div>
  84. <div id="pages"><?php echo $pages?></div>
  85. </div>
  86. </form>
  87. </div>
  88. <script type="text/javascript">
  89. <!--
  90. var div_obj;
  91. function show_funcs(obj) {
  92. div_obj = $(obj).parent('div');
  93. var pos = $(obj).parent('div').offset();
  94. $('#show_funcs_div').css('left',pos.left+'px').css('top',(pos.top+24)+'px').width($(obj).parent().width()).show();
  95. }
  96. var s = 0;
  97. var h;
  98. function hidden_funcs_div_2() {
  99. s++;
  100. if(s>=5) {
  101. $('#show_funcs_div').hide().css('left','0px').css('top','0px');
  102. clearInterval(h);
  103. s = 0;
  104. }
  105. }
  106. function clearh(){
  107. if(h)clearInterval(h);
  108. }
  109. function hidden_funcs_div_1() {
  110. h = setInterval("hidden_funcs_div_2()", 1);
  111. }
  112. function insert_txt(obj) {
  113. $(div_obj).children('input').val(obj);
  114. }
  115. //-->
  116. </script>
  117. </body>
  118. </html>