Evanced Solutions Support Center

Login / Register

User

Pass



Forget pass?

Search KnowledgeBase

 

KnowledgeBase

Main > Events
Minimize Text   Default    Enlarge Text
 

How do I add an image to my Events or Room Reserve Header?


Print
Save to list
E-mail
Comment (0)
Subscribe
Created 2008-04-08
Modified 2008-04-08
Views
Author

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%">&nbsp;</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




Comments (View All Comments / Add Comment)

Related Articles
What's new in Room Reserve version 6
ROOM RESERVE VERSION 6 LIST     Added a "show all names" on the Patron Reservation Lookup (like in events)  Added...
How do I add images to the tabs on my Summer Reading Homepage?
Adding images to the tabs of a Summer Reading program is a 2-step process. 1. Add a "DIV" place holder in the program's title. 2. Add the image code in the...
What's new in Events version 6.
EVENTS VERSION 6 LIST     Quicker, better ways to create events, view information, more shortcuts between different function areas (i.e....