<?php
/**
 * The edit reply view file of block module of ZDOO.
 *
 * @copyright   Copyright 2009-2018 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
 * @license     ZPL (http://zpl.pub/page/zplv12.html)
 * @author      Chunsheng Wang <chunsheng@cnezsoft.com>
 * @package     block
 * @version     $Id: edit.html.php 4029 2016-08-26 06:50:41Z liugang $
 * @link        http://www.zdoo.com
 */
?>
<?php include '../../common/view/header.html.php';?>
<?php include '../../../sys/common/view/editor.html.php';?>
<?php js::set('boardID', $board->id);?>
<div class='main-row'>
  <?php $treeMenu = $this->tree->getTreeMenu('forum', 0, array('treeModel', 'createForumBoardLink'));?>
  <div class='side-col col-3'>
    <div class='panel'>
      <div class='panel-body'>
        <?php echo $treeMenu;?>
      </div>
    </div>
  </div>
  <div class='main-col col-9'>
    <div class='panel'>
      <div class='panel-heading'><strong><i class='icon-edit'></i> <?php echo $lang->reply->edit . $lang->colon; $common->printForum($board, $thread);?></strong></div>
      <div class='panel-body'>
        <form method='post' class='form-horizontal' id='ajaxForm' enctype='multipart/form-data'>
          <div class='form-group'>
            <label class='col-md-1 col-sm-2 control-label'><?php echo $lang->reply->content;?></label>
            <div class='col-md-11 col-sm-10'><?php echo html::textarea('content', $reply->content, "rows='15' class='form-control'");?></div>
          </div>
          <?php if(commonModel::hasPriv('file', 'upload')):?>
          <div class='form-group'>
            <label class='col-md-1 col-sm-2 control-label'><?php echo $lang->thread->file;?></label>
            <div class='col-md-7 col-sm-8 col-xs-11'>
              <?php
              $this->reply->printFiles($reply, $canManage = true);
              echo $this->fetch('file', 'buildForm');
              ?>
            </div>
          </div>
          <?php endif;?>
          <div class='form-group form-actions'>
            <label class='col-md-1 col-sm-2'></label>
            <div class='col-md-11 col-sm-10'><?php echo html::submitButton() . ' &nbsp; ' . html::backButton();?></div>
          </div>
        </form>
      </div>
    </div>
  </div>
</div>
<?php include '../../common/view/footer.html.php';?>
