dcsimg
  Home | Windows Servers | SQL Server | SMS Server | Exchange Server | Windows Scripts | SQL Scripts | Discussions | Columnists




 Swynk.com »
   Windows Servers
   Windows Scripts
   SQL Server
   SQL Scripts
   SMS Server
   Exchange Server






 Resources »
   Discussion Groups
   Discussion Lists
   Columnists
   Newsletter
   Knowledgebase
   Jobbase
   Online Library


 




Internet News
Internet Investing
Internet Technology
Windows Internet Tech.
Linux/Open Source
Web Developer
ECommerce/ Marketing
ISP Resources
ASP Resources
Wireless Internet
Downloads
Internet Resources
Internet Lists
International
EarthWeb
Career Resources

Search internet.com
Advertise
Corporate Info
Newsletters
E-mail Offers

internet.commerce

Be a Partner










Make SWYNK.COM
Your Home Page




  *archives (robots only)


  Swynk.com > the admin subsystem


October 21, 2002

filename: hometoc.htm

Cut and paste the code below into a text editor like notepad or Visual Interdev and save to the root of the web application.

<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
var page

function start_up () {
      load_body();
      setClock();
}      

function load_body() {
  document.page="show_table.asp?table=msdb..systasks";
  document.page = document.page + "&columnList=name,lastrundate,lastruntime,hhmmss=lastrunduration,nextrundate,nextruntime,lastruncompletionlevel";
  document.page = document.page + "&condition=" + escape("WHERE enabled=1 ORDER BY lastruncompletionlevel,name");
  document.page = document.page;
  top.body.location.href = document.page;
}

function setClock() {
  var now = new Date();
  var Hours = now.getHours();
  var Minutes = now.getMinutes();
  var Seconds = now.getSeconds();
  var Value = "" + ((Hours >12) ? Hours - 12 : Hours)
  if (Seconds==59) {
    top.body.location.href = document.page;
    }
  Value = ((Hours < 10) ? " " : "") + Hours
  Value += ((Minutes < 10) ? ":0" : ":") + Minutes
  Value += ((Seconds < 10) ? ":0" : ":") + Seconds
  Value += (Hours >=12) ? " PM" : " AM";
  document.clocktext.clock.value = Value;
  setTimeout ("setClock()", 1000);
}
  
function help_OK() {
  string = 'Black Text on White Background. ';
  string = string + 'The job is active and scheduled. ';
  alert (string);
  }

function help_today() {
  string = 'Green Background. ';
  string = string + 'The next scheduled run time for this job is today. ';
  alert (string);
  }

function help_no() {
  string = 'Grey Background. ';
  string = string + 'The job is active, but no run time has been set. ';
  alert (string);
  }

function help_passed() {
  string = 'Yellow Background. ';
  string = string + 'The next scheduled run time has passed. ';
  string = string + 'Most likely: the job is active. Could also indicate ';
  string = string + 'a network failure or a problem on the admin server. ';
  alert (string);
  }

function help_failed() {
  string = 'Red Text and Any Background. ';
  string = string + 'The job is scheduled. ';
  string = string + 'The last run completion status is FAILED. ';
  string = string + 'Failed jobs will always be listed first. ';
  string = string + 'Review the job history and the ErrorLog for specific details. ';
  alert (string);
  }

function help_rate() {
  string = 'Refresh Rate - The frequency that the status frame will be refreshed. ';
  string = string + 'Each refresh is initiated in the setClock() JavaScript function ';
  string = string + 'in the hometoc.htm document. The default is the 59th second of ';
  string = string + 'every minute. Change the logic to what ever is appropriate in your environment.';
  alert (string);
  }

</SCRIPT>
</HEAD>
<BODY onLoad = "start_up()">
<CENTER>
<FORM NAME="clocktext">
<TABLE BORDER='1'>
<TR><TD ALIGN='center' COLSPAN='5'><INPUT TYPE="text" NAME="clock" VALUE="" SIZE=9></TD></TR>
<TR><TH ALIGN='center' COLSPAN='5'><Font SIZE='2'>Key</FONT></TH></TR>
<TD ALIGN='center'><Font SIZE='2' COLOR='black'> <A HREF="JavaScript:help_OK();" STYLE="text-decoration:none;color:black">?</A> </FONT></TD>
<TD BGCOLOR='PaleGreen' ALIGN='center'><Font SIZE='2' COLOR='black'> <A HREF="JavaScript:help_today();" STYLE="text-decoration:none;color:black">?</A> </FONT></TD>
<TD BGCOLOR='LightGrey' ALIGN='center'><Font SIZE='2' COLOR='black'> <A HREF="JavaScript:help_no();" STYLE="text-decoration:none;color:black">?</A> </FONT></TD>
<TD BGCOLOR='PapayaWhip' ALIGN='center'><Font SIZE='2' COLOR='black'> <A HREF="JavaScript:help_passed();" STYLE="text-decoration:none;color:black">?</A> </FONT></TD>
<TD ALIGN='center'><Font SIZE='2' COLOR='red'> <A HREF="JavaScript:help_failed();" STYLE="text-decoration:none;color:red">?</A> </FONT></TD>
<TR><TD ALIGN='center' COLSPAN='5'><Font SIZE='2'> <A HREF="JavaScript:help_rate();">refresh rate</A> </FONT></TD></TR>
</TABLE>
</FORM>
</CENTER>
</BODY>
</HTML>


Rate This Page :




Jupitermedia Corp.


home | search | newsletter | windows | sql | sms | exchange


Copyright © 2002 Jupitermedia Corp. All Rights Reserved.

Licensing, Reprints, and Permissions Information

About Jupitermedia Corp. | Swynk.com

Privacy Policy | Press Releases

