admin_boarding.php 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. <?php include 'admin_header.php'; ?>
  2. <div class="content-wrapper">
  3. <section class="content-header">
  4. <h1>
  5. <?=lang::_('Boarding')?>
  6. <small><?=lang::_('Boarding')?></small>
  7. </h1>
  8. <ol class="breadcrumb">
  9. <li><a href="/admin"><i class="fa fa-gears"></i> <?=lang::_('Admin')?></a></li>
  10. <li class="active"><?=lang::_('Boarding manager')?></li>
  11. </ol>
  12. </section>
  13. <section class="content">
  14. <div class="box box-info">
  15. <div class="box-header with-border">
  16. <h3 class="box-title"><?=lang::_('List of info')?></h3>
  17. </div>
  18. <div class="box-body">
  19. <div class="row"><div class="col-lg-12" style="overflow-x: auto;">
  20. <table class="table table-bordered table-hover dataTable table-striped data-list">
  21. <thead>
  22. <tr>
  23. <th><?=lang::_('Name')?></th>
  24. <th><?=lang::_('Date of create')?></th>
  25. <th>&nbsp;</th>
  26. </tr>
  27. </thead>
  28. <tbody>
  29. <?php foreach ($boxes as $page) : ?>
  30. <tr>
  31. <td><?=$page->box_title?></td>
  32. <td><?=$page->box_date?></td>
  33. <td>
  34. <button type="button" onclick="window.location='/admin/boarding/show/?id=<?=$page->box_id?>';" class="btn btn-flat btn-xs btn-warning"><i class="fa fa-pencil"></i></button>
  35. </td>
  36. </tr>
  37. <?php endforeach; ?>
  38. </tbody>
  39. <tfoot>
  40. <tr>
  41. <th><?=lang::_('Name')?></th>
  42. <th><?=lang::_('Date of create')?></th>
  43. <th>&nbsp;</th>
  44. </tr>
  45. </tfoot>
  46. </table>
  47. </div></div>
  48. </div>
  49. </div>
  50. <div class="callout callout-success<?php if (!$error) echo ' message-hide';?>">
  51. <button type="button" class="close" onclick="javascript: $(this).parent('div').fadeOut('fast');">×</button>
  52. <h4><i class="fa fa-check"></i>&nbsp;&nbsp;<?=lang::_('Yep, successfully saved!')?></h4>
  53. <p><?=lang::_('The given informations stored in database')?></p>
  54. </div>
  55. <div id="editor"></div>
  56. <form role="form" id="slideEditor" action="/admin/boarding/save/" method="post" enctype="multipart/form-data">
  57. <input type="hidden" name="MAX_FILE_SIZE" value="9000000000" />
  58. <input type="hidden" name="box_id" value="<?=$active->box_id?>" />
  59. <div class="box box-info">
  60. <div class="box-header with-border">
  61. <h3 class="box-title"><?=lang::_('Slideshow editor')?></h3>
  62. <div class="box-tools pull-right">
  63. <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
  64. </div>
  65. </div>
  66. <div class="box-body">
  67. <div class="row">
  68. <div class="col-lg-12">
  69. <div class="nav-tabs-custom">
  70. <ul class="nav nav-tabs">
  71. <li class="active"><a href="#eng" data-toggle="tab" onclick="javascript: $('.tab-pane').removeClass('active'); var hash = $(this).attr('href'); $(hash).addClass('active');">English</a></li>
  72. <!--<li><a href="#eng" data-toggle="tab" onclick="javascript: $('.tab-pane').removeClass('active'); var hash = $(this).attr('href'); $(hash).addClass('active');">English</a></li>-->
  73. <!-- <li><a href="#deu" data-toggle="tab">Deutsch</a></li>-->
  74. </ul>
  75. </div>
  76. <div class="tab-content">
  77. <div class="tab-pane active" id="hun">
  78. <div class="form-group">
  79. <label for="box_slug"><?=lang::_('Address')?>: </label>
  80. <input type="text" name="box_slug" value="<?=$active->box_slug?>" class="form-control" id="box_slug" data-validate="true" />
  81. </div>
  82. <div class="form-group">
  83. <label for="box_title"><?=lang::_('Meeting time')?>: </label>
  84. <textarea name="box_title" class="form-control" id="box_title" data-validate="true"><?=$active->box_title?></textarea>
  85. </div>
  86. <div class="form-group">
  87. <label for="box_title_en"><?=lang::_('Departure Time')?>: </label>
  88. <textarea name="box_title_en" class="form-control" id="box_title_en" data-validate="true"><?=$active->box_title_en?></textarea>
  89. </div>
  90. <div class="form-group">
  91. <label for="box_subtitle"><?=lang::_('Check in')?>: </label>
  92. <input type="text" name="box_subtitle" value="<?=$active->box_subtitle?>" class="form-control" id="box_subtitle" data-validate="true" />
  93. </div>
  94. <div class="form-group">
  95. <label for="box_subtitle_en"><?=lang::_('Boarding')?>: </label>
  96. <input type="text" name="box_subtitle_en" value="<?=$active->box_subtitle_en?>" class="form-control" id="box_subtitle_en" data-validate="true" />
  97. </div>
  98. <div class="form-group">
  99. <label for="box_button_text"><?=lang::_('Late policy')?>: </label>
  100. <input type="text" name="box_button_text" value="<?=$active->box_button_text?>" class="form-control" id="box_button_text" data-validate="true" />
  101. </div>
  102. <div class="form-group">
  103. <label for="box_button_text_en"><?=lang::_('Footer line #1')?>: </label>
  104. <input type="text" name="box_button_text_en" value="<?=$active->box_button_text_en?>" class="form-control" id="box_button_text_en" data-validate="true" />
  105. </div>
  106. <div class="form-group">
  107. <label for="box_url"><?=lang::_('Footer line #2')?>: </label>
  108. <input type="text" name="box_url" value="<?=$active->box_url?>" class="form-control" id="box_url" data-validate="true" />
  109. </div>
  110. <div class="form-group">
  111. <label for="box_banner"><?=lang::_('GoogleMaps embed code')?>: </label>
  112. <textarea name="box_banner" class="form-control" id="box_banner"><?=$active->box_banner?></textarea>
  113. </div>
  114. </div>
  115. </div>
  116. </div>
  117. </div>
  118. <div class="row">
  119. <div class="col-lg-12">
  120. <button type="submit" class="btn btn-success"><?=lang::_('Save');?></button>
  121. </div>
  122. </div>
  123. </div>
  124. </div>
  125. </form>
  126. </section>
  127. </div>
  128. <?php include 'admin_footer.php'; ?>