home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 February / CHIPCD_02_2002.iso / Internet / Macromedia ColdFusion Server 5 / coldfusion-50-win-us.exe / data1.cab / Examples / CFDOCS / exampleapps / cf5examples / header.cfm < prev    next >
Encoding:
ColdFusion Markup Language  |  2001-06-13  |  2.4 KB  |  56 lines

  1. <cfparam name="pageMargin" default="true">
  2. <cfparam name="rootPath" default="../">
  3. <cfparam name="pageName" default="ColdFusion Administrator">
  4. <cfscript>
  5.     sUserAgent = trim(cgi.http_user_agent);
  6.     if ( find( "X11", sUserAgent ) ) {
  7.         // X11 stylesheet (should cover most Unix desktops)
  8.         sStyleLocation = "#rootPath#cfadmin_unix.css";
  9.         }    
  10.     else if ( find("MSIE", sUserAgent) ) {
  11.         // All IE Browsers on all OS/desktops
  12.         sStyleLocation = "#rootPath#cfadmin.css";
  13.         }         
  14.     else {
  15.         // Default. Netscape and everything else
  16.         sStyleLocation = "#rootPath#cfadmin_ns.css";
  17.         }
  18. </cfscript>
  19. <cfoutput>
  20. <!-- /////////////////////////////////////////////////////// -->
  21. <!-- ///  open header.cfm -->
  22. <html>
  23. <head>
  24.     <title>ColdFusion Administrator</title>
  25.     <link rel="STYLESHEET" type="text/css" href="#sStyleLocation#">
  26.     <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  27.     <meta name="Author" content="Copyright 1996-#year(now())# Macromedia Corp. All rights reserved.">
  28. </head>
  29. </cfoutput>
  30. <cfoutput>
  31. <cfif pageMargin is "false">
  32. <body bgcolor="white" topmargin="0" text="444444" link="003399" vlink="997799" alink="339900" topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">
  33. <cfelse>
  34. <body bgcolor="C8D3DC" topmargin="0" text="444444" link="003399" vlink="997799" alink="339900" topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">
  35. </cfif>
  36. <table border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="White">
  37. <tr bgcolor="eeeeee">
  38.     <td height="35" nowrap background="#rootPath#images/headerstub.jpg">     </td>
  39.     <td colspan="2" background="#rootPath#images/headerbg2000.jpg">
  40.         <b class="h3">#pageName#</b>
  41.     </td>
  42.     <td width="1" nowrap rowspan="99" bgcolor="003366"><img src="#rootPath#images/clear.gif" height="1" width="1"></td>
  43. </tr>
  44. <tr bgcolor="666666">
  45.     <td width="7%" height="1"><p style="line-height:1px;"><img src="#rootPath#images/clear.gif" height="1" width="1" border="0" hspace="2"></p></td>
  46.     <td width="86%"><p style="line-height:1px;"><img src="#rootPath#images/clear.gif" height="1" width="1" border="0" hspace="252"></p></td>
  47.     <td width="7%"><p style="line-height:1px;"><img src="#rootPath#images/clear.gif" height="1" width="1" border="0" hspace="2"></p></td>
  48.     
  49. </tr>
  50. <cfif pageMargin is "false">
  51. </table>
  52. </cfif>
  53. </cfoutput>
  54. <!-- ///  close header.cfm -->
  55. <!-- /////////////////////////////////////////////////////// -->
  56.