<?php require_once 'head.html';?>
        <div class="span9">
		  <div class="row-fluid">
			<div class="page-header">
				<h1>修改文章 <small>Edit article</small></h1>
			</div>
			<form class="form-horizontal" action="?c=opt&ip=edit&id=<?php echo $_GET['id'];?>" method="post">
				<fieldset>
					<div class="control-group">
						<label class="control-label" for="role">文章标题</label>
						<div class="controls">
							<input style="height:27.9861px;" name="title" type="text" class="input-xlarge" id="role" value="<?php echo $EditArticle['title'];?>"/>
						</div>
					</div>
					<?php if($EditArticle['type']=='music' || $EditArticle['type']=='video'){?>
					<div class="control-group">
						<label class="control-label" for="description">备注信息</label>
						<div class="controls">

				 <div>
    <textarea name="content" style="width:100%;height:300px;"><?php echo $EditArticle['content'];?></textarea>
</div>


						</div>
					</div>
					<?php }else{?>
					<div class="control-group">
						<label class="control-label" for="description">内容</label>
						<div class="controls">

				 <div>
    <textarea name="content" id="editor" style="width:100%;height:300px;"><?php echo $EditArticle['content'];?></textarea>
</div>

<script type="text/javascript" src="Editor/getEditor.js"></script>

						</div>
					</div>
					<?php }?>
					<div class="control-group">
						<label class="control-label" for="slug">资源链接</label>
						<div class="controls">
							<input style="height:27.9861px;" name="rlink" type="text" class="input-xlarge" id="slug" value="<?php echo $EditArticle['rlink'];?>" placeholder="可为空,大多数用来做音乐地址或视频地址.."/>
						</div>
					</div>
					<div class="control-group">
						<label class="control-label" for="image_link">资源图片</label>
						<div class="controls">
							<input style="height:27.9861px;" name="image_link" type="text" class="input-xlarge" id="image_link" value="<?php echo $EditArticle['image_link'];?>" placeholder="可为空,音乐用来作为歌曲LOGO,视频作为列表显示的时候展示用.."/> <a href="<?php echo $EditArticle['image_link'];?>" target="_blank"><img title="图" alt="图" style="width: 28px; height: 28px;" src="<?php echo $EditArticle['image_link'];?>"> 查看</a>
						</div>
					</div>
					<div class="control-group">
						<label class="control-label" for="slug">文章分类</label>
						<div class="controls">
							<select name="ify">
							<option value='0'>未分类</option>
							<?php foreach ($ify as $v){
							if ($v['pid']==$EditArticle['ify']){
                             echo "<option value='$v[pid]' selected='selected'>$v[ify_name]</option>";
                                 }else{
                             echo "<option value='$v[pid]'>$v[ify_name]</option>";
                                 }
							
							?>
							
							
							<?php }?>
							</select>
						</div>
					</div>
					<div class="control-group">
						<label class="control-label" for="mend">文章推荐</label>
						<div class="controls">
							<input type="radio" name="mend" value="0" <?php echo !$EditArticle['mend']? 'checked="checked"':""?>>不推荐  &nbsp;
							<input type="radio" name="mend" value="1" <?php echo $EditArticle['mend']? 'checked="checked"':""?>>推荐
						</div>
					</div>
					
					<div class="form-actions">
						<input name="edit_submit" type="submit" class="btn btn-success btn-large" value="保存修改" /> <a class="btn" href="?c=index">返回仪表盘</a>
					</div>					
				</fieldset>
			</form>
		  </div>
        </div>
      </div>

      <hr>

      <footer class="well">
        &copy; Strass - More Templates <a href="http://www.cssmoban.com/" target="_blank" title="模板之家">模板之家</a> - Collect from <a href="http://www.cssmoban.com/" title="网页模板" target="_blank">网页模板</a>
      </footer>

    </div>

    <script src="Delivery/js/jquery.js"></script>
	<script src="Delivery/js/bootstrap.min.js"></script>
  </body>
</html>
