cargo3_schedule.html 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Aisky-coffee</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  7. <!-- 新 Bootstrap4 核心 CSS 文件 -->
  8. <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/4.1.0/css/bootstrap.min.css">
  9. <!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
  10. <script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
  11. <!-- popper.min.js 用于弹窗、提示、下拉菜单 -->
  12. <script src="https://cdn.bootcss.com/popper.js/1.12.5/umd/popper.min.js"></script>
  13. <!-- 最新的 Bootstrap4 核心 JavaScript 文件 -->
  14. <script src="https://cdn.bootcss.com/bootstrap/4.1.0/js/bootstrap.min.js"></script>
  15. <!--可用來建立使用者小圖示-->
  16. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
  17. <script>
  18. $(function(){
  19. //提升機
  20. {% if params.hoists %}
  21. var hoist_num = 0;
  22. {% for hoist in params.hoists %}
  23. if('{{hoist.start}}' != '00:00' && '{{hoist.end}}' != '00:00' && hoist_num == 0){
  24. var ho = $(".set-schedule")[0];
  25. var ho_div = $("#hoist_div");
  26. ho.style.display = 'none';
  27. ho_div.css('visibility','visible');
  28. $('select[name=hoist_duration1]').val('{{hoist.duration}}');
  29. $('select[name=hoist_from_hr1]').val('{{hoist.start}}'.split(':')[0]);
  30. $('select[name=hoist_from_min1]').val('{{hoist.start}}'.split(':')[1]);
  31. $('select[name=hoist_to_hr1]').val('{{hoist.end}}'.split(':')[0]);
  32. $('select[name=hoist_to_min1]').val('{{hoist.end}}'.split(':')[1]);
  33. hoist_num ++;
  34. }else if(hoist_num > 0){
  35. if(hoist_num == 1){
  36. var add = document.getElementById('hoist_add1');
  37. hoist_num ++;
  38. }else{
  39. var add = document.getElementById('hoist_add' + i);
  40. };
  41. Add(add);
  42. $('select[name=hoist_duration' + i + ']').val('{{hoist.duration}}');
  43. $('select[name=' + 'hoist_from_hr' + i + ']').val('{{hoist.start}}'.split(':')[0]);
  44. $('select[name=' + 'hoist_from_min' + i + ']').val('{{hoist.start}}'.split(':')[1]);
  45. $('select[name=' + 'hoist_to_hr' + i + ']').val('{{hoist.end}}'.split(':')[0]);
  46. $('select[name=' + 'hoist_to_min' + i + ']').val('{{hoist.end}}'.split(':')[1]);
  47. };
  48. {% endfor %}
  49. {% endif %}
  50. //烘乾機
  51. {% if params.dryers %}
  52. var dryer_num = 0;
  53. {% for dryer in params.dryers %}
  54. if('{{dryer.start}}' != '00:00' && '{{dryer.end}}' != '00:00' && dryer_num == 0){
  55. var dry = $(".set-schedule")[1];
  56. var dry_div = $("#dryer_div");
  57. dry.style.display = 'none';
  58. dry_div.css('visibility','visible');
  59. $('select[name=dryer_duration1]').val('{{dryer.duration}}');
  60. $('select[name=dryer_from_hr1]').val('{{dryer.start}}'.split(':')[0]);
  61. $('select[name=dryer_from_min1]').val('{{dryer.start}}'.split(':')[1]);
  62. $('select[name=dryer_to_hr1]').val('{{dryer.end}}'.split(':')[0]);
  63. $('select[name=dryer_to_min1]').val('{{dryer.end}}'.split(':')[1]);
  64. dryer_num ++;
  65. }else if(dryer_num > 0){
  66. if(dryer_num == 1){
  67. var add = document.getElementById('dryer_add1');
  68. dryer_num ++;
  69. }else{
  70. var add = document.getElementById('dryer_add' + i);
  71. };
  72. Add(add);
  73. $('select[name=dryer_duration' + i + ']').val('{{dryer.duration}}');
  74. $('select[name=' + 'dryer_from_hr' + i + ']').val('{{dryer.start}}'.split(':')[0]);
  75. $('select[name=' + 'dryer_from_min' + i + ']').val('{{dryer.start}}'.split(':')[1]);
  76. $('select[name=' + 'dryer_to_hr' + i + ']').val('{{dryer.end}}'.split(':')[0]);
  77. $('select[name=' + 'dryer_to_min' + i + ']').val('{{dryer.end}}'.split(':')[1]);
  78. };
  79. {% endfor %}
  80. {% endif %}
  81. });
  82. </script>
  83. <script>
  84. var i = 1;
  85. function Cancel(){
  86. window.location.href='/cargo3';
  87. };
  88. function Add(evt){
  89. evt.style.display="none";
  90. i ++;
  91. var div = document.createElement('div');
  92. var from_hr = 'from_hr' + i;
  93. var from_min = 'from_min' + i;
  94. var to_hr = 'to_hr' + i;
  95. var to_min = 'to_min' + i;
  96. var id = evt.getAttribute('id');
  97. var len = id.length;
  98. var add = id.split('_')[0] + '_add' + i;
  99. var del = id.split('_')[0] + '_del' + i;
  100. var html = '';
  101. var begin = id.split('_')[0];
  102. div.className = "col-12 row";
  103. div.style.marginTop = "10px";
  104. html += '<div class="col-xl-5 col-lg-5 col-md-4" style="margin-top:10px;">';
  105. html += '<span>Duration</span>';
  106. if(begin == 'hoist'){
  107. html += ' <select name="hoist_duration' + i + '" class="duration">';
  108. }else if(begin == 'dryer'){
  109. html += ' <select name="dryer_duration' + i + '" class="duration">';
  110. }else{
  111. };
  112. html += '<option selected value="30min">30 min</option><option value="60min">60 min</option><option value="90min">90 min</option><option value="120min">120 min</option><option value="150min">150 min</option></select>';
  113. html += '</div>';
  114. html += '<div class="from-to col-xl-7 col-lg-7 col-md-8" style="margin-top:10px;">';
  115. html += '<div>';
  116. html += '<div class="from row">';
  117. html += '<div class="col-3">';
  118. html += '<span>From</span>';
  119. html += '</div>';
  120. html += '<div class="col-xs-6">';
  121. if(id.split('_')[0] == 'hoist'){
  122. html += '<select name="hoist_from_hr' + i + '">';
  123. }else if(id.split('_')[0] == 'dryer'){
  124. html += '<select name="dryer_from_hr' + i + '">';
  125. }else{
  126. };
  127. for(var hr = 0; hr < 24; hr++){
  128. if(hr < 10){
  129. html += '<option value="0' + hr + '">0' + hr + '</option>';
  130. }else{
  131. html += '<option value="' + hr + '">' + hr + '</option>';
  132. };
  133. };
  134. html += '</select>';
  135. if(id.split('_')[0] == 'hoist'){
  136. html += ' : <select name="hoist_from_min' + i + '">';
  137. }else if(id.split('_')[0] == 'dryer'){
  138. html += ' : <select name="dryer_from_min' + i + '">';
  139. }else{
  140. };
  141. for(var min = 0; min < 60; min++){
  142. if(min < 10){
  143. html += '<option value="0' + min + '">0' + min + '</option>';
  144. }else{
  145. html += '<option value="' + min + '">' + min + '</option>';
  146. };
  147. };
  148. html += '</select>';
  149. html += '</div>';
  150. html += '<div class="col-xs-3">';
  151. html += '<input id=' + del + ' class="delete" type="button" value="Delete" onclick="Delete(' + del + ');">';
  152. html += '</div>';
  153. html += '</div>';
  154. html += '<div class="to row">';
  155. html += '<div class="col-3">';
  156. html += '<span>To</span>';
  157. html += '</div>';
  158. html += '<div class="col-xs-6">';
  159. if(id.split('_')[0] == 'hoist'){
  160. html += '<select name="hoist_to_hr' + i + '">';
  161. }else if(id.split('_')[0] == 'dryer'){
  162. html += '<select name="dryer_to_hr' + i + '">';
  163. }else{
  164. };
  165. for(var hr = 0; hr < 24; hr++){
  166. if(hr < 10){
  167. html += '<option value="0' + hr + '">0' + hr + '</option>';
  168. }else{
  169. html += '<option value="' + hr + '">' + hr + '</option>';
  170. };
  171. };
  172. html += '</select>';
  173. if(id.split('_')[0] == 'hoist'){
  174. html += ' : <select name="hoist_to_min' + i + '">';
  175. }else if(id.split('_')[0] == 'dryer'){
  176. html += ' : <select name="dryer_to_min' + i + '">';
  177. }else{
  178. };
  179. for(var min = 0; min < 60; min++){
  180. if(min < 10){
  181. html += '<option value="0' + min + '">0' + min + '</option>';
  182. }else{
  183. html += '<option value="' + min + '">' + min + '</option>';
  184. };
  185. };
  186. html += '</select><br>';
  187. html += '<input id=' + add + ' class="add" type="button" value="Add" onclick="Add(' + add + ');">';
  188. html += '</div>';
  189. html += '<div class="col-xs-3"></div>';
  190. html += '</div>';
  191. html += '</div>';
  192. html += '</div>';
  193. div.innerHTML = html;
  194. div.style.marginTop = '15px';
  195. div.style.zIndex = '100';
  196. evt.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.appendChild(div);
  197. };
  198. function Delete(evt){
  199. var id = evt.getAttribute('id');
  200. var add = id.split('_')[0] + '_' + 'add';
  201. var clo_xs_3 = evt.parentNode;
  202. var from = clo_xs_3.parentNode;
  203. var begin = id.split('_')[0];
  204. var div = from.parentNode.parentNode.parentNode;
  205. var next_div = div.nextElementSibling;
  206. var pre_div = div.previousElementSibling;
  207. if(next_div && pre_div == null){
  208. div.parentNode.removeChild(div);
  209. next_div.style.marginTop = '0px';
  210. }else if(next_div && pre_div){
  211. div.parentNode.removeChild(div);
  212. }else if(next_div == null && pre_div == null){
  213. div.parentNode.parentNode.children[1].style.display = 'inline-block';
  214. div.parentNode.style.visibility = 'hidden';
  215. var name = id.split('_')[0];
  216. var from_hr = name + '_from_hr' + 1;
  217. var from_min = name + '_from_min' + 1;
  218. var to_hr = name + '_to_hr' + 1;
  219. var to_min = name + '_to_min' + 1;
  220. $('select[name=' + from_hr + ']').val('00');
  221. $('select[name=' + from_min + ']').val('00');
  222. $('select[name=' + to_hr + ']').val('00');
  223. $('select[name=' + to_min + ']').val('00');
  224. }else{
  225. div.parentNode.removeChild(div);
  226. i --;
  227. add = add + i;
  228. add = document.getElementById(add);
  229. if(add == null){
  230. add = pre_div.children[1].children[0].children[1].children[1].children[3];
  231. };
  232. add.style.display = 'block';
  233. };
  234. };
  235. $(function(){
  236. var hoist = $(".set-schedule")[0];
  237. var hoist_div = $("#hoist_div");
  238. var dryer = $(".set-schedule")[1];
  239. var dryer_div = $("#dryer_div");
  240. hoist.onclick = function(){
  241. hoist.style.display = 'none';
  242. hoist_div.css('visibility','visible');
  243. };
  244. dryer.onclick = function(){
  245. dryer.style.display = 'none';
  246. dryer_div.css('visibility','visible');
  247. };
  248. });
  249. </script>
  250. <style>
  251. body {
  252. margin:0;
  253. }
  254. .navbar-dark .navbar-nav .nav-link {
  255. color: white;
  256. cursor: pointer;
  257. text-decoration:none;
  258. width: 110px;
  259. height: 46px;
  260. }
  261. .nav-top {
  262. line-height:40px;
  263. background-color: #C4C4C4;
  264. }
  265. .website_title{
  266. font-family: Roboto;
  267. font-style: normal;
  268. font-weight: normal;
  269. font-size: 30px;
  270. color: #000000;
  271. }
  272. .navbar-nav > li{
  273. float: none;
  274. display: inline-block;
  275. width: 100px;
  276. margin: 0 auto;
  277. text-align: center;
  278. }
  279. .navbar-nav > li a{
  280. font-size: 20px;
  281. }
  282. .main-page {
  283. margin-top: 200px;
  284. }
  285. .page-title {
  286. font-family: Roboto;
  287. font-style: normal;
  288. font-weight: bold;
  289. font-size: 36px;
  290. color: #000000;
  291. }
  292. form {
  293. margin-top: 70px;
  294. }
  295. .flex {
  296. display: flex;
  297. flex-direction: row;
  298. flex-wrap: wrap;
  299. justify-content: center;
  300. }
  301. .flex span {
  302. font-family: Roboto;
  303. font-style: normal;
  304. font-weight: normal;
  305. font-size: 18px;
  306. margin-left: 20px;
  307. color: #000000;
  308. }
  309. .duration {
  310. background: #FFFFFF;
  311. border: 1px solid #000000;
  312. box-sizing: border-box;
  313. border-radius: 5px;
  314. width: 110px;
  315. height: 40px;
  316. font-size: 20px;
  317. margin-left: 15px;
  318. text-align: center;
  319. }
  320. .from select, .to select {
  321. width: 65px;
  322. height: 35px;
  323. margin-left: 2px;
  324. }
  325. .to {
  326. margin-top: 10px;
  327. margin-left: 10px;
  328. }
  329. .from {
  330. margin-left: 10px;
  331. }
  332. .from > div:first-child, .to > div:first-child {
  333. padding-right: 0px;
  334. text-align: right;
  335. margin-right: 5px;
  336. }
  337. .hoist, .dryer {
  338. height: 400px;
  339. border: 2px solid #E5E5E5;
  340. border-radius: 5px;
  341. margin-top:35px;
  342. margin-left:35px;
  343. }
  344. .item-title {
  345. display: inline-block;
  346. margin-top: 20px;
  347. margin-left: 20px;
  348. font-family: Roboto;
  349. font-style: normal;
  350. font-weight: bold;
  351. font-size: 24px;
  352. color: #000000;
  353. }
  354. .set-schedule {
  355. width: 200px;
  356. height: 45px;
  357. background: #008CBA;
  358. border: 1px solid #CFCFCF;
  359. box-sizing: border-box;
  360. color: #FFFFFF;
  361. border-radius: 5px;
  362. font-size: 17px;
  363. margin-left: 10px;
  364. }
  365. .delete {
  366. background: #E43030;
  367. border: 1px solid #CFCFCF;
  368. box-sizing: border-box;
  369. border-radius: 5px;
  370. margin-left: 5px;
  371. width: 65px;
  372. height: 33px;
  373. font-size: 16px;
  374. text-align: center;
  375. line-height: 16px;
  376. color: #FFFFFF;
  377. }
  378. .add {
  379. background: #008CBA;
  380. border: 1px solid #CFCFCF;
  381. box-sizing: border-box;
  382. border-radius: 5px;
  383. margin-top: 10px;
  384. margin-left: 82px;;
  385. width: 65px;
  386. height: 33px;
  387. font-size: 16px;
  388. text-align: center;
  389. line-height: 16px;
  390. color: #FFFFFF;
  391. }
  392. .page-bottom {
  393. margin-top: 100px;
  394. }
  395. .form-control {
  396. background: #008CBA;
  397. border: 1px solid #CFCFCF;
  398. box-sizing: border-box;
  399. border-radius: 5px;
  400. width: 120px;
  401. height: 58px;
  402. text-align: center;
  403. line-height: 50px;
  404. color: #FFFFFF;
  405. display: inline-block;
  406. }
  407. @media(max-width:373px){
  408. .card {
  409. margin-right: 0px;
  410. }
  411. .hoist, .dryer {
  412. margin-left: 0px;
  413. }
  414. .col {
  415. padding-right: 0px;
  416. padding-left: 0px;
  417. }
  418. .from,.to {
  419. margin-left: 0px;
  420. }
  421. .flex span {
  422. margin-left: 0px;
  423. }
  424. .from select, .to select {
  425. width: 45px;
  426. }
  427. .add {
  428. width: 50px;
  429. margin-left: 62px;
  430. }
  431. .delete {
  432. width: 58px;
  433. }
  434. .col-xs-8:not(:first-child) {
  435. margin-top: 150px;
  436. }
  437. .form-group {
  438. margin-top: 50px;
  439. }
  440. }
  441. @media(max-width:577px){
  442. }
  443. @media(min-width:576px){
  444. }
  445. @media(min-width:768px){
  446. .navbar-nav > li {
  447. margin-left: 0px;
  448. }
  449. .navbar-nav .li-block {
  450. display:none;
  451. }
  452. }
  453. @media(min-width:991px){
  454. .navbar-nav > li {
  455. margin-left: 20px;
  456. }
  457. .navbar-nav .li-block {
  458. display:none;
  459. }
  460. .page-bottom input:last-child {
  461. margin-left: 100px;
  462. }
  463. }
  464. @media(min-width:1200px){
  465. .navbar-nav > li {
  466. margin-left: 50px;
  467. }
  468. .navbar-nav .li-block {
  469. display: inline-block;
  470. width: 100px;
  471. }
  472. .page-bottom input:last-child {
  473. margin-left: 100px;
  474. }
  475. }
  476. @media(min-width:1400px){
  477. .navbar-nav .li-block {
  478. display: inline-block;
  479. width: 200px;
  480. }
  481. .page-bottom input:last-child {
  482. margin-left: 100px;
  483. }
  484. }
  485. @media(min-width:1689px) {
  486. .navbar-nav > li {
  487. margin-left: 50px;
  488. }
  489. .navbar-nav .li-block {
  490. display: inline-block;
  491. width: 500px;
  492. }
  493. .page-bottom input:last-child {
  494. margin-left: 100px;
  495. }
  496. }
  497. </style>
  498. </head>
  499. <body>
  500. <nav class="fixed-top">
  501. <nav class="navbar navbar-expand-md nav-top justify-content-center">
  502. <div>
  503. <span class="website_title">貨櫃3</span>
  504. </div>
  505. </nav>
  506. <nav class="navbar navbar-expand-md bg-dark navbar-dark nav-bottom">
  507. <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#collapsibleNavbar">
  508. <span class="navbar-toggler-icon"></span>
  509. </button>
  510. <div class="collapse navbar-collapse" id="collapsibleNavbar">
  511. <ul class="navbar-nav">
  512. <li class="nav-item">
  513. <a class="nav-link" href="/">首頁</a>
  514. </li>
  515. <li class="nav-item">
  516. <a class="nav-link" href="#">關於我們</a>
  517. </li>
  518. <li class="nav-item">
  519. <a class="nav-link" href="#">資訊</a>
  520. </li>
  521. <li class="nav-item">
  522. <a class="nav-link" href="#">聯絡方法</a>
  523. </li>
  524. <li class="nav-item">
  525. <a class="nav-link" href="/cargo_list">咖啡貨櫃</a>
  526. </li>
  527. <li class="nav-item">
  528. <a class="nav-link" href="/video">影像串流</a>
  529. </li>
  530. <li class="li-block"></li>
  531. <li class="nav-item">
  532. <a class="nav-link" href="#"><i class="fa fa-user-o"></i> {{params.username}}</a>
  533. </li>
  534. <li class="nav-item">
  535. <a class="nav-link" href="/logout">Logout</a>
  536. </li>
  537. </ul>
  538. </div>
  539. </nav>
  540. </nav>
  541. <div class="main-page">
  542. <div class="page-title text-center">
  543. </div>
  544. <form method="post" action="/b_cargo3">
  545. <div class="container-fluid">
  546. <div class="row">
  547. <div class="col flex">
  548. <div class="hoist col-xl-5 col-lg-5 col-md-5 col-sm-8 col-xs-8">
  549. <h2 class="item-title">提升機</h2>
  550. <input class="set-schedule" type="button" value="Set up the schedule">
  551. <br>
  552. <div id="hoist_div" class="row" style="visibility:hidden;">
  553. <div class="col-12 row">
  554. <div class="col-xl-5 col-lg-5 col-md-4 col-sm-12 col-xs-12" style="margin-top:10px;">
  555. <span>Duration</span>
  556. <select name="hoist_duration1" class="duration">
  557. <option selected value="30min">30 min</option>
  558. <option value="60min">60 min</option>
  559. <option value="90min">90 min</option>
  560. <option value="120min">120 min</option>
  561. <option value="150min">150 min</option>
  562. </select>
  563. </div>
  564. <div class="from-to col-xl-7 col-lg-7 col-md-8 col-sm-12 col-xs-12" style="margin-top:10px;">
  565. <div>
  566. <div class="from row">
  567. <div class="col-3">
  568. <span>From</span>
  569. </div>
  570. <div class="col-xs-6">
  571. <select name="hoist_from_hr1">
  572. {% for hr in range(0, 24) %}
  573. {% if hr < 10 %}
  574. <option value="0{{hr}}">0{{hr}}</option>
  575. {% else %}
  576. <option value="{{hr}}">{{hr}}</option>
  577. {% endif %}
  578. {% endfor %}
  579. </select>
  580. : <select name="hoist_from_min1">
  581. {% for min in range(0, 60) %}
  582. {% if min < 10 %}
  583. <option value="0{{min}}">0{{min}}</option>
  584. {% else %}
  585. <option value="{{min}}">{{min}}</option>
  586. {% endif %}
  587. {% endfor %}
  588. </select>
  589. </div>
  590. <div class="col-xs-3">
  591. <input id="hoist_del1" class="delete" type="button" value="Delete" onclick="Delete(hoist_del1);">
  592. </div>
  593. </div>
  594. <div class="to row">
  595. <div class="col-3">
  596. <span>To</span>
  597. </div>
  598. <div class="col-xs-6">
  599. <select name="hoist_to_hr1">
  600. {% for hr in range(0, 24) %}
  601. {% if hr < 10 %}
  602. <option value="0{{hr}}">0{{hr}}</option>
  603. {% else %}
  604. <option value="{{hr}}">{{hr}}</option>
  605. {% endif %}
  606. {% endfor %}
  607. </select>
  608. : <select name="hoist_to_min1">
  609. {% for min in range(0, 60) %}
  610. {% if min < 10 %}
  611. <option value="0{{min}}">0{{min}}</option>
  612. {% else %}
  613. <option value="{{min}}">{{min}}</option>
  614. {% endif %}
  615. {% endfor %}
  616. </select><br>
  617. <input id="hoist_add1" class="add" type="button" value="Add" onclick="Add(hoist_add1);">
  618. </div>
  619. <div class="col-xs-3"></div>
  620. </div>
  621. </div>
  622. </div>
  623. </div>
  624. </div>
  625. </div>
  626. <div class="dryer col-xl-5 col-lg-5 col-md-5 col-sm-8 col-xs-8">
  627. <h2 class="item-title">烘乾機</h2>
  628. <input class="set-schedule" type="button" value="Set up the schedule">
  629. <br>
  630. <div id="dryer_div" class="row" style="visibility:hidden;">
  631. <div class="col-12 row">
  632. <div class="col-xl-5 col-lg-5 col-md-4 col-sm-12 col-xs-12" style="margin-top:10px;">
  633. <span>Duration</span>
  634. <select name="dryer_duration1" class="duration">
  635. <option selected value="30min">30 min</option>
  636. <option value="60min">60 min</option>
  637. <option value="90min">90 min</option>
  638. <option value="120min">120 min</option>
  639. <option value="150min">150 min</option>
  640. </select>
  641. </div>
  642. <div class="from-to col-xl-7 col-lg-7 col-md-8 col-sm-12 col-xs-12" style="margin-top:10px;">
  643. <div>
  644. <div class="from row">
  645. <div class="col-3">
  646. <span>From</span>
  647. </div>
  648. <div class="col-xs-6">
  649. <select name="dryer_from_hr1">
  650. {% for hr in range(0, 24) %}
  651. {% if hr < 10 %}
  652. <option value="0{{hr}}">0{{hr}}</option>
  653. {% else %}
  654. <option value="{{hr}}">{{hr}}</option>
  655. {% endif %}
  656. {% endfor %}
  657. </select>
  658. : <select name="dryer_from_min1">
  659. {% for min in range(0, 60) %}
  660. {% if min < 10 %}
  661. <option value="0{{min}}">0{{min}}</option>
  662. {% else %}
  663. <option value="{{min}}">{{min}}</option>
  664. {% endif %}
  665. {% endfor %}
  666. </select>
  667. </div>
  668. <div class="col-xs-3">
  669. <input id="dryer_del1" class="delete" type="button" value="Delete" onclick="Delete(dryer_del1);">
  670. </div>
  671. </div>
  672. <div class="to row">
  673. <div class="col-3">
  674. <span>To</span>
  675. </div>
  676. <div class="col-xs-6">
  677. <select name="dryer_to_hr1">
  678. {% for hr in range(0, 24) %}
  679. {% if hr < 10 %}
  680. <option value="0{{hr}}">0{{hr}}</option>
  681. {% else %}
  682. <option value="{{hr}}">{{hr}}</option>
  683. {% endif %}
  684. {% endfor %}
  685. </select>
  686. : <select name="dryer_to_min1">
  687. {% for min in range(0, 60) %}
  688. {% if min < 10 %}
  689. <option value="0{{min}}">0{{min}}</option>
  690. {% else %}
  691. <option value="{{min}}">{{min}}</option>
  692. {% endif %}
  693. {% endfor %}
  694. </select><br>
  695. <input id="dryer_add1" class="add" type="button" value="Add" onclick="Add(dryer_add1);">
  696. </div>
  697. <div class="col-xs-3"></div>
  698. </div>
  699. </div>
  700. </div>
  701. </div>
  702. </div>
  703. </div>
  704. </div>
  705. </div>
  706. </div>
  707. <div class="row page-bottom">
  708. <div class="col"></div>
  709. <div class="col-xl-4 col-lg-6 col-md-8 col-sm-10 col-xs-10" style="text-align:center;">
  710. <div class="form-group">
  711. <input type="button" class="form-control" value="Cancel" onclick="Cancel();">
  712. <input type="submit" class="form-control" value="Confirm">
  713. </div>
  714. </div>
  715. <div class="col"></div>
  716. </div>
  717. </form>
  718. </div>
  719. </body>
  720. </html>