mirror of
https://github.com/sasjs/server.git
synced 2025-12-10 11:24:35 +00:00
chore: generic sas9 mock responses
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -5,7 +5,8 @@ node_modules/
|
||||
.env*
|
||||
sas/
|
||||
sasjs_root/
|
||||
api/mocks/
|
||||
api/mocks/custom/*
|
||||
!api/mocks/custom/.keep
|
||||
tmp/
|
||||
build/
|
||||
sasjsbuild/
|
||||
|
||||
0
api/mocks/custom/.keep
Normal file
0
api/mocks/custom/.keep
Normal file
126
api/mocks/generic/sas9/logged-in
Normal file
126
api/mocks/generic/sas9/logged-in
Normal file
@@ -0,0 +1,126 @@
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" dir="ltr" class="bg">
|
||||
|
||||
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="shortcut icon" href="themes/default/images/favicon.ico" />
|
||||
<title>
|
||||
|
||||
|
||||
|
||||
SAS® Logon Manager
|
||||
|
||||
|
||||
</title>
|
||||
<link type="text/css" rel="stylesheet" href="themes/default/css/sas.css" />
|
||||
<meta name="viewport" content="initial-scale=1" />
|
||||
</head>
|
||||
|
||||
|
||||
|
||||
<div class="content">
|
||||
<div id="nonModal" class="block">
|
||||
<img src="themes/default/images/transparent.png" class="logo" alt="" />
|
||||
<!--customizable logo-->
|
||||
|
||||
<!--~~~~~~~~~~~~~~~~~~~~~MAIN CONTAINER~~~~~~~~~~~~~~~~~~~~~-->
|
||||
|
||||
|
||||
<header>
|
||||
<img src="themes/default/images/saslogo.svg" class="logo" alt="SAS Logo" />
|
||||
</header>
|
||||
<div class="infobox">
|
||||
<h3>You have signed in.</h2>
|
||||
<p>For increased security, sign out and close your web browser when you finish accessing services that require authentication.</p>
|
||||
|
||||
<button type="button" class="btn-submit" onClick="javascript:window.location.href='logout?';">Sign Out</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<footer>
|
||||
|
||||
|
||||
<div class="copyright">
|
||||
<!--copyright statement-->
|
||||
<span dir="ltr">© 2002-2020, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.</span>
|
||||
<a href="#openModal" onClick="$('#openModal').show()" class="about" title="About">About</a>
|
||||
</div>
|
||||
|
||||
</footer>
|
||||
|
||||
|
||||
<!--~~~~~~~~~~~~~~~~~~~~~ABOUT DIALOG MODAL CONTENT~~~~~~~~~~~~~~~~~-->
|
||||
|
||||
<div id="openModal" class="modalDialog" style="z-index: 9999;">
|
||||
<!--modal container-->
|
||||
<div>
|
||||
<div class="test" dir="auto">
|
||||
<div>‏</div>
|
||||
<div><a href="" onClick="$('#openModal').hide();" title="Done" class="done">Done</a></div>
|
||||
<!--done button-->
|
||||
</div>
|
||||
<!-- about dialog content -->
|
||||
<br />
|
||||
<div dir="auto">
|
||||
<p>Product name: SAS<sup>®</sup> Logon Manager</p>
|
||||
<p>Release: 9.4</p>
|
||||
<h2>Legal Notices</h2>
|
||||
</div>
|
||||
<div dir="ltr">
|
||||
<p>Copyright 2002-2020, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
|
||||
This software is protected by copyright laws and international treaties.</p>
|
||||
<h3>U.S. Government Restricted Rights</h3>
|
||||
<p>Use, duplication or disclosure of this software and related documentation by the United States government is subject to the license terms of the Agreement with SAS Institute Inc. pursuant to, as applicable, FAR 12.212, DFAR 227.7202-1(a), DFAR 227.7202-3(a) and DFAR 227.7202-4 and, to the extent required under United States federal law, the minimum restricted rights as set out in FAR 52.227-19 (DEC 2007).</p>
|
||||
<h3>Third-Party Software Usage</h3>
|
||||
<h4>Central Authentication Service</h4>
|
||||
<p>Copyright © 2007, JA-SIG, Inc. All rights reserved.</p>
|
||||
<p>Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:</p>
|
||||
<ul>
|
||||
<li>
|
||||
<p>Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.</p>
|
||||
</li>
|
||||
<br />
|
||||
<li>
|
||||
<p>Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.</p>
|
||||
</li>
|
||||
<br />
|
||||
<li>
|
||||
<p>Neither the name of the JA-SIG, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.</p>
|
||||
</li>
|
||||
</ul>
|
||||
<p>THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
||||
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="radiance"></div>
|
||||
|
||||
|
||||
<script type="text/javascript" src="/SASLogon/js/jquery.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).on('keydown', function(e) {
|
||||
if (e.keyCode === 27) {
|
||||
$('#openModal').hide();
|
||||
document.location.href = '';
|
||||
return false;
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
</html>
|
||||
134
api/mocks/generic/sas9/logged-out
Normal file
134
api/mocks/generic/sas9/logged-out
Normal file
@@ -0,0 +1,134 @@
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" dir="ltr" class="bg">
|
||||
|
||||
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="shortcut icon" href="themes/default/images/favicon.ico" />
|
||||
<title>
|
||||
|
||||
|
||||
|
||||
SAS® Logon Manager
|
||||
|
||||
|
||||
</title>
|
||||
<link type="text/css" rel="stylesheet" href="themes/default/css/sas.css" />
|
||||
<meta name="viewport" content="initial-scale=1" />
|
||||
</head>
|
||||
|
||||
|
||||
|
||||
<div class="content">
|
||||
<div id="nonModal" class="block">
|
||||
<img src="themes/default/images/transparent.png" class="logo" alt="" />
|
||||
<!--customizable logo-->
|
||||
|
||||
<!--~~~~~~~~~~~~~~~~~~~~~MAIN CONTAINER~~~~~~~~~~~~~~~~~~~~~-->
|
||||
|
||||
|
||||
<header>
|
||||
<img src="themes/default/images/saslogo.svg" class="logo" alt="SAS Logo" />
|
||||
</header>
|
||||
<div class="infobox">
|
||||
|
||||
|
||||
|
||||
|
||||
<h3>You have signed out.</h3>
|
||||
|
||||
|
||||
|
||||
<p>For increased security, close your browser.</p>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<footer>
|
||||
|
||||
|
||||
<div class="copyright">
|
||||
<!--copyright statement-->
|
||||
<span dir="ltr">© 2002-2020, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.</span>
|
||||
<a href="#openModal" onClick="$('#openModal').show()" class="about" title="About">About</a>
|
||||
</div>
|
||||
|
||||
</footer>
|
||||
|
||||
|
||||
<!--~~~~~~~~~~~~~~~~~~~~~ABOUT DIALOG MODAL CONTENT~~~~~~~~~~~~~~~~~-->
|
||||
|
||||
<div id="openModal" class="modalDialog" style="z-index: 9999;">
|
||||
<!--modal container-->
|
||||
<div>
|
||||
<div class="test" dir="auto">
|
||||
<div>‏</div>
|
||||
<div><a href="" onClick="$('#openModal').hide();" title="Done" class="done">Done</a></div>
|
||||
<!--done button-->
|
||||
</div>
|
||||
<!-- about dialog content -->
|
||||
<br />
|
||||
<div dir="auto">
|
||||
<p>Product name: SAS<sup>®</sup> Logon Manager</p>
|
||||
<p>Release: 9.4</p>
|
||||
<h2>Legal Notices</h2>
|
||||
</div>
|
||||
<div dir="ltr">
|
||||
<p>Copyright 2002-2020, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
|
||||
This software is protected by copyright laws and international treaties.</p>
|
||||
<h3>U.S. Government Restricted Rights</h3>
|
||||
<p>Use, duplication or disclosure of this software and related documentation by the United States government is subject to the license terms of the Agreement with SAS Institute Inc. pursuant to, as applicable, FAR 12.212, DFAR 227.7202-1(a), DFAR 227.7202-3(a) and DFAR 227.7202-4 and, to the extent required under United States federal law, the minimum restricted rights as set out in FAR 52.227-19 (DEC 2007).</p>
|
||||
<h3>Third-Party Software Usage</h3>
|
||||
<h4>Central Authentication Service</h4>
|
||||
<p>Copyright © 2007, JA-SIG, Inc. All rights reserved.</p>
|
||||
<p>Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:</p>
|
||||
<ul>
|
||||
<li>
|
||||
<p>Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.</p>
|
||||
</li>
|
||||
<br />
|
||||
<li>
|
||||
<p>Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.</p>
|
||||
</li>
|
||||
<br />
|
||||
<li>
|
||||
<p>Neither the name of the JA-SIG, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.</p>
|
||||
</li>
|
||||
</ul>
|
||||
<p>THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
||||
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="radiance"></div>
|
||||
|
||||
|
||||
<script type="text/javascript" src="/SASLogon/js/jquery.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).on('keydown', function(e) {
|
||||
if (e.keyCode === 27) {
|
||||
$('#openModal').hide();
|
||||
document.location.href = '';
|
||||
return false;
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
</html>
|
||||
208
api/mocks/generic/sas9/login
Normal file
208
api/mocks/generic/sas9/login
Normal file
@@ -0,0 +1,208 @@
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" dir="ltr" class="bg">
|
||||
|
||||
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="shortcut icon" href="themes/default/images/favicon.ico" />
|
||||
<title>
|
||||
|
||||
|
||||
|
||||
SAS® Logon Manager
|
||||
|
||||
|
||||
</title>
|
||||
<link type="text/css" rel="stylesheet" href="themes/default/css/sas.css" />
|
||||
<meta name="viewport" content="initial-scale=1" />
|
||||
</head>
|
||||
|
||||
|
||||
<div class="content">
|
||||
<div id="nonModal" class="block" aria-hidden="false">
|
||||
<div id="loginbox" class="loginbox">
|
||||
|
||||
<!--~~~~~~~~~~~~~~~~~~~~~MESSAGE CONTAINER~~~~~~~~~~~~~~~~~~~~~-->
|
||||
|
||||
<div class="message" style='display:none;' id="nocookie-message" aria-hidden="true">
|
||||
<div class="errorIcon"></div>
|
||||
<h2>This application requires that your browser accept cookies. Change your browser settings accordingly.</h2>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<img src="themes/default/images/transparent.png" class="logo" alt="" />
|
||||
<!--customizable logo-->
|
||||
|
||||
|
||||
<header>
|
||||
<img src="themes/default/images/saslogo.svg" class="logo" alt="SAS Logo" />
|
||||
</header>
|
||||
|
||||
<!--~~~~~~~~~~~~~~~~~~~~~MAIN CONTAINER~~~~~~~~~~~~~~~~~~~~~-->
|
||||
|
||||
<form id="credentials" class="minimal" action="/SASLogon/login?service=http%3A%2F%2Fsas-aap.demo.sas.com%2FSASStoredProcess%2Fj_spring_cas_security_check" method="post">
|
||||
<!--form container-->
|
||||
<input type="hidden" name="lt" value="LT-8-WGkt9EXwICBihaVbxGc92opjufTK1D" aria-hidden="true" />
|
||||
<input type="hidden" name="execution" value="e2s1" aria-hidden="true" />
|
||||
<input type="hidden" name="_eventId" value="submit" aria-hidden="true" />
|
||||
|
||||
<span class="userid">
|
||||
|
||||
<input id="username" name="username" tabindex="3" aria-labelledby="username1 message1 message2 message3" name="username" placeholder="User ID" type="text" autofocus="true" value="" maxlength="500" autocomplete="off" />
|
||||
</span>
|
||||
<span class="password">
|
||||
|
||||
<input id="password" name="password" tabindex="4" name="password" placeholder="Password" type="password" value="" maxlength="500" autocomplete="off" />
|
||||
</span>
|
||||
|
||||
<button type="submit" class="btn-submit" title="Sign In" tabindex="5" onClick="this.disabled=true;setSubmitUrl(this.form);this.form.submit();return false;">Sign In</button>
|
||||
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<footer>
|
||||
|
||||
|
||||
<div class="copyright">
|
||||
<!--copyright statement-->
|
||||
<span dir="ltr">© 2002-2020, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.</span>
|
||||
<a href="#openModal" onClick="$('#openModal').show()" class="about" title="About">About</a>
|
||||
</div>
|
||||
|
||||
</footer>
|
||||
|
||||
|
||||
<!--~~~~~~~~~~~~~~~~~~~~~ABOUT DIALOG MODAL CONTENT~~~~~~~~~~~~~~~~~-->
|
||||
|
||||
<div id="openModal" class="modalDialog" style="z-index: 9999;">
|
||||
<!--modal container-->
|
||||
<div>
|
||||
<div class="test" dir="auto">
|
||||
<div>‏</div>
|
||||
<div><a href="" onClick="$('#openModal').hide();" title="Done" class="done">Done</a></div>
|
||||
<!--done button-->
|
||||
</div>
|
||||
<!-- about dialog content -->
|
||||
<br />
|
||||
<div dir="auto">
|
||||
<p>Product name: SAS<sup>®</sup> Logon Manager</p>
|
||||
<p>Release: 9.4</p>
|
||||
<h2>Legal Notices</h2>
|
||||
</div>
|
||||
<div dir="ltr">
|
||||
<p>Copyright 2002-2020, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
|
||||
This software is protected by copyright laws and international treaties.</p>
|
||||
<h3>U.S. Government Restricted Rights</h3>
|
||||
<p>Use, duplication or disclosure of this software and related documentation by the United States government is subject to the license terms of the Agreement with SAS Institute Inc. pursuant to, as applicable, FAR 12.212, DFAR 227.7202-1(a), DFAR 227.7202-3(a) and DFAR 227.7202-4 and, to the extent required under United States federal law, the minimum restricted rights as set out in FAR 52.227-19 (DEC 2007).</p>
|
||||
<h3>Third-Party Software Usage</h3>
|
||||
<h4>Central Authentication Service</h4>
|
||||
<p>Copyright © 2007, JA-SIG, Inc. All rights reserved.</p>
|
||||
<p>Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:</p>
|
||||
<ul>
|
||||
<li>
|
||||
<p>Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.</p>
|
||||
</li>
|
||||
<br />
|
||||
<li>
|
||||
<p>Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.</p>
|
||||
</li>
|
||||
<br />
|
||||
<li>
|
||||
<p>Neither the name of the JA-SIG, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.</p>
|
||||
</li>
|
||||
</ul>
|
||||
<p>THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
||||
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="radiance"></div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript" src="/SASLogon/js/jquery.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).on('keydown', function(e) {
|
||||
if (e.keyCode === 27) {
|
||||
$('#openModal').hide();
|
||||
document.location.href = '';
|
||||
return false;
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
function setSubmitUrl(form) {
|
||||
var urlHash = decodeURIComponent(window.location.hash);
|
||||
|
||||
if (urlHash && urlHash.indexOf("#") === -1)
|
||||
urlHash = "#" + urlHash;
|
||||
|
||||
form.action = form.action + urlHash;
|
||||
return true;
|
||||
}
|
||||
|
||||
function are_cookies_enabled() {
|
||||
var cookieEnabled = (navigator.cookieEnabled) ? true : false;
|
||||
|
||||
if (typeof navigator.cookieEnabled == "undefined") {
|
||||
document.cookie = "testcookie";
|
||||
cookieEnabled = (document.cookie.indexOf("testcookie") != -1) ? true : false;
|
||||
}
|
||||
|
||||
if (!cookieEnabled) {
|
||||
document.getElementById("nocookie-message").setAttribute("aria-hidden", "false");
|
||||
var username = document.getElementById("username");
|
||||
username.setAttribute("aria-labelledby", username.getAttribute("aria-labelledby") + " nocookie-message");
|
||||
$('#nocookie-message').show();
|
||||
}
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
are_cookies_enabled();
|
||||
});
|
||||
|
||||
function modality() {
|
||||
switch (location.hash) {
|
||||
case "#openModal":
|
||||
$('#nonModal :input').attr('disabled', true);
|
||||
document.getElementById("nonModal").setAttribute("aria-hidden", "true");
|
||||
document.getElementById("openModal").setAttribute("aria-hidden", "false");
|
||||
break;
|
||||
default:
|
||||
$('#nonModal :input').attr('disabled', false);
|
||||
document.getElementById("nonModal").setAttribute("aria-hidden", "false");
|
||||
document.getElementById("openModal").setAttribute("aria-hidden", "true");
|
||||
break;
|
||||
}
|
||||
}
|
||||
window.onhashchange = modality;
|
||||
modality();
|
||||
</script>
|
||||
|
||||
|
||||
</html>
|
||||
295
api/mocks/generic/sas9/sas-stored-process
Normal file
295
api/mocks/generic/sas9/sas-stored-process
Normal file
@@ -0,0 +1,295 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<!-- NLS Version -->
|
||||
|
||||
<html>
|
||||
|
||||
<head>
|
||||
|
||||
<title>SAS Stored Process Web Application</title>
|
||||
|
||||
<script type="text/javascript">
|
||||
/*<![CDATA[*/
|
||||
window.enableContextMenu = true;
|
||||
|
||||
function toggleSamples() {
|
||||
var el;
|
||||
el = document.getElementById("samples");
|
||||
if (el.style.display == 'block')
|
||||
el.style.display = 'none';
|
||||
else
|
||||
el.style.display = 'block';
|
||||
}
|
||||
|
||||
|
||||
window.onload = loadSamples;
|
||||
|
||||
function loadSamples() {
|
||||
|
||||
var URL, parms;
|
||||
|
||||
URL = "/SASStoredProcess/do?_action=search,form,properties,execute,nosort&_match=_Sample&_field=keywords&_columns=description&_path=/Products/SAS Intelligence Platform/Samples";
|
||||
|
||||
parms = {
|
||||
url: URL,
|
||||
load: function(type, data, evt) {
|
||||
dojo.byId("sampleList").innerHTML = data;
|
||||
},
|
||||
error: function(type, data, evt) {
|
||||
dojo.byId("sampleList").innerHTML = data;
|
||||
},
|
||||
method: "GET"
|
||||
};
|
||||
|
||||
dojo.io.bind(parms);
|
||||
|
||||
}
|
||||
/*]]>*/
|
||||
</script>
|
||||
<script type="text/javascript" src="/SASStoredProcess/scripts/sas_Bootstrap.js"></script>
|
||||
<script type="text/javascript" src="/SASStoredProcess/scripts/sas_Common.js"></script>
|
||||
<script type="text/javascript">
|
||||
var sas_framework_timeout;
|
||||
|
||||
function sas_framework_onTimeout() {
|
||||
var url = 'http://sas-aap.demo.sas.com/SASLogon/TimedOut.do?_locale=en_US&_sasapp=Stored+Process+Web+App+9.4';
|
||||
if (window.top) {
|
||||
window.top.location.href = url;
|
||||
} else {
|
||||
window.location.href = url;
|
||||
}
|
||||
}
|
||||
|
||||
function sas_framework_updateTimeout() {
|
||||
sas_framework_extendOtherSessions(window.top);
|
||||
sas_framework_updateFrameTimeout();
|
||||
}
|
||||
|
||||
function sas_framework_extendOtherSessions(parentWindow) {
|
||||
if (parentWindow.frames.length > 0) {
|
||||
for (var i = 0; i < parentWindow.frames.length; i++) {
|
||||
try {
|
||||
var f = parentWindow.frames[i];
|
||||
if (f != self) {
|
||||
if (f.frames.length > 0) {
|
||||
sas_framework_extendOtherSessions(f);
|
||||
}
|
||||
if (typeof f.sas_framework_extendSession != 'undefined') {
|
||||
f.sas_framework_extendSession();
|
||||
}
|
||||
}
|
||||
} catch (err) {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function sas_framework_updateFrameTimeout() {
|
||||
self.clearTimeout(sas_framework_timeout);
|
||||
sas_framework_timeout = self.setTimeout('sas_framework_onTimeout()', 1800000);
|
||||
}
|
||||
|
||||
function sas_framework_extendSession() {
|
||||
var timestamp = new Date();
|
||||
var url = '/SASStoredProcess/Director?_sessionTouch=true&tstamp=' + timestamp.getTime();
|
||||
var xmlhttp = sas_createXMLHttpRequest();
|
||||
xmlhttp.open('POST', url, true);
|
||||
xmlhttp.send('');
|
||||
window.top.warningShown = null;
|
||||
sas_framework_updateFrameTimeout();
|
||||
}
|
||||
sas_framework_updateTimeout();
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
|
||||
<link type="text/css" href="http://sas-aap.demo.sas.com/SASTheme_default/themes/default/styles/sasComponents_FF_5.css" rel="stylesheet" />
|
||||
|
||||
<link type="text/css" href="http://sas-aap.demo.sas.com/SASTheme_default/themes/default/styles/sasStyle.css" rel="stylesheet" />
|
||||
|
||||
<link type="text/css" href="http://sas-aap.demo.sas.com/SASTheme_default/themes/default/styles/custom.css" rel="stylesheet" />
|
||||
|
||||
<script language=Javascript>
|
||||
/*<![CDATA[*/
|
||||
var enableContextMenu = true;
|
||||
/*]]>*/
|
||||
</script>
|
||||
<link rel="shortcut icon" href="http://sas-aap.demo.sas.com/SASTheme_default/themes/default/images/favicon.ico" />
|
||||
<script type="text/javascript" src="/SASStoredProcess/scripts/sas_Bootstrap.js"></script>
|
||||
<script type="text/javascript">
|
||||
/*<![CDATA[*/
|
||||
|
||||
sas.setJavaScriptLocation("/SASStoredProcess/scripts/");
|
||||
sas.requires("sas_Common");
|
||||
/*]]>*/
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
/*<![CDATA[*/
|
||||
sas_includeDojo('/SASStoredProcess/scripts/dojo/'); /*]]>*/
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
/*<![CDATA[*/
|
||||
|
||||
dojo.event.connect(document, "onclick", function(e) {
|
||||
dojo.event.topic.publish("Components.ClosePopups")
|
||||
})
|
||||
dojo.event.connect(document, "onkeydown", function(e) {
|
||||
if (e.keyCode == 27) {
|
||||
dojo.event.topic.publish("Components.ClosePopups")
|
||||
}
|
||||
})
|
||||
/*]]>*/
|
||||
</script>
|
||||
|
||||
<script language=Javascript>
|
||||
/*<![CDATA[*/
|
||||
function clearFrame(url) {
|
||||
window.top.location.replace(url)
|
||||
}
|
||||
/*]]>*/
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- Banner -->
|
||||
<script type="text/javascript" src="/SASStoredProcess/scripts/SASDoc_window.js"></script>
|
||||
|
||||
<div id="banner" style="background-image:url(http://sas-aap.demo.sas.com/SASTheme_default/themes/default/images/BannerBackground.gif); " class="banner_container">
|
||||
<div class="banner_utilitybar_overlay"> </div>
|
||||
<table class="banner_utilitybar" cellpadding="0" cellspacing="0" width="100%">
|
||||
<tr valign="top">
|
||||
<!-- Skip to main content navigation link for screen readers -->
|
||||
<td class="bannerSkipNav"></td>
|
||||
<td class="banner_utilitybar_navigation" width="40%">
|
||||
</td>
|
||||
<td class="banner_userrole" nowrap="nowrap" align="center" width="20%">
|
||||
</td>
|
||||
<td width="40%" valign="top"><span class="banner_global_menu"><a href="#globalMenuBar_skipMenuBar" title="Skip Menu Bar"></a>
|
||||
<script type="text/javascript">
|
||||
/*<![CDATA[*/
|
||||
sas.requires("TrimPath", "/SASStoredProcess/scripts/"); /*]]>*/
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
/*<![CDATA[*/
|
||||
sas.requires("sas_SimpleMenuBar", "/SASStoredProcess/scripts/"); /*]]>*/
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
/*<![CDATA[*/
|
||||
globalMenuBar = new sas.menu.SimpleMenuBar('globalMenuBar');
|
||||
globalMenuBar.setModel({
|
||||
"images": {
|
||||
"menuDownArrow": "MenuDownArrow.gif",
|
||||
"menuDownArrowDisabled": "MenuDownArrowDisabled.gif",
|
||||
"spacer": "spacer.gif",
|
||||
"menuDownArrow_White": "MenuDownArrowBanner.gif"
|
||||
},
|
||||
"stockImageLocation": "http://sas-aap.demo.sas.com/SASTheme_default/themes/default/images/",
|
||||
"id": "globalMenuBar",
|
||||
"items": [{
|
||||
"text": "Log Off SAS Demo User",
|
||||
"title": "Log Off SAS Demo User",
|
||||
"url": "javascript: clearFrame(\"/SASStoredProcess/do?_action=logoff\")"
|
||||
}]
|
||||
});
|
||||
globalMenuBar.setStyles({
|
||||
"MENUITEM": " class=\"SimpleMenuBarItem SimpleMenuBarItem_Banner_GlobalMenu_Look\"",
|
||||
"MENUITEM_SELECTED": " class=\"SimpleMenuBarItemSelected SimpleMenuBarItemSelected_Banner_GlobalMenu_Look\"",
|
||||
"MENUITEM_DISABLED": " class=\"SimpleMenuBarItemDisabled SimpleMenuBarItemDisabled_Banner_GlobalMenu_Look\"",
|
||||
"MENUBAR": " class=\"SimpleMenuBar SimpleMenuBar_Banner_GlobalMenu_Look\"",
|
||||
"SEPARATOR": " class=\"SimpleMenuBarSeparator SimpleMenuBarSeparator_Banner_GlobalMenu_Look\"",
|
||||
"MENUITEM_ICON": " class=\"SimpleMenuBarIcon SimpleMenuBarIcon_Banner_GlobalMenu_Look\"",
|
||||
"MENUITEM_HIGHLIGHT": "SimpleMenuBarItem SimpleMenuBarItemHighlight SimpleMenuBarItem SimpleMenuBarItemHighlight_Banner_GlobalMenu_Look",
|
||||
"MENUITEM_SPACER": " class=\"SimpleMenuBarItemSpacer SimpleMenuBarItemSpacer_Banner_GlobalMenu_Look\"",
|
||||
"SUBMENU_INDICATOR": " class=\"SimpleMenuBarSubMenuIndicator SimpleMenuBarSubMenuIndicator_Banner_GlobalMenu_Look\"",
|
||||
"MENUITEM_DISABLED_SELECTED": " class=\"SimpleMenuBarItemDisabled SimpleMenuBarItemSelected SimpleMenuBarItemDisabled SimpleMenuBarItemSelected_Banner_GlobalMenu_Look\""
|
||||
});
|
||||
globalMenuBar.setLook('Banner_GlobalMenu_Look');
|
||||
globalMenuBar.render();
|
||||
/*]]>*/
|
||||
</script>
|
||||
|
||||
<a name="globalMenuBar_skipMenuBar"></a>
|
||||
</span></td>
|
||||
<td width="1%"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table cellpadding="0" cellspacing="0" width="100%">
|
||||
<tr>
|
||||
<td nowrap="nowrap" id="bantitle" class="banner_title">SAS Stored Process Web Application</td>
|
||||
<td id="banbullet" class="banner_bullet"></td>
|
||||
<td nowrap="nowrap" id="bantitle2" class="banner_secondaryTitle"></td>
|
||||
<td class="banner_logo" id="banlogo" class="banner_logo" width="100%"><img src="http://sas-aap.demo.sas.com/SASTheme_default/themes/default/images/logo.gif" width="62" height="24"" border=" 0" alt="" /></td>
|
||||
<td class="banner_logoPadding"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<table class="bannerDividerTable" width="100%" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td>
|
||||
<div class="bannerDividerRow" align="left" style="height:5px"></div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div style="margin-top: 15px; margin-left: 15px; margin-right: 15px;">
|
||||
<!-- Main body content -->
|
||||
|
||||
|
||||
<p>
|
||||
Welcome to the Version 9 SAS Stored Process Web Application. This application allows you to execute SAS Stored Processes from a Web browser.
|
||||
</p>
|
||||
|
||||
<form id="IndexForm" action="/SASStoredProcess/do" method="post">
|
||||
<input type="hidden" name="_action" value="index,form,properties,execute,newwindow">
|
||||
</form>
|
||||
<form id="SearchForm" action="/SASStoredProcess/do" method="post">
|
||||
<input type="hidden" name="_action" value="search,form,properties,execute,newwindow">
|
||||
</form>
|
||||
<form id="ReportForm" action="/SASStoredProcess/do" method="post">
|
||||
<input type="hidden" name="_action" value="index,form,properties,execute,newwindow">
|
||||
<input type="hidden" name="_type" value="report">
|
||||
</form>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var objIndexForm = document.getElementById("IndexForm");
|
||||
var objSearchForm = document.getElementById("SearchForm");
|
||||
var objReportForm = document.getElementById("ReportForm");
|
||||
</script>
|
||||
|
||||
<ul>
|
||||
<li><a title="Table of sample stored processes." href="javascript:toggleSamples()">Stored Process Samples</a></li>
|
||||
|
||||
|
||||
<div id="samples" style="margin-left:15px; display:block">
|
||||
<p>
|
||||
The following samples display some of the capabilities of stored processes. Many of the samples allow you to view the SAS log and see the SAS program used to generate the HTML or graphic output. Click on one of the following program names to execute the stored process.
|
||||
</p>
|
||||
|
||||
<div id="sampleList" name="sampleList" style="width:95%;"></div>
|
||||
|
||||
<br />
|
||||
|
||||
</div>
|
||||
|
||||
<li><a title="Display a tree of all available stored processes and reports." href="javascript:objIndexForm.submit()">List Available Stored Processes and Reports</a></li>
|
||||
<li><a title="Search for available stored processes and reports." href="javascript:objSearchForm.submit()">Search for Stored Processes and Reports</a></li>
|
||||
<li><a title="Access documentation from the SAS web site." href="http://support.sas.com/storedprocesses94">SAS Stored Processes: Developer's Guide</a>
|
||||
- requires Internet access</li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- Main body content -->
|
||||
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user