index.html 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360
  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 style="background-color: #efefef; padding-bottom: 1em; margin-top:1em">
  104. <div class="wasGroup">
  105. <div class="wasLeft">Status:</div>
  106. <div class="wasRight"><b>Work in Progress</b></div>
  107. </div>
  108. <div class="wasGroup">
  109. <div class="wasLeft">Electronic</div>
  110. <div class="wasRight">E</div>
  111. </div>
  112. <div class="wasGroup">
  113. <div class="wasLeft">...</div>
  114. <div class="wasRight">...</div>
  115. </div>
  116. <div class="wasGroup">
  117. <div class="wasLeft">Model</div>
  118. <div class="wasRight">
  119. <select name="cylModel" id="cylModel">
  120. <option value="*">*</option>
  121. <option value="KZ-S">KZ-S</option>
  122. <option value="RKZ-S">RKZ-S</option>
  123. <option value="HZ-S">HZ-S</option>
  124. <option value="RHZ-S">RHZ-S</option>
  125. <option value="DZ-S">DZ-S</option>
  126. <option value="RDZ-S">RDZ-S</option>
  127. </select>
  128. </div>
  129. </div>
  130. <div class="wasGroup">
  131. <div class="wasLeft">Outside Cyl. Length</div>
  132. <div class="wasRight">
  133. <select name="outsideCyl" id="outsideCyl">
  134. <option value="*">*</option>
  135. <option value="31">31</option>
  136. <option value="36">36</option>
  137. <option value="41">41</option>
  138. <option value="46">46</option>
  139. <option value="51">51</option>
  140. <option value="56">56</option>
  141. <option value="61">61</option>
  142. </select>
  143. </div>
  144. </div>
  145. <div class="wasGroup">
  146. <div class="wasLeft">Inside Cyl.</div>
  147. <div class="wasRight">
  148. <select name="insidecyl" id="insidecyl">
  149. <option value="*">*</option>
  150. <option value="31">31 ... 61</option>
  151. <option value="36">K31 ... K61</option>
  152. </select>
  153. </div>
  154. </div>
  155. </div>
  156. <div class="wasGroup">
  157. <div class="wasLeft">Description</div>
  158. <div class="wasRight">
  159. <input type="text" class="width100" id="pattern_description" name="description">
  160. </div>
  161. </div>
  162. </form>
  163. <template id="errorCode">
  164. <div class="wasGroup" data-class='errorRow'>
  165. <div data-class='options' class="wasLeft">
  166. <span class="removeImage">[<a href="#" onclick="removeError($(this))">⨯</a>]</span>
  167. </div>
  168. <div class="wasRight">
  169. <input type="text" class="errorInput width100" data-class='errorInput' name="errorInput">
  170. </div>
  171. </div>
  172. </template>
  173. <div id="error">
  174. <div class="wasGroup">
  175. <div class="wasLeft">Error</div>
  176. <div class="wasRight">
  177. [<a href="#" onclick="addError()">Add Error</a>]
  178. </div>
  179. </div>
  180. <div id="errorCodes">
  181. </div>
  182. </div>
  183. <div id="images">
  184. <template id="imagePreview">
  185. <div class="wasGroup" data-class='imageRow'>
  186. <div data-class='options' class="wasLeft">
  187. <div class="imageleft">
  188. <span style="display:none" data-class='imageId'></span>
  189. <input type="text" class="imageInput" data-class='label' name="label">
  190. <span class="removeImage">[<a href=''>⨯</a>]</span>
  191. </div>
  192. </div>
  193. <div class="wasRight">
  194. <table style="width:100%">
  195. <tr>
  196. <td class="handle">⇅</td>
  197. <td class="inspect"><a target="_blank" data-class='showimage' href="">👁</a></td>
  198. <td data-class='image' class="image"></td>
  199. </tr>
  200. </table>
  201. </div>
  202. </div>
  203. </template>
  204. <div class="wasGroup">
  205. <div class="wasLeft">Language</div>
  206. <div class="wasRight">
  207. <select class="width100" name="image_language" id="image_language">
  208. <option value="de-at">de-at</option>
  209. <option value="en-us">en-us</option>
  210. </select>
  211. </div>
  212. </div>
  213. <div id="imageListing">
  214. </div>
  215. <div class="wasGroup">
  216. <div class="wasLeft">Image Upload</div>
  217. <div class="wasRight">
  218. <form id="imgUpload" class="box" method="post" action="../images/imageUpload.php" enctype="multipart/form-data">
  219. <div class="box__input">
  220. <input class="box__file" type="file" name="files[]" id="file" data-multiple-caption="{count} files selected" multiple />
  221. <label for="file"><strong>Choose a file</strong><span class="box__dragndrop"> or drag it here</span>.</label>
  222. <button class="box__button" type="submit">Upload</button>
  223. </div>
  224. <div class="box__uploading">Uploading&hellip;</div>
  225. <div class="box__success">Done!
  226. <a href="https://centurio.work/customers/evva/was/ui//?" class="box__restart" role="button">Upload more?</a>
  227. </div>
  228. <div class="box__error">Error! <span></span>.</div>
  229. </form>
  230. <input type="text" class="abbreviationInput width100 url" name="externalImage" id="addExternalImageUrl">
  231. <a href="#" onclick="overlayOn($(this));">🔍</a> <a href="#" onclick="addExternalImage();" id="addExternalImage">add Image</a>
  232. </div>
  233. </div>
  234. </div>
  235. <template id="imageReplacements">
  236. <div class="wasGroup replaceInput" data-class='replacement'>
  237. <div data-class='options' class="wasLeft">
  238. <input type="text" class="abbreviation" data-class='abbreviation' name="abbreviation">
  239. <span class="removeImage">[<a href='#' onclick="removeReplacement($(this))">⨯</a>]</span>
  240. </div>
  241. <div class="wasRight">
  242. <table style="width:100%">
  243. <tr>
  244. <td class="handle2">⇅</td>
  245. <td class="search"><a href="#" onclick="overlayOn($(this));">🔍</a></td>
  246. <td class="abbrtext"><input type="text" class="abbreviationInput width100 url" data-class='url' name="abbreviationInput"></td>
  247. </tr>
  248. </table>
  249. </div>
  250. </div>
  251. </template>
  252. <div id="replacements">
  253. <div class="wasGroup">
  254. <div class="wasLeft">Image Replacement</div>
  255. <div class="wasRight">
  256. [<a href="#" onclick="addBlankReplacement()">Add Replacement</a>]
  257. </div>
  258. </div>
  259. <div id="replaceImages">
  260. </div>
  261. </div>
  262. <div class="wasGroup">
  263. <div class="wasLeft">&nbsp;</div>
  264. <div class="wasRight">
  265. <button class="width100" id="remove_pattern" type="button">Remove Pattern</button>
  266. </div>
  267. </div>
  268. <div style="display:none">
  269. <span id="image_count"></span>
  270. Station <span id="pattern_station"></span> Pattern ID <span id="pattern_ID"></span></br>
  271. <!--Pattern <input type="text" id="pattern" name="pattern"></br>-->
  272. </div>
  273. </div>
  274. <div id="station_details" style="display: none; padding: 10px">
  275. </div>
  276. <div id="overlay" onclick="overlayOff()">
  277. <div id="overlaycontentsize"></div>
  278. </div>
  279. </ui-area>
  280. <ui-area data-belongs-to-tab="amount" class="inactive">
  281. </ui-area>
  282. <ui-area data-belongs-to-tab="production" class="inactive">
  283. </ui-area>
  284. </ui-content>
  285. </ui-rest>
  286. </body>
  287. </html>