{# @version EC=CUBE4.1 TWIG
# @copyright 株式会社 翔 kakeru.co.jp
# @author
# 2022年03月21日作成
#
# app/template/default/Cart/Catalog.twig
#
#
#
# カートカタログ
# 2022/11/30
#
#
# ≡≡≡┏(^o^)┛
##############################################################}
{% set Limit = CatalogLimit() %}
{% extends 'default_frame.twig' %}
{% set body_class = 'cart_page' %}
{% block javascript %}
<script>
function SubWindowOpen(url,name){
window.open(url, name , "width={{SubWindoWData.width}},height={{SubWindoWData.height}},scrollbars={{SubWindoWData.scroll}}");
}
var $form = $('form#catalog_form');
$(document).ready(function(){
check_select_count();
$("input[name='LmOrderOption[catalog][]']").change(function(e) {
check_select_count();
});
});
function check_select_count(){
var $checked_list = $("#catalog-list-area input[type=checkbox]:checked");
var $not_checked_list = $("#catalog-list-area input[type=checkbox]").not(":checked");
if( $checked_list.length >= {{ Limit.cl_quantity_limit }} ){
$not_checked_list.prop('disabled', true);
} else{
$not_checked_list.prop('disabled', false);
}
}
</script>
{% if isMobile %}
<script>
function check_input(){
if( $('input[name="LmOrderOption[catalog][]"]:checked', $form).length == 0 ){
showAlertWindow('カタログを選択してください');
return false;
}
$form.submit();
}
function showAlertWindow(msg) {
last_scroll_top_value = $(document).scrollTop();
$("#alert-window p.alert-explain").html(msg);
$("body").css("height", $(window).height());
$("body").css("overflow", "hidden");
$("#overlay").css("visibility", "visible");
$("#alert-window").css("visibility", "visible");
}
function closeAlertWindow() {
$("body").css("height", "auto");
$("body").css("overflow", "auto");
$("#overlay").css("visibility", "hidden");
$("#alert-window").css("visibility", "hidden");
window.scrollTo(0, last_scroll_top_value);
}
$('input[name="LmOrderOption[catalog][]"]').on('change', function(e) {
if ($('input[name="LmOrderOption[catalog][]"]:checked').length > 0) {
$('#cts-float-button').fadeIn(500);
} else {
$('#cts-float-button').fadeOut(500);
}
});
</script>
{% else %}
<script src="/javascripts/jquery-ui.min.js" type="text/javascript"></script>
<script src="/javascripts/jquery.efo.js" type="text/javascript"></script>
<script>
var efo_elm = $("[class^=efo]").efo({
confirmation : {
enabled : false,
form : document.forms.mail_fm
},
notification : {
enabled : true
},
validation : {
bind : 'efo_change'
},
tooltipping : {
enabled : true
},
observation : {
enabled : true
}
}).on('efo_afterValidate', function(event, data){
if (data.remaining > 0) {
$('.btnMask').show();
$('.btnNext').hide();
} else {
$('.btnMask').hide();
$('.btnNext').show();
}
});
$('input[name="LmOrderOption[catalog][]"]').on('change', function(e) {
var $checkbox = $(this);
var $box = $checkbox.closest('.catalog-list-box-inner');
if( $checkbox.prop('checked') ){
$box.addClass('catalog-list-box-selected');
} else{
$box.removeClass('catalog-list-box-selected');
}
});
</script>
{% endif %}
{% endblock %}
{% block stylesheet %}
<link rel="stylesheet" href="/stylesheets/style_estimate.css">
<link rel="stylesheet" href="/stylesheets/stylesheet.css">
<link rel="stylesheet" href="/stylesheets/jquery.efo.css">
{% if isMobile %}
<link rel="stylesheet" href="/stylesheets/css/sp/common.css">
{% endif %}
<style>
.red{
color: red;
}
#contents_wrapper{
width: 990px;
margin: 0 auto;
}
#contents{
width: 100%;
}
#stap_area{
width :100%;
margin-bottom:20px;
}
#step_area .form{
width:100%;
}
#step_area .form img{
width:100%;
}
#step_area .step{
width:100%;
margin: 20px auto;
text-align:center;
}
#CartCatalog #catalog_btn_area{
visibility:hidden;
}
#CartCatalog .otodoke{
background-color: #FFFFCC;
padding: 20px;
text-align:
center;
border: 1px solid #FFFF99;
margin: 20px auto 30px;
width: 680px;
border: 1px solid #FFCD82;
border-radius: 10px;
font-size:13px;
}
#CartCatalog .otodoke p.title{
font-weight: bold;
font-size: 16pt;
}
#CartCatalog .CatalogCatagoryLabel{
font-size: 21px;
font-weight: bold;
border-bottom: 2px solid #ffb05c;
padding: 25px 0 10px 10px;
letter-spacing: .1em;
display: block;
margin-bottom:20px;
}
#CartCatalog ul.CatalogList{
width:100%;
margin-bottom:30px;
/*display: flex;
display : -webkit-box;
justify-content: center;
-webkit-align-items: center;
align-items: center*/
}
#CartCatalog li.catalog-list-box{
width: 240px;
padding: 1px;
margin-bottom:20px;
display:inline-block;
vertical-align: top;
margin-bottom:20px;
/* flex-direction: center; */
/*float:left;*/
/*display:-ms-grid;
display:grid;
-ms-grid-columns:auto auto auto;
grid-template-columns:auto auto auto;*/
}
#CartCatalog .catalog-list-box-inner{
border: solid 1px #B1B2B1;
height: 100%;
border-bottom: none;
}
#CartCatalog .catalog-list-box-header{
background-color:#E5E5E5;
}
#CartCatalog .catalog-list-box-header input{
margin: 15px 10px;
-webkit-transform: scale(1.4, 1.4);
}
#CartCatalog .catalog-list-box-header span{
font-size:13px;
font-weight: bold;
line-height:1.2;
padding: 0.3em 0;
display:inline-block;
overflow-wrap: break-word;
width:165px;
}
#CartCatalog .catalog-image{
padding: 20px 50px;
}
#CartCatalog .catalog-image img{
width:100%;
}
#CartCatalog .catalog-list-box-comment{
padding:5px;
}
#CartCatalog .catalog_link_1 a,
#CartCatalog .catalog_link_2 a,
#CartCatalog .catalog_link_3 a{
display: block;
width: 90%;
text-align: center;
margin: 0 auto 10px;
text-align: center;
text-decoration: none;
font-weight: bold;
line-height: 2.5;
border-radius: 6px;
font-size: 11px;
background: #177A74;
color: #fff;
}
#CartCatalog .catalog_link_3 a{
background: #F2910E;
}
#CartCatalog .catalog-list-box-footer{
border: solid 1px #B1B2B1;
border-top: none;
height:110px;
width:100%;
}
#catalog_btn_area{
margin-bottom:30px;
}
#catalog_btn_area button{
margin-bottom:20px;
}
.foot_message{
margin-bottom:30px;
}
#footer{
background-color: #fff;
border: 0;
}
.ec-layoutRole__footer #footer{
margin: 0 auto;
background-color: #EEE;
}
#CartCatalog #step1-top div{
padding: 2px 20px;
width:99%;
background-color:#98CACB;
line-height: 28px;
font-size:18px;
font-weight:700;
border-radius:20px;
color:#333;
}
@media screen and (max-width: 990px) {
#contents_wrapper{
width: 100%;
}
#CartCatalog ul.CatalogList{
margin: 0 auto 30px;
max-width:768px
}
}
@media screen and (max-width: 768px) {
#CartCatalog .otodoke{
width:90%;
}
#CartCatalog ul.CatalogList{
margin: 0 auto 30px;
max-width:512px;
}
}
@media screen and (max-width: 512px) {
#CartCatalog li.catalog-list-box{
width:49%;
}
}
@media screen and (max-width: 460px) {
#CartCatalog .otodoke {
padding:20px 10px;
}
#CartCatalog .otodoke p.title span{
display:block;
}
div.step img {
width: 98%;
}
}
{% if isMobile %}
.ec-layoutRole {
background-color: #eee;
}
.ec-layoutRole .ec-layoutRole__contents {
display: block;
}
.sp.ec-role .ec-pageHeader h1 {
border-top: 0px;
}
.ec-layoutRole #header {
display: block;
height: auto;
}
.ec-layoutRole #header #ut-sp-global-navi h1 {
font-weight: normal;
font-size: 10px;
overflow: hidden;
margin: 0px;
float: none;
padding-left: 10px;
}
.ec-layoutRole #contents_wrapper, .ec-layoutRole .ec-layoutRole__footer#footer {
width: auto;
}
.ec-layoutRole #header #logo {
height: auto;
padding: 5px 10px;
background: white;
float: none;
}
.ec-layoutRole #header #logo a {
height: auto;
width: auto;
background-image: unset;
text-indent: unset;
}
.ec-layoutRole #header #logo a img {
background: white;
}
.ec-layoutRole .ec-layoutRole__footer h2 {
padding-left: 30px;
}
.ec-layoutRole .ec-layoutRole__footer #footermenu li {
border-right-width: 0;
}
.ec-layoutRole__main#contents {
padding: 0px;
margin: 0px;
}
.ec-layoutRole__footer#footer {
margin-top: 0px;
margin: 0;
background-color: white;
}
.user_area, #pankuzu {
display: none;
}
.sp #overlay {
visibility: hidden;
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
z-index: 1000;
background-color: rgba(0, 0, 0, 0.7);
}
.sp .alert-window {
visibility: hidden;
margin-top: -68px;
margin-left: -150px;
z-index: 1001;
position: absolute;
top: 0;
left: 50%;
top: 50%;
width: 300px;
}
.sp .alert-content {
background-color: #fff;
border-radius: 7px;
border: 1px solid #eee;
border-top: 0;
padding: 10px;
}
.sp .alert-explain {
font-size: 16px;
margin:10px;
line-height:140%;
text-align: left;
}
.sp .alert-btns {
font-size: 13px;
overflow: hidden;
padding: 10px;
margin-top: 10px;
}
.sp .alert-btn-back {
display:block;
border: 1px solid #ccc;
color: #333;
text-align: center;
width: 50%;
border-radius: 5px;
float: left;
margin:0 25%;
padding: 10px 0;
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#e3e3e3), to(#ccc));
background: -webkit-linear-gradient(to bottom, #e3e3e3, #ccc);
background: linear-gradient(to bottom, #e3e3e3, #ccc);
background: #ccc\9;
}
.sp #heading-title {
position: relative;
overflow: initial;
color: #fff;
background-color: #958064;
text-shadow: none;
padding-left: 15px;
}
.sp #heading-title:after {
content: "";
position: absolute;
display: block;
width: 0;
height: 0;
bottom: -7px;
border-top: 7px solid #958064;
border-left: 7px solid transparent;
border-right: 7px solid transparent;
}
.sp #cts-float-button {
display: none;
position: fixed;
bottom: 50px;
left: 0px;
box-sizing: border-box;
width: 100%;
margin: 0;
padding: 15px 10px;
background: rgba(0,0,0,0.8);
z-index: 99;
}
.sp #cts-float-button button {
display: block;
padding: 13px 0;
font-size: 14px;
font-weight: bold;
color: #fff;
background-image: -moz-linear-gradient(top, #fcc10f 0%, #f68408 100%);
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #fcc10f), color-stop(100%, #f68408));
background-image: -webkit-linear-gradient(top, #fcc10f 0%, #f68408 100%);
background-image: -o-linear-gradient(top, #fcc10f 0%, #f68408 100%);
background-image: -ms-linear-gradient(top, #fcc10f 0%, #f68408 100%);
background-image: linear-gradient(to bottom, #fcc10f 0%,#f68408 100%);
text-shadow: 1px 1px 0 rgba(0,0,0,0.25);
border-radius: 4px;
width: 100%;
}
.sp #catalog-list-area > * {
box-sizing: border-box;
}
.sp #catalog-list-area .catalog-category-block {
border: 1px solid #c3b5a0;
background: #fff;
margin-bottom: 20px;
font-size: 12px;
overflow: hidden;
border-radius: 8px;
padding-bottom: 4px;
}
.sp #catalog-list-area .catalog-category-label {
font-size: 15px;
font-weight: bold;
letter-spacing: .1em;
display: block;
background: #daebeb;
padding: .6em;
border-bottom: 1px solid #c3b5a0;
}
.sp #catalog-list-area .catalog-list {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.sp #catalog-list-area .catalog-list:after,
.sp #catalog-list-area .catalog-list > li {
width: 48%;
padding: 1%;
}
.sp #catalog-list-area .catalog-list:after {
content: '';
display: block;
order: 1;
}
.sp #catalog-list-area .catalog-list li {
}
.sp #catalog-list-area .catalog-list-box-inner {
border: solid 1px #B1B2B1;
height: 100%;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.sp #catalog-list-area .catalog-list-box-inner.catalog-list-box-selected {
background: #ddfcc0;
}
.sp #catalog-list-area .catalog-list-box-header {
background: #E5E5E5;
}
.sp #catalog-list-area .catalog-list-box-header-inner {
display: flex;
align-items: center;
}
.sp #catalog-list-area .catalog-list-box-checkbox-wrap input {
margin: 14px;
}
.sp #catalog-list-area .catalog-list-box-checkbox-wrap input:disabled {
opacity: .2;
}
.sp #catalog-list-area .catalog-list-box-checkbox-wrap input.catalog-checkbox-unselectable {
opacity: 0;
}
.sp #catalog-list-area .catalog-list-box-title {
padding: .3em 0;
line-height: 1.2;
font-weight: bold;
font-size: 12px;
letter-spacing: 1px;
}
.sp #catalog-list-area .catalog-list-box-image {
padding: 10px 40px;
}
.sp #catalog-list-area .catalog-list-box-image img {
object-fit: contain;
width: 100%;
max-height: 100%;
}
.sp #catalog-list-area .catalog-list-box-comment, #catalog-list-area .catalog-list-box-footer {
padding: 0 1em;
}
.sp #catalog-list-area .catalog-list-box-comment p {
font-size: 9px;
}
.sp #catalog-list-area .catalog-list-box-comment .catalog-icon {
display: flex;
justify-content: space-between;
}
.sp #catalog-list-area .catalog-list-box-comment .catalog-icon img {
width: 32%;
}
.sp #catalog-list-area .catalog-list-box-footer {
margin: .2em 0 .8em 0;
}
.sp #catalog-list-area .catalog-list-box-link {
display: flex;
flex-direction: column;
justify-content: space-between;
}
.sp #catalog-list-area .catalog-list-box-link:after,
.sp #catalog-list-area .catalog-list-box-link:before {
content: '';
order: 1;
}
.sp #catalog-list-area .catalog-list-box-link > li .catalog-link {
display: table;
margin: .2em 0;
height: 28px;
width: 100%;
}
.sp #catalog-list-area .catalog-list-box-link a {
display: table-cell;
width: 100%;
height: 100%;
text-align: center;
position: relative;
letter-spacing: -1px;
text-decoration: none;
font-weight: bold;
line-height: 1;
border-radius: 6px;
vertical-align: middle;
font-size: 9px;
}
.sp #catalog-list-area .catalog-list-box-link a:after {
content: '▶︎';
display: block;
position: absolute;
top: 32%;
right: .8em;
}
.sp #catalog-list-area .catalog-list-box-link a.catalog-list-box-link-type-01,
.sp #catalog-list-area .catalog-list-box-link a.catalog-list-box-link-type-02 {
background: #177A74;
color: #fff;
}
.sp #catalog-list-area .catalog-list-box-link a.catalog-list-box-link-type-03 {
background: #F2910E;
color: #000;
}
.sp .catalog-box {
padding: 10px;
background-color: #eee;
}
.sp#CartCatalog .catalog-list-box-header input{
-webkit-transform: none;
}
.sp#CartCatalog .catalog-list-box-header span {
width: auto;
}
.sp#CartCatalog .catalog-list-box-footer {
border: none;
height: auto;
}
.sp#CartCatalog li.catalog-list-box {
margin-bottom: 0px;
}
.sp .cancel-btn {
margin-top: 10px;
}
.sp #btns {
border: 1px dotted #ccc;
border-left: 0;
border-right: 0;
font-size: 13px;
padding: 10px;
}
.sp #btns #btn-next {
margin: 0 auto;
line-height: 25px;
height: 50px;
font-size: 18px;
border: 1px solid #ff8f00;
width: 100%;
border-radius: 5px;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
-o-box-sizing: border-box;
-ms-box-sizing: border-box;
background: #ff8f00;
color: white;
font-weight: bold;
}
.sp .cancel-btn .ec-blockBtn--cancel {
border-radius: 4px;
height: 50px;
line-height: 50px;
}
.sp .opinion-box {
margin-bottom: 15px;
}
.sp .catalog-box .alert-danger {
font-size: 14px;
letter-spacing: 1px;
margin-bottom: 10px;
padding: 10px;
}
{% else %}
.pc {
color: black;
}
.pc .limit-message {
margin: 20px 0px 10px 0px;
font-weight: bold;
}
.pc#CartCatalog .catalog-list-box-header span{
width: auto;
}
.pc .catalog-box {
cursor: pointer;
width: 33.3%;
}
.pc .alert {
position: relative;
padding: .75rem 1.25rem;
margin-bottom: 1rem;
border: 1px solid transparent;
border-radius: .25rem;
}
.pc .alert-danger {
color: #721c24;
background-color: #f8d7da;
border-color: #f5c6cb;
font-size: 14px;
padding: 1.25rem 1.25rem;
}
.pc button {
background-color: transparent;
}
.pc .clearfix:after {
content:" ";
display:block;
clear:both;
}
.pc .btnBack, .btnMask, .btnNext {
border: none;
cursor: pointer;
}
.pc #catalog-list-area > * {
box-sizing: border-box;
}
.pc #catalog-list-area .catalog-category-label {
font-size: 21px;
font-weight: bold;
border-bottom: 2px solid #ffb05c;
padding: 25px 0 10px 10px;
letter-spacing: .1em;
display: block;
}
.pc #catalog-list-area .catalog-list {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.pc #catalog-list-area .catalog-list:before,
.pc #catalog-list-area .catalog-list:after,
.pc #catalog-list-area .catalog-list > li {
width: 25%;
padding: 1%;
}
.pc #catalog-list-area .catalog-list:before,
.pc #catalog-list-area .catalog-list:after {
content: '';
display: block;
order: 1;
}
.pc #catalog-list-area .catalog-list li {
}
.pc #catalog-list-area .catalog-list-box-inner {
border: solid 1px #B1B2B1;
height: 100%;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.pc #catalog-list-area .catalog-list-box-inner.catalog-list-box-selected,
.pc #catalog-list-area .catalog-list-box-inner.catalog-list-box-selected:hover {
background: #ddfcc0;
}
.pc #catalog-list-area .catalog-list-box-inner:hover {
background: #ddd;
}
.pc #catalog-list-area .catalog-list-box-header {
background: #E5E5E5;
}
.pc #catalog-list-area .catalog-list-box-header-inner {
display: flex;
align-items: center;
}
.pc #catalog-list-area .catalog-list-box-checkbox-wrap input {
margin: 14px;
-webkit-transform: scale(1.4, 1.4);
}
.pc #catalog-list-area .catalog-list-box-checkbox-wrap input.catalog-checkbox-unselectable {
opacity: 0;
}
.pc #catalog-list-area .catalog-list-box-title {
padding: .3em 0;
line-height: 1.2;
font-weight: bold;
}
.pc #catalog-list-area .catalog-list-box-image {
padding: 20px 50px;
}
.pc #catalog-list-area .catalog-list-box-image img {
object-fit: contain;
width: 100%;
max-height: 100%;
}
.pc #catalog-list-area .catalog-list-box-comment, #catalog-list-area .catalog-list-box-footer {
padding: 0 1em;
}
.pc #catalog-list-area .catalog-list-box-comment p {
font-size: 11px;
line-height: 1.4;
font-weight: normal;
}
.pc #catalog-list-area .catalog-list-box-footer {
margin: .2em 0 .8em 0;
}
.pc #catalog-list-area .catalog-list-box-link {
display: flex;
flex-direction: column;
justify-content: space-between;
}
.pc #catalog-list-area .catalog-list-box-link:after,
.pc #catalog-list-area .catalog-list-box-link:before {
content: '';
order: 1;
}
.pc #catalog-list-area .catalog-list-box-link > li .catalog-link {
display: table;
margin: .2em 0;
height: 28px;
width: 100%;
}
.pc #catalog-list-area .catalog-list-box-link a {
display: table-cell;
width: 100%;
height: 100%;
text-align: center;
position: relative;
letter-spacing: -1px;
text-decoration: none;
font-weight: bold;
line-height: 1;
border-radius: 6px;
vertical-align: middle;
font-size: 11px;
}
.pc #catalog-list-area .catalog-list-box-link a:after {
content: '▶︎';
display: block;
position: absolute;
top: 32%;
right: .8em;
}
.pc #catalog-list-area .catalog-list-box-link a.catalog-list-box-link-type-01,
.pc #catalog-list-area .catalog-list-box-link a.catalog-list-box-link-type-02 {
background: #177A74;
color: #fff;
}
.pc #catalog-list-area .catalog-list-box-link a.catalog-list-box-link-type-03 {
background: #F2910E;
color: #000;
}
.pc .catalog-box {
padding: 10px;
background-color: #eee;
}
.pc#CartCatalog .catalog-list-box-header input{
-webkit-transform: scale(1.4, 1.4);
}
.pc#CartCatalog .catalog-list-box-header span {
width: auto;
}
.pc#CartCatalog .catalog-list-box-footer {
border: none;
height: auto;
}
.pc#CartCatalog li.catalog-list-box {
margin-bottom: 0px;
}
.pc #catalog-list-area .admin-zaiko-count {
display: block;
color: red;
text-align: center;
}
.pc .catalog-bottom-box {
margin-top: 20px;
}
.pc .foot_message {
float: left;
}
.pc .catalog_btn_area {
float: right;
}
.pc#CartCatalog #catalog_btn_area {
visibility: visible;
}
/* EC-CUBEレイアウト用 ID=29 【LM】カタログ申し込みページ用レイアウト */
#header {
width: 100%;
height: 100%;
color: black;
}
#header #logo a {
background-image: none !important;
text-indent: 0 !important;
}
.ec-layoutRole__footer#footer {
max-width: 100%;
margin: 0 auto;
border: 1px solid #D3D0C1;
background: #eee;
}
.item-count {
color: black;
}
.return-shipping {
color: black;
}
{% endif %}
</style>
{% endblock %}
{% block main %}
{% if isMobile %}
<div id="CartCatalog" class="sp">
<div id="overlay"></div>
<div id="alert-window" class="alert-window">
<div class="alert-content">
<p class="alert-explain"></p>
<div class="alert-btns">
<a class="alert-btn-back" onclick="closeAlertWindow();" href="javascript:void(0);">OK</a>
</div>
</div>
</div>
<div class="title-h2">
<img class="ico-circle" src="{{ GetConfig('CFIMG_URL') }}/public_images/sp/ico_circle.png" alt="カタログ申し込み">
<h2>カタログ申し込み</h2>
</div>
<h2 id="heading-title">
<span>{{ Limit.cl_quantity_limit }}冊まで選択できます</span>
</h2>
<div class="clearfix" style="padding: 2%;">
<a href="/contact/fax/" style="float:left;width:49%;">
<img src="{{ GetConfig('CFIMG_URL') }}/public_images/order/banner_fax_01.jpg" alt="お気軽にFAXください" style="width:100%;">
</a>
<a href="tel:0120-115-116" style="float:left;width:49%;margin-left:2%;">
<img src="{{ GetConfig('CFIMG_URL') }}/public_images/order/banner_freedial_02.jpg" alt="お気軽にお電話ください" style="width:100%;">
</a>
</div>
<div class="catalog-box">
{% set CatalogMessage = CatalogValidation() %}
{% if CatalogMessage %}
<div class="alert alert-danger">
{{ CatalogMessage }}
</div>
{% endif %}
{% if CatalogData is not null %}
<form name="form" id="catalog_form" class="" method="post" action="{{ url('cart_buystep',{'cart_key':CatalogCartKey}) }}">
<input type="hidden" name="OlToken" value="{{ OlToken('catalog') }}" />
<div id="catalog-list-area">
{% for LabelId,Label in CatalogCategoryLabel %}
{% if CatalogData[LabelId] is defined %}
<div class="catalog-category-block">
<span class="catalog-category-label">{{ Label }}</span>
<ul class="catalog-list">
{% set Catalogs = CatalogData[LabelId] %}
{% for CatalogId,Catalog in Catalogs %}
<li class="catalog-list-box" data-catalog-id="{{ CatalogId }}" id="catalog-list-box-{{CatalogId}}">
<div class="catalog-list-box-inner">
<label for="CatalogList_{{Catalog.catalog_id }}">
<div class="catalog-list-box-header">
<div class="catalog-list-box-header-inner">
<span class="catalog-list-box-checkbox-wrap">
<input
id="CatalogList_{{Catalog.catalog_id }}"
class="select"
type="checkbox"
name="LmOrderOption[catalog][]"
value="{{ Catalog.catalog_id }}"
{{ CatalogChecked(Catalog.catalog_id) }}
>
</span>
<span class="catalog-list-box-title">{{ Catalog.catalog_title }}</span>
</div>
</div>
<div class="catalog-list-box-body">
<div class="catalog-list-box-image">
<img src="https://img0.land-mark.biz/kanri_img/images/catalog_image/{{ Catalog.catalog_id }}.jpg" alert="{{ Catalog.catalog_title }}">
</div>
<div class="catalog-list-box-comment">
<p>{{ Catalog.catalog_comment|raw}}</p>
</div>
</div>
</label>
<div class="catalog-list-box-footer">
<ul class="catalog-list-box-link">
{% set CatalogNum = '01' %}
{% set CatalogKbn = Catalog.catalog_textlink_variation %}
{% set CatalogUrl = Catalog.catalog_textlink_url%}
{% if CatalogKbn %}<li>{{ include('Cart/Parts/CatalogLink.twig') }}</li>{% endif %}
{% set CatalogNum = '02' %}
{% set CatalogKbn = Catalog.catalog_textlink_variation2 %}
{% set CatalogUrl = Catalog.catalog_textlink_url2 %}
{% if CatalogKbn %}<li>{{ include('Cart/Parts/CatalogLink.twig') }}</li>{% endif %}
{% set CatalogNum = '03' %}
{% set CatalogKbn = Catalog.catalog_textlink_variation3 %}
{% set CatalogUrl = Catalog.catalog_textlink_url3 %}
{% if CatalogKbn %}<li>{{ include('Cart/Parts/CatalogLink.twig') }}</li>{% endif %}
</ul>
</div>
</div>
</li>
{% endfor %}
</ul>
</div>
{% endif %}
{% endfor %}
</div>
<h2 id="receipt">ご意見・ご希望</h2>
<div class="content opinion-box">
<div class="content-wrapper">
<div class="input-box-last">
<div class="item-name">
ご意見・ご希望 <span class="not_required">任意</span>
</div>
<div id="item-content-comment">
<textarea style="width: 100%; box-sizing: border-box;" name="LmOrderOption[message]" rows=5 cols=70>{{ GetLmOrderOption('message') }}</textarea>
</div>
</div>
</div>
</div>
{% if is_granted('ROLE_USER') %}
<div id="btns">
{% if CatalogMessage is empty %}
<div class="btn-wrapper" style="width:100%;">
<input type="button" id="btn-next" value="確認" onclick="check_input();">
</div>
{% endif %}
<div class="cancel-btn">
<a class="ec-blockBtn--cancel" href="{{ url('remove_cart_item', {'mode': 'catalog', 'Token': OlToken('RemoveCartItme')}) }}">{{ 'front.cart_catalog.button02'|trans }}</a>
</div>
</div>
{% else %}
<div><img src="{{ GetConfig('CFIMG_URL') }}/public_images/image_dt/btn_catalog_next.gif" style="width: 100%;" onclick="check_input();" alt="お客様情報を入力する"></div>
<div class="cancel-btn">
<a class="ec-blockBtn--cancel" href="{{ url('remove_cart_item', {'mode': 'catalog', 'Token': OlToken('RemoveCartItme')}) }}">{{ 'front.cart_catalog.button02'|trans }}</a>
</div>
{% endif %}
{% if CatalogMessage is empty %}
<div id="cts-float-button">
<button type="button" onclick="check_input();">カタログ請求手続きへ</button>
</div>
{% endif %}
</form>
{% endif %}
</div>
</div>
{% else %}
<div id="CartCatalog" class="pc">
{{ include('Cart/Parts/Step.twig') }}
{% set CatalogMessage = CatalogValidation() %}
{% if CatalogMessage %}
<div class="alert alert-danger">
{{ CatalogMessage }}
</div>
{% endif %}
<div class="otodoke">
{% set noukiSchedule = GetCatalogNoukiSchedule() %}
<p class="title">{{'front.cart_catalog.message01'|trans}}<span class="red">{{ noukiSchedule | date('n月j日') }}({{noukiSchedule| date('Y/m/d')|jweek}})</span></p>
<p class="red">{{'front.cart_catalog.message02'|trans}}</p>
<p>{{'front.cart_catalog.message03'|trans}}</p>
</div>
{{ include('Shopping/alert.twig', { 'error_only': true }) }}
<div class="">
{% if CatalogData is not null %}
<form name="form" id="form_cart" class="" method="post" action="{{ url('cart_buystep',{'cart_key':CatalogCartKey}) }}">
<input type="hidden" name="OlToken" value="{{ OlToken('catalog') }}" />
<div class="">
<div class="ec-cartTable">
<div id="step1-top" >
<img src="{{ GetConfig('CFIMG_URL') }}/public_images/sample/title_sub1.gif" alt="カタログ選択" width="990" />
</div>
<p class="limit-message">
<strong>{{ 'front.cart_catalog.message08'|trans }}</strong><span class="red">{{ CatalogLimitMessage(Limit.cl_quantity_limit) }}</span>
</p>
<div id="catalog-list-area" class="efo-required efo-select" data-efo-validation='{"min":1, "max":"{{ Limit.cl_quantity_limit }}"}'>
{% for LabelId,Label in CatalogCategoryLabel %}
{% if CatalogData[LabelId] is defined %}
<div class="catalog-category-block" id="{{ Label }}">
<span class="catalog-category-label">{{ Label }}</span>
<ul class="catalog-list">
{% set Catalogs = CatalogData[LabelId] %}
{% for CatalogId,Catalog in Catalogs %}
<li class="catalog-list-box" data-catalog-id="{{ CatalogId }}" id="catalog-list-box-{{CatalogId}}">
<div class="catalog-list-box-inner">
<label for="CatalogList_{{Catalog.catalog_id }}">
<div class="catalog-list-box-header">
<div class="catalog-list-box-header-inner">
<span class="catalog-list-box-checkbox-wrap">
<input
id="CatalogList_{{Catalog.catalog_id }}"
class="select"
type="checkbox"
name="LmOrderOption[catalog][]"
value="{{ Catalog.catalog_id }}"
{{ CatalogChecked(Catalog.catalog_id) }}
>
</span>
<span class="catalog-list-box-title">{{ Catalog.catalog_title }}</span>
</div>
</div>
<div class="catalog-list-box-body">
<div class="catalog-list-box-image">
<img src="https://img0.land-mark.biz/kanri_img/images/catalog_image/{{ Catalog.catalog_id }}.jpg" alert="{{ Catalog.catalog_title }}">
</div>
<div class="catalog-list-box-comment">
<p>{{ Catalog.catalog_comment|raw}}</p>
</div>
</div>
</label>
<div class="catalog-list-box-footer">
<ul class="catalog-list-box-link">
{% set CatalogNum = '01' %}
{% set CatalogKbn = Catalog.catalog_textlink_variation %}
{% set CatalogUrl = Catalog.catalog_textlink_url%}
{% if CatalogKbn %}<li>{{ include('Cart/Parts/CatalogLink.twig') }}</li>{% endif %}
{% set CatalogNum = '02' %}
{% set CatalogKbn = Catalog.catalog_textlink_variation2 %}
{% set CatalogUrl = Catalog.catalog_textlink_url2 %}
{% if CatalogKbn %}<li>{{ include('Cart/Parts/CatalogLink.twig') }}</li>{% endif %}
{% set CatalogNum = '03' %}
{% set CatalogKbn = Catalog.catalog_textlink_variation3 %}
{% set CatalogUrl = Catalog.catalog_textlink_url3 %}
{% if CatalogKbn %}<li>{{ include('Cart/Parts/CatalogLink.twig') }}</li>{% endif %}
</ul>
</div>
</div>
</li>
{% endfor %}
</ul>
</div>
{% endif %}
{% endfor %}
</div>
</div>
</div>
<div class="catalog-bottom-box clearfix">
<div class="foot_message">
<p>{{ 'front.cart_catalog.message04'|trans|raw}}</p>
<p>{{ 'front.cart_catalog.message05'|trans|raw}}</p>
<p>{{ 'front.cart_catalog.message06'|trans|raw}}</p>
</div>
{% if CatalogMessage is empty %}
<div class="catalog_btn_area">
<button id="btn01-mask" class="btnMask" type="button">
<img src="{{ GetConfig('CFIMG_URL') }}/public_images/regi/btn_kakunin_off.gif" width="205" height="45" alt="未入力、もしくは入力間違いの必須項目があります。"/>
</button>
<button id="btn01" class="btnNext" type="submit">
<img src="{{ GetConfig('CFIMG_URL') }}/public_images/sample/btn_select.png" alt="確認画面へ進む" />
</button>
</div>
{% endif %}
</div>
<div id="catalog_btn_area" class="ec-cartRole__actions">
<a class="ec-blockBtn--cancel" href="{{ url('remove_cart_item', {'mode': 'catalog', 'Token': OlToken('RemoveCartItme')}) }}">{{ 'front.cart_catalog.button02'|trans }}</a>
</div>
</form>
{% endif %}
</div>
</div>
{% endif %}
{% endblock %}