<?php if (!defined('ROOT')) exit; ?>
<!DOCTYPE html>
<html>

	<head>
		<?php include 'Inc_files.php';?>
		<link rel="stylesheet" type="text/css" href="/static/Member/css/style.css" />
		<link rel="stylesheet" type="text/css" href="/static/Member/css/index.css" />
	</head>

	<body>
		<?php include 'Inc_header.php';?>
		<dl class="container" id="content">
			<dd class="row clearfix">
				<?php include 'Inc_menu.php';?>
				<div class="col-sm-10 col-md-10 column">
					<div id="right">
						<div class="title">
							<span>网盘目录添加</span>
							<!--<input type="text" class="fr" name="search" id="search" />-->
						</div>
						<form class="form-horizontal" method="post" role="form" action="<?php echo U('V/add') ;?>">
							<input type="hidden" name="model_id" id="model_id" value="43" />
							<input type="hidden" name="ctime" id="ctime" value="<?php echo time();?>" />
							<input type="hidden" name="uid" id="uid" value="<?php echo session('user_auth.id')?>" />
							<input type="hidden" name="nickname" id="nickname" value="<?php echo session('user_auth.nickname')?>" />
							<div class="form-group">
								<label class="col-sm-2 control-label">网盘名</label>
								<div class="col-sm-4">
									<input type="text" name="name" class="form-control" />
									<p class="help-block">
										请输入网盘名
									</p>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">父级</label>
								<div class="col-sm-4">
									<select name="reid" class="form-control" >
										<option value="">请选择</option>
										<?php 
											foreach($list as $k => $v){
										?>
											<option value="<?php echo $v['id']?>"><?php echo $v['name'];?></option>
										<?php 		
											}
										?>
										
									</select>
									<p class="help-block">
										选择父级
									</p>
								</div>
							</div>
							<!--<p><?php  //echo $sql ;?></p>-->
							<div class="form-group">
								<label class="col-sm-2 control-label">排序</label>
								<div class="col-sm-4">
									<input type="text" name="disorder" class="form-control" />
									<p class="help-block">
										请输入数字，越大越靠前
									</p>
								</div>
							</div>
							<div class="form-group">
								<div class="col-sm-offset-2 col-sm-10">
									<button type="submit" class="btn btn-primary">添加</button> 
								</div>
							</div>
						</form>
					</div>
				</div>
			</dd>
		</dl>

	</body>

</html>