<?php 
	$this->display(tpl('head',true));
?>


<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="text" class="layui-input my-input" name="name" value="<?php echo $data['name']?>" />
					</td>
				</tr>
				<tr>
					<td>排序值</td>
					<td>
						<input type="text" class="layui-input my-input" name="reorder" value="<?php echo $data['reorder']?>"  />
					</td>
				</tr>
				<tr>
					<td colspan="2" class="my_button">
						<input type="hidden" name="cid" id="cid" value="<?php echo $data['cid']?>" />
						<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));
?>
