Commit adb2d534 authored by platyhouse's avatar platyhouse

- encrypted

parent 92e98cd9
...@@ -49,8 +49,10 @@ namespace platyFramework; ...@@ -49,8 +49,10 @@ namespace platyFramework;
<?= $form->getSelect("오늘 출발 노출 여부", "isTodayDelivery", ["노출" => 1, "비노출" => 0]) ?> <?= $form->getSelect("오늘 출발 노출 여부", "isTodayDelivery", ["노출" => 1, "비노출" => 0]) ?>
<?= $form->getSelect("홈 노출 여부", "isHomeVisible", ["노출" => 1, "비노출" => 0]) ?> <?= $form->getSelect("홈 노출 여부", "isHomeVisible", ["노출" => 1, "비노출" => 0]) ?>
<?= $form->getInput("짧은글 링크 주소", "shortUrl") ?> <?= $form->getInput("짧은글 링크 주소", "shortUrl") ?>
<!-- --><?//= $form->getInput("카테고리1", "category"); ?> <!-- --><? //= $form->getInput("카테고리1", "category");
<!-- --><?//= $form->getInput("카테고리2", "category2"); ?> ?>
<!-- --><? //= $form->getInput("카테고리2", "category2");
?>
<?= $form->getTextEdit("상품설명", "desc"); ?> <?= $form->getTextEdit("상품설명", "desc"); ?>
<? <?
$optionByForm = json_decode($item->optionByForm, true); $optionByForm = json_decode($item->optionByForm, true);
...@@ -75,7 +77,28 @@ namespace platyFramework; ...@@ -75,7 +77,28 @@ namespace platyFramework;
</div> </div>
<? } ?> <? } ?>
<?= $form->getTextView("상품원본정보", print_r(json_decode($item->json, true), true)); ?> <?= $form->getTextView("상품원본정보", print_r(json_decode($item->json, true), true)); ?>
<div class="form-group">
<label class="col-sm-2 control-label"></label>
<div class="col-sm-10">
<button type="button" class="btnRefreshItem btn btn-warning">굿즈쉐어 센터로부터 상품 정보 갱신</button>
<script>
$(".btnRefreshItem").click(function () {
// itemId = $(this).attr("itemId");
if (confirm("주요 상품 정보를 갱신하시겠습니까? 상품명, 상품 정보, 소비자가, 판매가, 배송비 유형, 재고수가 갱신됩니다.")) {
<? /** @see ptyshopProductsController::refreshItem() */ ?>
ptyPost("<?=$this->request->appUrl?>/ptyshop/products/refreshItem/", {id: <?=$item->id?>, returnCode: "json"}, function (result) {
if (result == true) {
window.location.reload();
}
});
}
});
</script>
</div>
</div>
</div> </div>
<div class="box-footer"> <div class="box-footer">
<button type="submit" class="btn btn-primary">저장</button> <button type="submit" class="btn btn-primary">저장</button>
...@@ -84,22 +107,22 @@ namespace platyFramework; ...@@ -84,22 +107,22 @@ namespace platyFramework;
</div> </div>
<? if ($this->request->functionName == "edit") { ?> <? if ($this->request->functionName == "edit") { ?>
<div class="box box-info"> <div class="box box-info">
<div class="box-header with-border"> <div class="box-header with-border">
<h3 class="box-title">상품 푸시 보내기</h3> <h3 class="box-title">상품 푸시 보내기</h3>
</div> </div>
<div class="box-body"> <div class="box-body">
<div class='col-md-12'> <div class='col-md-12'>
<?= ptypushItemModel::buildItem()->getEditForm("shopProductItem", $item->id, [ <?= ptypushItemModel::buildItem()->getEditForm("shopProductItem", $item->id, [
"title" => $item->title, "content" => $item->titleDesc, "imageUrl" => $item->previewImageUrl "title" => $item->title, "content" => $item->titleDesc, "imageUrl" => $item->previewImageUrl
]); ?> ]); ?>
</div>
</div>
<div class="box-footer">
<button type="submit" class="btn btn-primary">저장</button>
<button type="button" class="btn btn-default ptyGoBack pull-right">취소</button>
</div> </div>
</div> </div>
<div class="box-footer">
<button type="submit" class="btn btn-primary">저장</button>
<button type="button" class="btn btn-default ptyGoBack pull-right">취소</button>
</div>
</div>
<? } ?> <? } ?>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment