index.html 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. {include file="public/header" /}
  2. <div class="page">
  3. <div class="fixed-bar">
  4. <div class="item-title">
  5. <div class="subject">
  6. <h3>{$Think.lang.ds_express}</h3>
  7. <h5></h5>
  8. </div>
  9. {include file="public/admin_items" /}
  10. </div>
  11. </div>
  12. <form method="get" name="formSearch" id="formSearch">
  13. <div class="ds-search-form">
  14. <dl>
  15. <dt>{$Think.lang.express_name}</dt>
  16. <dd><input class="txt" name="express_name" id="express_name" value="{$Request.param.express_name}" type="text"></dd>
  17. </dl>
  18. <dl>
  19. <dt>{$Think.lang.express_letter}</dt>
  20. <dd>
  21. <select name="express_letter" >
  22. <option value="">{$Think.lang.ds_all}</option>
  23. <?php foreach (range('A','Z') as $v){?>
  24. <option {if $Request.param.express_letter eq $v}selected='selected'{/if} value="<?php echo $v;?>"><?php echo $v;?></option>
  25. <?php }?>
  26. </select>
  27. </dd>
  28. </dl>
  29. <div class="btn_group">
  30. <a href="javascript:document.formSearch.submit();" class="btn " title="{$Think.lang.ds_query}">{$Think.lang.ds_query}</a>
  31. <a class="btn" href="{:url('Express/index')}" title="{$Think.lang.ds_cancel_search}"><span>{$Think.lang.ds_cancel_search}</span></a>
  32. </div>
  33. </div>
  34. </form>
  35. <table class="ds-default-table">
  36. <thead>
  37. <tr>
  38. <th></th>
  39. <th>{$Think.lang.express_name}</th>
  40. <th>{$Think.lang.express_letter}</th>
  41. <th>{$Think.lang.express_url}</th>
  42. <th>{$Think.lang.express_order}</th>
  43. <th>{$Think.lang.ds_state}</th>
  44. <th>{$Think.lang.ds_handle}</th>
  45. </tr>
  46. </thead>
  47. <tbody>
  48. {notempty name="express_list"}
  49. {foreach name="express_list" item="v"}
  50. <tr>
  51. <td><input value="{$v.express_id}" class="checkitem" type="checkbox" name="del_express_id[]"></td>
  52. <td>{$v.express_name}</td>
  53. <td>{$v.express_letter}</td>
  54. <td>{$v.express_url}</td>
  55. <td class="align-center yes-onoff">
  56. {if $v.express_order == 1}
  57. <a href="JavaScript:void(0);" class=" enabled" ajax_branch='order' ds_type="inline_edit" fieldname="express_order" fieldid="{$v.express_id}" fieldvalue="1" title="{$Think.lang.ds_editable}"><img src="{$Think.ADMIN_SITE_ROOT}/images/treetable/transparent.gif"></a>
  58. {else /}
  59. <a href="JavaScript:void(0);" class=" disabled" ajax_branch='order' ds_type="inline_edit" fieldname="express_order" fieldid="{$v.express_id}" fieldvalue="0" title="{$Think.lang.ds_editable}"><img src="{$Think.ADMIN_SITE_ROOT}/images/treetable/transparent.gif"></a>
  60. {/if}</td>
  61. <td class="align-center yes-onoff">
  62. {if $v.express_state == 0}
  63. <a href="JavaScript:void(0);" class=" disabled" ajax_branch='state' ds_type="inline_edit" fieldname="express_state" fieldid="{$v.express_id}" fieldvalue="0" title="{$Think.lang.ds_editable}"><img src="{$Think.ADMIN_SITE_ROOT}/images/treetable/transparent.gif"></a>
  64. {else /}
  65. <a href="JavaScript:void(0);" class=" enabled" ajax_branch='state' ds_type="inline_edit" fieldname="express_state" fieldid="{$v.express_id}" fieldvalue="1" title="{$Think.lang.ds_editable}"><img src="{$Think.ADMIN_SITE_ROOT}/images/treetable/transparent.gif"></a>
  66. {/if}</td>
  67. <td>
  68. <a href="javascript:dsLayerOpen('{:url('Express/edit',['express_id'=>$v.express_id])}','{$Think.lang.ds_edit}-{$v.express_name}')" class="dsui-btn-edit"><i class="iconfont"></i>{$Think.lang.ds_edit}</a>
  69. <a href="javascript:dsLayerConfirm('{:url('Express/del',['express_id'=>$v.express_id])}','{$Think.lang.ds_ensure_del}')" class="dsui-btn-del"><i class="iconfont"></i>{$Think.lang.ds_del}</a>
  70. </td>
  71. </tr>
  72. {/foreach}
  73. {else /}
  74. <tr class="no_data">
  75. <td colspan="20">{$Think.lang.no_record}</td>
  76. </tr>
  77. {/notempty}
  78. </tbody>
  79. <tfoot>
  80. {notempty name="express_list"}
  81. <tr colspan="15" class="tfoot">
  82. <td><input type="checkbox" class="checkall" id="checkallBottom"></td>
  83. <td colspan="16">
  84. <label for="checkallBottom">{$Think.lang.ds_select_all}</label>
  85. &nbsp;&nbsp;<a href="JavaScript:void(0);" class="btn btn-small" onclick="submit_delete_batch()"><span>{$Think.lang.ds_del}</span></a>
  86. </td>
  87. </tr>
  88. {/notempty}
  89. </tfoot>
  90. </table>
  91. {$show_page|raw}
  92. </div>
  93. <script type="text/javascript" src="{$Think.ADMIN_SITE_ROOT}/js/jquery.edit.js" charset="utf-8"></script>
  94. <script type="text/javascript">
  95. function submit_delete(ids_str){
  96. _uri = ADMINSITEURL+"/Express/del.html?express_id=" + ids_str;
  97. dsLayerConfirm(_uri,'{$Think.lang.ds_ensure_del}');
  98. }
  99. </script>