<?php if (!defined('APP_PATH')) exit;?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<script src="http://127.0.0.5/Magic/Data/Public/js/jquery.js"></script>
<script src="http://127.0.0.5/Data/Public/editor/kindeditor-min.js"></script>
<script type="text/javascript" src="http://127.0.0.5/Data/Public/editor/lang/zh_CN.js"></script>
<link href="http://127.0.0.5/Data/Public/editor/themes/default/default.css" rel="stylesheet" type="text/css" />
<script src="http://127.0.0.5/Magic/Data/Public/js/main.js"></script>
<script src="http://127.0.0.5/Magic/Data/Public/js/jquery.nicescroll.min.js"></script>
<link href="http://127.0.0.5/Magic/Data/Public/css/style.css" rel="stylesheet"/>
</head>
<body>
<script>
  $(document).ready(function() {    
	$("html").niceScroll();
  });
</script>
<div class="place">
	<span>位置：</span>
	<ul class="placeul">
		<li>首页</li>
		<li>系统设置</li>
	</ul>
</div>
<div class="formbody">
	<div id="usual1" class="usual"> 
		<div class="itab">
			<ul> 
				<li class="selected">系统设置</li> 
				<li>上传设置</li> 
				<li>邮件设置</li>
			</ul>
		</div>
		<iframe id="blank" name="blank"  style="display:none"></iframe>
		<form method="post" target="blank" action="?r=system-index-save">
		<table border="0" cellspacing="0" cellpadding="0" class="forminfo">
		<tr><td colspan="2">
		<div class="tabson" style="display:block">
			<table border="0" cellspacing="0" cellpadding="0" width="97%">
				<td align="right" width="120">WAP站点：</td><td style="font-weight:normal;padding-top:23px;">
				<input type="radio" value="1" <?php if($config_site['MOBILE_SITE']){ ?>   checked<?php }?> name="site[MOBILE_SITE]" onclick="$('#wap').show()">&nbsp;&nbsp;开启&nbsp;&nbsp;
				<input type="radio" value="0" <?php if(!$config_site['MOBILE_SITE']){ ?>  checked<?php }?> name="site[MOBILE_SITE]"  onclick="$('#wap').hide()">&nbsp;&nbsp;关闭<br>* 是否开启WAP版 </td>
			</tr>
			<tr id="wap" <?php if(!$config_site['MOBILE_SITE']){ ?> style='display:none'<?php }?>>
				<td align="right" width="120">WAP版模板：</td><td style="font-weight:normal;">
				<input name="site[MOBILE_TPL]" class="insty" type="text"  value="<?php echo $config_site['MOBILE_TPL'];?>" size="30"></td>
			</tr>
			<tr>
				<td align="right" width="120">错误调试：</td><td style="font-weight:normal;padding-top:23px;">
				<input type="radio" value="1" <?php if($config_site['DEBUG']){ ?>   checked<?php }?> name="site[DEBUG]">&nbsp;&nbsp;开启&nbsp;&nbsp;
				<input type="radio" value="0" <?php if(!$config_site['DEBUG']){ ?>  checked<?php }?> name="site[DEBUG]">&nbsp;&nbsp;关闭<br>* 开启后显示详细错误调试，非调试建议关闭	</td>
			</tr>
			<tr>
				<td align="right" width="120">调试工具：</td><td style="font-weight:normal;padding-top:23px;">
				<input type="radio" value="1" <?php if($config_site['DEBUG_TOOL']){ ?>   checked<?php }?> name="site[DEBUG_TOOL]">&nbsp;&nbsp;开启&nbsp;&nbsp;
				<input type="radio" value="0" <?php if(!$config_site['DEBUG_TOOL']){ ?>  checked<?php }?> name="site[DEBUG_TOOL]">&nbsp;&nbsp;关闭<br>* 开启后显示错误调试工具，需开启调试模式	</td>
			</tr>
			<tr>
				<td align="right">错误日志：</td><td style="font-weight:normal;padding-top:23px;">
				<input type="radio" value="1" <?php if($config_site['LOG_ON']){ ?>  checked<?php }?> name="site[LOG_ON]">&nbsp;&nbsp;开启&nbsp;&nbsp;
				<input type="radio" value="0" name="site[LOG_ON]" <?php if(!$config_site['LOG_ON']){ ?>  checked<?php }?>>&nbsp;&nbsp;关闭<br>* 将系统出错信息保存到文件</td>
			</tr>
			<tr>
				<td align="right">静态模式：</td><td style="font-weight:normal;padding-top:23px;">
				<input type="radio" value="1" name="site[URL_REWRITE]" <?php if($config_site['URL_REWRITE']){ ?>  checked<?php }?> onclick="$('#static').show()">&nbsp;&nbsp;开启&nbsp;&nbsp;
				<input type="radio" value="0" name="site[URL_REWRITE]" <?php if(!$config_site['URL_REWRITE']){ ?>  checked<?php }?> onclick="$('#static').hide()">&nbsp;&nbsp;关闭<br>* 使用静态模式，首先需要使用REWRITER规则重写URL</td>
			</tr>
			
			<tr id="static" <?php if(!$config_site['URL_REWRITE']){ ?> style='display:none'<?php }?>>
				<td align="right" width="120"></td><td style="font-weight:normal;"><a href="?r=system-index-rewriter" target="blank">点击此处更新REWRITER规则</a></td>
			</tr>
			<tr>
				<td align="right" style="border-bottom:none" >静态缓存：</td><td style="font-weight:normal;padding-top:23px;border-bottom:none">
				<input type="radio" value="0" name="site[TPL_CACHE_TIME]" <?php if($config_site['TPL_CACHE_TIME']>=0){ ?>  checked<?php }?> onclick="$('#cache').show();$('#tpl_cache_time').val('0')">&nbsp;&nbsp;开启&nbsp;&nbsp;
				<input type="radio" value="-1" name="site[TPL_CACHE_TIME]" <?php if($config_site['TPL_CACHE_TIME']==-1){ ?>  checked<?php }?> onclick="$('#cache').hide();$('#tpl_cache_time').val('-1')">&nbsp;&nbsp;关闭&nbsp;&nbsp;
				<br>* 开启后自动生成静态文件缓存</td>
			</tr>
			<tr id="cache"  <?php if($config_site['TPL_CACHE_TIME']==-1){ ?> style='display:none'<?php }?>>
				<td align="right" width="120" style="border-bottom:none">缓存过期时间：</td><td style="font-weight:normal;border-bottom:none"><input name="site[TPL_CACHE_TIME]" id="tpl_cache_time" class="insty" type="text"  value="<?php echo $config_site['TPL_CACHE_TIME'];?>" size="10">&nbsp;* 0为永久缓存,-1为不缓存</td>
			</tr>
			</table>

		</div> 
		
		
		<div class="tabson">
			<table border="0" cellspacing="0" cellpadding="0"  class="forminfo">
			<tr>
				<td align="right" width="200">文件保存路径：</td><td style="font-weight:normal;"><input name="common[UPLOAD_SAVE_PATH]" class="insty" type="text"  value="<?php echo C('UPLOAD_SAVE_PATH');?>" size="25"></td>
			</tr>
			<tr>
				<td align="right" width="200">上传文件大小限制：</td><td style="font-weight:normal;"><input name="common[UPLOAD_ALLOW_SIZE]" class="insty" type="text"  value="<?php echo C('UPLOAD_ALLOW_SIZE');?>" size="6">&nbsp;KB</td>
			</tr>
			<tr>
				<td align="right">允许上传的图片类型：</td><td>&nbsp;&nbsp;<textarea class="textinput " name="common[UPLOAD_IMAGE_TYPE]" rows="3" cols="60"><?php echo implode('|',C('UPLOAD_ALLOW_TYPE.IMAGE'));?></textarea></td>
			</tr>
			<tr>
				<td align="right">允许上传的软件类型：</td><td>&nbsp;&nbsp;<textarea class="textinput " name="common[UPLOAD_FILE_TYPE]" rows="3" cols="60"><?php echo implode('|',C('UPLOAD_ALLOW_TYPE.FILE'));?></textarea></td>
			</tr>
			<tr>
				<td align="right">允许上传的多媒体类型：</td><td>&nbsp;&nbsp;<textarea class="textinput " name="common[UPLOAD_MEDIA_TYPE]" rows="3" cols="60"><?php echo implode('|',C('UPLOAD_ALLOW_TYPE.MEDIA'));?></textarea></td>
			</tr>
			<tr>
				<td width="180" align="right">图片缩略图：</td><td style="font-weight:normal;"><input type="radio" value="1" name="common[THUMB_ON]" <?php if(C('THUMB_ON')){ ?>  checked<?php }?>>&nbsp;&nbsp;开启&nbsp;&nbsp;<input type="radio" value="0" name="common[THUMB_ON]" <?php if(!C('THUMB_ON')){ ?>  checked<?php }?>>&nbsp;&nbsp;关闭</td>
			</tr>
			<tr>
				<td width="180" align="right">缩略图前缀：</td><td style="font-weight:normal;"><input name="common[THUMB_PREFIX]" type="text" id="THUMB_PREFIX"   value="<?php echo C('THUMB_PREFIX');?>" size="8" class="insty">&nbsp;&nbsp;后缀：<input name="common[THUMB_ENDFIX]" type="text" id="THUMB_ENDFIX"   value="<?php echo C('THUMB_ENDFIX');?>" size="8" class="insty"></td>
			</tr>
			<tr>
				<td width="180" align="right">缩略图生成方式：</td><td style="font-weight:normal;"><input name="common[THUMB_TYPE]" type="text" id="THUMB_TYPE"   value="<?php echo C('THUMB_TYPE');?>" size="8" class="insty"></td>
			</tr>
			<tr>
				<td width="180" align="right">说明：</td><td style="font-weight:normal;">1：固定宽度,高度自增&nbsp;&nbsp;2：固定高度,宽度自增<br> 3：固定宽度,高度裁切&nbsp;&nbsp;4：固定高度,宽度裁切 <br>5：缩放最大边&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;6：自动裁切图片</td>
			</tr>
			<tr>
				<td width="180" align="right">缩略图宽带和高度：</td><td style="font-weight:normal;">&nbsp;&nbsp;宽：<input name="common[THUMB_WIDTH]" type="text" id="THUMB_WIDTH" value="<?php echo C('THUMB_WIDTH');?>" size="5" class="insty">&nbsp;&nbsp;高：<input name="common[THUMB_HEIGHT]" type="text" id="THUMB_HEIGHT" value="<?php echo C('THUMB_HEIGHT');?>" size="5" class="insty"</td>
			</tr>
			<tr>
				<td width="180" align="right">上传图片水印功能：</td><td style="font-weight:normal;"><input type="radio" value="true" name="common[WATER_ON]" <?php if(C('WATER_ON')){ ?>  checked<?php }?>>&nbsp;&nbsp;开启&nbsp;&nbsp;<input type="radio" value="false" name="common[WATER_ON]" <?php if(!C('WATER_ON')){ ?>  checked<?php }?>>&nbsp;&nbsp;关闭</td>
			</tr>
			<tr>
				<td width="180" align="right">水印类型：</td><td style="font-weight:normal;"><input type="radio" onclick="$('#water_type_text').show();$('#water_type_image').hide();" value="text" name="common[WATER_TYPE]" <?php if(C('WATER_TYPE')=='text'){ ?>  checked<?php }?>>&nbsp;&nbsp;文字水印&nbsp;&nbsp;<input type="radio" onclick="$('#water_type_image').show();$('#water_type_text').hide();" value="image" name="common[WATER_TYPE]" <?php if(C('WATER_TYPE')=='image'){ ?>  checked<?php }?>>&nbsp;&nbsp;图片水印</td>
			</tr>
			<tr>
				<td colspan="2" style="border:none;">
					<table border="0" cellspacing="0" cellpadding="0" width="100%" id="water_type_image" style="margin:0;padding:0;<?php if(C('WATER_TYPE')=='text'){ ?>  display:none<?php }?>">	
						<tr>
							<td align="right"  width="200">上传水印图片：</td><td><input type="text" name="common[WATER_IMG]" id="water_img"  class="insty" size="30" value="<?php echo C('WATER_IMG');?>" >&nbsp;&nbsp;<input type="button" id="uploadButton" class="scbtn7" plugin="image" name="water_img" view="true" value="上  传" /></td>
						</tr >
						<tr>
							<td ></td><td style="padding:10px 0"><img src="<?php echo C('WATER_IMG');?>" alt="图片无法显示" id="water_img_view"></td>
						</tr>
					</table>
					<table border="0" cellspacing="0" cellpadding="0" width="100%"  id="water_type_text" style="margin:0;padding:0;<?php if(C('WATER_TYPE')=='image'){ ?>  display:none<?php }?>">	
						<tr>
							<td align="right" width="200">水印文字：</td><td style="font-weight:normal;"><input name="common[WATER_TEXT]" type="text" id="WATER_TEXT"   value="<?php echo C('WATER_TEXT');?>" size="25" class="insty"></td>
						</tr>
						<tr>
							<td align="right">水印文字字号：</td><td style="font-weight:normal;"><input name="common[WATER_TEXT_SIZE]" type="text" id="WATER_TEXT_SIZE"   value="<?php echo C('WATER_TEXT_SIZE');?>" size="8" class="insty"></td>
						</tr>
						<tr>
							<td align="right">水印文字颜色：</td><td style="font-weight:normal;"><input name="common[WATER_TEXT_COLOR]" type="text" id="WATER_TEXT_COLOR"   value="<?php echo C('WATER_TEXT_COLOR');?>" size="8" class="insty"></td>
						</tr>
						<tr>
							<td align="right">水印文字字体：</td><td style="font-weight:normal;"><input name="common[WATER_FONT]" type="text" id="WATER_FONT"   value="<?php echo C('WATER_FONT');?>" size="25" class="insty"></td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td align="right">水印透明度：</td><td style="font-weight:normal;"><input name="common[WATER_PCT]" type="text" id="WATER_PCT"   value="<?php echo C('WATER_PCT');?>" size="5" class="insty">&nbsp;&nbsp;*取值范围0-100，0为不透明，100为完全透明</td>
			</tr>
			<tr>
				<td align="right">水印压缩比：</td><td style="font-weight:normal;"><input name="common[WATER_QUALITY]" type="text" id="WATER_QUALITY"   value="<?php echo C('WATER_QUALITY');?>" size="5" class="insty">&nbsp;&nbsp;*取值范围0-100</td>
			</tr>
			<tr>
				<td align="right" style="border-bottom:none">水印位置：</td><td style="border-bottom:none">
					<table border="0" cellspacing="0" cellpadding="0" width="240">	
						<tr>
							<td width="80" height="10" align="center"><input type="radio" name="common[WATER_POS]"  value="1" <?php if(C('WATER_POS')==1){ ?>  checked<?php }?>> 顶部居左</td>
							<td align="center" width="80"><input type="radio" name="common[WATER_POS]" value="2" <?php if(C('WATER_POS')==2){ ?>  checked<?php }?>> 顶部居中</td>
							<td align="center" width="80"><input type="radio" name="common[WATER_POS]"  value="3" <?php if(C('WATER_POS')==3){ ?>  checked<?php }?>> 顶部居右</td>
						</tr>
						<tr>
							<td width="80" height="10" align="center"><input type="radio" name="common[WATER_POS]"  value="4" <?php if(C('WATER_POS')==4){ ?>  checked<?php }?>> 左边居中</td>
							<td align="center"><input type="radio" name="common[WATER_POS]"  value="5" <?php if(C('WATER_POS')==5){ ?>  checked<?php }?>> 图片中心</td>
							<td align="center"><input type="radio" name="common[WATER_POS]"  value="6" <?php if(C('WATER_POS')==6){ ?>  checked<?php }?>> 右边居中</td>
						</tr>
						<tr>
							<td width="80" height="10" align="center"><input type="radio" name="common[WATER_POS]"  value="7" <?php if(C('WATER_POS')==7){ ?>  checked<?php }?>> 底部居左</td>
							<td align="center"><input type="radio" name="common[WATER_POS]"  value="8" <?php if(C('WATER_POS')==8){ ?>  checked<?php }?>> 底部居中</td>
							<td align="center"><input type="radio" name="common[WATER_POS]"  value="9" <?php if(C('WATER_POS')==9){ ?>  checked<?php }?>> 底部居右</td>
						</tr>
						<tr>
							<td width="80" height="10" align="center" style="border-bottom:none"><input type="radio" name="common[WATER_POS]"  value="0" <?php if(C('WATER_POS')==0){ ?>  checked<?php }?>> 随机位置</td><td align="center" style="border-bottom:none"></td><td align="center" style="border-bottom:none"></td>
						</tr>				
					</table>
				</td>
			</tr>
			</table>
		</div>

		<div class="tabson">
			<table border="0" cellspacing="0" cellpadding="0"  class="forminfo">
				<tr>
					<td align="right" width="200">smtp服务器地址：</td><td style="font-weight:normal;"><input name="common[SMTP_HOST]" class="insty" type="text"  value="<?php echo C('SMTP_HOST');?>" size="40"></td>
				</tr>
				<tr>
					<td align="right" width="200">smtp服务器端口：</td><td style="font-weight:normal;"><input name="common[SMTP_PORT]" class="insty" type="text"  value="<?php echo C('SMTP_PORT');?>" size="15"></td>
				</tr>
				<tr>
					<td align="right" width="200">SSL安全连接：</td><td style="font-weight:normal;"><input type="radio" value="1" name="common[SMTP_SSL]" <?php if(C('SMTP_SSL')){ ?>  checked<?php }?>>&nbsp;&nbsp;是&nbsp;&nbsp;<input type="radio" value="0" name="common[SMTP_SSL]" <?php if(!C('SMTP_SSL')){ ?>  checked<?php }?>>&nbsp;&nbsp;否</td>
				</tr>
				<tr>
					<td align="right" width="200">smtp服务器帐号：</td><td style="font-weight:normal;"><input name="common[SMTP_USERNAME]" class="insty" type="text"  value="<?php echo C('SMTP_USERNAME');?>" size="40"></td>
				</tr>
				<tr>
					<td align="right" width="200">smtp服务器帐号密码：</td><td style="font-weight:normal;"><input name="common[SMTP_PASSWORD]" class="insty" type="text"  value="<?php echo C('SMTP_PASSWORD');?>" size="40"></td>
				</tr>
				<tr>
					<td align="right" width="200">发件人邮件地址：</td><td style="font-weight:normal;"><input name="common[SMTP_FROM_TO]" class="insty" type="text"  value="<?php echo C('SMTP_FROM_TO');?>" size="40"></td>
				</tr>
				<tr>
					<td align="right" width="200" style="border-bottom:none">邮件内容编码：</td><td style="font-weight:normal;border-bottom:none"><input name="common[SMTP_CHARSET]" class="insty" type="text"  value="<?php echo C('SMTP_CHARSET');?>" size="15"></td>
				</tr>
			</table>
		</div>
		</form>
		<tr>
		<td width="100" height="40" align="right"></td><td><input type="submit" class="scbtn1" value="保存">&nbsp;&nbsp;&nbsp;<input type="reset" value="重置" class="scbtn4"></td>
	</tr>
	</table>
	</div>
</div>
</body>
</html>
