Content_index.html 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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" size="14" 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']==$fields['typeid']['setup']['default']"><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="map[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="map[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" <eq name="order" value="listorder">selected="selected"</eq>>{:L('listorder')}</option>
  45. <option value="{$pkid}" <eq name="order" value="$pkid">selected="selected"</eq>>ID{:L('listorder')}</option>
  46. <if condition="$fields['hits']"><option value="hits" <eq name="order" value="hits">selected="selected"</eq>>{:L('hits')}{:L('listorder')}</option></if>
  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="30"><input type="checkbox" value="" id="check_box" onclick="selectall('ids[]');"></th>
  71. <th width="40">{:L('listorder')}</th>
  72. <th width="40">ID</th>
  73. <th>{:L('title')}</th>
  74. <if condition="$fields['status']"><th width="60">{:L('status')}</th> </if>
  75. <if condition="$fields['hits']"><th width="40">{:L('hits')}</th> </if>
  76. <th width="60">{:L('username')}</th>
  77. <th width="72">{:L('manage')}</th>
  78. </tr>
  79. </thead>
  80. <tbody>
  81. <volist name="list" id="vo" key="k">
  82. <tr>
  83. <td width="30" align="center"><input class="inputcheckbox " name="ids[]" value="{$vo['id']}" type="checkbox" ></td>
  84. <td width="40" align='center'><input name='listorders[{$vo.id}]' type='text' size='3' value='{$vo.listorder}' class='input-text-c'></td>
  85. <td align="center">{$vo['id']}</td>
  86. <td><if condition="$vo['catid']">[<font color="green">{$categorys[$vo['catid']]['catname']}</font>]</if>
  87. {if $module_name=='Guestbook' || $module_name=='Feedback'}{$vo['username']}-{$vo['title']}{else}<a href="{$vo.url}" <if condition="$vo['title_style']!=''">style ="{$vo['title_style']}"</if> target="_blank">{$vo['title']} </a>{/if}
  88. <if condition="$vo['thumb']!=''"><img src="./Public/Images/admin_image.gif"></if>
  89. <if condition="$vo['posid']!=0"><img src="./Public/Images/admin_elite.gif"></if></td>
  90. <if condition="$fields['status']"><td align="center">{if $vo['status']==1}<font color="green">{:L('isshenhe')}</font>{else}<a href="{:U($module_name.'/status',array(id=>$vo['id'],status=>1))}"><font color="red">{:L('noshenhe')}</font></a>{/if}</td></if>
  91. <if condition="$fields['hits']"> <td align="center">{$vo['hits']}</td></if>
  92. <td align="center">{$vo['username']}</td>
  93. <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>
  94. </tr>
  95. </volist>
  96. </tbody>
  97. </table>
  98. <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();" /> <input type="button" class="button" name="dosubmit" value="<?php echo L('status_ok')?>" onclick="myform.action='{:U($module_name.'/statusallok')}';$('#myform').submit();" /> </div>
  99. </form></div>
  100. <div id="pages" class="page">{$page}</div>
  101. <script>
  102. $("#catid").attr("value",'{$catid}');
  103. function confirm_deleteall(){
  104. art.dialog.confirm("{:L('real_delete')}", function(){ $('#myform').submit();});
  105. }
  106. </script>