store.html 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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_store_manage}</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.belongs_level}</dt>
  16. <dd>
  17. <select name="grade_id">
  18. <option value="">{$Think.lang.ds_please_choose}...</option>
  19. {notempty name="grade_list"}
  20. {foreach name="grade_list" item="v" key="k" }
  21. <option value="{$v.storegrade_id}" {if condition="$Request.param.grade_id eq $v.storegrade_id"}selected{/if}>{$v.storegrade_name}</option>
  22. {/foreach}
  23. {/notempty}
  24. </select>
  25. </dd>
  26. </dl>
  27. <dl>
  28. <dt>{$Think.lang.store_user}</dt>
  29. <dd><input type="text" value="{$Request.param.owner_and_name}" name="owner_and_name" id="owner_and_name" class="txt"></dd>
  30. </dl>
  31. <dl>
  32. <dt>{$Think.lang.store_type}</dt>
  33. <dd>
  34. <select name="store_state">
  35. <option value="">{$Think.lang.ds_please_choose}...</option>
  36. {notempty name="store_state_list"}
  37. {foreach name="store_state_list" item="v" key="k" }
  38. <option value="{$k}" {if condition="$Request.param.store_state eq $k"}selected{/if}>{$v}</option>
  39. {/foreach}
  40. {/notempty}
  41. </select>
  42. </dd>
  43. </dl>
  44. <dl>
  45. <dt>{$Think.lang.ds_store_name}</dt>
  46. <dd><input type="text" value="{$Request.param.store_name}" name="store_name" id="store_name" class="txt"></dd>
  47. </dl>
  48. <div class="btn_group">
  49. <dd><input type="submit" class="btn" value="{$Think.lang.ds_search}"></dd>
  50. <a href="{:url('Store/store')}" class="btn btn-default" title="{$Think.lang.ds_cancel}">{$Think.lang.ds_cancel}</a>
  51. </div>
  52. </div>
  53. </form>
  54. <table class="ds-default-table">
  55. <thead>
  56. <tr class="thead">
  57. <th class="w48">{$Think.lang.ds_sort}</th>
  58. <th class="w60">{$Think.lang.ds_store_name}</th>
  59. <th class="w60">{$Think.lang.store_id}</th>
  60. <th class="w60">{$Think.lang.store_user_name}</th>
  61. <th class="w60">{$Think.lang.ds_seller_name}</th>
  62. <th class="w60">{$Think.lang.ds_store_money}</th>
  63. <th class="w60">{$Think.lang.ds_store_deposit}</th>
  64. <th class="align-center w36">{$Think.lang.belongs_level}</th>
  65. <th class="align-center w36">{$Think.lang.period_to}</th>
  66. <th class="align-center w36">{$Think.lang.state}</th>
  67. <th class="align-center">{$Think.lang.ds_handle}</th>
  68. </tr>
  69. </thead>
  70. <tbody>
  71. {notempty name="store_list"}
  72. {foreach name="store_list" item="v" key="k" }
  73. <tr class="hover edit {:get_store_state_classname($v)}" id="ds_row_{$v.store_id}">
  74. <td class="sort"><span class="editable" ds_type="inline_edit" fieldname="store_sort" ajax_branch='store_sort' fieldid="{$v.store_id}" datatype="pint" maxvalue="255" title="{$Think.lang.ds_editable}">{$v.store_sort}</span></td>
  75. <td>
  76. <a href="{:url('/home/Store/index',['store_id'=>$v.store_id])}" target="_blank">{$v.store_name}</a>
  77. </td>
  78. <td>{$v.store_id}</td>
  79. <td>{$v.member_name}</td>
  80. <td>{$v.seller_name}</td>
  81. <td class="align-center"><p>{$Think.lang.available}:&nbsp;<strong class="red">{$v.store_avaliable_money}</strong>&nbsp;{$Think.lang.ds_yuan}</p>
  82. <p>{$Think.lang.freeze}:&nbsp;<strong class="red">{$v.store_freeze_money}</strong>&nbsp;{$Think.lang.ds_yuan}</p>
  83. </td>
  84. <td class="align-center">
  85. <p><strong class="red">{$v.store_avaliable_deposit}</strong>&nbsp;{$Think.lang.ds_yuan}</p>
  86. </td>
  87. <td class="align-center"><?php echo isset($search_grade_list[$v['grade_id']])?$search_grade_list[$v['grade_id']]:'';?></td>
  88. <td class="nowarp align-center"><?php echo $v['store_endtime']?date('Y-m-d', $v['store_endtime']):lang('no_limit');?></td>
  89. <td class="align-center w72"><?php echo $v['store_state']?lang('ds_open'):lang('ds_close');?></td>
  90. <td class="align-center w200">
  91. <a href="javascript:dsLayerOpen('{:url('Store/store_joinin_detail',['member_id'=>$v.member_id])}','{$Think.lang.ds_view}-{$v.store_name}')" href="" class="dsui-btn-view"><i class="iconfont"></i>{$Think.lang.ds_view}</a>
  92. <a href="{:url('Store/store_edit',['store_id'=>$v.store_id])}" class="dsui-btn-edit"><i class="iconfont"></i>{$Think.lang.ds_edit}</a>
  93. <a href="javascript:dsLayerOpen('{:url('Store/store_bind_class',['store_id'=>$v.store_id])}','{$Think.lang.ds_edit}{$Think.lang.store_bind_class}')" class="dsui-btn-view"><i class="iconfont"></i>{$Think.lang.store_bind_class}</a>
  94. <?php if (get_store_state_classname($v) != 'open' && cookie('remindRenewal'.$v['store_id']) == null) {?>
  95. <a href="{:url('Store/remind_renewal',['store_id'=>$v.store_id])}" class="dsui-btn-view"><i class="iconfont"></i>{$Think.lang.store_remind_renewal}</a>
  96. <?php }?>
  97. <!--<a href="javascript:dsLayerConfirm('{:url('Store/del',['id'=>$v.store_id,'member_id'=>$v.member_id])}','{$Think.lang.ds_ensure_del}',{$v.store_id})" class="dsui-btn-del"><i class="iconfont"></i>{$Think.lang.ds_del}</a>-->
  98. <a href="javascript:dsLayerOpen('{:url('Storemoney/adjust',['store_id'=>$v.store_id])}','{$Think.lang.adjust_storemoney}-{$v.store_name}')" class="dsui-btn-edit"><i class="iconfont"></i>{$Think.lang.adjust_storemoney}</a>
  99. <a href="javascript:dsLayerOpen('{:url('Storedeposit/adjust',['store_id'=>$v.store_id])}','{$Think.lang.adjust_storedeposit}-{$v.store_name}')" class="dsui-btn-edit"><i class="iconfont"></i>{$Think.lang.adjust_storedeposit}</a>
  100. </td>
  101. </tr>
  102. {/foreach}
  103. {else /}
  104. <tr class="no_data">
  105. <td colspan="15">{$Think.lang.ds_no_record}</td>
  106. </tr>
  107. {/notempty}
  108. </tbody>
  109. </table>
  110. {$show_page|raw}
  111. </div>
  112. <script type="text/javascript" src="{$Think.ADMIN_SITE_ROOT}/js/jquery.edit.js" charset="utf-8"></script>