<{import file="header.html" title="基础信息"}> 
<style type="text/css"> 
.sp_logo{ width:80px; background:#fff; margin:10px 0 0 0; float:left;}
.sp_logo .img{width:80px; height:80px; border:1px solid #eee; line-height:80px; text-align:center; float:left;} 
.sp_logo .img img{ max-height:80px; max-width:80px; }

.uploadfile{ width:100%; padding:2px 0; margin-top:5px; border-radius:2px; line-height:20px; position:relative; cursor:pointer; color:#333; background:#fff; border:1px solid #ddd; text-align:center; overflow: hidden; display: inline-block; *display: inline; *zoom: 1; float:left; } 
.uploadfile input{position:absolute; font-size:100px; right:0; top:0; opacity:0; filter:alpha(opacity=0); cursor:pointer; } 
.uploadfile:hover {color: #333; background:#eee; border-color:#ccc; text-decoration:none; }
</style> 
<{include file="shop/tab.html"}>
<{uqcms m="shop" v="row" c="get_one:id=auto"}>
<div class="baseBox">
	<form action="<{$__SELLER__}>shop/base_save" method="post" id="form" back="false"> 
		<table class="etable">
			<tr>
				<td width="100">店铺名称： </td>
				<td><input type="text" name="name" size="38" id="text" value="<{$row.name}>"/></td>
			</tr>
			<tr>
				<td valign="top" style="padding-top:20px;">LOGO：</td>
				<td> 
					<div class="sp_logo">
						<div class="img">
							<{if $row.logo == ''}>
								<img src="<{$__PUBLIC__}>images/shop.png" id="back_img_url"/>
							<{else}>
								<img src="<{$__IMG__}><{$row.logo|img_size:120x120}>" id="back_img_url"/>
							<{/if}>				
						</div>
						<div class="uploadimg">
							<a href="javascript:;" id="update_avatar" class="uploadfile">
								上传店标<input type="file" name="imgFile" id="imgFile"/>
							</a>
						</div>
					</div> 
				</td>
			</tr> 
			<tr>
				<td>主营业务： </td>
				<td><input type="text" name="main_seller" size="38" id="text" value="<{$row.main_seller}>"/></td>
			</tr> 
			<tr>
				<td>联系人： </td>
				<td><input type="text" name="contact" size="38" id="contact" value="<{$row.contact}>"/></td>
			</tr> 
			<tr>
				<td>电话： </td>
				<td><input type="text" name="mobile" size="38" id="mobile" value="<{$row.mobile}>"/></td>
			</tr>
			<tr>
				<td>邮箱： </td>
				<td><input type="text" name="email" size="38" value="<{$row.email}>"/></td>
			</tr>
			<tr>
				<td>QQ号： </td>
				<td><input type="text" name="qq" size="38" value="<{$row.qq}>"/></td>
			</tr>
			<tr>
				<td>旺旺号： </td>
				<td><input type="text" name="ww" size="38" value="<{$row.ww}>"/></td>
			</tr> 
			<tr>
				<td>店铺介绍： </td>
				<td><textarea name="intro" cols="40" rows="3"><{$row.intro}></textarea></td>
			</tr>
			<tr>
				<td>通知信息： </td>
				<td><textarea name="notice" cols="40" rows="3"><{$row.notice}></textarea></td>
			</tr>
			<tr>
				<td>&nbsp;</td>
				<td><input type="submit" name="submit" class="submit" value="保 存"/></td>
			</tr>  
		</table>
	</form> 
</div>
<{import file="footer.html"}>
<script type="text/javascript">
upload('#imgFile', SELLER+"album/sp_logo", function(result){
	$(".sp_logo .img img").attr('src', result.url);
}); 
</script>