Adding an Image to Events and Room Reserve Header
Below is the code for the DisplayHeader routine found in the defines.inc file located in the “common” folder.
Use Notepad or another text editor to modify the code. It would be a good idea to make a copy of the original before making changes to the code. Some versions of Dreamweaver have cause problems with the file so that is not a recommended editor to use.
There a couple of options for adding images, and associated HTML if needed.
1) If the image is smaller and is to appear in the upper left corner then see the Option 1 label below. Replace the “ ” with the image tag information.
2) If the image is to be centered at the top then the image tag and associated HTML can be inserted above the <table> or within the <td width="80%" align="center">, before the HeaderTextStr. See Option 2 and Option 3
'******************************************************
'Common Header Routine For Patron Pages
'******************************************************
Sub DisplayHeader(TitleText, HeaderText, LibNameFlag)
If LibNameFlag = LIBHEADER Then
HeaderTextStr = LIBNAME & "<BR>" & HeaderText
Else
HeaderTextStr = HeaderText
End If
%>
<html>
<head>
<title><%=TitleText%></title>
<% If WRITESTYLES = "1" Then %>
<link rel="stylesheet" type="text/css" href="niftyCorners.css">
<link rel="stylesheet" type="text/css" href="niftyPrint.css" media="print">
<script type="text/javascript" src="nifty.js"></script>
<style type="text/css">
<% ShowStyle "public" %>
</style>
<% Else %>
<link rel="stylesheet" type="text/css" href="dynamicsheet.asp?st=public">
<% End If %>
</head>
<body>
<div id="header">
ß Option 2
<table border="0" width="100%">
<tr>
<td width="10%"> </td> ß Option 1
<td width="80%" align="center">
ß Option 3
<div class="title"><%=HeaderTextStr%></div>
</td>
<td width="10%"><!--#include FILE="textadjust.asp"--></td>
</tr>
</table>
</div>
<%
End Sub