You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

76 lines
3.3 KiB

  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: tianlionfire
  5. * Date: 2018/3/8
  6. * Time: 14:00
  7. */
  8. use backend\modules\zzcs\assets\ZzcsAsset;
  9. ZzcsAsset::addCss($this, '/plug/My97DatePicker/skin/WdatePicker.css');
  10. ZzcsAsset::addCss($this, '/global/css/combo.select.css');
  11. ZzcsAsset::addCss($this, '/hotel-affiche/css/add_affiche.css');
  12. ZzcsAsset::addCss($this, '/plug/jqueryPage/new_page.css');
  13. ZzcsAsset::addCss($this, '/plug/font-awesome-4.7.0/css/font-awesome.css');
  14. ZzcsAsset::addCss($this, '/plug/froala/css/froala_editor.min.css');
  15. ZzcsAsset::addScript($this, '/hotel-affiche/js/add_affiche.js');
  16. ZzcsAsset::addScript($this, '/plug/My97DatePicker/WdatePicker.js');
  17. ZzcsAsset::addScript($this, '/plug/jqueryPage/jquery.page.js');
  18. ZzcsAsset::addScript($this, '/plug/layer/layer.js');
  19. ZzcsAsset::addScript($this, '/plug/froala/js/froala_editor.min.js');
  20. ZzcsAsset::addScript($this, '/global/js/jquery.combo.select.js');
  21. ZzcsAsset::addScript($this, '/des-ticket/js/sweetalert2.min.js');
  22. ZzcsAsset::addCss($this, '/des-ticket/css/sweetalert2.min.css');
  23. ?>
  24. <?php
  25. //echo '<pre>';
  26. //print_r($hotelList);
  27. //echo '</pre>';
  28. //?>
  29. <div class="container" style="margin-left:0px;">
  30. <div style="font-size: 14px;color: #858585;clear:both;">
  31. <span class="name_span">酒店名称:</span>
  32. <input type="text" id="hotel_name" list="companys">
  33. <datalist id="companys">
  34. <?php foreach ($hotelList as $key => $vel) { ?>
  35. <option value="<?php echo $vel['hotel_name']?>"></option>
  36. <?php } ?>
  37. </datalist>
  38. </div>
  39. <div style="margin-top:10px;font-size: 14px;color: #858585;clear:both;">
  40. <span class="name_span">公告类型:</span>
  41. <select style="" id="affiche_type">
  42. <option value="-1" style="font-size: 12px;">请选择</option>
  43. <option value="1" style="font-size: 12px;">价格调整</option>
  44. <option value="2" style="font-size: 12px;">预定信息</option>
  45. <option value="3" style="font-size: 12px;">酒店信息</option>
  46. <option value="0" style="font-size: 12px;">其他</option>
  47. </select>
  48. </div>
  49. <div style="margin-top:10px;font-size: 14px;color: #858585;clear:both;">
  50. <span class="name_span">重要等级:</span>
  51. <select style=";" id="important_level">
  52. <option value="1" style="font-size: 12px;">S级,紧急</option>
  53. <option value="2" style="font-size: 12px;">A级,重要</option>
  54. <option value="3" style="font-size: 12px;">B级,普通</option>
  55. </select>
  56. </div>
  57. <div style="margin-top:20px" class="input-group col-xs-4">
  58. <span class="input-group-addon">排序:</span>
  59. <input id="sort" type="number" placeholder="优先级(0-1000,升序排列)" step="1" class="form-control">
  60. </div>
  61. <div style="margin-top:20px" class="input-group ">
  62. <span class="input-group-addon">标题:</span>
  63. <input id="title" type="text" placeholder="公告标题" name="title" class="form-control" maxlength="30">
  64. </div>
  65. <section id="editor">
  66. <div id='edit' style="margin-top: 30px;">
  67. </div>
  68. </section>
  69. <button class="btn btn-primary" style="margin-top: 10px" onclick="save(1)">保存并发布</button>
  70. <button class="btn btn-default" style="margin-top: 10px;margin-left: 10px;" onclick="save(0)">保存</button>
  71. </div>