<?php 
	$this->display(tpl('head',true));
	$is_close[$setting['is_close']]='checked';
?>
	<style>
		.layui-form-checkbox {
		    margin-top: 10px;
		}
	</style>
	<fieldset class="layui-elem-field layui-field-title">
	  	<legend>短信平台参数设置</legend>
	</fieldset>
	<form class="layui-form" method="post">
		<table class="layui-table  my-tabel">
			<tbody>
				<tr>
					<td>是否开启插件</td>
					<td>
						<input type="radio" name="sms[is_close]" value="1" <?php echo $is_close[1] ?> title="开启" />
						<input type="radio" name="sms[is_close]" value="0" <?php echo $is_close[0] ?> title="关闭" />
					</td>
				</tr>
				<tr>
					<td>关闭原因</td>
					<td>
							<textarea name="sms[close_why]" placeholder="关闭原因" class="layui-textarea"><?php echo $setting['close_why'] ?></textarea>
					</td>
				</tr>
				<tr>
					<td colspan="2" class="my_button center" align="center">
						<input type="hidden" name="step" id="step" value="post" />
						<button class="layui-btn">立即提交</button>
					</td>
				</tr>
			</tbody>
		</table>
	</from>
	<script>
		
		layui.config({
			version: '<?php echo NOWTIME ?>'
		});
		layui.use(['form'], function(){
		  	var $ = layui.jquery
			var form = layui.form;
		});
	</script>
<?php $this->display(tpl('foot',true)); ?>