SWYNK.COM: the admin subsystem
  Home | Windows Servers | SQL Server | SMS Server | Exchange Server | Windows Scripts | SQL Scripts | Discussions | Columnists




 Swynk.com »
   Windows Servers
   Windows Scripts
   SQL Server
   SQL Scripts
   SMS Server
   Exchange Server






 Resources »
   Discussion Groups
   Discussion Lists
   Columnists
   Newsletter
   Knowledgebase
   Jobbase
   Online Library


 




Internet News
Internet Investing
Internet Technology
Windows Internet Tech.
Linux/Open Source
Web Developer
ECommerce/ Marketing
ISP Resources
ASP Resources
Wireless Internet
Downloads
Internet Resources
Internet Lists
International
EarthWeb
Career Resources

Search internet.com
Advertise
Corporate Info
Newsletters
E-mail Offers

internet.commerce

Be a Partner










Make SWYNK.COM
Your Home Page




  *archives (robots only)


  Swynk.com > the admin subsystem


October 21, 2002

filename: hometoc.htm

Cut and paste the code below into a text editor like notepad or Visual Interdev and save to the root of the web application.

<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
var page

function start_up () {
      load_body();
      setClock();
}      

function load_body() {
  document.page="show_table.asp?table=msdb..systasks";
  document.page = document.page + "&columnList=name,lastrundate,lastruntime,hhmmss=lastrunduration,nextrundate,nextruntime,lastruncompletionlevel";
  document.page = document.page + "&condition=" + escape("WHERE enabled=1 ORDER BY lastruncompletionlevel,name");
  document.page = document.page;
  top.body.location.href = document.page;
}

function setClock() {
  var now = new Date();
  var Hours = now.getHours();
  var Minutes = now.getMinutes();
  var Seconds = now.getSeconds();
  var Value = "" + ((Hours >12) ? Hours - 12 : Hours)
  if (Seconds==59) {
    top.body.location.href = document.page;
    }
  Value = ((Hours < 10) ? " " : "") + Hours
  Value += ((Minutes < 10) ? ":0" : ":") + Minutes
  Value += ((Seconds < 10) ? ":0" : ":") + Seconds
  Value += (Hours >=12) ? " PM" : " AM";
  document.clocktext.clock.value = Value;
  setTimeout ("setClock()", 1000);
}
  
function help_OK() {
  string = 'Black Text on White Background. ';
  string = string + 'The job is active and scheduled. ';
  alert (string);
  }

function help_today() {
  string = 'Green Background. ';
  string = string + 'The next scheduled run time for this job is today. ';
  alert (string);
  }

function help_no() {
  string = 'Grey Background. ';
  string = string + 'The job is active, but no run time has been set. ';
  alert (string);
  }

function help_passed() {
  string = 'Yellow Background. ';
  string = string + 'The next scheduled run time has passed. ';
  string = string + 'Most likely: the job is active. Could also indicate ';
  string = string + 'a network failure or a problem on the admin server. ';
  alert (string);
  }

function help_failed() {
  string = 'Red Text and Any Background. ';
  string = string + 'The job is scheduled. ';
  string = string + 'The last run completion status is FAILED. ';
  string = string + 'Failed jobs will always be listed first. ';
  string = string + 'Review the job history and the ErrorLog for specific details. ';
  alert (string);
  }

function help_rate() {
  string = 'Refresh Rate - The frequency that the status frame will be refreshed. ';
  string = string + 'Each refresh is initiated in the setClock() JavaScript function ';
  string = string + 'in the hometoc.htm document. The default is the 59th second of ';
  string = string + 'every minute. Change the logic to what ever is appropriate in your environment.';
  alert (string);
  }

</SCRIPT>
</HEAD>
<BODY onLoad = "start_up()">
<CENTER>
<FORM NAME="clocktext">
<TABLE BORDER='1'>
<TR><TD ALIGN='center' COLSPAN='5'><INPUT TYPE="text" NAME="clock" VALUE="" SIZE=9></TD></TR>
<TR><TH ALIGN='center' COLSPAN='5'><Font SIZE='2'>Key</FONT></TH></TR>
<TD ALIGN='center'><Font SIZE='2' COLOR='black'> <A HREF="JavaScript:help_OK();" STYLE="text-decoration:none;color:black">?</A> </FONT></TD>
<TD BGCOLOR='PaleGreen' ALIGN='center'><Font SIZE='2' COLOR='black'> <A HREF="JavaScript:help_today();" STYLE="text-decoration:none;color:black">?</A> </FONT></TD>
<TD BGCOLOR='LightGrey' ALIGN='center'><Font SIZE='2' COLOR='black'> <A HREF="JavaScript:help_no();" STYLE="text-decoration:none;color:black">?</A> </FONT></TD>
<TD BGCOLOR='PapayaWhip' ALIGN='center'><Font SIZE='2' COLOR='black'> <A HREF="JavaScript:help_passed();" STYLE="text-decoration:none;color:black">?</A> </FONT></TD>
<TD ALIGN='center'><Font SIZE='2' COLOR='red'> <A HREF="JavaScript:help_failed();" STYLE="text-decoration:none;color:red">?</A> </FONT></TD>
<TR><TD ALIGN='center' COLSPAN='5'><Font SIZE='2'> <A HREF="JavaScript:help_rate();">refresh rate</A> </FONT></TD></TR>
</TABLE>
</FORM>
</CENTER>
</BODY>
</HTML>


Rate This Page :




Jupitermedia Corp.


home | search | newsletter | windows | sql | sms | exchange


Copyright © 2002 Jupitermedia Corp. All Rights Reserved.

Licensing, Reprints, and Permissions Information

About Jupitermedia Corp. | Swynk.com

Privacy Policy | Press Releases