Files
OMS/app/logisticsmanager/view/admin/warehouse/syncshop.html
2026-01-04 19:08:31 +08:00

66 lines
2.2 KiB
HTML

<!--
Copyright 2012-2026 ShopeX (https://www.shopex.cn)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<form action="index.php?app=logisticsmanager&ctl=admin_warehouse&act=doSyncShop&finder_id=<{$finder_id}>" method="post" id="form1">
<div class="division">
<table width="100%" cellspacing="0" cellpadding="0" border="0" align="center" >
<tbody>
<tr>
<td colspan="2">
<div style='padding-left:10px;width:600px;float: left;'>
<ul>
<{foreach from=$shopList item=shop}>
<li style='width: 100px;float: left;'>
<input type="checkbox" name="shop_ids[]" value="<{$shop.shop_id}>"> <{$shop.name}>
</li>
<{/foreach}>
</ul>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="table-action">
<{button label="确定" class="btn-primary" type='submit'}> &nbsp; &nbsp;
<{button label="关闭" class="btn-secondary" isCloseDialogBtn="true"}>
</div>
<input type='hidden' id='finder_id' name='finder_id' value='<{$finder_id}>'>
<input type='hidden' name="ids" value='<{$ids}>'>
</form>
<script>
$('form1').store('target',{
onComplete:function(rsp){
rsp = JSON.decode(rsp);
var finder_id = $('finder_id').value;
if (rsp.error)
{
return false;
}
if($('form1').getParent('.dialog')){
$('form1').getParent('.dialog').retrieve('instance').close();
window.finderGroup[finder_id].refresh.delay(400,finderGroup[finder_id]);
}
}
});
</script>