Link_index.html 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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="status" name="status">
  39. <option value="">{:L('status')}</option>
  40. <option value="0" <if condition="isset($status) && $status ==0">selected="selected"</if>>{:L(noshenhe)}</option>
  41. <option value="1" <if condition="isset($status) && $status ==1">selected="selected"</if>>{:L(isshenhe)}</option>
  42. </select>
  43. <select id="order" name="order">
  44. <option value="listorder" <if condition="$order =='listorder'">selected="selected"</if>>{:L('listorder')}</option>
  45. <option value="id" <if condition="$order =='id'">selected="selected"</if>>ID</option>
  46. <option value="price" <if condition="$order =='price'">selected="selected"</if>>price</option>
  47. </select>
  48. <select name="sort">
  49. <option value="asc" <if condition="$sort =='asc'">selected="selected"</if>>{:L('order_by_asc')}</option>
  50. <option value="desc" <if condition="$sort =='desc'">selected="selected"</if>>{:L('order_by_desc')}</option>
  51. </select>
  52. <select name="listRows">
  53. <option value="15" <if condition="$listRows ==5">selected="selected"</if>>15{:L('listRows')}</option>
  54. <option value="20" <if condition="$listRows ==20">selected="selected"</if>>20{:L('listRows')}</option>
  55. <option value="50" <if condition="$listRows ==50">selected="selected"</if>>50{:L('listRows')}</option>
  56. <option value="100" <if condition="$listRows ==100">selected="selected"</if>>100{:L('listRows')}</option>
  57. </select>
  58. <input type="hidden" id="menuid" name="menuid" value="{$_GET['menuid']}"/>
  59. <input type="submit" value="{:L('chaxun')}" class="button" />
  60. <input type="reset" value="{:L('reset')}" class="button" />
  61. </form>
  62. </td>
  63. </tr>
  64. </table>
  65. <form name="myform" id="myform" action="" method="post">
  66. <div class="table-list">
  67. <table width="100%" cellspacing="0">
  68. <thead>
  69. <tr>
  70. <th width="20"><input type="checkbox" value="" id="check_box" onclick="selectall('ids[]');"></th>
  71. <th width="30">{:L('listorder')}</th>
  72. <th width="40">ID</th>
  73. <th>{:L('name')}</th>
  74. <th align="left">{:L('logo')}</th>
  75. <th width="120">{:L('createtime')}</th>
  76. <th width="82">{:L('manage')}</th>
  77. </tr>
  78. </thead>
  79. <tbody>
  80. <volist name="list" id="vo" key="k">
  81. <tr>
  82. <td width="20" align="center"><input class="inputcheckbox " name="ids[]" value="{$vo['id']}" type="checkbox" ></td>
  83. <td width="30" align='center'><input name='listorders[{$vo.id}]' type='text' size='3' value='{$vo.listorder}' class='input-text-c'></td>
  84. <td align="center">{$vo['id']}</td>
  85. <td><if condition="$vo['typeid']">[<font color="green">{$Type[$vo['typeid']]['name']}</font>]</if>{$vo['name']}</td>
  86. <td><if condition="$vo['logo']"><img src="{$vo['logo']}" height=26></if>&nbsp;</td>
  87. <td align="center">{$vo['createtime']|todate="Y-m-d H:i:s"}</td>
  88. <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>
  89. </tr>
  90. </volist>
  91. </tbody>
  92. </table>
  93. <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>
  94. </form></div>
  95. <div id="pages" class="page">{$page}</div>
  96. <script>
  97. $("#catid").attr("value",'{$catid}');
  98. function confirm_deleteall(){
  99. art.dialog.confirm("{:L('real_delete')}", function(){ $('#myform').submit();});
  100. }
  101. </script>