Advertisement
Guest User

Untitled

a guest
Apr 17th, 2013
701
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.13 KB | None | 0 0
  1. `if (~currdynpro.speechenabled != "")
  2. `<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  3. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4. `end`
  5. <html`if (~currdynpro.speechenabled != "")
  6. ` xmlns="http://www.w3.org/1999/xhtml"
  7. xmlns:vxml="http://www.w3.org/2001/vxml"
  8. xmlns:ev="http://www.w3.org/2001/xml-events"
  9. xmlns:xv="http://www.voicexml.org/2002/xhtml+voice"`
  10. end` class="MobileHtml">`
  11. if ( ~itsmobileNameSpace != "" )
  12. ~current_service = ~itsmobileNameSpace & ~service;
  13. elseif ( strsub(~sources, 0, 1) == "/" )
  14. ~current_service = strsub(~sources, 0, strchr(~sources, "/", 1)+1) & ~service;
  15. else
  16. ~current_service = ~service;
  17. end`
  18. `
  19. ``<!-- Generated Template
  20. NAME: Y25R1700
  21. SCREEN: 0001
  22. DATE: 20130214
  23. TIME: 090420
  24. STYLE: Y25COMBI
  25. -->
  26. if (~itsmobileFuncInclude != "")
  27. declare class(el), w(i, a) in "some.html";
  28. include(~service=~current_service, ~language="", ~theme=~theme, ~name=~itsmobileFuncInclude & ".html", ~style="x");
  29. else
  30. name = "functions";
  31. include(~service="itsmobile", ~language="", ~theme="99", ~name=name & ".html", ~style="x");
  32. end``
  33. `<head>`
  34. if ( ~itsmobileDeviceInclude != "" )
  35. include(~service=~current_service, ~language="", ~theme=~theme, ~name=~itsmobileDeviceInclude & ".html");
  36. end``
  37. `<title>`~windowtitle`</title>
  38. `if ( ( ~messageline != "" ) && ( ~itsmobilemsgsound == "1" ) || ( ~currdynpro.messagesound != "" ) )
  39. if ( ~messagetype == "S" || ~currdynpro.messagesound == "S" )
  40. <!-- sucess message -->
  41. ` <bgsound src="`mimeURL(~service="itsmobile", ~theme=99, ~language="", ~name="sounds/all/sapsoundmsg.wav")`" loop="1" />
  42. ` elseif ( ~messagetype == "I" || ~currdynpro.messagesound == "I" )
  43. <!-- information message -->
  44. ` <bgsound src="`mimeURL(~service="itsmobile", ~theme=99, ~language="", ~name="sounds/all/sapsoundmsg.wav")`" loop="1" />
  45. ` elseif ( ~messagetype == "W" || ~currdynpro.messagesound == "W" )
  46. <!-- warning message -->
  47. ` <bgsound src="`mimeURL(~service="itsmobile", ~theme=99, ~language="", ~name="sounds/all/sapsounderr.wav")`" loop="1" />
  48. ` elseif ( ~messagetype == "E" || ~currdynpro.messagesound == "E" )
  49. <!-- error message -->
  50. ` <bgsound src="`mimeURL(~service="itsmobile", ~theme=99, ~language="", ~name="sounds/all/sapsounderr.wav")`" loop="3" />
  51. ` elseif ( ~currdynpro.messagesound != "" )
  52. <!-- message type not set -->
  53. ` <bgsound src="`mimeURL(~service=~current_service, ~theme=~theme, ~language="", ~name=~currdynpro.messagesound)`" loop="1" />
  54. ` else
  55. <!-- message type not set -->
  56. ` <bgsound src="`mimeURL(~service="itsmobile", ~theme=99, ~language="", ~name="sounds/all/sapsoundmsg.wav")`" loop="1" />
  57. ` end;
  58. end;
  59. if (NOTIFY_BELL_SIGNAL > 0)
  60. ` <bgsound src="`mimeURL(~service="itsmobile", ~theme=99, ~language="", ~name="sounds/all/sapsounderr.wav")`" loop="`NOTIFY_BELL_SIGNAL`">
  61. `end;`
  62. `
  63. `` if ( ~itsmobileCssInclude != "" ) <!-- customer include from gui settings -->`
  64. <link rel="stylesheet" href="`mimeURL(~service=~current_service, ~theme=~theme, ~language="", ~name=~itsmobileCssInclude & ".css")`" type="text/css" />
  65. ` else <!-- default include from itsmobile --> `
  66. <link rel="stylesheet" href="`mimeURL(~service="itsmobile", ~theme=99, ~language="", ~name="styles/all/mobile.css")`" type="text/css" />
  67. ` end;``
  68. `` if ( ~itsmobileJsInclude != "" ) <!-- customer include specified in gui settings -->`
  69. <script type="text/javascript" language="javascript" src="`mimeURL(~service=~current_service, ~theme=~theme, ~language="", ~name=~itsmobileJsInclude & ".js")`"></script>
  70. ` else <!-- default include from itsmobile -->`
  71. <script type="text/javascript" language="javascript" src="`mimeURL(~service="itsmobile", ~theme=99, ~language="", ~name="scripts/all/mobile.js")`"></script>
  72. ` end;
  73. if ( ~itsmobileCustomJsInclude != "" )`
  74. <script type="text/javascript" language="javascript" src="`mimeURL(~service=~current_service, ~theme=~theme, ~language="", ~name=~itsmobileCustomJsInclude & ".js")`"></script>
  75. ` end;`
  76. <script type="text/javascript" language="Javascript">
  77. var itsmobile_eos = "`wgateurl(~okcode="/nex")`";
  78. </script>
  79. ` <!-- rfid values --------------------------- -->
  80. if ( ~RfidEnabledFields != "" ) `
  81. <script type="text/javascript" language="javascript" src="`mimeURL(~service="itsmobile", ~theme=99, ~language="", ~name="rfid/rfbutton.js")`"></script>
  82. <script type="text/javascript" language="Javascript">
  83. var rfid_fields = new Object;
  84. ` repeat with i from 1 to ~RfidEnabledFields.dim
  85. <!-- get field name and index -->
  86. rfidField = ~RfidEnabledFields[i];
  87. rfidFieldIdx = ~RfidEnabledFields[i].idx;
  88. rfidFieldParams = ~RfidEnabledFields[i].params; `
  89. rfid_fields["`rfidField`[`rfidFieldIdx`]"] = { `rfidFieldParams` };
  90. ` end;`
  91. </script>
  92. ` end;`
  93.  
  94. ` <!-- Check if screen supports voice integration -->
  95. if ( ~currdynpro.speechenabled != "" )
  96. <!-- include the htmlb functions for voice integration -->
  97. if ( ~itsmobileVoiceInclude != "" ) <!-- customers voice generation html -->
  98. include(~service=~current_service, ~language="", ~theme=~theme, ~name=~itsmobileVoiceInclude & ".html");
  99. else <!-- default its default voice include -->
  100. include(~service="itsmobile", ~language="", ~theme="99", ~name="include/voice.html");
  101. end;
  102. end`
  103. `
  104. `</head>`
  105. `<body class="MobileBody" id="MobileBody" onload="changebgcolor()"`
  106. if (~currdynpro.speechenabled != "")` ev:event="load" ev:handler="#sayOnPageLoad"` else
  107. ` onload="setFocus('`~focusfield`');`~itsmobileOnloadHandler`"` end;
  108. ` onkeydown="return processKeyEvent(event);" onhelp="return false;">
  109. `
  110. `<form id="frm1" method="post" action="`WGateURL()`" id="mobileform" name="mobileform" onsubmit="return firstSend()" style="display:inline">
  111. <input type="hidden" id="~OkCode" name="~OkCode" value="/0" />
  112. <input type="hidden" id="~FKey" name="~FKey" value="" />
  113. <input type="hidden" id="~Focusfield" name="~Focusfield" value="" />
  114. `if (~SEC_SESSTOKEN != "")`<input type="hidden" name="~SEC_SESSTOKEN" value="`~SEC_SESSTOKEN`" />`end`
  115. `
  116. `<!-- main screen begin -->
  117. <div width="100%" class="MobileUserArea">`
  118.  
  119. ` <script "text/javascript" language="javascript">
  120.  
  121. function changebgcolor()
  122. {
  123.  
  124. document.body.style.background="`strmask('Y25R1700_DATA-COLOR'[1])`";
  125.  
  126. document.getElementById("boxText").focus();
  127. }
  128.  
  129. function formSubmit()
  130. {
  131. document.getElementById("frm1").submit();
  132. }
  133.  
  134. function myFunction()
  135. {
  136. var x=document.getElementById("boxText");
  137. if (x.value.length > 1)
  138. {
  139. formSubmit();
  140. }
  141. }
  142.  
  143. </script>`
  144.  
  145. `<!-- line 1 -->
  146. <div class="MobileRow">`
  147. ``if ( ( 'Y25RF_GENERAL-TITLE'[1].exists == "X" ) && ( 'Y25RF_GENERAL-TITLE'[1].visible == "X" ) )
  148. `<span style="width:`w("19", "15.580em")``if ( 'Y25RF_GENERAL-TITLE'[1].alignment == "right" )`; text-align: right`end`" `
  149. if ( 'Y25RF_GENERAL-TITLE'[1].highlighted == "X" )
  150. `class="MobileLabelHighlighted MobileOutputOnly"`
  151. else
  152. `class="MobileLabel MobileOutputOnly"`
  153. end;
  154. `>`strmask('Y25RF_GENERAL-TITLE'[1])`</span>`
  155. else
  156. `<span style="height:1px; margin-left:`w("19", "15.580em")`"></span>`
  157. end``
  158. ``if ( 0 != 0 )
  159. `<span style="height:1px; margin-left:`w("0", "0.000em")`"></span>`
  160. end``
  161. ``if ( ( 'Y25RF_GENERAL-SCREEN'[1].exists == "X" ) && ( 'Y25RF_GENERAL-SCREEN'[1].visible == "X" ) )
  162. `<span style="width:`w("7", "5.740em")``if ( 'Y25RF_GENERAL-SCREEN'[1].alignment == "right" )`; text-align: right`end`" `
  163. if ( 'Y25RF_GENERAL-SCREEN'[1].highlighted == "X" )
  164. `class="MobileLabelHighlighted MobileOutputOnly"`
  165. else
  166. `class="MobileLabel MobileOutputOnly"`
  167. end;
  168. `>`strmask('Y25RF_GENERAL-SCREEN'[1])`</span>`
  169. else
  170. `<span style="height:1px; margin-left:`w("7", "5.740em")`"></span>`
  171. end``
  172. ``if ( 56 != 0 )
  173. `<span style="height:1px; margin-left:`w("56", "45.920em")`"></span>`
  174. end``
  175. `</div>`
  176.  
  177. `<!-- line 2 -->
  178. <div class="MobileRow">`
  179. ``if ( ( 'TEXT03'[1].exists == "X" ) && ( 'TEXT03'[1].visible == "X" ) )
  180. `<span style="width:`w("12", "9.840em")``if ( 'TEXT03'[1].alignment == "right" )`; text-align: right`end`" `
  181. if ( 'TEXT03'[1].highlighted == "X" )
  182. `class="MobileLabelHighlighted" `
  183. else
  184. `class="MobileLabel" `
  185. end
  186. `>`strmask('TEXT03'[1].label)`</span>`
  187. else
  188. `<span style="height:1px; margin-left:`w("12", "9.840em")`"></span>`
  189. end``
  190. ``if ( 70 != 0 )
  191. `<span style="height:1px; margin-left:`w("70", "57.400em")`"></span>`
  192. end``
  193. `</div>`
  194.  
  195. `<!-- line 3 -->
  196. <div class="MobileRow">`
  197. `<!-- loop -->`
  198. ``repeat with LOOP_INDEX from 1 to 8``
  199.  
  200. `<!-- line 3 --><!``-- loop line `LOOP_INDEX` --``>
  201. <div class="MobileRow">`
  202. ``if ( ( 'Y25R1700_TABLE-COL1'[LOOP_INDEX].exists == "X" ) && ( 'Y25R1700_TABLE-COL1'[LOOP_INDEX].visible == "X" ) )
  203. `<span style="width:`w("18", "14.760em")``if ( 'Y25R1700_TABLE-COL1'[LOOP_INDEX].alignment == "right" )`; text-align: right`end`" `
  204. if ( 'Y25R1700_TABLE-COL1'[LOOP_INDEX].highlighted == "X" )
  205. `class="MobileLabelHighlighted MobileOutputOnly"`
  206. else
  207. `class="MobileLabel MobileOutputOnly"`
  208. end;
  209. `>`strmask('Y25R1700_TABLE-COL1'[LOOP_INDEX])`</span>`
  210. else
  211. `<span style="height:1px; margin-left:`w("18", "14.760em")`"></span>`
  212. end``
  213. ``if ( 1 != 0 )
  214. `<span style="height:1px; margin-left:`w("1", "0.820em")`"></span>`
  215. end``
  216. ``if ( ( 'Y25R1700_TABLE-COL2'[LOOP_INDEX].exists == "X" ) && ( 'Y25R1700_TABLE-COL2'[LOOP_INDEX].visible == "X" ) )
  217. `<span style="width:`w("2", "1.640em")``if ( 'Y25R1700_TABLE-COL2'[LOOP_INDEX].alignment == "right" )`; text-align: right`end`" `
  218. if ( 'Y25R1700_TABLE-COL2'[LOOP_INDEX].highlighted == "X" )
  219. `class="MobileLabelHighlighted MobileOutputOnly"`
  220. else
  221. `class="MobileLabel MobileOutputOnly"`
  222. end;
  223. `>`strmask('Y25R1700_TABLE-COL2'[LOOP_INDEX])`</span>`
  224. else
  225. `<span style="height:1px; margin-left:`w("2", "1.640em")`"></span>`
  226. end``
  227. ``if ( 0 != 0 )
  228. `<span style="height:1px; margin-left:`w("0", "0.000em")`"></span>`
  229. end``
  230. ``if ( ( 'Y25R1700_TABLE-COL3'[LOOP_INDEX].exists == "X" ) && ( 'Y25R1700_TABLE-COL3'[LOOP_INDEX].visible == "X" ) )
  231. `<span style="width:`w("5", "4.100em")``if ( 'Y25R1700_TABLE-COL3'[LOOP_INDEX].alignment == "right" )`; text-align: right`end`" `
  232. if ( 'Y25R1700_TABLE-COL3'[LOOP_INDEX].highlighted == "X" )
  233. `class="MobileLabelHighlighted MobileOutputOnly"`
  234. else
  235. `class="MobileLabel MobileOutputOnly"`
  236. end;
  237. `>`strmask('Y25R1700_TABLE-COL3'[LOOP_INDEX])`</span>`
  238. else
  239. `<span style="height:1px; margin-left:`w("5", "4.100em")`"></span>`
  240. end``
  241. `</div>`
  242. ``end``
  243. `</div>`
  244.  
  245. `<!-- line 11 -->
  246. <div class="MobileRow">`
  247. ``if ( ( 'TEXT02'[1].exists == "X" ) && ( 'TEXT02'[1].visible == "X" ) )
  248. `<span style="width:`w("2", "1.640em")``if ( 'TEXT02'[1].alignment == "right" )`; text-align: right`end`" `
  249. if ( 'TEXT02'[1].highlighted == "X" )
  250. `class="MobileLabelHighlighted" `
  251. else
  252. `class="MobileLabel" `
  253. end
  254. `>`strmask('TEXT02'[1].label)`</span>`
  255. else
  256. `<span style="height:1px; margin-left:`w("2", "1.640em")`"></span>`
  257. end``
  258. ``if ( 1 != 0 )
  259. `<span style="height:1px; margin-left:`w("1", "0.820em")`"></span>`
  260. end``
  261. ``if ( ( 'Y25R1700_DATA-SYSID'[1].exists == "X" ) && ( 'Y25R1700_DATA-SYSID'[1].visible == "X" ) )
  262. `<span style="width:`w("9", "7.380em")``if ( 'Y25R1700_DATA-SYSID'[1].alignment == "right" )`; text-align: right`end`" `
  263. if ( 'Y25R1700_DATA-SYSID'[1].highlighted == "X" )
  264. `class="MobileLabelHighlighted MobileOutputOnly"`
  265. else
  266. `class="MobileLabel MobileOutputOnly"`
  267. end;
  268. `>`strmask('Y25R1700_DATA-SYSID'[1])`</span>`
  269. else
  270. `<span style="height:1px; margin-left:`w("9", "7.380em")`"></span>`
  271. end``
  272. ``if ( 8 != 0 )
  273. `<span style="height:1px; margin-left:`w("8", "6.560em")`"></span>`
  274. end``
  275. ``if ( ( 'TEXT01'[1].exists == "X" ) && ( 'TEXT01'[1].visible == "X" ) )
  276. `<span style="width:`w("3", "2.460em")``if ( 'TEXT01'[1].alignment == "right" )`; text-align: right`end`" `
  277. if ( 'TEXT01'[1].highlighted == "X" )
  278. `class="MobileLabelHighlighted" `
  279. else
  280. `class="MobileLabel" `
  281. end
  282. `>`strmask('TEXT01'[1].label)`</span>`
  283. else
  284. `<span style="height:1px; margin-left:`w("3", "2.460em")`"></span>`
  285. end``
  286. ``if ( 0 != 0 )
  287. `<span style="height:1px; margin-left:`w("0", "0.000em")`"></span>`
  288. end``
  289. ``if ( 'Y25R1700_DATA-NUM'[1].exists == "X" )
  290. if ( 'Y25R1700_DATA-NUM'[1].mode == "multiline" )
  291. `<textarea `
  292. `class="MobileEditMultiline`class('Y25R1700_DATA-NUM'[1])`" `
  293. if ( 'Y25R1700_DATA-NUM'[1].disabled == "X" ) `disabled="disabled" `end;
  294. if ( 'Y25R1700_DATA-NUM'[1].readonly == "X" ) `readonly="readonly" `end;
  295. if ( 'Y25R1700_DATA-NUM'[1].okcode != "" )
  296. `onchange="setOkCode('`'Y25R1700_DATA-NUM'[1].okcode`');return false;" `
  297. end;
  298. `style="width:`w("3", "2.460em")`" rows="`'Y25R1700_DATA-NUM'[1].rows`" `
  299. `onfocus="setFocusField('`'Y25R1700_DATA-NUM'[1].name`');" `
  300. `onblur="leaveFocusField('`'Y25R1700_DATA-NUM'[1].name`');" `
  301. `name="`'Y25R1700_DATA-NUM'[1].name`">`'Y25R1700_DATA-NUM'[1]`</textarea>`
  302. else
  303. if ( 'Y25R1700_DATA-NUM'[1].disabled == "X" )
  304. if ( 'Y25R1700_DATA-NUM'[1].visible != "X" )
  305. `<input type="hidden" `
  306. elseif ( 'Y25R1700_DATA-NUM'[1].type == "Password" )
  307. `<input type="password" readonly="readonly" tabindex="-1" style="width:`w("3", "2.460em")`" `
  308. if ( 'Y25R1700_DATA-NUM'[1].highlighted == "X" )
  309. `class="MobilePasswordHighlightedDisabled" `
  310. else;
  311. `class="MobilePasswordDisabled" `
  312. end;
  313. elseif ( 'Y25R1700_DATA-NUM'[1].inputrequired == "X" )
  314. `<input type="text" readonly="readonly" tabindex="-1" style="width:`w("3", "2.460em")`" `
  315. if ( 'Y25R1700_DATA-NUM'[1].highlighted == "X" )
  316. `class="MobileEditRequiredHighlightedDisabled" `
  317. else;
  318. `class="MobileEditRequiredDisabled" `
  319. end;
  320. else
  321. `<input type="text" readonly="readonly" tabindex="-1" style="width:`w("3", "2.460em")`" `
  322. if ( 'Y25R1700_DATA-NUM'[1].highlighted == "X" )
  323. `class="MobileEditHighlightedDisabled" `
  324. else;
  325. `class="MobileEditDisabled" `
  326. end;
  327. end;
  328. `name="`'Y25R1700_DATA-NUM'[1].name`" `
  329. if ( ( 'Y25R1700_DATA-NUM'[1].inputrequired == "X" ) && ( 'Y25R1700_DATA-NUM'[1] == "?" ) )
  330. `value="" `
  331. else
  332. `value="`strmaskext('Y25R1700_DATA-NUM'[1], 1)`" `
  333. end;
  334. `size="`'Y25R1700_DATA-NUM'[1].width`" maxlength="`'Y25R1700_DATA-NUM'[1].maxinputsize`"/>`
  335. else <!-- not disabled -->
  336. if ( 'Y25R1700_DATA-NUM'[1].visible != "X" )
  337. `<input type="hidden" `
  338. elseif ( 'Y25R1700_DATA-NUM'[1].type == "Password" )
  339. `<input type="password" style="width:`w("3", "2.460em")`" `
  340. if ( 'Y25R1700_DATA-NUM'[1].highlighted == "X" )
  341. `class="MobilePasswordHighlighted" `
  342. else
  343. `class="MobilePassword" `
  344. end;
  345. elseif ( 'Y25R1700_DATA-NUM'[1].inputrequired == "X" )
  346. `<input type="text" style="width:`w("3", "2.460em")``if ( 'Y25R1700_DATA-NUM'[1].alignment == "right" )`; text-align: right`end`" `
  347. if ( 'Y25R1700_DATA-NUM'[1].highlighted == "X" )
  348. `class="MobileEditRequiredHighlighted" `
  349. else
  350. `class="MobileEditRequired" `
  351. end;
  352. else
  353. `<input type="text" style="width:`w("3", "2.460em")``if ( 'Y25R1700_DATA-NUM'[1].alignment == "right" )`; text-align: right`end`" `
  354. if ( 'Y25R1700_DATA-NUM'[1].highlighted == "X" )
  355. `class="MobileEditHighlighted" `
  356. else
  357. `class="MobileEdit" `
  358. end;
  359. end;
  360. if ( 'Y25R1700_DATA-NUM'[1].okcode != "" )
  361. `onchange="setOkCode('`'Y25R1700_DATA-NUM'[1].okcode`');return false;" `
  362. end;
  363. `onfocus="setFocusField('`'Y25R1700_DATA-NUM'[1].name`');" `
  364. `onblur="leaveFocusField('`'Y25R1700_DATA-NUM'[1].name`');" `
  365. `name="`'Y25R1700_DATA-NUM'[1].name`" `
  366. if ( ~currdynpro.speechenabled != "" )`id="`'Y25R1700_DATA-NUM'[1].name`" `end;
  367. if ( ( 'Y25R1700_DATA-NUM'[1].inputrequired == "X" ) && ( 'Y25R1700_DATA-NUM'[1] == "?" ) )
  368. `value="" `
  369. else
  370. `value="`strmaskext('Y25R1700_DATA-NUM'[1], 1)`" `
  371. end;
  372. `size="`'Y25R1700_DATA-NUM'[1].width`" maxlength="`'Y25R1700_DATA-NUM'[1].maxinputsize`" id="boxText" onkeyup="myFunction()"/>`
  373. end;
  374. end;
  375. else
  376. `<span style="height:1px; margin-left:`w("3", "2.460em")`"></span>`
  377. end``
  378. ``if ( 56 != 0 )
  379. `<span style="height:1px; margin-left:`w("56", "45.920em")`"></span>`
  380. end``
  381. `</div>`
  382. `<div width="100%">`
  383. if ( ~itsmobileCuaInclude != "" ) <!-- customers cua area -->
  384. include(~service=~current_service, ~language="", ~theme=~theme, ~name=~itsmobileCuaInclude & ".html");
  385. elseif ( ~itsmobileNoCuaInclude != "1" && ~itsmobileNoCuaInclude != "X" ) <!-- default cua area -->
  386. include(~service="itsmobile", ~language="", ~theme="99", ~name="include/cuaarea.html");
  387. end`
  388. </div>
  389. </div>
  390. <!-- main screen end -->`
  391. `</form>`
  392. `</body>`
  393. `</html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement