Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- `if (~currdynpro.speechenabled != "")
- `<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- `end`
- <html`if (~currdynpro.speechenabled != "")
- ` xmlns="http://www.w3.org/1999/xhtml"
- xmlns:vxml="http://www.w3.org/2001/vxml"
- xmlns:ev="http://www.w3.org/2001/xml-events"
- xmlns:xv="http://www.voicexml.org/2002/xhtml+voice"`
- end` class="MobileHtml">`
- if ( ~itsmobileNameSpace != "" )
- ~current_service = ~itsmobileNameSpace & ~service;
- elseif ( strsub(~sources, 0, 1) == "/" )
- ~current_service = strsub(~sources, 0, strchr(~sources, "/", 1)+1) & ~service;
- else
- ~current_service = ~service;
- end`
- `
- ``<!-- Generated Template
- NAME: Y25R1700
- SCREEN: 0001
- DATE: 20130214
- TIME: 090420
- STYLE: Y25COMBI
- -->
- if (~itsmobileFuncInclude != "")
- declare class(el), w(i, a) in "some.html";
- include(~service=~current_service, ~language="", ~theme=~theme, ~name=~itsmobileFuncInclude & ".html", ~style="x");
- else
- name = "functions";
- include(~service="itsmobile", ~language="", ~theme="99", ~name=name & ".html", ~style="x");
- end``
- `<head>`
- if ( ~itsmobileDeviceInclude != "" )
- include(~service=~current_service, ~language="", ~theme=~theme, ~name=~itsmobileDeviceInclude & ".html");
- end``
- `<title>`~windowtitle`</title>
- `if ( ( ~messageline != "" ) && ( ~itsmobilemsgsound == "1" ) || ( ~currdynpro.messagesound != "" ) )
- if ( ~messagetype == "S" || ~currdynpro.messagesound == "S" )
- <!-- sucess message -->
- ` <bgsound src="`mimeURL(~service="itsmobile", ~theme=99, ~language="", ~name="sounds/all/sapsoundmsg.wav")`" loop="1" />
- ` elseif ( ~messagetype == "I" || ~currdynpro.messagesound == "I" )
- <!-- information message -->
- ` <bgsound src="`mimeURL(~service="itsmobile", ~theme=99, ~language="", ~name="sounds/all/sapsoundmsg.wav")`" loop="1" />
- ` elseif ( ~messagetype == "W" || ~currdynpro.messagesound == "W" )
- <!-- warning message -->
- ` <bgsound src="`mimeURL(~service="itsmobile", ~theme=99, ~language="", ~name="sounds/all/sapsounderr.wav")`" loop="1" />
- ` elseif ( ~messagetype == "E" || ~currdynpro.messagesound == "E" )
- <!-- error message -->
- ` <bgsound src="`mimeURL(~service="itsmobile", ~theme=99, ~language="", ~name="sounds/all/sapsounderr.wav")`" loop="3" />
- ` elseif ( ~currdynpro.messagesound != "" )
- <!-- message type not set -->
- ` <bgsound src="`mimeURL(~service=~current_service, ~theme=~theme, ~language="", ~name=~currdynpro.messagesound)`" loop="1" />
- ` else
- <!-- message type not set -->
- ` <bgsound src="`mimeURL(~service="itsmobile", ~theme=99, ~language="", ~name="sounds/all/sapsoundmsg.wav")`" loop="1" />
- ` end;
- end;
- if (NOTIFY_BELL_SIGNAL > 0)
- ` <bgsound src="`mimeURL(~service="itsmobile", ~theme=99, ~language="", ~name="sounds/all/sapsounderr.wav")`" loop="`NOTIFY_BELL_SIGNAL`">
- `end;`
- `
- `` if ( ~itsmobileCssInclude != "" ) <!-- customer include from gui settings -->`
- <link rel="stylesheet" href="`mimeURL(~service=~current_service, ~theme=~theme, ~language="", ~name=~itsmobileCssInclude & ".css")`" type="text/css" />
- ` else <!-- default include from itsmobile --> `
- <link rel="stylesheet" href="`mimeURL(~service="itsmobile", ~theme=99, ~language="", ~name="styles/all/mobile.css")`" type="text/css" />
- ` end;``
- `` if ( ~itsmobileJsInclude != "" ) <!-- customer include specified in gui settings -->`
- <script type="text/javascript" language="javascript" src="`mimeURL(~service=~current_service, ~theme=~theme, ~language="", ~name=~itsmobileJsInclude & ".js")`"></script>
- ` else <!-- default include from itsmobile -->`
- <script type="text/javascript" language="javascript" src="`mimeURL(~service="itsmobile", ~theme=99, ~language="", ~name="scripts/all/mobile.js")`"></script>
- ` end;
- if ( ~itsmobileCustomJsInclude != "" )`
- <script type="text/javascript" language="javascript" src="`mimeURL(~service=~current_service, ~theme=~theme, ~language="", ~name=~itsmobileCustomJsInclude & ".js")`"></script>
- ` end;`
- <script type="text/javascript" language="Javascript">
- var itsmobile_eos = "`wgateurl(~okcode="/nex")`";
- </script>
- ` <!-- rfid values --------------------------- -->
- if ( ~RfidEnabledFields != "" ) `
- <script type="text/javascript" language="javascript" src="`mimeURL(~service="itsmobile", ~theme=99, ~language="", ~name="rfid/rfbutton.js")`"></script>
- <script type="text/javascript" language="Javascript">
- var rfid_fields = new Object;
- ` repeat with i from 1 to ~RfidEnabledFields.dim
- <!-- get field name and index -->
- rfidField = ~RfidEnabledFields[i];
- rfidFieldIdx = ~RfidEnabledFields[i].idx;
- rfidFieldParams = ~RfidEnabledFields[i].params; `
- rfid_fields["`rfidField`[`rfidFieldIdx`]"] = { `rfidFieldParams` };
- ` end;`
- </script>
- ` end;`
- ` <!-- Check if screen supports voice integration -->
- if ( ~currdynpro.speechenabled != "" )
- <!-- include the htmlb functions for voice integration -->
- if ( ~itsmobileVoiceInclude != "" ) <!-- customers voice generation html -->
- include(~service=~current_service, ~language="", ~theme=~theme, ~name=~itsmobileVoiceInclude & ".html");
- else <!-- default its default voice include -->
- include(~service="itsmobile", ~language="", ~theme="99", ~name="include/voice.html");
- end;
- end`
- `
- `</head>`
- `<body class="MobileBody" id="MobileBody" onload="changebgcolor()"`
- if (~currdynpro.speechenabled != "")` ev:event="load" ev:handler="#sayOnPageLoad"` else
- ` onload="setFocus('`~focusfield`');`~itsmobileOnloadHandler`"` end;
- ` onkeydown="return processKeyEvent(event);" onhelp="return false;">
- `
- `<form id="frm1" method="post" action="`WGateURL()`" id="mobileform" name="mobileform" onsubmit="return firstSend()" style="display:inline">
- <input type="hidden" id="~OkCode" name="~OkCode" value="/0" />
- <input type="hidden" id="~FKey" name="~FKey" value="" />
- <input type="hidden" id="~Focusfield" name="~Focusfield" value="" />
- `if (~SEC_SESSTOKEN != "")`<input type="hidden" name="~SEC_SESSTOKEN" value="`~SEC_SESSTOKEN`" />`end`
- `
- `<!-- main screen begin -->
- <div width="100%" class="MobileUserArea">`
- ` <script "text/javascript" language="javascript">
- function changebgcolor()
- {
- document.body.style.background="`strmask('Y25R1700_DATA-COLOR'[1])`";
- document.getElementById("boxText").focus();
- }
- function formSubmit()
- {
- document.getElementById("frm1").submit();
- }
- function myFunction()
- {
- var x=document.getElementById("boxText");
- if (x.value.length > 1)
- {
- formSubmit();
- }
- }
- </script>`
- `<!-- line 1 -->
- <div class="MobileRow">`
- ``if ( ( 'Y25RF_GENERAL-TITLE'[1].exists == "X" ) && ( 'Y25RF_GENERAL-TITLE'[1].visible == "X" ) )
- `<span style="width:`w("19", "15.580em")``if ( 'Y25RF_GENERAL-TITLE'[1].alignment == "right" )`; text-align: right`end`" `
- if ( 'Y25RF_GENERAL-TITLE'[1].highlighted == "X" )
- `class="MobileLabelHighlighted MobileOutputOnly"`
- else
- `class="MobileLabel MobileOutputOnly"`
- end;
- `>`strmask('Y25RF_GENERAL-TITLE'[1])`</span>`
- else
- `<span style="height:1px; margin-left:`w("19", "15.580em")`"></span>`
- end``
- ``if ( 0 != 0 )
- `<span style="height:1px; margin-left:`w("0", "0.000em")`"></span>`
- end``
- ``if ( ( 'Y25RF_GENERAL-SCREEN'[1].exists == "X" ) && ( 'Y25RF_GENERAL-SCREEN'[1].visible == "X" ) )
- `<span style="width:`w("7", "5.740em")``if ( 'Y25RF_GENERAL-SCREEN'[1].alignment == "right" )`; text-align: right`end`" `
- if ( 'Y25RF_GENERAL-SCREEN'[1].highlighted == "X" )
- `class="MobileLabelHighlighted MobileOutputOnly"`
- else
- `class="MobileLabel MobileOutputOnly"`
- end;
- `>`strmask('Y25RF_GENERAL-SCREEN'[1])`</span>`
- else
- `<span style="height:1px; margin-left:`w("7", "5.740em")`"></span>`
- end``
- ``if ( 56 != 0 )
- `<span style="height:1px; margin-left:`w("56", "45.920em")`"></span>`
- end``
- `</div>`
- `<!-- line 2 -->
- <div class="MobileRow">`
- ``if ( ( 'TEXT03'[1].exists == "X" ) && ( 'TEXT03'[1].visible == "X" ) )
- `<span style="width:`w("12", "9.840em")``if ( 'TEXT03'[1].alignment == "right" )`; text-align: right`end`" `
- if ( 'TEXT03'[1].highlighted == "X" )
- `class="MobileLabelHighlighted" `
- else
- `class="MobileLabel" `
- end
- `>`strmask('TEXT03'[1].label)`</span>`
- else
- `<span style="height:1px; margin-left:`w("12", "9.840em")`"></span>`
- end``
- ``if ( 70 != 0 )
- `<span style="height:1px; margin-left:`w("70", "57.400em")`"></span>`
- end``
- `</div>`
- `<!-- line 3 -->
- <div class="MobileRow">`
- `<!-- loop -->`
- ``repeat with LOOP_INDEX from 1 to 8``
- `<!-- line 3 --><!``-- loop line `LOOP_INDEX` --``>
- <div class="MobileRow">`
- ``if ( ( 'Y25R1700_TABLE-COL1'[LOOP_INDEX].exists == "X" ) && ( 'Y25R1700_TABLE-COL1'[LOOP_INDEX].visible == "X" ) )
- `<span style="width:`w("18", "14.760em")``if ( 'Y25R1700_TABLE-COL1'[LOOP_INDEX].alignment == "right" )`; text-align: right`end`" `
- if ( 'Y25R1700_TABLE-COL1'[LOOP_INDEX].highlighted == "X" )
- `class="MobileLabelHighlighted MobileOutputOnly"`
- else
- `class="MobileLabel MobileOutputOnly"`
- end;
- `>`strmask('Y25R1700_TABLE-COL1'[LOOP_INDEX])`</span>`
- else
- `<span style="height:1px; margin-left:`w("18", "14.760em")`"></span>`
- end``
- ``if ( 1 != 0 )
- `<span style="height:1px; margin-left:`w("1", "0.820em")`"></span>`
- end``
- ``if ( ( 'Y25R1700_TABLE-COL2'[LOOP_INDEX].exists == "X" ) && ( 'Y25R1700_TABLE-COL2'[LOOP_INDEX].visible == "X" ) )
- `<span style="width:`w("2", "1.640em")``if ( 'Y25R1700_TABLE-COL2'[LOOP_INDEX].alignment == "right" )`; text-align: right`end`" `
- if ( 'Y25R1700_TABLE-COL2'[LOOP_INDEX].highlighted == "X" )
- `class="MobileLabelHighlighted MobileOutputOnly"`
- else
- `class="MobileLabel MobileOutputOnly"`
- end;
- `>`strmask('Y25R1700_TABLE-COL2'[LOOP_INDEX])`</span>`
- else
- `<span style="height:1px; margin-left:`w("2", "1.640em")`"></span>`
- end``
- ``if ( 0 != 0 )
- `<span style="height:1px; margin-left:`w("0", "0.000em")`"></span>`
- end``
- ``if ( ( 'Y25R1700_TABLE-COL3'[LOOP_INDEX].exists == "X" ) && ( 'Y25R1700_TABLE-COL3'[LOOP_INDEX].visible == "X" ) )
- `<span style="width:`w("5", "4.100em")``if ( 'Y25R1700_TABLE-COL3'[LOOP_INDEX].alignment == "right" )`; text-align: right`end`" `
- if ( 'Y25R1700_TABLE-COL3'[LOOP_INDEX].highlighted == "X" )
- `class="MobileLabelHighlighted MobileOutputOnly"`
- else
- `class="MobileLabel MobileOutputOnly"`
- end;
- `>`strmask('Y25R1700_TABLE-COL3'[LOOP_INDEX])`</span>`
- else
- `<span style="height:1px; margin-left:`w("5", "4.100em")`"></span>`
- end``
- `</div>`
- ``end``
- `</div>`
- `<!-- line 11 -->
- <div class="MobileRow">`
- ``if ( ( 'TEXT02'[1].exists == "X" ) && ( 'TEXT02'[1].visible == "X" ) )
- `<span style="width:`w("2", "1.640em")``if ( 'TEXT02'[1].alignment == "right" )`; text-align: right`end`" `
- if ( 'TEXT02'[1].highlighted == "X" )
- `class="MobileLabelHighlighted" `
- else
- `class="MobileLabel" `
- end
- `>`strmask('TEXT02'[1].label)`</span>`
- else
- `<span style="height:1px; margin-left:`w("2", "1.640em")`"></span>`
- end``
- ``if ( 1 != 0 )
- `<span style="height:1px; margin-left:`w("1", "0.820em")`"></span>`
- end``
- ``if ( ( 'Y25R1700_DATA-SYSID'[1].exists == "X" ) && ( 'Y25R1700_DATA-SYSID'[1].visible == "X" ) )
- `<span style="width:`w("9", "7.380em")``if ( 'Y25R1700_DATA-SYSID'[1].alignment == "right" )`; text-align: right`end`" `
- if ( 'Y25R1700_DATA-SYSID'[1].highlighted == "X" )
- `class="MobileLabelHighlighted MobileOutputOnly"`
- else
- `class="MobileLabel MobileOutputOnly"`
- end;
- `>`strmask('Y25R1700_DATA-SYSID'[1])`</span>`
- else
- `<span style="height:1px; margin-left:`w("9", "7.380em")`"></span>`
- end``
- ``if ( 8 != 0 )
- `<span style="height:1px; margin-left:`w("8", "6.560em")`"></span>`
- end``
- ``if ( ( 'TEXT01'[1].exists == "X" ) && ( 'TEXT01'[1].visible == "X" ) )
- `<span style="width:`w("3", "2.460em")``if ( 'TEXT01'[1].alignment == "right" )`; text-align: right`end`" `
- if ( 'TEXT01'[1].highlighted == "X" )
- `class="MobileLabelHighlighted" `
- else
- `class="MobileLabel" `
- end
- `>`strmask('TEXT01'[1].label)`</span>`
- else
- `<span style="height:1px; margin-left:`w("3", "2.460em")`"></span>`
- end``
- ``if ( 0 != 0 )
- `<span style="height:1px; margin-left:`w("0", "0.000em")`"></span>`
- end``
- ``if ( 'Y25R1700_DATA-NUM'[1].exists == "X" )
- if ( 'Y25R1700_DATA-NUM'[1].mode == "multiline" )
- `<textarea `
- `class="MobileEditMultiline`class('Y25R1700_DATA-NUM'[1])`" `
- if ( 'Y25R1700_DATA-NUM'[1].disabled == "X" ) `disabled="disabled" `end;
- if ( 'Y25R1700_DATA-NUM'[1].readonly == "X" ) `readonly="readonly" `end;
- if ( 'Y25R1700_DATA-NUM'[1].okcode != "" )
- `onchange="setOkCode('`'Y25R1700_DATA-NUM'[1].okcode`');return false;" `
- end;
- `style="width:`w("3", "2.460em")`" rows="`'Y25R1700_DATA-NUM'[1].rows`" `
- `onfocus="setFocusField('`'Y25R1700_DATA-NUM'[1].name`');" `
- `onblur="leaveFocusField('`'Y25R1700_DATA-NUM'[1].name`');" `
- `name="`'Y25R1700_DATA-NUM'[1].name`">`'Y25R1700_DATA-NUM'[1]`</textarea>`
- else
- if ( 'Y25R1700_DATA-NUM'[1].disabled == "X" )
- if ( 'Y25R1700_DATA-NUM'[1].visible != "X" )
- `<input type="hidden" `
- elseif ( 'Y25R1700_DATA-NUM'[1].type == "Password" )
- `<input type="password" readonly="readonly" tabindex="-1" style="width:`w("3", "2.460em")`" `
- if ( 'Y25R1700_DATA-NUM'[1].highlighted == "X" )
- `class="MobilePasswordHighlightedDisabled" `
- else;
- `class="MobilePasswordDisabled" `
- end;
- elseif ( 'Y25R1700_DATA-NUM'[1].inputrequired == "X" )
- `<input type="text" readonly="readonly" tabindex="-1" style="width:`w("3", "2.460em")`" `
- if ( 'Y25R1700_DATA-NUM'[1].highlighted == "X" )
- `class="MobileEditRequiredHighlightedDisabled" `
- else;
- `class="MobileEditRequiredDisabled" `
- end;
- else
- `<input type="text" readonly="readonly" tabindex="-1" style="width:`w("3", "2.460em")`" `
- if ( 'Y25R1700_DATA-NUM'[1].highlighted == "X" )
- `class="MobileEditHighlightedDisabled" `
- else;
- `class="MobileEditDisabled" `
- end;
- end;
- `name="`'Y25R1700_DATA-NUM'[1].name`" `
- if ( ( 'Y25R1700_DATA-NUM'[1].inputrequired == "X" ) && ( 'Y25R1700_DATA-NUM'[1] == "?" ) )
- `value="" `
- else
- `value="`strmaskext('Y25R1700_DATA-NUM'[1], 1)`" `
- end;
- `size="`'Y25R1700_DATA-NUM'[1].width`" maxlength="`'Y25R1700_DATA-NUM'[1].maxinputsize`"/>`
- else <!-- not disabled -->
- if ( 'Y25R1700_DATA-NUM'[1].visible != "X" )
- `<input type="hidden" `
- elseif ( 'Y25R1700_DATA-NUM'[1].type == "Password" )
- `<input type="password" style="width:`w("3", "2.460em")`" `
- if ( 'Y25R1700_DATA-NUM'[1].highlighted == "X" )
- `class="MobilePasswordHighlighted" `
- else
- `class="MobilePassword" `
- end;
- elseif ( 'Y25R1700_DATA-NUM'[1].inputrequired == "X" )
- `<input type="text" style="width:`w("3", "2.460em")``if ( 'Y25R1700_DATA-NUM'[1].alignment == "right" )`; text-align: right`end`" `
- if ( 'Y25R1700_DATA-NUM'[1].highlighted == "X" )
- `class="MobileEditRequiredHighlighted" `
- else
- `class="MobileEditRequired" `
- end;
- else
- `<input type="text" style="width:`w("3", "2.460em")``if ( 'Y25R1700_DATA-NUM'[1].alignment == "right" )`; text-align: right`end`" `
- if ( 'Y25R1700_DATA-NUM'[1].highlighted == "X" )
- `class="MobileEditHighlighted" `
- else
- `class="MobileEdit" `
- end;
- end;
- if ( 'Y25R1700_DATA-NUM'[1].okcode != "" )
- `onchange="setOkCode('`'Y25R1700_DATA-NUM'[1].okcode`');return false;" `
- end;
- `onfocus="setFocusField('`'Y25R1700_DATA-NUM'[1].name`');" `
- `onblur="leaveFocusField('`'Y25R1700_DATA-NUM'[1].name`');" `
- `name="`'Y25R1700_DATA-NUM'[1].name`" `
- if ( ~currdynpro.speechenabled != "" )`id="`'Y25R1700_DATA-NUM'[1].name`" `end;
- if ( ( 'Y25R1700_DATA-NUM'[1].inputrequired == "X" ) && ( 'Y25R1700_DATA-NUM'[1] == "?" ) )
- `value="" `
- else
- `value="`strmaskext('Y25R1700_DATA-NUM'[1], 1)`" `
- end;
- `size="`'Y25R1700_DATA-NUM'[1].width`" maxlength="`'Y25R1700_DATA-NUM'[1].maxinputsize`" id="boxText" onkeyup="myFunction()"/>`
- end;
- end;
- else
- `<span style="height:1px; margin-left:`w("3", "2.460em")`"></span>`
- end``
- ``if ( 56 != 0 )
- `<span style="height:1px; margin-left:`w("56", "45.920em")`"></span>`
- end``
- `</div>`
- `<div width="100%">`
- if ( ~itsmobileCuaInclude != "" ) <!-- customers cua area -->
- include(~service=~current_service, ~language="", ~theme=~theme, ~name=~itsmobileCuaInclude & ".html");
- elseif ( ~itsmobileNoCuaInclude != "1" && ~itsmobileNoCuaInclude != "X" ) <!-- default cua area -->
- include(~service="itsmobile", ~language="", ~theme="99", ~name="include/cuaarea.html");
- end`
- </div>
- </div>
- <!-- main screen end -->`
- `</form>`
- `</body>`
- `</html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement