edit.html.php 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. <?php include $app->getModuleRoot() . 'common/view/header.html.php';?>
  2. <?php include $app->getModuleRoot() . 'common/view/kindeditor.html.php';?>
  3. <?php js::set('moduleID', $faq->module)?>
  4. <div id="mainContent" class="main-content">
  5. <div class="center-block">
  6. <div class="main-header">
  7. <h2><?php echo $lang->faq->edit;?></h2>
  8. </div>
  9. </div>
  10. <form class="main-form form-ajax" method='post' id='dataform'>
  11. <table class='table table-form'>
  12. <tr>
  13. <th><?php echo $lang->faq->product;?></th>
  14. <td><?php echo html::select('product', $products, $faq->product, "class='form-control chosen' onchange=loadProductModules(this.value)")?></td>
  15. </tr>
  16. <tr>
  17. <th><?php echo $lang->faq->module;?></th>
  18. <td><?php echo html::select('module', '', '', "class='form-control chosen'")?></td>
  19. </tr>
  20. <tr>
  21. <th><?php echo $lang->faq->question;?></th>
  22. <td colspan='2'><?php echo html::input('question', $faq->question, "class='form-control'")?></td>
  23. </tr>
  24. <tr>
  25. <th><?php echo $lang->faq->answer;?></th>
  26. <td colspan='2'><?php echo html::textarea('answer', $faq->answer, "class='form-control' rows=8")?></td>
  27. </tr>
  28. <tr>
  29. <td colspan='3' class='text-center form-actions'><?php echo html::submitButton();?></td>
  30. </tr>
  31. </table>
  32. </div>
  33. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>