<link href="<?php echo base_url('public/kindue/themes/default/default.css'); ?>" rel="stylesheet">
<script src="<?php echo base_url('public/kindue/kindeditor-min.js'); ?>"></script>
<script src="<?php echo base_url('public/kindue/lang/zh_CN.js'); ?>"></script>

<div class="container" style="padding-top:42px;">
	<div class="row">
		<div class="span12">
			<div class="page-header">
				<h1><i class="icon-cogs"></i>模板设置
					<div class="pull-right btn-group">
						<a id="form" class="btn btn-primary" href="javascript:void(0);"><i class="icon-plus-sign icon-white"></i> 添加</a>
					</div>
				</h1>
			</div>
			<div class="row">
				<div class="span3">
					<ul class="nav nav-tabs nav-stacked">
						<li>
							<a href="<?php echo base_url('index.php/emailsystem/settingGen'); ?>"><i class="icon-wrench"></i> 常规</a>
						</li>
						<li class="active"><a href="<?php echo base_url('index.php/emailsystem/settingTemp'); ?>"><i class="icon-file"></i> 模板</a></li>
					</ul>
				</div>
				<div class="span9 settings">
						<form method="post" action="">
							<div>
								<div class="control-group">
									<label for="name" class="control-label">模版名</label> <input type="text" value="<?php echo $tempname; ?>" name="name" id="name" class="input-xlarge">
							    </div>
							    <hr>
							    <input type="hidden" name="tempid" value="<?php echo $tempid; ?>" />
								<textarea id="editor" name="email" style="width:700px;height:300px;">
									<?php echo $html; ?>
								</textarea> 
							</div>
							<div class="form-actions">
								<button class="btn btn-primary" type="submit">保存</button>
							</div>
						</form>
					<script>
						var options = {
							width : '700px',
							height : '500px;'
						};
				        KindEditor.ready(function(K) {
				                window.editor = K.create('#editor',options);
				        });
					</script>
					
				</div>
			</div>
		</div>
	</div>
</div>
</body>
</html>

