<{import file="index/header_shop.html" title="店铺设计"}> 
<div class="tab_name"><span>店铺装修</span></div>
<style type="text/css">
.upBox{ width:80px; float:left; }
.upBox .show_img{ width:80px; height:80px; margin-right:10px; border:1px solid #efefef; overflow:hidden; float:left; } 
.upBox .show_img img{ max-width:80px; max-height:80px; }
.upload_manage{ width:100%; float:left; }
.upload_manage a{ border:1px solid #efefef; background:#f8f8f8; text-align:center; padding:3px 0; margin-top:-1px; width:100%; float:left; }

.prompt{ width:600px; padding:0 0 0 15px; float:left; }
</style> 
<form action="?m=design&a=save" method="post" id="form" back="false"> 
	<table class="etable">
		<tr>
			<td width="100" valign="top" style="padding-top:10px">页头图片： </td>
			<td>
				<div class="upBox">
					<div class="show_img" id="top_pic"><{if $row.top_images}><img src="<{$__IMG__}><{$row.top_images|img_size:100x100}>"><{else}><img src="<{$__APP__}>public/images/upload.png"><{/if}></div>
					<input type="hidden" name="top_images" id="top_images" value="<{$row.top_images}>"/>	
					<div class="upload_manage"><a href="javascript:;" onclick="upload_manage('insert','top')">上传图片</a></div>
				</div>
				<div class="prompt">建议图片：1920px*120px</div>
			</td>
		</tr>
		<tr>
			<td valign="top" style="padding-top:10px">背景图片： </td>
			<td>
				<div class="upBox">
					<div class="show_img" id="bg_pic"><{if $row.bg_images}><img src="<{$__IMG__}><{$row.bg_images|img_size:100x100}>"><{else}><img src="<{$__APP__}>public/images/upload.png"><{/if}></div>
					<input type="hidden" name="bg_images" id="bg_images" value="<{$row.bg_images}>"/> 
					<div class="upload_manage"><a href="javascript:;" onclick="upload_manage('insert', 'bg')">上传图片</a></div>
				</div>
				<div class="prompt">背景为透明的图片</div>
			</td>
		</tr>
		<tr>
			<td>&nbsp;</td>
			<td><input type="submit" name="submit" class="submit" value="保 存"/></td>
		</tr>  
	</table>
</form> 
<{include file="index/footer.html"}>
<script type="text/javascript" src="<{$__APP__}>public/js/uqcmsupload.js"></script>
<script type="text/javascript">
function upload_insert(postion, param){
	ck_img_url = $(".ajax_album_ck_value").attr('data-url');
	ck_img_name = $(".ajax_album_ck_value").attr('data-name');
	if(ck_img_url){ 
		if(postion == 'insert'){
			$('#'+param+'_pic').html('<img src="'+ck_img_url+'">');
			$('#'+param+"_images").val(ck_img_name);
		}
		ajax_close();	
	}else{
		alert('没有选中图片');
	}
}
</script>