index.html 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  1. <!--
  2. This file is part of centurio.work/commands.
  3. centurio.work/commands is free software: you can redistribute it and/or
  4. modify it under the terms of the GNU General Public License as published by
  5. the Free Software Foundation, either version 3 of the License, or (at your
  6. option) any later version.
  7. centurio.work/commands is distributed in the hope that it will be useful, but
  8. WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  9. FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  10. more details.
  11. You should have received a copy of the GNU General Public License along with
  12. centurio.work/commands (file COPYING in the main directory). If not, see
  13. <http://www.gnu.org/licenses/>.
  14. -->
  15. <!DOCTYPE html>
  16. <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
  17. <head>
  18. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  19. <title>Design</title>
  20. <!-- libs, do not modify. When local than load local libs. -->
  21. <script type="text/javascript" src="/js_libs/jquery.min.js"></script>
  22. <script type="text/javascript" src="/js_libs/jquery.browser.js"></script>
  23. <script type="text/javascript" src="/js_libs/jquery.svg.min.js"></script>
  24. <script type="text/javascript" src="/js_libs/jquery.svgdom.min.js"></script>
  25. <script type="text/javascript" src="/js_libs/vkbeautify.js"></script>
  26. <script type="text/javascript" src="/js_libs/util.js"></script>
  27. <script type="text/javascript" src="/js_libs/printf.js"></script>
  28. <script type="text/javascript" src="/js_libs/strftime.min.js"></script>
  29. <script type="text/javascript" src="/js_libs/parsequery.js"></script>
  30. <script type="text/javascript" src="/js_libs/underscore.min.js"></script>
  31. <script type="text/javascript" src="/js_libs/jquery.caret.min.js"></script>
  32. <script type="text/javascript" src="/js_libs/jquery.cookie.js"></script>
  33. <script type="text/javascript" src="/js_libs/relaxngui.js"></script>
  34. <script type="text/javascript" src="/js_libs/ui.js"></script>
  35. <script type="text/javascript" src="/js_libs/custommenu.js"></script>
  36. <link rel="stylesheet" href="/js_libs/custommenu.css" type="text/css"/>
  37. <link rel="stylesheet" href="/js_libs/ui.css" type="text/css"/>
  38. <link rel="stylesheet" href="/js_libs/relaxngui.css" type="text/css"/>
  39. <!-- custom stuff, play arround -->
  40. <link rel="stylesheet" href="css/design.css" type="text/css"/>
  41. <script type="text/javascript" src="js/design.js"></script>
  42. <script type="text/javascript" src="js/imageUpload.js"></script>
  43. <script type="text/javascript" src="js/Sortable.js"></script>
  44. <script type="text/javascript" src="js/Regex.js"></script>
  45. <script type="text/javascript" src="js/DateFormat.js"></script>
  46. <link rel="stylesheet" href="/cdp_ui/ui.css" type="text/css"/>
  47. <link rel="icon" href="favicon.ico">
  48. <link rel="icon" type="image/png" sizes="96x96" href="favicon-96x96.png">
  49. </head>
  50. </body>
  51. <body is="x-ui">
  52. <ui-rest id="main">
  53. <ui-tabbar>
  54. <ui-before ><a class="logo" href="/customers/evva"></a></ui-before>
  55. <ui-tab class="" data-tab="station" >Stations</ui-tab>
  56. <!--<ui-tab class="inactive" data-tab="amount" >Amount</ui-tab>
  57. <ui-tab class="inactive" data-tab="production">Production</ui-tab>-->
  58. <ui-behind ></ui-behind>
  59. </ui-tabbar>
  60. <ui-content>
  61. <ui-area data-belongs-to-tab="station">
  62. <!--<input id="CreateStation" type="button" value="Create Station" onclick="saveStation();" disabled/> <- Disabled-->
  63. <template id="line">
  64. <tr >
  65. <td data-class='station' style="width:1em"></td>
  66. <td data-class='pattern'><a href=''></a></td>
  67. <td data-class='date'></td>
  68. <td data-class='duplicate' class="stationAction"><a href=''>⎘</a></td>
  69. <td data-class='delete' class="stationAction"><a href=''>[⨯]</a></td>
  70. </tr>
  71. </template>
  72. <table id="stations">
  73. </table>
  74. </ui-area>
  75. <ui-resizehandle data-belongs-to-tab="station" data-label="drag to resize"></ui-resizehandle>
  76. <ui-area data-belongs-to-tab="station" id="detailcolumn">
  77. <div id="pattern_details" class='x-ui-layout' style="display: none; padding: 10px">
  78. <form id="patternform">
  79. <div class="wasGroup">
  80. <div class="wasLeft">&nbsp;</div>
  81. <div class="wasRight">
  82. <div>
  83. <input class="width100" type="submit" value="save">
  84. </div>
  85. </div>
  86. </div>
  87. <template id="patternClone">
  88. <div class="patternPart">
  89. <a href="#" onclick="removePatternPart($(this))">[⨯]</a>
  90. <input data-class='part' type="text" class="patternPartInput" maxlength="10" size="2" name="pattern" value="*" required>
  91. </div>
  92. </template>
  93. <div class="wasGroup">
  94. <div class="wasLeft">Pattern <a class="mouseOver" href="#" title="Press '.' or 'space' while editing to create a new pattern part."></a>
  95. </div>
  96. <div class="wasRight">
  97. <span id="patternInput">
  98. <input type="text" class="patternPart" maxlength="10" size="2" name="pattern" value="*" required>
  99. </span>
  100. <a href="#" onclick="addPatternPart(true)">[+]</a>
  101. </div>
  102. </div>
  103. <div class="wasGroup">
  104. <div class="wasLeft">Description</div>
  105. <div class="wasRight">
  106. <input type="text" class="width100" id="pattern_description" name="description">
  107. </div>
  108. </div>
  109. </form>
  110. <template id="errorCode">
  111. <div class="wasGroup" data-class='errorRow'>
  112. <div data-class='options' class="wasLeft">
  113. <span class="removeImage">[<a href="#" onclick="removeError($(this))">⨯</a>]</span>
  114. </div>
  115. <div class="wasRight">
  116. <input type="text" class="errorInput width100" data-class='errorInput' name="errorInput">
  117. </div>
  118. </div>
  119. </template>
  120. <div id="error">
  121. <div class="wasGroup">
  122. <div class="wasLeft">Error</div>
  123. <div class="wasRight">
  124. [<a href="#" onclick="addError()">Add Error</a>]
  125. </div>
  126. </div>
  127. <div id="errorCodes">
  128. </div>
  129. </div>
  130. <div id="images">
  131. <template id="imagePreview">
  132. <div class="wasGroup" data-class='imageRow'>
  133. <div data-class='options' class="wasLeft">
  134. <div class="imageleft">
  135. <span style="display:none" data-class='imageId'></span>
  136. <input type="text" class="imageInput" data-class='label' name="label">
  137. <span class="removeImage">[<a href=''>⨯</a>]</span>
  138. </div>
  139. </div>
  140. <div class="wasRight">
  141. <table style="width:100%">
  142. <tr>
  143. <td class="handle">⇅</td>
  144. <td data-class='image' class="image"></td>
  145. </tr>
  146. </table>
  147. </div>
  148. </div>
  149. </template>
  150. <div class="wasGroup">
  151. <div class="wasLeft">Language</div>
  152. <div class="wasRight">
  153. <select class="width100" name="image_language" id="image_language">
  154. <option value="de-at">de-at</option>
  155. <option value="en-us">en-us</option>
  156. </select>
  157. </div>
  158. </div>
  159. <div id="imageListing">
  160. </div>
  161. <div class="wasGroup">
  162. <div class="wasLeft">Image Upload</div>
  163. <div class="wasRight">
  164. <form id="imgUpload" class="box" method="post" action="../images/imageUpload.php" enctype="multipart/form-data">
  165. <div class="box__input">
  166. <input class="box__file" type="file" name="files[]" id="file" data-multiple-caption="{count} files selected" multiple />
  167. <label for="file"><strong>Choose a file</strong><span class="box__dragndrop"> or drag it here</span>.</label>
  168. <button class="box__button" type="submit">Upload</button>
  169. </div>
  170. <div class="box__uploading">Uploading&hellip;</div>
  171. <div class="box__success">Done!
  172. <a href="https://centurio.work/customers/evva/was/ui//?" class="box__restart" role="button">Upload more?</a>
  173. </div>
  174. <div class="box__error">Error! <span></span>.</div>
  175. </form>
  176. <input type="text" class="abbreviationInput width100 url" name="externalImage" id="addExternalImageUrl">
  177. <a href="#" onclick="overlayOn($(this));">🔍</a> <a href="#" onclick="addExternalImage();" id="addExternalImage">add Image</a>
  178. </div>
  179. </div>
  180. </div>
  181. <template id="imageReplacements">
  182. <div class="wasGroup replaceInput" data-class='replacement'>
  183. <div data-class='options' class="wasLeft">
  184. <input type="text" class="abbreviation" data-class='abbreviation' name="abbreviation">
  185. <span class="removeImage">[<a href='#' onclick="removeReplacement($(this))">⨯</a>]</span>
  186. </div>
  187. <div class="wasRight">
  188. <input type="text" class="abbreviationInput width100 url" data-class='url' name="abbreviationInput">
  189. <a href="#" onclick="overlayOn($(this));">🔍</a>
  190. </div>
  191. </div>
  192. </template>
  193. <div id="replacements">
  194. <div class="wasGroup">
  195. <div class="wasLeft">Image Replacement</div>
  196. <div class="wasRight">
  197. [<a href="#" onclick="addBlankReplacement()">Add Replacement</a>]
  198. </div>
  199. </div>
  200. <div id="replaceImages">
  201. </div>
  202. </div>
  203. <div class="wasGroup">
  204. <div class="wasLeft">&nbsp;</div>
  205. <div class="wasRight">
  206. <button class="width100" id="remove_pattern" type="button">Remove Pattern</button>
  207. </div>
  208. </div>
  209. <div style="display:none">
  210. <span id="image_count"></span>
  211. Station <span id="pattern_station"></span> Pattern ID <span id="pattern_ID"></span></br>
  212. <!--Pattern <input type="text" id="pattern" name="pattern"></br>-->
  213. </div>
  214. </div>
  215. <div id="station_details" style="display: none; padding: 10px">
  216. </div>
  217. <div id="overlay" onclick="overlayOff()">
  218. <div id="overlaycontentsize"></div>
  219. </div>
  220. </ui-area>
  221. <ui-area data-belongs-to-tab="amount" class="inactive">
  222. </ui-area>
  223. <ui-area data-belongs-to-tab="production" class="inactive">
  224. </ui-area>
  225. </ui-content>
  226. </ui-rest>
  227. </body>
  228. </html>