managebook.html.php 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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 $template->title . " <i class='icon-angle-right'></i> " . ($node ? $node->title : $lang->baseline->manageBook);?>
  9. </div>
  10. </div>
  11. <div class='panel-body'>
  12. <form class='load-indicator main-form form-ajax' method='post' enctype='multipart/form-data' id='dataform'>
  13. <table class='table table-form'>
  14. <thead>
  15. <tr class='text-center'>
  16. <th class='w-p10'><?php echo $lang->book->type;?></th>
  17. <th class='w-p10'><?php echo $lang->baseline->chapterType;?></th>
  18. <th><?php echo $lang->book->title;?></th>
  19. <th class='w-p30'><?php echo $lang->book->keywords;?></th>
  20. <th class='w-80px'><?php echo $lang->actions; ?></th>
  21. </tr>
  22. </thead>
  23. <tbody>
  24. <?php $maxID = 0;?>
  25. <?php foreach($children as $child):?>
  26. <?php $maxID = $maxID < $child->id ? $child->id : $maxID;?>
  27. <tr class='text-center text-middle'>
  28. <td><?php echo html::select("type[$child->id]", $lang->book->typeList, $child->type, "class='form-control'");?></td>
  29. <td><?php echo html::select("chapterType[$child->id]", $lang->baseline->chapterTypeList, $child->chapterType, "class='form-control'");?></td>
  30. <td><?php echo html::input("title[$child->id]", $child->title, "class='form-control'");?></td>
  31. <td><?php echo html::input("keywords[$child->id]", $child->keywords, "class='form-control'");?></td>
  32. <td>
  33. <?php echo html::hidden("order[$child->id]", $child->order, "class='order'");?>
  34. <?php echo html::hidden("mode[$child->id]", 'update');?>
  35. <i class='icon-arrow-up'></i> <i class='icon-arrow-down'></i>
  36. </td>
  37. </tr>
  38. <?php endforeach;?>
  39. <?php for($i = 0; $i < 5; $i ++):?>
  40. <tr class='text-center text-middle node'>
  41. <td><?php echo html::select("type[]", $lang->book->typeList, '', "class='form-control'");?></td>
  42. <td><?php echo html::select("chapterType[]", $lang->baseline->chapterTypeList, '', "class='form-control'");?></td>
  43. <td><?php echo html::input("title[]", '', "class='form-control'");?></td>
  44. <td><?php echo html::input("keywords[]", '', "class='form-control'");?></td>
  45. <td>
  46. <?php echo html::hidden("order[]", '', "class='order'");?>
  47. <?php echo html::hidden("mode[]", 'new');?>
  48. <i class='icon-arrow-up'></i> <i class='icon-arrow-down'></i>
  49. </td>
  50. </tr>
  51. <?php endfor;?>
  52. </tbody>
  53. <tfoot>
  54. <tr>
  55. <td colspan='4' class='text-center form-actions'>
  56. <?php echo html::submitButton() . html::backButton();?>
  57. </td>
  58. </tr>
  59. </tfoot>
  60. </table>
  61. </div>
  62. </div>
  63. </div>
  64. </div>
  65. </div>
  66. <?php js::set('maxID', $maxID)?>
  67. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>