Logging knoptje in header iets netter
svn path=/Website/trunk/; revision=29620
This commit is contained in:
@@ -45,10 +45,40 @@ function generateHeader()
|
||||
function setGlobalUser (prs_key, prs_naam) {
|
||||
FcltMgr.setCaller({prs_key: prs_key, prs_naam: prs_naam});
|
||||
}
|
||||
<%
|
||||
if (Application("otap_environment") == "O")
|
||||
{%>
|
||||
function startLogging(silent)
|
||||
{
|
||||
if (!silent)
|
||||
$.toast({ text: "Logging is now on", icon: "success", position : 'top-left'});
|
||||
$("#loggingon").hide();
|
||||
$("#loggingoff").show();
|
||||
}
|
||||
function stopLogging()
|
||||
{
|
||||
$.post("../shared/wislog.asp?logging=0");
|
||||
$.toast({ text: "Logging is now off", icon: "success", position : 'top-left'});
|
||||
$("#loggingoff").hide();
|
||||
$("#loggingon").show();
|
||||
}
|
||||
<%
|
||||
if (Session("logging") > 0)
|
||||
Response.Write("startLogging(true);");
|
||||
}
|
||||
%>
|
||||
</script>
|
||||
|
||||
<div id="headerblok" style='height:100%'>
|
||||
<%
|
||||
if (Application("otap_environment") == "O")
|
||||
{%>
|
||||
<div id="loggers">
|
||||
<button id='loggingoff' onclick='stopLogging()'>Stop logging</button>
|
||||
<a href='../shared/wislog.asp?logging=1' target='_new'><button id='loggingon' onclick='startLogging()'>Start logging</button></a>
|
||||
</div>
|
||||
<%
|
||||
}
|
||||
if (Session("org_user_key") > 0)
|
||||
{
|
||||
var other_key = parseInt(Session("org_user_key"), 10);
|
||||
|
||||
@@ -433,6 +433,20 @@ th {
|
||||
#headerlogout:hover, #headerhelp:hover, #loggedinuser span:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
div#loggers {
|
||||
position:absolute;
|
||||
top:5px;
|
||||
left:5px;
|
||||
z-index:99
|
||||
}
|
||||
button#loggingoff {
|
||||
display:none;
|
||||
font-size:10px;
|
||||
background-color:#f88;
|
||||
}
|
||||
button#loggingon {
|
||||
font-size:10px;
|
||||
}
|
||||
#badschema {
|
||||
background-color: red;
|
||||
font-size: 2.0em;
|
||||
|
||||
Reference in New Issue
Block a user