<?php include '../../common/view/header.html.php';?>
<?php include '../../common/view/kindeditor.html.php';?>
<?php js::set('moduleID', $moduleID)?>
<div id="mainContent" class="main-content">
  <div class="main-header">
    <h2><?php echo $lang->faq->create;?></h2>
  </div>
  <form class="main-form form-ajax" method='post' id='dataform'>
    <table class='table table-form'>
      <tr>
        <th><?php echo $lang->faq->product;?></th>
        <td><?php echo html::select('product', $products, $productID, "class='form-control chosen' onchange=loadProductModules(this.value)")?></td>
      </tr>
      <tr>
        <th><?php echo $lang->faq->module;?></th>
        <td><?php echo html::select('module', '', '', "class='form-control chosen'")?></td>
      </tr>
      <tr>
        <th><?php echo $lang->faq->question;?></th>
        <td colspan='2'><?php echo html::input('question', '', "class='form-control'")?></td>
      </tr>
      <tr>
        <th><?php echo $lang->faq->answer;?></th>
        <td colspan='2'><?php echo html::textarea('answer', '', "class='form-control' rows=8")?></td>
      </tr>
      <tr>
          <td colspan='3' class='text-center form-actions'><?php echo html::submitButton() . html::backButton();?></td>
        </tr>
    </table>
</div>
<?php include '../../common/view/footer.html.php';?>
