<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>修改内容</title>
        <link rel="stylesheet" type="text/css" href="<?php echo ADMIN_PUC ?>css/common.css"/>
        <script type="text/javascript" charset="utf-8" src="/chuangyi/Public/ueditor/ueditor.config.js" ></script>
        <script type="text/javascript" charset="utf-8" src="/chuangyi/Public/ueditor/ueditor.all.min.js" ></script>
        <script type="text/javascript" charset="utf-8" src="/chuangyi/Public/ueditor/lang/zh-cn/zh-cn.js"></script>
		  <style type="text/css">
			table{
			width: 100%;
			text-align: center;
			border: solid #bdccd2;
			border-width: 1px 0px 0px 1px;
		         }	
		   	td{
			border: solid #bdccd2;
			border-width:0px 1px 1px 0px;
			padding: 5px;
			height: 30px;
			text-align: right;
		     }
		    .lanmu-title{
		     	width: 20%;
		     	background:#def6ff;
		     	color: #272727;
		     }
		     .lanmu-luru input{
		     	float: left;
		     	width: 300px;
		     	height: 30px;
				outline: none;
		     }
		     .lanmu-luru select{
		     	float: left;
		     	width: 300px;
		     	height: 30px;
				outline: none;
		     }
			  .column-name{
			    width: 100%;
			    height: 30px;
			    background: #00455D;
			    line-height: 30px;
			    color: #ffffff;
			    padding-left: 20px;
			    font-size: 14px;
		      }
			   .lanmu-content textarea{
             	float: left;
             	width: 800px;
             	height: 500px;
             	outline: none;
           }
		</style>
	</head>
	<body>
		<div class="content">
			<div class="column-name">
				<div class="lmlb">修改文章</div>
				<div class="caozuo-title">
					<div class="quanxuan caozuo-lanmu"><input type="checkbox" name="" id="" value="" />全选</div>
				    <div class="caozuo-lanmu"><a href="/chuangyi/index.php/Admin/Category/add" target="right" style="color:#ffffff;text-decoration:none;" >添加</a></div>
				    <div class="caozuo-lanmu"><a href="__CONTORLLER__/del">删除</a></div>
				    <div class="caozuo-lanmu"><a href="/chuangyi/index.php/Admin/Article/edt" target="right">编辑</a></div>
			    </div>				
		</div>
	   <form method="post" action="" enctype="multipart/form-data">
        <input type="hidden" name="ar_id" value="<?php echo ($artes["ar_id"]); ?>"/> 
		<table border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td class="lanmu-title">文章名称</td>
				<td class="lanmu-luru"><input type="text" name="ar_title" id="" value="<?php echo ($artes["ar_title"]); ?>" /></td>
			</tr>
			<tr>
				<td class="lanmu-title">作者</td>
				<td class="lanmu-luru"><input type="text" name="ar_author" id="" value="<?php echo ($artes["ar_author"]); ?>" /></td>
			</tr>
            <tr>
				<td class="lanmu-title">缩略图</td>
				<td class="lanmu-luru" style="text-align:left;" >
                <input type="file" name="ar_pic" id="" value=" " />
                <?php if($artes[ar_pic] != ''): ?><img src="/chuangyi/<?php echo ($artes["ar_pic"]); ?>" width="6%;"/>
                <?php else: ?> <span style="color:red; font-size:15px;">暂无缩略图!</span><?php endif; ?>
                </td>
			</tr>

			<tr>
				<td class="lanmu-title">是否推荐</td>
				<td class="lanmu-luru">
                <input type="checkbox" name="ar_rem" id="" 
                <?php if($artes[ar_rem] == 1): ?>checked="checked"<?php else: endif; ?>
                <?php if(checked == checked ): ?>value="1"<?php else: ?>value="0"<?php endif; ?>
                
                />
                
                </td>
			</tr>
			<tr>
				<td class="lanmu-title">所属栏目</td>
				<td class="lanmu-luru">
				  <select name="ar_cateid">
                   <?php if(is_array($cateres)): $i = 0; $__LIST__ = $cateres;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><option  value ="<?php echo ($vo["cate_id"]); ?> " <?php if($artes[ar_cateid] == $vo[cate_id]): ?>selected="selected"<?php endif; ?>><?php echo str_repeat('-',$vo[level]*8); echo ($vo["cate_name"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?> 
                  </select>
				</td>
			</tr>
            <tr>
				<td class="lanmu-title">文章内容</td>
				<td class="lanmu-content">
					<textarea name="ar_content" id="content">
                     <?php echo ($artes["ar_content"]); ?>
                    </textarea>
				</td>
			</tr>
             <tr><td>发布时间</td><td style="text-align:left;"><input type="text" name="ar_time" value="<?php echo date("Y-m-d H:i:s") ?>"/></td></tr>
             <tr>
				<td colspan="2" class="tijiao" style="text-align:center;">
                  <input id="inp_name" class="input_out" type="submit" value="确定修改"  onmousemove="this.className='input_move'" 
onmouseout="this.className='input_out'"></input>
                </td>

			</tr>
		</table>
      </form>
	</body>
</html>
 <script type="text/javascript">
     UE.getEditor('content',{initialFrameWidth:1200,initialFrameHeight:400,});
 </script>