<{import file="index/header.html"}> 
<{import file="config/nav.html"}>
<style type="text/css">
.select{ margin-top:-6px; float:left; }
</style>
<div class="main"> 
	<form id="form" action="<{$__ADMIN__}>config/post" method="post" back="false"> 
		<table class="etable">
			<tr>
				<td width="120">储存位置：</td>
				<td>
					<label><input type="radio" name="storage_status" value="0"<{if !$UQCMS.storage_status}> checked="checked"<{/if}>/>本地储存</label>
					<label><input type="radio" name="storage_status" value="1"<{if $UQCMS.storage_status == '1'}> checked="checked"<{/if}>/>云储存</label>
					<div class="select storage_box"<{if !$UQCMS.storage_status}> style="display:none;"<{/if}>>
						<select name="storage_alias" style="min-width:120px;">
							<{uqcms m="api" v="alist" c="alist:type=storage"}>
							<{if $alist}>
								<{foreach item=i from=$alist}> 
									<option value="<{$i.alias}>"<{if $UQCMS.storage_alias == $i.alias}> selected="selected"<{/if}>><{$i.name}></option>
								<{/foreach}>
							<{/if}>
						</select>
					</div>
					<p>关闭为本地储存，开启可以用接口储存。</p>
					<p>演示图片只做展示，正式运营请选择本地或者云储存或者第三方插件。</p>
				</td>
			</tr> 
			<tr>
				<td width="120">短信配置：</td>
				<td>
					<label><input type="radio" name="sms_status" value="0"<{if !$UQCMS.sms_status}> checked="checked"<{/if}>/>关闭</label>
					<label><input type="radio" name="sms_status" value="1"<{if $UQCMS.sms_status == '1'}> checked="checked"<{/if}>/>开启</label>
					<div class="select sms_box"<{if !$UQCMS.sms_status}> style="display:none;"<{/if}>>
						<select name="sms_alias" style="min-width:120px;"> 
							<{uqcms m="api" v="alist" c="alist:type=sms"}>
							<{if $alist}>
								<{foreach item=i from=$alist}> 
									<option value="<{$i.alias}>"<{if $UQCMS.sms_alias == $i.alias}> selected="selected"<{/if}>><{$i.name}></option>
								<{/foreach}>
							<{/if}>
						</select>
					</div>	
					<p>开启短信，可以使用短信的一些功能</p>
				</td>
			</tr> 
			<tr>
				<td>上传大小：</td>
				<td><input type="text" name="site_upload_size" value="<{$UQCMS.site_upload_size}>" size="15"/><i>单位K， 当前系统允许上传：<{$upload_size}>。单位换算：1024*1024*2=2097152</i></td>
			</tr> 
			<tr>
				<td>SESSION：</td>
				<td><input type="text" name="site_session_time" value="<{$UQCMS.site_session_time}>" size="15"/><i>SESSION有效时间。</i></td>
			</tr> 
			<tr>
				<td>COOKIE：</td>
				<td><input type="text" name="site_cookie_time" value="<{$UQCMS.site_cookie_time}>" size="15"/><i>COOKIE有效时间。</i></td>
			</tr> 
			<tr>
				<td>分页数：</td>
				<td><input type="text" name="site_page_size" value="<{$UQCMS.site_page_size}>" size="15"/></td>
			</tr> 
			<tr>
				<td>百度地图KEY值：</td>
				<td><input type="text" name="map_baidu_key" value="<{$UQCMS.map_baidu_key}>" size="38"/><i>目前支持百度地图</i></td>
			</tr> 
			<tr>
				<td>&nbsp;</td>
				<td><input type="submit" id="submit" class="submit" value="保存"/></td>
			</tr>
		</table> 
	</form> 
</div>
<{import file="index/footer.html"}>
<script type="text/javascript">
$(function(){
	$("input[name=sms_status]").click(function(){
		$this = $(this);
		val = $this.val();
		if(val == '1'){
			$(".sms_box").show();
		}else{
			$(".sms_box").hide();
		} 
	});
	$("input[name=storage_status]").click(function(){
		$this = $(this);
		val = $this.val();
		if(val == '1'){
			$(".storage_box").show();
		}else{
			$(".storage_box").hide();
		} 
	});
});
</script>