<?
include_once("./_dmshop.php");
echo "<meta http-equiv='content-type' content='text/html; charset=$shop[charset]'>";
// 가로 3단

// 디자인 설정
$dmshop_design = shop_design();

include_once("./design_main_display.query.php");
?>

<div id="display<?=$display_id?>_3" <? if ($dmshop_design["display".$display_id."_type"] == '3') { echo "style='display:inline;'"; } else { echo "style='display:none;'"; } ?>>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
    <td width="300" valign="top" class="display_line_bg3" style="border-bottom:1px solid #c2c2c2;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
    <td valign="top">
<?
$display_type = "4";
?>

<div style="border:1px solid #d6e2ff; background-color:#f5f8ff;">
<table border="0" cellspacing="0" cellpadding="0" class="auto">
<tr height="35">
    <td class="side_title">박스 가로폭</td>
    <td width="10"></td>
    <td><input type="text" name="display<?=$display_id?>_<?=$display_type?>_box_width" value="<?=$dmshop_design["display".$display_id."_".$display_type."_box_width"]?>" class="input" style="border:1px solid #95a9d2; width:27px;" /></td>
    <td width="5"></td>
    <td class="px">px</td>
    <td width="20"></td>
    <td class="side_title">박스 세로폭</td>
    <td width="10"></td>
    <td><input type="text" name="display<?=$display_id?>_<?=$display_type?>_box_height" value="<?=$dmshop_design["display".$display_id."_".$display_type."_box_height"]?>" class="input" style="border:1px solid #95a9d2; width:27px;" /></td>
    <td width="5"></td>
    <td class="px">px</td>
</tr>
</table>
</div>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td height="2" bgcolor="#ffffff" class="none">&nbsp;</td></tr>
</table>

<div style="border-top:1px solid #c2c2c2; width:298px; margin:0 auto;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr height="42" bgcolor="#eeeeee">
    <td>
<table border="0" cellspacing="0" cellpadding="0" class="auto">
<tr>
    <td><span class="display_title">디스플레이</span></td>
    <td width="10"></td>
    <td class="select1">
<select id="display<?=$display_id?>_<?=$display_type?>_list" name="display<?=$display_id?>_<?=$display_type?>_list" onchange="displayList('<?=$display_id?>', '<?=$display_type?>', this.value);" class="select">
    <option value="0">선택하세요.</option>
    <option value="1">분류 상품</option>
    <option value="2">기획전 상품</option>
    <option value="3">상품 직접등록</option>
    <option value="4">게시판</option>
    <option value="5">배너</option>
    <option value="6">이미지/링크</option>
    <option value="7">HTML 태그</option>
</select>

<script type="text/javascript">
$("#display<?=$display_id?>_<?=$display_type?>_list").val("<?=$dmshop_design["display".$display_id."_".$display_type."_list"]?>");
</script>
    </td>
</tr>
</table>
    </td>
</tr>
</table>

<table width="100%" border="0" cellspacing="0" cellpadding="0" class="auto">
<tr class="display_height">
    <td valign="top">
<div id="display<?=$display_id?>_<?=$display_type?>_0" <? if ($dmshop_design["display".$display_id."_".$display_type."_list"] == '0') { echo "style='display:inline;'"; } else { echo "style='display:none;'"; } ?>>
<table border="0" cellspacing="0" cellpadding="0" class="auto">
<tr>
    <td class="display_select">전시항목을 선택하십시요.</td>
</tr>
</table>
</div>

<?
include("./design_main_display_list.php");
?>
    </td>
</tr>
</table>
</div>
    </td>
</tr>
</table>
    </td>
    <td width="2"></td>
    <td width="36" style="border:1px solid #d6e2ff; background-color:#f5f8ff;" align="center" valign="top">
<div style="margin-top:5px;"><input type="text" name="display<?=$display_id?>_<?=$display_type?>_side_width" value="<?=$dmshop_design["display".$display_id."_".$display_type."_side_width"]?>" class="input" style="border:1px solid #95a9d2; width:18px;" /></div>

<div style="margin-top:5px;"><span class="px">px</span></div>

<div style="margin-top:10px;"><span class="side_title">사<br>이<br>여<br>백</span></div>
    </td>
    <td width="2"></td>
    <td width="300" valign="top" class="display_line_bg3" style="border-bottom:1px solid #c2c2c2;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
    <td valign="top">
<?
$display_type = "5";
?>

<div style="border:1px solid #d6e2ff; background-color:#f5f8ff;">
<table border="0" cellspacing="0" cellpadding="0" class="auto">
<tr height="35">
    <td class="side_title">박스 가로폭</td>
    <td width="10"></td>
    <td><input type="text" name="display<?=$display_id?>_<?=$display_type?>_box_width" value="<?=$dmshop_design["display".$display_id."_".$display_type."_box_width"]?>" class="input" style="border:1px solid #95a9d2; width:27px;" /></td>
    <td width="5"></td>
    <td class="px">px</td>
    <td width="20"></td>
    <td class="side_title">박스 세로폭</td>
    <td width="10"></td>
    <td><input type="text" name="display<?=$display_id?>_<?=$display_type?>_box_height" value="<?=$dmshop_design["display".$display_id."_".$display_type."_box_height"]?>" class="input" style="border:1px solid #95a9d2; width:27px;" /></td>
    <td width="5"></td>
    <td class="px">px</td>
</tr>
</table>
</div>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td height="2" bgcolor="#ffffff"></td></tr>
</table>

<div style="border-top:1px solid #c2c2c2; width:298px; margin:0 auto;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr height="42" bgcolor="#eeeeee">
    <td>
