메인페이지 수정-7

dev_bert
jonghwan76 3 years ago
parent ed01330fd9
commit 4e0127199b

@ -33,7 +33,7 @@
<select id="select_day_week" resultClass="dataMap" parameterClass="dataMap">
SELECT
DATE_FORMAT('20220224','%Y-%m-%d') as day1,
DATE_FORMAT(#startDate#,'%Y-%m-%d') as day1,
DATE_FORMAT(ADDDATE( STR_TO_DATE(#startDate#,'%Y-%m-%d'), INTERVAL 1 DAY),'%Y-%m-%d') as day2,
DATE_FORMAT(ADDDATE( STR_TO_DATE(#startDate#,'%Y-%m-%d'), INTERVAL 2 DAY),'%Y-%m-%d') as day3,
DATE_FORMAT(ADDDATE( STR_TO_DATE(#startDate#,'%Y-%m-%d'), INTERVAL 3 DAY),'%Y-%m-%d') as day4,

@ -49,7 +49,7 @@
<!-- 날짜 -->
<div class="memory_date">
<a href="javascript:fncMoveDay('minus')"><img src="../img/xxxx_sprites/arrow_01_right.png" alt=""></a>
<a href="javascript:fncMoveDay('minus')"><img src="../img/xxxx_sprites/arrow_01_left.png" alt=""></a>
${model['rm_mem']['today']!}(${model['rm_mem']['day']!})
<a href="javascript:fncMoveDay('plus')"><img src="../img/xxxx_sprites/arrow_01_right.png" alt=""></a>
</div>
@ -62,63 +62,105 @@
<ul class="gray_box">
<li>
<#assign pre_date = model['dayList']['day1'] + ''>
<#assign idx = 0>
<#assign pre_hour = ''>
<#list model['time_list'] as item>
<#if item['day'] == pre_date>
<#assign topP = item['hour'] + item_index>
<#if (item['hour'] + '') == pre_hour>
<#assign idx = idx + 1>
</#if>
<#assign topP = item['hour'] + idx>
<#assign pre_hour = item['hour'] + ''>
<span style="top:${topP}%;height:2px;" class="m_color${item['val_1']}"></span>
</#if>
</#list>
</li>
<li>
<#assign pre_date = model['dayList']['day2'] + ''>
<#assign idx = 0>
<#assign pre_hour = ''>
<#list model['time_list'] as item>
<#if item['day'] == pre_date>
<#assign topP = item['hour'] + item_index>
<#if (item['hour'] + '') == pre_hour>
<#assign idx = idx + 1>
</#if>
<#assign topP = item['hour'] + idx>
<#assign pre_hour = item['hour'] + ''>
<span style="top:${topP}%;height:2px;" class="m_color${item['val_1']}"></span>
</#if>
</#list>
</li>
<li>
<#assign pre_date = model['dayList']['day3'] + ''>
<#assign idx = 0>
<#assign pre_hour = ''>
<#list model['time_list'] as item>
<#if item['day'] == pre_date>
<#assign topP = item['hour'] + item_index>
<#if (item['hour'] + '') == pre_hour>
<#assign idx = idx + 1>
</#if>
<#assign topP = item['hour'] + idx>
<#assign pre_hour = item['hour'] + ''>
<span style="top:${topP}%;height:2px;" class="m_color${item['val_1']}"></span>
</#if>
</#list>
</li>
<li>
<#assign pre_date = model['dayList']['day4'] + ''>
<#assign idx = 0>
<#assign pre_hour = ''>
<#list model['time_list'] as item>
<#if item['day'] == pre_date>
<#assign topP = item['hour'] + item_index>
<#if (item['hour'] + '') == pre_hour>
<#assign idx = idx + 1>
</#if>
<#assign topP = item['hour'] + idx>
<#assign pre_hour = item['hour'] + ''>
<span style="top:${topP}%;height:2px;" class="m_color${item['val_1']}"></span>
</#if>
</#list>
</li>
<li>
<#assign pre_date = model['dayList']['day5'] + ''>
<#assign idx = 0>
<#assign pre_hour = ''>
<#list model['time_list'] as item>
<#if item['day'] == pre_date>
<#assign topP = item['hour'] + item_index>
<#if (item['hour'] + '') == pre_hour>
<#assign idx = idx + 1>
</#if>
<#assign topP = item['hour'] + idx>
<#assign pre_hour = item['hour'] + ''>
<span style="top:${topP}%;height:2px;" class="m_color${item['val_1']}"></span>
</#if>
</#list>
</li>
<li>
<#assign pre_date = model['dayList']['day6'] + ''>
<#assign idx = 0>
<#assign pre_hour = ''>
<#list model['time_list'] as item>
<#if item['day'] == pre_date>
<#assign topP = item['hour'] + item_index>
<#if (item['hour'] + '') == pre_hour>
<#assign idx = idx + 1>
</#if>
<#assign topP = item['hour'] + idx>
<#assign pre_hour = item['hour'] + ''>
<span style="top:${topP}%;height:2px;" class="m_color${item['val_1']}"></span>
</#if>
</#list>
</li>
<li>
<#assign pre_date = model['dayList']['day7'] + ''>
<#assign idx = 0>
<#assign pre_hour = ''>
<#list model['time_list'] as item>
<#if item['day'] == pre_date>
<#assign topP = item['hour'] + item_index>
<#if (item['hour'] + '') == pre_hour>
<#assign idx = idx + 1>
</#if>
<#assign topP = item['hour'] + idx>
<#assign pre_hour = item['hour'] + ''>
<span style="top:${topP}%;height:2px;" class="m_color${item['val_1']}"></span>
</#if>
</#list>

@ -28,6 +28,14 @@
background: darkcyan;
}
.m_color14{
background: darkred;
}
.m_color15{
background: darkorange;
}
.modal-wrapper .scroll {
max-height: 700px;
overflow-y: auto;

Loading…
Cancel
Save