Kefu_index.html 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. <table class="search_table" width="100%">
  2. <tr>
  3. <td class="search">
  4. <form action="{:U($module_name.'/index')}" method="get">
  5. <input type="hidden" name="g" value="{$Think.GROUP_NAME}" />
  6. <input type="hidden" name="m" value="{$Think.MODULE_NAME}" />
  7. <input type="hidden" name="a" value="{$Think.ACTION_NAME}" />
  8. <input id="title" type="text" class="input-text" name="keyword" value="{$Think.get.keyword}" />
  9. <select name="searchtype">
  10. <if condition="$fields['name']"><option value="title" <eq name="searchtype" value='name'>selected="selected"</eq>>{:L('name')}</option></if>
  11. <if condition="$fields['title']"><option value="title" <eq name="searchtype" value='title'>selected="selected"</eq>>{:L('title')}</option></if>
  12. <if condition="$fields['username']"><option value="username" <eq name="searchtype" value="username">selected="selected"</eq>>{:L('username')}</option></if>
  13. <if condition="$fields['keywords']"><option value="keywords" <eq name="searchtype" value='keywords' >selected="selected"</eq>>{:L('keywords')}</option></if>
  14. <option value="id" <eq name="searchtype" value='id'>selected="selected"</eq>>ID</option>
  15. </select>
  16. <if condition="$fields['catid']">
  17. <select id="catid" name="catid">
  18. <option value="">{:L('select_category')}</option>
  19. {$select_categorys}
  20. </select>
  21. </if>
  22. <if condition="$fields['typeid']">
  23. <select id="typeid" name="typeid">
  24. <option value="">{:L('select_typeid')}</option>
  25. <volist name="Type" id="row">
  26. <if condition="$row['parentid']==1"><option value="{$row['typeid']}" <eq name="typeid" value="$row['typeid']">selected="selected"</eq>>{$row['name']}</option></if>
  27. </volist>
  28. </select>
  29. </if>
  30. <if condition="$fields['posid']">
  31. <select id="posid" name="posid">
  32. <option value="">{:L('select_posids')}</option>
  33. <volist name="posids" id="row">
  34. <option value="{$row['id']}" <if condition="$posid ==$row['id']">selected="selected"</if>>{$row['name']}</option>
  35. </volist>
  36. </select>
  37. </if>
  38. <select id="order" name="order">
  39. <option value="">{:L('listorder')}</option>
  40. <option value="id" <if condition="$order =='id'">selected="selected"</if>>ID</option>
  41. <option value="hits" <if condition="$order =='hits'">selected="selected"</if>>{:L('hits')}</option>
  42. </select>
  43. <select name="sort">
  44. <option value="asc" <if condition="$sort =='asc'">selected="selected"</if>>{:L('order_by_asc')}</option>
  45. <option value="desc" <if condition="$sort =='desc'">selected="selected"</if>>{:L('order_by_desc')}</option>
  46. </select>
  47. <select name="listRows">
  48. <option value="15" <if condition="$listRows ==5">selected="selected"</if>>15{:L('listRows')}</option>
  49. <option value="20" <if condition="$listRows ==20">selected="selected"</if>>20{:L('listRows')}</option>
  50. <option value="50" <if condition="$listRows ==50">selected="selected"</if>>50{:L('listRows')}</option>
  51. <option value="100" <if condition="$listRows ==100">selected="selected"</if>>100{:L('listRows')}</option>
  52. </select>
  53. <input type="hidden" id="menuid" name="menuid" value="{$_GET['menuid']}"/>
  54. <input type="submit" value="{:L('chaxun')}" class="button" />
  55. <input type="reset" value="{:L('reset')}" class="button" />
  56. </form>
  57. </td>
  58. </tr>
  59. </table>
  60. <form name="myform" id="myform" action="" method="post">
  61. <div class="table-list">
  62. <table width="100%" cellspacing="0">
  63. <thead>
  64. <tr>
  65. <th width="30"><input type="checkbox" value="" id="check_box" onclick="selectall('ids[]');"></th>
  66. <th width="40">{:L('listorder')}</th>
  67. <th width="40">ID</th>
  68. <th width="100" align="left">{:L('name')}</th>
  69. <th width="80" align="left">{:L('type')}</th>
  70. <th width="120" align="left">{:L('skin')}</th>
  71. <th align="left">{:L('code')}</th>
  72. <th width="72">{:L('manage')}</th>
  73. </tr>
  74. </thead>
  75. <tbody>
  76. <volist name="list" id="vo" key="k">
  77. <tr>
  78. <td width="30" align="center"><input class="inputcheckbox " name="ids[]" value="{$vo['id']}" type="checkbox" ></td>
  79. <td width="40" align='center'><input name='listorders[{$vo.id}]' type='text' size='3' value='{$vo.listorder}' class='input-text-c'></td>
  80. <td align="center">{$vo['id']}</td>
  81. <td>{$vo['name']}</td>
  82. <td>{$vo['type']|fieldoption=$fields['type'],###}</td>
  83. <td>{$vo['skin']|fieldoption=$fields['skin'],###}</td>
  84. <td>{$vo['code']|stripcslashes}</td>
  85. <td align="center"><a href="{:U($module_name.'/edit',array(id=>$vo['id']))}">{:L('edit')}</a> | <a href="javascript:confirm_delete('{:U($module_name.'/delete',array(id=>$vo['id']))}')">{:L('delete')}</a></td>
  86. </tr>
  87. </volist>
  88. </tbody>
  89. </table>
  90. <div class="btn"><input type="button" class="button" name="dosubmit" value="<?php echo L('delete')?>" onclick="myform.action='{:U($module_name.'/deleteall')}';return confirm_deleteall()"/> <input type="button" class="button" name="dosubmit" value="<?php echo L('listorder')?>" onclick="myform.action='{:U($module_name.'/listorder')}';$('#myform').submit();" /></div>
  91. </form></div>
  92. <div id="pages" class="page">{$page}</div>
  93. <script>
  94. $("#catid").attr("value",'{$catid}');
  95. function confirm_deleteall(){
  96. art.dialog.confirm("{:L('real_delete')}", function(){ $('#myform').submit();});
  97. }
  98. </script>