index.html 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693
  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. <link rel="stylesheet" href="css/imageSlicer.css" type="text/css"/>
  42. <link rel="stylesheet" href="css/settings.css" type="text/css"/>
  43. <script type="text/javascript" src="js/design.js"></script>
  44. <script type="text/javascript" src="js/imageSlicer.js"></script>
  45. <script type="text/javascript" src="js/settings.js"></script>
  46. <script type="text/javascript" src="js/imageUpload.js"></script>
  47. <script type="text/javascript" src="js/Sortable.js"></script>
  48. <script type="text/javascript" src="js/Regex.js"></script>
  49. <script type="text/javascript" src="js/DateFormat.js"></script>
  50. <link rel="stylesheet" href="/cdp_ui/ui.css" type="text/css"/>
  51. <link rel="icon" href="favicon.ico">
  52. <link rel="icon" type="image/png" sizes="96x96" href="favicon-96x96.png">
  53. </head>
  54. </body>
  55. <body is="x-ui">
  56. <ui-rest id="main">
  57. <ui-tabbar>
  58. <ui-before ><a class="logo" href="/customers/evva"></a></ui-before>
  59. <ui-tab class="" data-tab="station" >Stations</ui-tab>
  60. <ui-tab class="inactive" data-tab="cutter" >Slicer</ui-tab>
  61. <ui-tab class="inactive" data-tab="settings" >Settings</ui-tab>
  62. <ui-tab class="inactive" data-tab="assignment" >Assignment</ui-tab>
  63. <!-- <ui-tab class="inactive" data-tab="patternAlignment" >Alignment</ui-tab> -->
  64. <ui-behind ></ui-behind>
  65. </ui-tabbar>
  66. <ui-content>
  67. <ui-area data-belongs-to-tab="station">
  68. <!--<input id="CreateStation" type="button" value="Create Station" onclick="saveStation();" disabled/> <- Disabled-->
  69. <template id="line">
  70. <tr >
  71. <td data-class='station' style="width:1em"></td>
  72. <td data-class='pattern'><a href=''></a></td>
  73. <td data-class='date'></td>
  74. <td data-class='duplicate' class="stationAction"><a href=''>⎘</a></td>
  75. <td data-class='delete' class="stationAction"><a href=''>[⨯]</a></td>
  76. </tr>
  77. </template>
  78. <table id="stations">
  79. </table>
  80. </ui-area>
  81. <ui-resizehandle data-belongs-to-tab="station" data-label="drag to resize"></ui-resizehandle>
  82. <ui-area data-belongs-to-tab="station" id="detailcolumn">
  83. <div id="pattern_details" class='x-ui-layout' style="display: none; padding: 10px">
  84. <form id="patternform">
  85. <div class="wasGroup">
  86. <div class="wasLeft">&nbsp;</div>
  87. <div class="wasRight">
  88. <div>
  89. <input class="width100" type="submit" value="save">
  90. </div>
  91. </div>
  92. </div>
  93. <template id="patternClone">
  94. <div class="patternPart">
  95. <a href="#" onclick="removePatternPart($(this))">[⨯]</a>
  96. <input data-class='part' type="text" class="patternPartInput" maxlength="10" size="2" name="pattern" value="*" required>
  97. </div>
  98. </template>
  99. <!--
  100. <div class="wasGroup">
  101. <div class="wasLeft">Pattern <a class="mouseOver" href="#" title="Press '.' or 'space' while editing to create a new pattern part."></a>
  102. </div>
  103. <div class="wasRight">
  104. <span id="patternInput">
  105. <input type="text" class="patternPart" maxlength="10" size="2" name="pattern" value="*" required>
  106. </span>
  107. <a href="#" onclick="addPatternPart(true, 'patternInput')">[+]</a>
  108. </div>
  109. </div>
  110. -->
  111. <div class="wasGroup">
  112. <div class="wasLeft">Preview</div>
  113. <div class="wasRight">
  114. <a href="https://centurio.work/out/frames/WAS_Test/">WIZ-Preview</a>
  115. </div>
  116. </div>
  117. <div style="background-color: #efefef; padding-bottom: 1em; margin-top:1em">
  118. <div id="FormPattern">
  119. </div>
  120. </div>
  121. <div class="wasGroup">
  122. <div class="wasLeft">Description</div>
  123. <div class="wasRight">
  124. <input type="text" class="width100" id="pattern_description" name="description">
  125. </div>
  126. </div>
  127. </form>
  128. <template id="errorCode">
  129. <div class="wasGroup" data-class='errorRow'>
  130. <div data-class='options' class="wasLeft">
  131. <span class="removeImage">[<a href="#" onclick="removeError($(this))">⨯</a>]</span>
  132. </div>
  133. <div class="wasRight">
  134. <input type="text" class="errorInput width100" data-class='errorInput' name="errorInput">
  135. </div>
  136. </div>
  137. </template>
  138. <div id="error">
  139. <div class="wasGroup">
  140. <div class="wasLeft">Error</div>
  141. <div class="wasRight">
  142. [<a href="#" onclick="addError()">Add Error</a>]
  143. </div>
  144. </div>
  145. <div id="errorCodes">
  146. </div>
  147. </div>
  148. <div id="images">
  149. <template id="imagePreview">
  150. <div class="wasGroup" data-class='imageRow'>
  151. <div data-class='options' class="wasLeft">
  152. <div class="imageleft">
  153. <span style="display:none" data-class='imageId'></span>
  154. <input type="text" class="imageInput" data-class='label' name="label">
  155. <span class="removeImage">[<a href=''>⨯</a>]</span>
  156. </div>
  157. </div>
  158. <div class="wasRight">
  159. <table style="width:100%">
  160. <tr>
  161. <td class="handle">⇅</td>
  162. <td class="inspect"><a target="_blank" data-class='showimage' href="">👁</a></td>
  163. <td data-class='image' class="image"></td>
  164. </tr>
  165. </table>
  166. </div>
  167. </div>
  168. </template>
  169. <div class="wasGroup">
  170. <div class="wasLeft">Language</div>
  171. <div class="wasRight">
  172. <select class="width100" name="image_language" id="image_language">
  173. <option value="de-at">de-at</option>
  174. <option value="en-us">en-us</option>
  175. </select>
  176. </div>
  177. </div>
  178. <div id="imageListing">
  179. </div>
  180. <div class="wasGroup">
  181. <div class="wasLeft">Image Upload</div>
  182. <div class="wasRight">
  183. <form id="imgUpload" class="box" method="post" action="../images/imageUpload.php" enctype="multipart/form-data">
  184. <div class="box__input">
  185. <input class="box__file" type="file" name="files[]" id="file" data-multiple-caption="{count} files selected" multiple />
  186. <label for="file"><strong>Choose a file</strong><span class="box__dragndrop"> or drag it here</span>.</label>
  187. <button class="box__button" type="submit">Upload</button>
  188. </div>
  189. <div class="box__uploading">Uploading&hellip;</div>
  190. <div class="box__success">Done!
  191. <a href="https://centurio.work/customers/evva/was/ui//?" class="box__restart" role="button">Upload more?</a>
  192. </div>
  193. <div class="box__error">Error! <span></span>.</div>
  194. </form>
  195. <input type="text" class="abbreviationInput width100 url" name="externalImage" id="addExternalImageUrl">
  196. <a href="#" onclick="overlayOn($(this));">🔍</a> <a href="#" onclick="addExternalImage();" id="addExternalImage">add Image</a>
  197. </div>
  198. </div>
  199. </div>
  200. <template id="imageReplacements">
  201. <div class="wasGroup replaceInput" data-class='replacement'>
  202. <div data-class='options' class="wasLeft">
  203. <input type="text" class="abbreviation" data-class='abbreviation' name="abbreviation">
  204. <span class="removeImage">[<a href='#' onclick="removeReplacement($(this))">⨯</a>]</span>
  205. </div>
  206. <div class="wasRight">
  207. <table style="width:100%">
  208. <tr>
  209. <td class="handle2">⇅</td>
  210. <td class="search"><a href="#" onclick="overlayOn($(this));">🔍</a></td>
  211. <td class="abbrtext"><input type="text" class="abbreviationInput width100 url" data-class='url' name="abbreviationInput"></td>
  212. </tr>
  213. </table>
  214. </div>
  215. </div>
  216. </template>
  217. <div id="replacements">
  218. <div class="wasGroup">
  219. <div class="wasLeft">Image Replacement</div>
  220. <div class="wasRight">
  221. [<a href="#" onclick="addBlankReplacement()">Add Replacement</a>]
  222. </div>
  223. </div>
  224. <div id="replaceImages">
  225. </div>
  226. </div>
  227. <div class="wasGroup">
  228. <div class="wasLeft">&nbsp;</div>
  229. <div class="wasRight">
  230. <button class="width100" id="remove_pattern" type="button">Remove Pattern</button>
  231. </div>
  232. </div>
  233. <div style="display:none">
  234. <span id="image_count"></span>
  235. Station <span id="pattern_station"></span> Pattern ID <span id="pattern_ID"></span></br>
  236. <!--Pattern <input type="text" id="pattern" name="pattern"></br>-->
  237. </div>
  238. </div>
  239. <div id="station_details" style="display: none; padding: 10px">
  240. </div>
  241. </ui-area>
  242. <ui-area data-belongs-to-tab="cutter" class="inactive">
  243. <template id="RectanglesImage">
  244. <div class="rect" data-class='RectID'></div>
  245. </div>
  246. </template>
  247. <div>
  248. <a href="#" onclick="overlayOn($(this), true);">🔍</a>
  249. </div>
  250. <div id="imgrect" class="image-with-rect">
  251. <img class="image" id="sliceImg" src="https://centurio.work/customers/evva/universal-storage/storage/Einzelbilder/IMG_1876_klein.JPG" alt="" />
  252. <!--
  253. <div id="imagearea">
  254. <img src="images/image.jpg" alt="Italian Trulli" width="100%">
  255. <div class="rect">
  256. Cutting Area1
  257. </div>
  258. </div>
  259. -->
  260. </div>
  261. <div id="imgurlFolder" style="padding-top: 50px;">
  262. <span style="color: red"> Handle with Care: </span><br>
  263. Select a Folder (all content will be used 4 cutting)<br>
  264. Select a SaveLocation (in the form to the right)<br>
  265. Select a RectangleConfig (in the form to the right)(ignore the rectangles)<br>
  266. Press button Cut Folder (currently images will not be overwritten)<br>
  267. Wait a bit<br>
  268. <select id="selectfolders" class="width100">
  269. </select>
  270. <button class="width100" type="button" id="multiCut">Cut Folder</button>
  271. </div>
  272. </ui-area>
  273. <!--<ui-resizehandle data-belongs-to-tab="cutter" data-label="drag to resize" ></ui-resizehandle>-->
  274. <ui-area data-belongs-to-tab="cutter" id="detailcolumn2" class="inactive">
  275. <div class='x-ui-layout' style="padding: 10px">
  276. <div class="wasGroup">
  277. <div class="wasLeft">Status:</div>
  278. <div class="wasRight"><b>Work in Progress</b></div>
  279. </div>
  280. <div class="wasGroup">
  281. <div class="wasLeft">Fill From Name: <a class="mouseOver" href="#" title="Press 'enter' after editing to fill the form with the pattern."></a></div>
  282. <input type="text" id="slicerpatterninput" name="description">
  283. </div>
  284. <form id="sliceform" onsubmit="submitSlices()">
  285. <!--
  286. <div class="wasGroup">
  287. <div class="wasLeft">Pattern <a class="mouseOver" href="#" title="Press '.' or 'space' while editing to create a new pattern part."></a>
  288. </div>
  289. <div class="wasRight">
  290. <span id="pattern2">
  291. <input type="text" class="patternPart" maxlength="10" size="2" name="pattern" value="*" required>
  292. </span>
  293. <a href="#" onclick="addPatternPart(true, 'pattern2')">[+]</a>
  294. </div>
  295. </div>
  296. -->
  297. <template id="PatternFormInit">
  298. <div class="wasGroup" data-class='mainDiv'>
  299. <div data-class='description' class="wasLeft">
  300. <span data-class='Name'></span>(<span data-class='Abkürzung'></span>)
  301. </div>
  302. <div class="wasRight">
  303. <select data-class='Optionen' name="">
  304. </select>
  305. </div>
  306. </div>
  307. </template>
  308. <div id="FormPattern2">
  309. </div>
  310. <div class="wasGroup">
  311. <div class="wasLeft">Save Location</div>
  312. <div class="wasRight">
  313. <select name="savelocation" id="savelocation">
  314. </select>
  315. </div>
  316. </div>
  317. <div class="wasGroup">
  318. <div class="wasLeft">Load Rectangle Config</div>
  319. <div class="wasRight">
  320. <select name="loadconfig" id="loadconfig">
  321. <option value="none">none</option>
  322. </select>
  323. </div>
  324. </div>
  325. <div class="wasGroup" id="FormSubmitOben">
  326. <input class="width100" type="submit" value="startCutting">
  327. </div>
  328. <template id="RectanglesSetup">
  329. <div class="wasGroup singleRect" data-class='mainDiv'>
  330. <div data-class='description' class="wasLeft">
  331. RectID:
  332. <span data-class='RectID' class="RectID"></span>
  333. <div class="handle3">⇅</div>
  334. </div>
  335. <div class="wasRight">
  336. <div class="patternPart2">
  337. <span>X</span>
  338. <input data-class='x' type="number" class="patternPart2Input noarrow" maxlength="4" size="4" value="0" required>
  339. </div>
  340. <div class="patternPart2">
  341. <span>Y</span>
  342. <input data-class='y' type="number" class="patternPart2Input noarrow" maxlength="4" size="4" value="0" required>
  343. </div>
  344. <div class="patternPart2">
  345. <span>W</span>
  346. <input data-class='w' type="number" class="patternPart2Input noarrow" maxlength="4" size="4" value="0" required>
  347. </div>
  348. <div class="patternPart2">
  349. <span>H</span>
  350. <input data-class='h' type="number" class="patternPart2Input noarrow" maxlength="4" size="4" value="0" required>
  351. </div>
  352. <br>
  353. <div data-class='RectanglePattern' lass="RectanglePattern">
  354. </div>
  355. </div>
  356. </div>
  357. </template>
  358. <template id="RectanglePattern">
  359. <div class="patternPart3">
  360. <span data-class="abk"></span>
  361. <input data-class='input' class="patternPart3Input" type="checkbox" name="ID_EL" >
  362. </div>
  363. </template>
  364. <template id="RectanglePatternText">
  365. <div class="patternPart3Text">
  366. <span data-class="abk">Text</span>
  367. <input data-class='input' type="text" class="patternPart3Input " maxlength="4" size="4" value="">
  368. </div>
  369. </template>
  370. <template id="SlicerDupliOverlay">
  371. <div class="SlicerScrolling">
  372. <a class="noDeco" href="javascript:overlayOff()">
  373. <div class="slicerRedlink CloseOverlayTopRight" >
  374. </div>
  375. </a>
  376. <div class="slicerScrollbar" data-class='mainDiv'>
  377. <div data-class='header'>
  378. <h1>Achtung Bilder werden Überschrieben</h1>
  379. </div>
  380. <table data-class='ImgList'>
  381. <tr>
  382. <th>Old</th>
  383. <th>New</th>
  384. <th></th>
  385. </tr>
  386. </table>
  387. <a class="noDeco" href="javascript:overlayOff()">
  388. <div class="slicerRedlink" >
  389. ⨯ Schließen
  390. </div>
  391. </a>
  392. </div>
  393. </div>
  394. </template>
  395. <template id="SlicerDupliImageRow">
  396. <tr>
  397. <td>
  398. <img data-class='oldimg' class="slicerOldImg">
  399. </td>
  400. <td>
  401. <img data-class='newimg' class="slicerNewImg">
  402. </td>
  403. <td>
  404. <button class="slicerChangeButton" data-class='changebutton'>Übernehmen</button>
  405. </td>
  406. </tr>
  407. </template>
  408. <div id="addRectanglesGroup" class="wasGroup">
  409. <div class="wasLeft">Rectangles</div>
  410. <div class="wasRight">
  411. <a href="javascript:addRectangle();">Add Rectangle</a>
  412. </div>
  413. </div>
  414. <div id="imgRectangles">
  415. </div>
  416. <div id="Json2ClipboardGroup" class="wasGroup">
  417. <button class="width100" type="button" id="showJson">Json2Clipboard</button>
  418. </div>
  419. <div class="wasGroup">
  420. <input class="width100" type="submit" value="startCutting">
  421. </div>
  422. </form>
  423. </div>
  424. </ui-area>
  425. <ui-area data-belongs-to-tab="settings" class="inactive">
  426. <template id="JsonFile">
  427. <div>
  428. <a href="" data-class='jsonlink'></a>
  429. </div>
  430. </template>
  431. Json Files:
  432. <div id="JsonFiles">
  433. </div>
  434. </ui-area>
  435. <!--<ui-resizehandle data-belongs-to-tab="cutter" data-label="drag to resize" ></ui-resizehandle>-->
  436. <ui-area data-belongs-to-tab="settings" id="detailcolumn3" class="inactive">
  437. <div class='x-ui-layout' style="padding: 10px">
  438. <div class="wasGroup">
  439. <div class="wasLeft">Status:</div>
  440. <div class="wasRight"><b>Work in Progress</b></div>
  441. </div>
  442. <div class="wasGroup">
  443. <form id="jsonfileform">
  444. <textarea id="jsonfiletxtarea" rows="30" cols="50"></textarea>
  445. <input class="width100" type="submit" value="SaveJson">
  446. </form>
  447. </div>
  448. </div>
  449. </ui-area>
  450. <ui-area data-belongs-to-tab="assignment" class="inactive">
  451. Once its Functional will be moved before Settings.
  452. List of all Images
  453. </ui-area>
  454. <!--<ui-resizehandle data-belongs-to-tab="cutter" data-label="drag to resize" ></ui-resizehandle>-->
  455. <ui-area data-belongs-to-tab="assignment" id="detailcolumn4" class="inactive">
  456. Create new Link (die spalten werden aus dem namen aufgebaut das zb. nur System und Bauart ausgewählt werden können)
  457. <table>
  458. <tr>
  459. <th>Station</th>
  460. <th>Produktbereich</th>
  461. <th>System</th>
  462. <th>Produktkategorie</th>
  463. <th>Bauart</th>
  464. <th>Zylinderlänge außen</th>
  465. <th>...</th>
  466. </tr>
  467. <tr>
  468. <td>[ ] Station1</td>
  469. <td>[ ] E</td>
  470. <td>[ ] X</td>
  471. <td>[ ] PZ</td>
  472. <td>[ ] KZ-S</td>
  473. <td>[ ] 31</td>
  474. <td>...</td>
  475. </tr>
  476. <tr>
  477. <td>[ ] Station2</td>
  478. <td></td>
  479. <td></td>
  480. <td></td>
  481. <td>[ ] RKZ-S</td>
  482. <td>[ ] 36</td>
  483. <td>...</td>
  484. </tr>
  485. <tr>
  486. <td>[ ] Station3</td>
  487. <td></td>
  488. <td></td>
  489. <td></td>
  490. <td>[ ] HZ-S</td>
  491. <td>[ ] 41</td>
  492. <td>...</td>
  493. </tr>
  494. <tr>
  495. <td>[ ] Station4</td>
  496. <td></td>
  497. <td></td>
  498. <td></td>
  499. <td>[ ] RHZ-S</td>
  500. <td>[ ] 46</td>
  501. <td>...</td>
  502. </tr>
  503. </table>
  504. </ui-area>
  505. <!---
  506. <ui-area data-belongs-to-tab="patternAlignment" class="inactive">
  507. aa [Model, OutsideCyl, InsideCyl]
  508. </ui-area>
  509. <ui-area data-belongs-to-tab="patternAlignment" id="detailcolumn3" class="inactive">
  510. --->
  511. </ui-content>
  512. </ui-rest>
  513. <div id="overlay" onclick="overlayOff()">
  514. <div id="overlaycontentsize"></div>
  515. </div>
  516. <div id="overlayNotClickable">
  517. <div id="overlaycontentsizeNotClickable"></div>
  518. </div>
  519. </body>
  520. </html>