{include file="head.html"}
{include file="plus/ke_plus.html"}
<div id="jywrap">
  <div id="maincontent">
    <div class="wrap">
      <div class="crumbs"> <a href="__APP__/index/home">{lang='内容管理'}</a> <a href="#">{lang='文章管理'}</a> </div>
      <hr />
      <br />
      <form action="__URL__/add" method="post">
        <div class="infobox">
          <h3>{lang='添加文章'}</h3>
          <table class="table_style form-table"  id="hacker" width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="100">{lang='所属栏目'}：</td>
              <td><select name="cid"  reg="." id="cid" onChange="ajax_fields()" >
                  <option value="">{lang='选择分类'}</option>
                  <?php if(is_array($cat)) { foreach($cat as $vo){ ?>
                  <option value="{$vo['id']}" <?php if($cid==$vo['id']) { ?> selected="selected" <?php } ?> 
                  <?php if($vo['type']==0 || $vo['mid']<>$mid ){ ?>style="background-color:#ccc"  disabled="disabled" <?php } ?>
                  <?php if(!module('common')->auth_class_if($vo['id'])){ ?>style="background-color:#ccc"  disabled="disabled" <?php } ?>
                   >
                  {$vo['cname']}
                  </option>
                  <?php }} ?>
                </select>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{lang='置顶'}
                <input type="checkbox"  name="hits" id="hits" value="1" />
                {lang='推荐'}
                <input type="checkbox"  name="good" id="good" value="1" />
                &nbsp;&nbsp;{lang='排序'}：
                <input  name="sorter" id="sorter" type='text' class="regular-text" style="width:30px; height:20px !important; line-height:20px !important" value="0" /></td>
            </tr>
            <tr>
              <td>{lang='内容标题'}：</td>
              <td valign="middle"><input class="regular-text" type='text' name="title" id="title" />
                <input  style=" background-repeat:no-repeat; background-position:bottom left; width:60px;" class="regular-text iColorPicker style_color" type='text' name="style_color" id="color" />
                <a id="icp_color" onclick="iColordisplay('color','icp_color')" href="javascript:void(null)"> <img align="absmiddle" style="border: 0pt none; margin: 0pt 0pt 0pt 3px;" src="__PUBLICURL__/ui/images/color.gif"> </a> &nbsp;&nbsp;&nbsp;<strong>{lang='加粗'}</strong>
                <input type="checkbox"  name="style_bold" id="style_bold" value="1" />
                <em>{lang='斜体'}</em>
                <input type="checkbox"  name="style_italic" id="style_italic" value="1" /></td>
            </tr>
            <tr>
              <td>{lang='英文标题'}：</td>
              <td><input name="pinyin" type='text' class="regular-text" id="pinyin" value="" maxlength="100" />
                &nbsp;&nbsp;&nbsp;{lang='只允许英文数字下划线留空则将标题自动转换成拼音'}</td>
            </tr>
            <tr>
              <td>{lang='外部链接'}：</td>
              <td><input class="regular-text" type='text' id="url" value="" name="url" />
                &nbsp;&nbsp;{lang='浏览量'}：
                <input  name="views" id="views" type='text' class="regular-text" style="width:30px; height:20px !important; line-height:20px !important" value="0" /></td>
            </tr>
            <tr>
              <td>{lang='文章缩略图'}：</td>
              <td><div style="float:left">
                  <input class="regular-text" style="width:250px" name="pic" id="pic" />
                  &nbsp;<a id="loadimage" href="javascript:openimage()" >{lang='预览'}</a>&nbsp;<a class="charu" href="javascript:void 0" onclick="open_thumbnail()" >{lang='选择缩略图'}</a></div></td>
            </tr>
            <tr>
              <td>{lang='批量上传'}：</td>
              <td><div id="sapload" style="float:left;"></div></td>
            </tr>
            <tr>
              <td>{lang='增强功能'}：</td>
              <td>{include file="plus/editor_plus.html"}</td>
            </tr>
            <tr>
              <td colspan="2"><textarea id="editor" name="content" cols="0" style="width:100%; height:400px;" rows="5" class="regular-textarea" ></textarea></td>
            </tr>
            <tr>
              <td>{lang='附加功能'}：</td>
              <td><input name="picoff" type="checkbox" id="picoff" value="1"<?php if($model_info['default_picoff']==1){ ?> checked="checked"<?php } ?> />
                {lang='远程抓图'}  &nbsp;&nbsp;
                <input name="onepic" type="checkbox" id="onepic" value="1"<?php if($model_info['default_onepic']==1){ ?> checked="checked"<?php } ?> />
                {lang='获取第一张图片为缩略图'} &nbsp;&nbsp;
                <input name="gettag" type="checkbox" id="gettag" value="1"<?php if($model_info['default_gettag']==1){ ?> checked="checked"<?php } ?> />
                {lang='自动提取关键词和TAG'}</td>
            </tr>
            <tr>
              <td   align="left" valign="middle">{lang='文章摘要'} ：</td>
              <td><textarea name="description" id="description" cols="0" rows="5" class="regular-textarea" style="width:300px !important; height:80px"  onKeyUp="check_length();"></textarea>
                <a onclick="limitL()" href="javascript:void 0">{lang='提取摘要'}</a></td>
            </tr>
            <tr>
              <td   align="left" valign="middle">{lang='文章关键字'}:</td>
              <td><input class="regular-text" type='text' id="keywords" name="keywords" />
                <a class="hq" href="javascript:getkey()">{lang='提取关键词'}</a></td>
            </tr>
            <tr>
              <td align="left" valign="middle">{lang='文章作者'}:</td>
              <td><input name="author" type='text' class="regular-text" id="author" value="{$model_info['default_author']}" /></td>
            </tr>
            <tr>
              <td align="left" valign="middle">{lang='发布时间'}:</td>
              <td><input name="time" type='text' class="regular-text" id="time" value="<?php echo date("Y-m-d H:i:s"); ?>" /></td>
            </tr>
            <?php module('common')->plus_hook_tpl('content','add') ?>
            <tbody id="channel_exp">
            </tbody>
            <tr>
              <td  align="left" valign="middle">{lang='是否发布'} ：</td>
              <td><input type="radio" name="status" value="1" checked/>
                {lang='发布'}
                <input type="radio" name="status" value="0">
                {lang='草稿'}</td>
            </tr>
          </table>
        </div>
        <div class="submit_body">
          <input name="psot_do" id="psot_do" type="hidden" value="yes" />
          <button class="regular-button" type="submit" >{lang='添加'}</button>
        </div>
      </form>
    </div>
  </div>
</div>
{include file="article/content_upload.html"} 
{include file="plus/ajax_fields.html"} 
{include file="plus/pic_view.html"}
</body></html>