<?php defined('InShopNC') or exit('Access Invalid!');?>

<div id="dialog_property_edit_image" style="display:none;">
    <div class="s-tips margintop"><i></i>请按提示尺寸制作上传图片，已达到手机客户端及Wap手机商城最佳显示效果。</div>
    <div class="upload-thumb"> <img id="dialog_bg_image" src="" alt=""></div>
    <input id="dialog_bg_image_name" type="hidden">

    <input id="dialog_property_type" type="hidden">
    <form id="form_image" action="">
        <div class="dialog-handle-box clearfix">
            <h4 class="dialog-handle-title">选择要上传的图片：</h4>
            <span> <input id="btn_update_bgimg" type="file" name="special_image"> </span>
            <span id="dialog_bg_image_desc" class="dialog-image-desc"></span>
            <h4 class="dialog-handle-title">背景类型：</h4>
            <div>
                <select id="dialog_item_bg_type" name="" class="vatop">
                    <option value="">-请选择-</option>
                    <option value="color">颜色值</option>
                    <option value="image">背景图</option>
                </select>
                <input id="dialog_item_bg_data" type="text" class="txt w200 marginright marginbot vatop">
                <br />
                <span  id="dialog_item_bg_desc" class="dialog-image-desc" style="color: red;"></span>
                <br/>
                <label>左右是否留白(内间距)：<input id="dialog_item_bg_has_margin" type="checkbox" name="dialog_item_bg_has_margin"></label>
            </div>
        </div>
        <a id="btn_save_bg" class="btn" href="javascript:;"><span>保存</span></a>
    </form>
</div>

<script id="item_property_template" type="text/html">
    <div nctype="item_property" class="item">
        <input nctype="bg_image" name="bg_image" type="hidden" value="<%=bg_image%>">
        <input nctype="bg_type" name="bg_type" type="hidden" value="<%=bg_type%>">
        <input nctype="bg_data" name="bg_data" type="hidden" value="<%=bg_data%>">
        <input nctype="has_margin" name="has_margin" type="hidden" value="<%=has_margin%>">
    </div>
</script>