<table border="0" cellspacing="0" cellpadding="0" class="auto">
<tr>
    <td><span class="display_title">디스플레이</span></td>
    <td width="10"></td>
    <td class="select1">
<select id="display<?=$display_id?>_<?=$display_type?>_list" name="display<?=$display_id?>_<?=$display_type?>_list" onchange="displayList('<?=$display_id?>', '<?=$display_type?>', this.value);" class="select">
    <option value="0">선택하세요.</option>
    <option value="1">분류 상품</option>
    <option value="2">기획전 상품</option>
    <option value="3">상품 직접등록</option>
    <option value="4">게시판</option>
    <option value="5">배너</option>
    <option value="6">이미지/링크</option>
    <option value="7">HTML 태그</option>
</select>

<script type="text/javascript">
$("#display<?=$display_id?>_<?=$display_type?>_list").val("<?=$dmshop_design["display".$display_id."_".$display_type."_list"]?>");
</script>
    </td>
</tr>
</table>
    </td>
</tr>
</table>

<table width="100%" border="0" cellspacing="0" cellpadding="0" class="auto">
<tr class="display_height">
    <td valign="top">
<div id="display<?=$display_id?>_<?=$display_type?>_0" <? if ($dmshop_design["display".$display_id."_".$display_type."_list"] == '0') { echo "style='display:inline;'"; } else { echo "style='display:none;'"; } ?>>
<table border="0" cellspacing="0" cellpadding="0" class="auto">
<tr>
    <td class="display_select">전시항목을 선택하십시요.</td>
</tr>
</table>
</div>

<?
include("./design_main_display_list.php");
?>
    </td>
</tr>
</table>
</div>
    </td>
</tr>
</table>
    </td>
    <td width="2"></td>
    <td width="36" style="border:1px solid #d6e2ff; background-color:#f5f8ff;" align="center" valign="top">
<div style="margin-top:5px;"><input type="text" name="display<?=$display_id?>_<?=$display_type?>_side_width" value="<?=$dmshop_design["display".$display_id."_".$display_type."_side_width"]?>" class="input" style="border:1px solid #95a9d2; width:18px;" /></div>

<div style="margin-top:5px;"><span class="px">px</span></div>

<div style="margin-top:10px;"><span class="side_title">사<br>이<br>여<br>백</span></div>
    </td>
    <td width="2"></td>
    <td width="300" valign="top" class="display_line_bg3" style="border-bottom:1px solid #c2c2c2;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
    <td valign="top">
<?
$display_type = "6";
?>

<div style="border:1px solid #d6e2ff; background-color:#f5f8ff;">
<table border="0" cellspacing="0" cellpadding="0" class="auto">
<tr height="35">
    <td class="side_title">박스 가로폭</td>
    <td width="10"></td>
    <td><input type="text" name="display<?=$display_id?>_<?=$display_type?>_box_width" value="<?=$dmshop_design["display".$display_id."_".$display_type."_box_width"]?>" class="input" style="border:1px solid #95a9d2; width:27px;" /></td>
    <td width="5"></td>
    <td class="px">px</td>
    <td width="20"></td>
    <td class="side_title">박스 세로폭</td>
    <td width="10"></td>
    <td><input type="text" name="display<?=$display_id?>_<?=$display_type?>_box_height" value="<?=$dmshop_design["display".$display_id."_".$display_type."_box_height"]?>" class="input" style="border:1px solid #95a9d2; width:27px;" /></td>
    <td width="5"></td>
    <td class="px">px</td>
</tr>
</table>
</div>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td height="2" bgcolor="#ffffff"></td></tr>
</table>

<div style="border-top:1px solid #c2c2c2; width:298px; margin:0 auto;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr height="42" bgcolor="#eeeeee">
    <td>
<table border="0" cellspacing="0" cellpadding="0" class="auto">
<tr>
    <td><span class="display_title">디스플레이</span></td>
    <td width="10"></td>
    <td class="select1">
<select id="display<?=$display_id?>_<?=$display_type?>_list" name="display<?=$display_id?>_<?=$display_type?>_list" onchange="displayList('<?=$display_id?>', '<?=$display_type?>', this.value);" class="select">
    <option value="0">선택하세요.</option>
    <option value="1">분류 상품</option>
    <option value="2">기획전 상품</option>
    <option value="3">상품 직접등록</option>
    <option value="4">게시판</option>
    <option value="5">배너</option>
    <option value="6">이미지/링크</option>
    <option value="7">HTML 태그</option>
</select>

<script type="text/javascript">
$("#display<?=$display_id?>_<?=$display_type?>_list").val("<?=$dmshop_design["display".$display_id."_".$display_type."_list"]?>");
</script>
    </td>
</tr>
</table>
    </td>
</tr>
</table>

<table width="100%" border="0" cellspacing="0" cellpadding="0" class="auto">
<tr class="display_height">
    <td valign="top">
<div id="display<?=$display_id?>_<?=$display_type?>_0" <? if ($dmshop_design["display".$display_id."_".$display_type."_list"] == '0') { echo "style='display:inline;'"; } else { echo "style='display:none;'"; } ?>>
<table border="0" cellspacing="0" cellpadding="0" class="auto">
<tr>
    <td class="display_select">전시항목을 선택하십시요.</td>
</tr>
</table>
</div>

<?
include("./design_main_display_list.php");
?>
    </td>
</tr>
</table>
</div>
    </td>
</tr>
</table>
    </td>
</tr>
</table>

<table border="0" cellspacing="0" cellpadding="0">
<tr><td height="2"></td></tr>
</table>
</div>

<? if ($display_id == '5' && $display_type == '6') { ?>
<script type="text/javascript">
$(document).ready(function() {

    shopDisplayResize();

});
</script>
<? } ?>