You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pdd-order-api/app/views/widget/goods/detect_search_nav.php

110 lines
5.9 KiB
PHP

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<div class="modal fade" id="J_chooseGoodsModal" tabindex="-1" role="dialog" aria-labelledby="J_chooseGoodsModal">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content bg-white">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<h4 class="modal-title J_chooseTitle">选择商品</h4>
</div>
<div class="modal-body">
<?php echo ZcHtml::beginForm(Zc::url(RouteConst::goodsBatchImport), 'get', array('id' => 'J_searchChooseGoodsFilter'));?>
<div class="clearfix bg-gray pd_10 form-inline">
<?php
$goodsStatusArray = array(
'ALL' => '全部',
BizConst::goodsOnline => '在售',
BizConst::goodsOffline => '待售',
)
?>
<?php echo ZcHtml::dropDownList('isOnsale', 'ALL', $goodsStatusArray, array('class' => 'form-control input-sm J_filter'));?>
<?php echo ZcHtml::input('text', 'keyword', '', array('class' => 'form-control input-sm inline span4 text-left J_filter', 'placeholder' => '标题、商品ID'));?>
<?php echo ZcHtml::hiddenInput('tab', 'choose', array('id' => 'J_curretChooseTab'));?>
<?php echo ZcHtml::hiddenInput('id', '#J_searchChooseSkuTabPane', array('id' => 'J_curretChooseId'));?>
<?php echo ZcHtml::hiddenInput('operateType', '', array('class' => 'J_operateType')); ?>
<button type="button" class="btn btn-sm btn-primary" id="J_searchGoodsListBtn">搜索商品</button>
</div>
<div class="m-t">
<ul class="nav nav-tabs J_chooseGoodsTab" role="tablist">
<li role="presentation" class="active">
<a href="#J_searchChooseSkuTabPane" role="tab" data-toggle="tab" aria-expanded="true" data-tab="choose">选择商品</a>
</li>
<li role="presentation">
<a href="#J_viewChoseSkusTabPane" role="tab" data-toggle="tab" aria-expanded="false" data-tab="view">已选择 <span class="badge J_choseGoodsCount">0</span></a>
</li>
</ul>
<div class="tab-content bg-white">
<div id="J_searchChooseSkuTabPane" class="tab-pane tab-pane fade in active">
</div>
<div id="J_viewChoseSkusTabPane" class="tab-pane fade">
</div>
</div>
</div>
<?php echo ZcHtml::endForm();?>
</div>
<div class="modal-footer text-right pd_10">
<button type="button" class="btn btn-primary" data-dismiss="modal" aria-label="Close">确定</button>
</div>
</div>
</div>
</div>
<!-- Form Name -->
<div>
<ul class="im-tab nav nav-tabs" id="J_batchTabs">
<?php if (!$isOnlyAllowImportBatchType) { ?>
<li class="span2 text-center J_selectChooseType <?php echo 'active'; ?>" data-type="<?php echo BatchConst::batchChooseTypeRange?>">
<a href="javascript:void(0)">按范围检测</a>
</li>
<li class="span2 text-center J_selectChooseType" data-type="<?php echo BatchConst::batchChooseTypeGoods?>">
<a href="javascript:void(0)">按商品检测</a>
</li>
<li class="span2 text-center J_selectChooseType" data-type="<?php echo BatchConst::batchChooseTypeGoodsIds?>">
<a href="javascript:void(0)">按商品ID检测</a>
</li>
<?php } ?>
<li class="span2 text-center J_selectChooseType" data-type="<?php echo BatchConst::batchChooseTypeImport?>">
<a href="javascript:void(0)">按导入内容检测</a>
</li>
</ul>
<div class="J_selectGoodsConditionBox tab-content mb_10 bg-white" style="display:none;" data-type="<?php echo BatchConst::batchChooseTypeGoods?>">
<div class="center-block span2">
<button type="button" class="btn btn-block btn-info J_chooseGoodsBtn" data-operate-type="addGoodsBatch">选择商品 <span class="badge J_choseAddGoodsCount">0</span> 个</button>
</div>
</div>
<div class="J_selectGoodsConditionBox tab-content mb_10 bg-white" style="display:none;" data-type="<?php echo BatchConst::batchChooseTypeGoodsIds?>">
<div class="row">
<span class="col-md-2 text-right" style="padding-top:2px;padding-right: 0px;">输入商品编码:&nbsp;&nbsp;</span>
<div class="col-md-10">
<textarea id="J_inputGoodsIds" name="inputGoodsIds" placeholder="多个商品编号用英文逗号(,)隔开,最多可输入<?php echo BatchConst::inputGoodsIdsMaxCount; ?>个" rows="5" class="form-contro" maxlength="100000" style="width: 90%;"></textarea>
</div>
</div>
</div>
<div class="J_selectGoodsConditionBox tab-content mb_10 bg-white" style="display:none;" data-type="<?php echo BatchConst::batchChooseTypeItemNums?>">
<div class="row">
<span class="col-md-2 text-right" style="padding-top:2px;padding-right: 0px;">输入货号:&nbsp;&nbsp;</span>
<div class="col-md-10">
<textarea id="J_inputItemNums" placeholder="多个货号用英文逗号(,)隔开,最多可输入<?php echo BatchConst::inputItemNumsMaxCount; ?>个。若货号中有中英文逗号,请使用其他检测方式" rows="5" class="form-contro" maxlength="100000" style="width: 90%;"></textarea>
</div>
</div>
</div>
<div class="J_selectGoodsConditionBox tab-content bg-white" style="<?php echo $isOnlyAllowImportBatchType ? 'display:block;' : 'display:none;'; ?>" data-type="<?php echo BatchConst::batchChooseTypeImport?>">
<div class="clearfix" style="width:300px;margin:0 auto;padding:60px 0;">
<?php echo ZcHtmlHelper::drawForm('download', Zc::url(RouteConst::goodsDetectDownloadCsv), 'post', 'class="J_downloadItemNumForm col-md-5" style="width:120px;"')?>
<button class="btn btn-primary" type="submit"><span class="glyphicon glyphicon-download"></span>下载模板</button>
<?php echo ZcHtml::endForm();?>
<div class="col-md-5 thumbnail-upload-box">
<input id="J_uploadGoodsFile" class="thumbnail-upload-bg-input" name="uploadGoodsFile" type="file" action="<?php echo RouteConst::goodsDetectProcessImportFile?>">
<button class="btn btn-primary" type="button"><span class="glyphicon glyphicon-upload"></span>上传模板</button>
<span id="J_importFileName"></span>
</div>
</div>
</div>
</div>