editbook.html.php 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <?php include $app->getModuleRoot() . 'common/view/header.html.php';?>
  2. <div class="main-row fade" id="mainRow">
  3. <div class="main-col" data-min-width="400">
  4. <div class="panel block-files block-sm no-margin">
  5. <div class="panel-heading">
  6. <div class="panel-title font-normal">
  7. <i class="icon icon-book text-muted"></i>
  8. <?php echo $node->title . " <i class='icon-angle-right'></i> " . ($node->type == 'article' ? $lang->baseline->editArticle : $lang->baseline->editChapter) ;?>
  9. </div>
  10. <nav class="panel-actions btn-toolbar">
  11. <div class="btn-group">
  12. </div>
  13. </nav>
  14. </div>
  15. <div class='panel-body'>
  16. <?php if($node->contentType == 'html') include $app->getModuleRoot() . 'common/view/kindeditor.html.php';?>
  17. <?php if($node->contentType == 'markdown') include $app->getModuleRoot() . 'common/view/markdown.html.php';?>
  18. <form class='load-indicator main-form form-ajax' method='post' action=<?php echo inlink('edittemplate', "templateID=$node->id")?> enctype='multipart/form-data' id='dataform'>
  19. <table class='table table-form'>
  20. <?php if($node->type != 'systemchapter'):?>
  21. <tr>
  22. <th><?php echo $lang->baseline->chapter;?></th>
  23. <td>
  24. <?php echo html::hidden('lib', $node->lib)?>
  25. <span><?php echo html::select('parent', $optionMenu, $node->parent, "class='form-control chosen'");?></span>
  26. </td><td></td>
  27. </tr>
  28. <?php endif;?>
  29. <?php if($node->chapterType == 'system'):?>
  30. <tr>
  31. <th><?php echo $lang->baseline->chapterType;?></th>
  32. <td><?php echo html::select("chapterType", $lang->baseline->chapterTypeList, $node->chapterType, "class='form-control chosen'");?></td>
  33. <td></td>
  34. </tr>
  35. <?php endif;?>
  36. <tr>
  37. <th><?php echo $node->type == 'article' ? $lang->book->title : $lang->baseline->chapterName;?></th>
  38. <td colspan='2'><?php echo html::input('title', $node->title, "class='form-control' autocomplete='off' required");?></td>
  39. </tr>
  40. <tr>
  41. <th><?php echo $lang->book->keywords;?></th>
  42. <td colspan='2'><?php echo html::input('keywords', $node->keywords, "class='form-control' autocomplete='off'");?></td>
  43. </tr>
  44. <?php if($node->type == 'article'):?>
  45. <tr id='contentBox' <?php if($node->type == 'url') echo "class='hidden'"?>>
  46. <th><?php echo $lang->baseline->docContent;?></th>
  47. <td colspan='2'><?php echo html::textarea('content', $node->type == 'url' ? '' : htmlspecialchars($node->content), "style='width:100%; height:200px'");?></td>
  48. </tr>
  49. <?php endif;?>
  50. <tr>
  51. <td colspan='3' class='text-center form-actions'>
  52. <?php
  53. echo html::hidden('editedDate', $node->editedDate);
  54. echo html::hidden('contentType', $node->contentType);
  55. echo html::hidden('acl', 'open');
  56. echo html::submitButton();
  57. echo html::backButton();
  58. ?>
  59. </td>
  60. </tr>
  61. </table>
  62. </form>
  63. </div>
  64. </div>
  65. </div>
  66. </div>
  67. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>