catalog.html.php 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <?php include $app->getModuleRoot() . 'common/view/header.html.php';?>
  2. <?php js::set('path', $node ? explode(',', $node->path) : array(0));?>
  3. <?php $spliter = (empty($this->app->user->feedback) && !$this->cookie->feedbackView && $app->tab == 'doc') ? true : false;?>
  4. <style>
  5. .action .btn {margin-bottom: 5px;}
  6. .not-clickable {pointer-events: none;}
  7. </style>
  8. <div class="main-row fade" id="mainRow">
  9. <?php include $app->getModuleRoot() . 'doc/view/side.html.php';?>
  10. <div class="main-col" data-min-width="400">
  11. <div class="cell" id="queryBox"></div>
  12. <div class="panel block-files block-sm no-margin">
  13. <div class="panel-heading">
  14. <div class="panel-title font-normal">
  15. <i class="icon icon-book text-muted"></i>
  16. <?php echo $book->name . " <i class='icon-angle-right'></i> " . ($node ? $node->title : $lang->doc->catalog);?>
  17. </div>
  18. </div>
  19. <div class='panel-body'>
  20. <form class='load-indicator main-form form-ajax' method='post' enctype='multipart/form-data' id='dataform'>
  21. <table class='table table-form'>
  22. <thead>
  23. <tr class='text-center'>
  24. <th class='w-p10'><?php echo $lang->book->type;?></th>
  25. <th><?php echo $lang->book->title;?></th>
  26. <th class='w-p30'><?php echo $lang->book->keywords;?></th>
  27. <th class='w-80px'><?php echo $lang->actions; ?></th>
  28. </tr>
  29. </thead>
  30. <tbody>
  31. <?php $maxID = 0;?>
  32. <?php foreach($children as $child):?>
  33. <?php $maxID = $maxID < $child->id ? $child->id : $maxID;?>
  34. <tr class='text-center text-middle'>
  35. <td><?php echo html::select("type[$child->id]", $lang->book->typeList, $child->type, "class='form-control not-clickable' readonly");?></td>
  36. <td><?php echo html::input("title[$child->id]", $child->title, "class='form-control'");?></td>
  37. <td><?php echo html::input("keywords[$child->id]", $child->keywords, "class='form-control'");?></td>
  38. <td>
  39. <?php echo html::hidden("order[$child->id]", $child->order, "class='order'");?>
  40. <?php echo html::hidden("mode[$child->id]", 'update');?>
  41. <i class='icon-arrow-up'></i> <i class='icon-arrow-down'></i>
  42. </td>
  43. </tr>
  44. <?php endforeach;?>
  45. <?php for($i = 0; $i < 5; $i ++):?>
  46. <tr class='text-center text-middle node'>
  47. <td><?php echo html::select("type[]", $lang->book->typeList, '', "class='form-control'");?></td>
  48. <td><?php echo html::input("title[]", '', "class='form-control'");?></td>
  49. <td><?php echo html::input("keywords[]", '', "class='form-control'");?></td>
  50. <td>
  51. <?php echo html::hidden("order[]", '', "class='order'");?>
  52. <?php echo html::hidden("mode[]", 'new');?>
  53. <i class='icon-arrow-up'></i> <i class='icon-arrow-down'></i>
  54. </td>
  55. </tr>
  56. <?php endfor;?>
  57. </tbody>
  58. <tfoot>
  59. <tr>
  60. <td colspan='4' class='text-center form-actions'>
  61. <?php echo html::submitButton() . html::backButton();?>
  62. </td>
  63. </tr>
  64. </tfoot>
  65. </table>
  66. </div>
  67. </div>
  68. </div>
  69. </div>
  70. </div>
  71. <?php js::set('maxID', $maxID)?>
  72. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>