Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%@ language="VBSCRIPT" %>
- <%
- Dim ssiPath
- ssiPath = Request.QueryString("ssipath")
- If Right(ssiPath, 1) = "\" Then
- Else
- ssiPath = ssiPath & "\"
- End If
- Dim uiCommon
- Set uiCommon = Server.Createobject("uiCECommon.ceCommon")
- %>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5" />
- <title>Import Appeal Codes </title>
- <% Call uiCommon.MetaInclude %>
- <style type="text/css">
- .userData {behavior:url(#default#userdata);}
- </style>
- <link rel="stylesheet" type="text/css" href="infostyle.css" />
- <link rel="stylesheet" type="text/css" href="src/TRSStyles.css" />
- <script type="text/javascript" language="javascript" src="src/TRSActiveXControls.js"></script>
- <script type="text/javascript" language="javascript">
- // Global variables.
- var docWidth = 0;
- var docHeight = 0;
- var myMargin = 0;
- var bgWidth = 0;
- var bgHeight = 0;
- var titleAreaHeight = 0;
- var currentPage = 0;
- var tabFontSize = 8;
- // numTabs variable defines the number of available tabs on the page.
- var numTabs = 1;
- var maxShowTabs = 4;
- var currentTabFlash = 0;
- var tranState = 1;
- var pageColors = new Array(7);
- var flashGray = 70;
- var setGray = 45;
- var noGray = 100;
- var strZeroText = '';
- // This is the hot spot texts calls the CancelEm VB Sub
- var hotspottext = "Cancel";
- // the different IFrame page name source files.
- var sourcepg = "ImportAppealCodesPage";
- // the default IFrame source file extension
- var sourceext = ".asp";
- // the variable that will appear when loading the ZERO page.
- var msgtext = "Entry Page";
- // disable the context menu for as many instances as possible
- document.oncontextmenu = function(){return false;}
- function documentClick() {
- var e = window.event.srcElement;
- var newpg = e.seq
- switch (newpg){
- // case 1:
- // loadNewPage(currentPage,1);
- // break;
- // case 2:
- // case 3:
- case 0:
- // loadzeroPage(currentPage,0,"page0.asp");
- alert('This tab cannot be accessed directly.');
- break;
- default:
- if (newpg > 0 && newpg <=numTabs) {
- if (currentPage == 0) {
- alert("Click the update or cancel button to end your data entry session");
- } else {
- loadNewPage(currentPage,e.seq);
- break;
- }
- }
- else
- {
- if (e.tabType == 0)
- {
- if (e.state)
- {
- switch (e.innerText) { // == 'Help')
- case 'Help':
- ecamshelp();
- break;
- case 'Home':
- btnHome_click();
- break;
- case 'Save':
- window.status = "Refreshing, please wait..."
- dorefresh();
- break;
- default:
- CancelEm();
- break;
- }
- }
- break;
- }
- }
- }
- }
- <!--#Include File="GetUserData.js"-->
- <!--#Include File="TabPageJavaScript.js"-->
- // Do not add any additional javascript functions below this line! JSM 11/26/2001
- </script>
- <script type="text/vbscript" language="VBScript">
- Dim strServer
- Dim strDBServer
- Dim strIEServer
- Dim strDBName
- Dim strUserID
- Dim strSSIPath
- Dim strVRoot
- Dim sPVFont
- Dim sPVFontsize
- Dim blnUpdated
- Dim blnCancel
- Dim blnUpdateOK
- Dim feed
- Dim pageHelp
- Dim rsAPFile
- Dim rsExport
- Dim oADS
- Dim obj
- Dim strSQL
- pageHelp = "help/hlpceToolsBBExport"
- blnUpdated = False ' Don't know what this is used for here...
- blnCancel = False ' Default the global cancel to false
- blnUpdateOK = False ' Default set to force an update.
- sPVFont = "Arial"
- sPVFontSize = 8
- strZeroURL = ""
- strAccess = "<%=Request.QueryString("access")%>"
- feed = "feed" & "<%=Request.QueryString("feed")%>"
- if feed = "feed" then
- feed = "zzTabClone3"
- end If
- SUB Window_OnLoad()
- if Lincoln1.LinkIsActive("Link1") Then
- call Lincoln1.WriteMessage("Link1", "Import Appeal Codes#tadd#ImportAppealCodesTab#")
- Else
- location.href = "default.asp"
- Exit Sub
- End If
- Call feed0.CreateLink(feed)
- window.focus()
- GetUserData()
- strUserID = xmlUserID.value
- strDBName = xmlDatabase.value
- strIEServer = xmlieserverip.value
- strVRoot = xmlvirturalroot.value
- strDBServer = xmlsqlservername.value
- strSSIPath = xmlssipath.value
- If GetRecordSets() Then
- else
- window.close()
- end If
- windowLoad()
- END SUB
- Sub showCAMSHelp()
- Call Lincoln1.WriteMessage("Link1","#help#" + pageHelp + "#")
- End Sub
- function GetRecordSets()
- GetRecordsets = True
- end function
- Sub window_onUnload()
- if Lincoln1.LinkIsActive("Link1") Then
- call Lincoln1.WriteMessage("Link1", "Page Task Item#tadd#YourFileName#")
- Else
- ' location.href = "default.asp"
- End If
- Call feed0.CreateLink(feed)
- window.focus()
- GetUserData()
- windowLoad()
- strUserID = xmlUserID.value
- strDBName = xmlDatabase.value
- strIEServer = xmlieserverip.value
- strVRoot = xmlvirturalroot.value
- strDBServer = xmlsqlservername.value
- strSSIPath = xmlssipath.value
- If GetRecordSets() Then
- else
- window.close()
- end If
- end sub
- Sub CancelEm()
- blnCancel = True
- Window.close()
- End Sub
- Sub btnHome_Click()
- call Lincoln1.WriteMessage("Link1", "#focus##")
- end sub
- Sub feed0_MessageReceived(MsgString)
- dotheupdate()
- if blnUpdateOK then
- call Lincoln1.WriteMessage("Link1", "PHC_ImportAppealCodesTab#goodupdate##")
- End If
- End Sub
- Sub dorefresh()
- dotheUpdate()
- if blnUpdateOK then
- GetRecordsets()
- end if
- LoadNewPage lastpage,lastpage
- end sub
- Sub dotheupdate()
- end Sub
- Function ImportAppealCodes()
- Set oADS = CreateObject("RDS.DataSpace")
- Set Obj = oADS.CreateObject("CAMSData.DataLayer_RDS", strIEServer)
- strSQL = "EXEC spImportFundAppealCodes 'filepath','tmpImportFundAppealCodes'"
- On error Resume Next
- Set Result = Obj.RunSQLReturnRS(strDBServer,strDBName,strSQL)
- On Error Goto 0
- Set obj = Nothing
- ImportAppealCodes = True
- end Function
- </script>
- </head>
- <body background="<%=Application("Background")%>" style="width: 750px; height: 575px; margin: 0" onclick="documentClick();" onresize="windowResize();" onkeypress="documentKeyPress();">
- <!--#Include File="WriteUserDataHTML.inc"-->
- <div id="img0sdx" style="position: absolute; height: 75px; top: 0px; left: 0px; background: #4499ff; color: darkslateblue; filter: alpha(opacity=100, FinishOpacity=0, style=1, startY=0, FinishY=50, startX=1000, finishX=1000)">
- <p>
- </p>
- </div>
- <div id="gohome" style="position: absolute; height: 75px; top: 5px; left: 35px; width: 75px; color: black">
- <%Call uiCommon.WriteButtonJava("gohome", "btnHome", "75", "28", "5", "Home", "Arial", "8")%>
- </div>
- <div id="img0sd" style="position: absolute; height: 75px; top: 0px; left: 90px; width: 150px; color: black">
- <img id="img0s" src="centtab.gif" width="198" height="26" style="position: relative; top: 5px; left: 30px">
- </div>
- <div id="everyThing" style="position: absolute; left: 0px; top: 0px; width: 750px; height: 575px; z-index: 1; visibility: hidden">
- <div id="myContainerShadow" style="position: absolute; width: 750px; height: 555px; left: 7px; top: 40px; background: #6D6556">
- </div>
- <div id="myContainer" style="position: relative; width: 798px; height: 598px; left: 0px; top: 0px" onmouseover="tabMouseOver();" onmouseout="tabMouseOut();">
- <div id="theLine" style="position: absolute; height: 2px; width: 798px; top: 30px; background: black; z-index: 2">
- </div>
- <div id="tab0" style="position: absolute; left: 0px; top: 0px; width: 30px; cursor: hand; filter: alpha(opacity=100)">
- <img id="img0" src="tab0a.gif" width="50" height="36" style="position: relative">
- </div>
- <div id="tab1" style="position: absolute; left: 0px; top: 0px; height: 36; width: 130px; cursor: hand; filter: alpha(opacity=50)">
- <img id="img1" src="tab1.gif" width="140" height="36" style="position: absolute">
- <p class="tab9Text" id="txt1" style="position: relative; fontsize: 8; left: 15px; width: 10px; top: 8px">
- <img id="blt1" src="litx.gif" hspace="2" style="position: relative; top: 1px" width="12" height="12">Import</p>
- </div>
- <div id="div0" style="position: absolute; padding: 8; left: 0px; top: 32px; width: 798px; height: 587px; background: #0000FF; z-index: 3">
- <div id="msg" style="position: absolute; left: 310px; top: 10px; width: 230px; filter: revealTrans(Duration=2, Transition=6)" onfilterchange="msgFilterChange();">
- <p style="color: white; font-weight: bold">
- </p>
- </div>
- <p id="pagex" class="pTitle" style="color: blue">
- <span id="page0"></span><span id="camshelp" style="position: absolute; left: 430; top: 11">
- <img src="ceHelp.gif" align="middle" width="12" height="12">
- <span id="camshelpText" class="tab9Text">Help</span> </span><span id="xpage1Sample" style="position: absolute; left: 450; top: 11">
- <img src="lit.gif" align="middle" width="12" height="12">
- <span id="xpage1SampleText" class="examples">Cancel</span> </span>
- </p>
- <span id="page1" style="position: absolute; visibility: hidden">Import Appeal Codes</span>
- </div>
- </div>
- </div>
- <iframe id="textFrame" src="Page0.asp" class="TabIFrame"></iframe>
- <div id="divlincoln1">
- </div>
- <div id="divfeed0">
- </div>
- <script type="text/javascript" language="javascript">
- var LincolnBase = '<% call uiCommon.GetCodeBase("LINCOLN")%>';
- TRSLincoln("divlincoln1","Lincoln1",LincolnBase);
- TRSLincoln("divfeed0","feed0",LincolnBase);
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment