<?php if(!defined("RUN_MODE")) die();?>
<?php include $this->loadModel('ui')->getEffectViewFile('default', 'common', 'header');?>
<?php include TPL_ROOT . 'common/datepicker.html.php';?>
<?php include TPL_ROOT . 'common/kindeditor.html.php';?>
<?php include TPL_ROOT . 'common/chosen.html.php';?>
<div class='page-user-control'>
  <div class='row'>
    <?php include TPL_ROOT . 'user/side.html.php';?>
    <div class='col-md-10'>
      <div class='panel'>
      <div class='panel-heading'><strong><i class='icon-plus'></i>&nbsp;<?php echo $lang->article->submission;?></strong></div>
      <div class='panel-body'>
        <form method='post' role='form' id='ajaxForm'>
          <table class='table table-form'>
            <tbody class='articleInfo'> 
            <tr>
              <th class='w-100px'><?php echo $lang->article->author;?></th>
              <td><?php echo html::input('author', $this->app->user->account, "class='form-control w-150px'");?></td>
            </tr>
            <tr>
              <th><?php echo $lang->article->source;?></th>
              <td class='w-30px'><?php echo html::select('source', $lang->article->sourceList, 'original', "class='form-control chosen'");?></td>
              <td>
                <div class='row' id='copyBox'>
                  <div class='col-md-4'><?php echo html::input('copySite', '', "class='form-control' placeholder='{$lang->article->copySite}'"); ?> </div>
                  <div class='col-md-8'><?php echo html::input('copyURL',  '', "class='form-control' placeholder='{$lang->article->copyURL}'"); ?></div>
                </div>
              </td>
            </tr>
            </tbody>
            <tr>
              <th><?php echo $lang->article->title;?></th>
              <td colspan='2'>
                <div class='input-group'>
                  <?php echo html::input('title', '', "class='form-control'");?>
                </div>
              </td>
            </tr>
            <tbody class='articleInfo'>
            <tr>
              <th><?php echo $lang->article->keywords;?></th>
              <td colspan='2'><?php echo html::input('keywords', '', "class='form-control' placeholder='{$lang->keywordsHolder}'");?></td>
            </tr>
            <tr>
              <th><?php echo $lang->article->summary;?></th>
              <td colspan='2'><?php echo html::textarea('summary', '', "rows='2' class='form-control'");?></td>
            </tr>
            </tbody>
            <tbody class='articleInfo'>
            <tr>
              <th><?php echo $lang->article->content;?></th>
              <td colspan='2'><?php echo html::textarea('content', '', "rows='10' class='form-control'");?></td>
            </tr>
            </tbody>
            <tr>
              <td></td>
              <td colspan='2'><?php echo html::submitButton();?></td>
            </tr>
          </table>
        </form>
      </div>
    </div>
  </div>
</div>
<?php include $this->loadModel('ui')->getEffectViewFile('default', 'common', 'footer');?>
