This commit is contained in:
2026-09-15 10:26:34 +08:00
commit ecf36afa56
10493 changed files with 1404888 additions and 0 deletions
@@ -0,0 +1,55 @@
<?php
/* @var $block \Magento\Backend\Block\Template */
use Stemcell\ProductImport\Model\Import\TypeId;
?>
<div class="admin__fieldset-wrapper-content" >
<form action="<?= $block->getUrl('stemcell_catalog/price/importPost', ['type_id'=> TypeId::PRICE->value]) ?>" method="post" enctype="multipart/form-data" >
<input name="form_key" type="hidden" value="<?= $block->getFormKey() ?>" >
<div class="admin__field" style="display: flex; gap: 20px;align-items: center; justify-content: center;margin-bottom: 30px">
<label class="admin__field-label" for="stock_import">
<span >上传产品价格文件</span>
</label>
<div class="file-uploader">
<input id="stock_import" required name="stock[import]" type="file" accept=".xlsx,.xls" />
</div>
</div>
<div style="display: flex; gap: 20px;align-items: center; justify-content: center;">
<button class="action- scalable save primary ui-button ui-corner-all ui-widget" >
导入
</button>
</div>
</form>
</div>
<style>
.form-button {
background-color: #eb5202;
border-color: #eb5202;
color: #ffffff;
text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.25);
border: 1px solid;
border-radius: 0;
display: inline-block;
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 1.4rem;
font-weight: 600;
line-height: 1.36;
padding: 0.6rem 1em 0.6rem;
text-align: center;
vertical-align: baseline;
}
.admin__field-label:after {
color: #e22626;
content: '*';
display: inline-block;
font-size: 1.6rem;
font-weight: 500;
line-height: 1;
margin-left: 10px;
margin-top: .2rem;
position: absolute;
z-index: 1;
}
</style>
@@ -0,0 +1,56 @@
<?php
/* @var $block \Magento\Backend\Block\Template */
use Stemcell\ProductImport\Model\Import\TypeId;
?>
<div class="admin__fieldset-wrapper-content" >
<form action="<?= $block->getUrl('stemcell_catalog/stock/importPost', ['type_id'=> TypeId::STOCK->value]); ?>" method="post" enctype="multipart/form-data" >
<input name="form_key" type="hidden" value="<?= $block->getFormKey() ?>" >
<div class="admin__field" style="display: flex; gap: 20px;align-items: center; justify-content: center;margin-bottom: 30px">
<label class="admin__field-label" for="stock_import">
<span >上传产品库存文件</span>
</label>
<div class="file-uploader">
<input id="stock_import" required name="stock[import]" type="file" accept=".xlsx,.xls" />
</div>
</div>
<div style="display: flex; gap: 20px;align-items: center; justify-content: center;">
<button class="action- scalable save primary ui-button ui-corner-all ui-widget" >
导入
</button>
</div>
</form>
</div>
<style>
.form-button {
background-color: #eb5202;
border-color: #eb5202;
color: #ffffff;
text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.25);
border: 1px solid;
border-radius: 0;
display: inline-block;
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 1.4rem;
font-weight: 600;
line-height: 1.36;
padding: 0.6rem 1em 0.6rem;
text-align: center;
vertical-align: baseline;
}
.admin__field-label:after {
color: #e22626;
content: '*';
display: inline-block;
font-size: 1.6rem;
font-weight: 500;
line-height: 1;
margin-left: 10px;
margin-top: .2rem;
position: absolute;
z-index: 1;
}
</style>