<?php if (!defined('THINK_PATH')) exit();?>

<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="__TMPL__Common/style/style.css" />
<script type="text/javascript">
 	var VAR_MODULE = "<?php echo conf("VAR_MODULE");?>";
	var VAR_ACTION = "<?php echo conf("VAR_ACTION");?>";
	var MODULE_NAME	=	'<?php echo MODULE_NAME; ?>';
	var ACTION_NAME	=	'<?php echo ACTION_NAME; ?>';
	var ROOT = '__APP__';
	var ROOT_PATH = '<?php echo APP_ROOT; ?>';
	var CURRENT_URL = '<?php echo trim($_SERVER['REQUEST_URI']);?>';
	var INPUT_KEY_PLEASE = "<?php echo L("INPUT_KEY_PLEASE");?>";
	var TMPL = '__TMPL__';
	var APP_ROOT = '<?php echo APP_ROOT; ?>';
</script>
<script type="text/javascript" src="__TMPL__Common/js/jquery.js"></script>
<script type="text/javascript" src="__TMPL__Common/js/jquery.timer.js"></script>
<script type="text/javascript" src="__TMPL__Common/js/script.js"></script>
<script type="text/javascript" src="__ROOT__/public/runtime/admin/lang.js"></script>
<script type='text/javascript'  src='__ROOT__/admin/public/kindeditor/kindeditor.js'></script>
</head>
<body>
<div id="info"></div>

<div class="main">
<div class="main_title"><?php echo L("CONF_MOBILE");?></div>
<div class="blank5"></div>
	<form method='post' id="form" name="form" action="__APP__">
	<table cellpadding="4" cellspacing="0" border="0" class="form">
		<tr>
			<td colspan="2" class="topTd"></td>
		</tr>
		<?php if(is_array($config)): foreach($config as $key=>$cfg): ?><tr <?php if($cfg['code'] == 'only_one_delivery' or $cfg['code'] == 'has_ecv' or $cfg['code'] == 'has_message' or $cfg['code'] == 'has_region'): ?>style="display:none;"<?php endif; ?>>		
			<td class="item_title"><?php echo ($cfg["title"]); ?></th>
			<td class="item_input">
				<?php if($cfg['type'] == 1): ?><script type='text/javascript'> var eid = '<?php echo ($cfg["code"]); ?>';KE.show({id : eid,skinType: 'tinymce',allowFileManager : true,resizeMode : 0,items : [
							'source','fullscreen', 'undo', 'redo', 'print', 'cut', 'copy', 'paste',
							'plainpaste', 'wordpaste', 'justifyleft', 'justifycenter', 'justifyright',
							'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', 'subscript',
							'superscript', 'selectall', '-',
							'title', 'fontname', 'fontsize', 'textcolor', 'bgcolor', 'bold',
							'italic', 'underline', 'strikethrough', 'removeformat', 'image',
							'flash', 'media', 'table', 'hr', 'emoticons', 'link', 'unlink'
						]});</script><div  style='margin-bottom:5px; '><textarea id='<?php echo ($cfg["code"]); ?>' name='<?php echo ($cfg["code"]); ?>' style=' height:150px;width:750px;' ><?php echo ($cfg["val"]); ?></textarea> </div><?php endif; ?>
				<?php if($cfg['type'] == 2): ?><div style='width:120px; height:40px; margin-left:10px; display:inline-block;  float:left;' class='none_border'><script type='text/javascript'>var eid = '<?php echo ($cfg["code"]); ?>';KE.show({id : eid,items : ['upload_image'],skinType: 'tinymce',allowFileManager : true,resizeMode : 0});</script><div style='font-size:0px;'><textarea id='<?php echo ($cfg["code"]); ?>' name='<?php echo ($cfg["code"]); ?>' style='width:120px; height:25px;' ><?php echo ($cfg["val"]); ?></textarea> </div></div><input type='text' id='focus_<?php echo ($cfg["code"]); ?>' style='font-size:0px; border:0px; padding:0px; margin:0px; line-height:0px; width:0px; height:0px;' /></div><img src='<?php if($cfg["val"] == ''): ?>./admin/Tpl/default/Common/images/no_pic.gif<?php else: ?><?php echo ($cfg["val"]); ?><?php endif; ?>' <?php if($cfg["val"] != ''): ?>onclick='openimg("<?php echo ($cfg["code"]); ?>")'<?php endif; ?> style='display:inline-block; float:left; cursor:pointer; margin-left:10px; border:#ccc solid 1px; width:35px; height:35px;' id='img_<?php echo ($cfg["code"]); ?>' /><img src='/admin/Tpl/default/Common/images/del.gif' style='<?php if($cfg["val"] == ''): ?>display:none;<?php else: ?>display:inline-block;<?php endif; ?> margin-left:10px; float:left; border:#ccc solid 1px; width:35px; height:35px; cursor:pointer;' id='img_del_<?php echo ($cfg["code"]); ?>' onclick='delimg("<?php echo ($cfg["code"]); ?>")' title='删除' /><?php endif; ?>
				<?php if($cfg['type'] == 0): ?><input type="text" class="textbox" name="<?php echo ($cfg["code"]); ?>" value="<?php echo ($cfg["val"]); ?>" /><?php endif; ?>
			</td>
		</tr><?php endforeach; endif; ?>
		<tr>
			<td class="item_title"></td>
			<td class="item_input">
				<input type="hidden" name="<?php echo conf("VAR_MODULE");?>" value="Conf" />
				<input type="hidden" name="<?php echo conf("VAR_ACTION");?>" value="savemobile" />
				<input type="submit" class="button" value="<?php echo L("EDIT");?>" />
				<input type="reset" class="button" value="<?php echo L("RESET");?>" />
			</td>
		</tr>
		<tr>
			<td colspan="2" class="bottomTd"></td>
		</tr>
	</table>
	</form>
</div>
</body>
</html>