<?php 
$pagetitle="文章分类编辑";
include('header.php');
?><noscript> <!-- Show a notification if the user has disabled javascript -->
				<div class="notification error png_bg">
					<div>
						Javascript is disabled or is not supported by your browser.</div>
				</div>
			</noscript>
			
			<!-- Page Head -->
			

			
			<div class="content-box"><!-- Start Content Box -->
				
				<div class="content-box-header">
					
					<h3><?php echo $pagetitle;?></h3>
					
					<ul class="content-box-tabs">
						<li><a href="#tab1" class="default-tab">基本信息</a></li> <!-- href must be unique and match the id of target div -->
						<li><a href="#tab2">扩展信息</a></li>
					</ul>
					
					<div class="clear"></div>
					
				</div> <!-- End .content-box-header -->
				
				<div class="content-box-content">
					
					<form action="" method="post" name="form1" id="form1">
					
					<div class="tab-content  default-tab" id="tab1">				
						
							
							<fieldset> 
								<p>
									<label>标题</label>
									<input class="text-input medium-input" type="text" id="title" name="title" value="<?php if(!empty($info)) echo $info["title"]; ?>" /> 
								</p>
								
								<p>
									<label>分类</label>
									<select name="parentid" class="small-input">
										<option value="0">作为一级分类</option>
										<?php
							foreach($classList AS $key=>$value){
								  ?>
								  <option value="<?php echo $value['id'];?>" <?php if (!empty($info) && $info['parentid'] == $value['id']) {?>selected="selected"<?php } ?>>
								  ┠<?php echo $value['space'];?><?php echo $value['title'];?>
								  </option>
								  <?php
							}
							?>
										</select>
								</p>
								
								<p>
									<label>简介</label>
									<textarea class="text-input textarea" id="intro" name="intro" cols="60" rows="3"><?php if(!empty($info)) echo $info["intro"]; ?></textarea>
								</p>
								
								<p>
									<label>缩略图</label>
									<input class="text-input medium-input" type="text" id="thumb" name="thumb" value="<?php if(!empty($info)) echo $info["thumb"]; ?>" /> 
									<input class="text-input" type="file" id="thumb_file" name="thumb_file" onchange="return ajaxFileUpload('thumb_file','thumb','thumb_loading');" />
									<span id="thumb_loading"></span>
									<!--<img src="images/loading.gif" id="loading" style="display: none;"> -->
								</p>
								
								<p>
									<label>转连接</label>
									<input class="text-input medium-input" type="text" id="linkurl" name="linkurl" value="<?php if(!empty($info)) echo $info["linkurl"]; ?>" /> 
								</p>
								
								<p>
									<label>排序</label>
									<input class="text-input small-input" type="text" id="orders" name="orders" value="<?php if(!empty($info)) echo $info["orders"]; else echo '0'; ?>" /> 
								</p>								
							
							
								<p style="display:none">
									<label>个性模板</label>
									<input class="text-input medium-input" type="text" id="template" name="template" value="<?php if(!empty($info)) echo $info["template"]; ?>" /> 请勿随意填写
								</p>
								
								
								
								<p>
									<br /><input class="button" type="submit" name="submit" value="编辑" />
								</p>
								
							</fieldset>
							
							<div class="clear"></div><!-- End .clear -->
							
						
						
					</div> <!-- End #tab1 -->
					
					<div class="tab-content" id="tab2">
						<fieldset> 
						
							<p>
								<label>seo标题（建议64字节以内）</label>
								<input class="text-input small-input" type="text" id="seotitle" name="seotitle" value="<?php if(!empty($info)) echo $info["seotitle"];  ?>" /> 
							</p>
                            
                            
							
							<p>
								<label>seo关键词（建议3组以下）</label>
								<input class="text-input small-input" type="text" id="seokeyword" name="seokeyword" value="<?php if(!empty($info)) echo $info["seokeyword"];  ?>" /> ，作为分隔
							</p>
								
                            <p>
                                <label>seo描述（建议120字节以内）</label>
                                <textarea class="text-input textarea" id="seointro" name="seointro" cols="60" rows="3"><?php if(!empty($info)) echo $info["seointro"]; ?></textarea>
                            </p>
							
							<p>
								<label>自定义name（可代替id为唯一标识，建议为小写字母，可以作为seo使用，例如标题拼音、英文翻译等）</label>
								<input class="text-input medium-input" type="text" id="filename" name="filename" value="<?php if(!empty($info)) echo $info["filename"]; ?>" /> 
							</p>
							
							<p>
								<label>列表页内容数量</label>
								<input class="text-input small-input" type="text" id="listnum" name="listnum" value="<?php if(!empty($info)) echo $info["listnum"];  ?>" /> 
							</p>
							
							<p>
								<br /><input class="button" type="submit" name="submit" value="编辑" />
							</p>
								
						</fieldset>
						<div class="clear"></div><!-- End .clear -->
					</div> <!-- End #tab2 -->
					</form>
					
				</div> <!-- End .content-box-content -->
				
			</div> <!-- End .content-box -->
			
			<div class="clear"></div>
			
<?php 
include('footer.php');
?>