re-work coupons to allow multiple coupon types
[bse.git] / site / templates / base.tmpl
1 <html>
2 <head>
3 <title>
4 <:-.if params.title -:>
5   <:-.if params.title eq "FORMTITLE" -:>
6     <:formcfg title:>
7   <:-.else -:>
8     <:= params.title :>
9   <:-.end if -:>
10 <:-.else -:>
11   <:= article.pageTitle or article.title :>
12 <:-.end if-:>
13 <:= " - " _ cfg.entry("site", "name") :></title>
14   <meta name="ROBOTS" content="ALL">
15   <meta http-equiv="Content-Type" content="text/html; charset=<:cfg html charset "iso-8859-1":>">
16   <meta http-equiv="Expires" content="Thu, 01 Jan 1970 00:00:00 GMT">
17 <:- .if article.author:>
18   <meta name="author" content="<:= article.author :>" />
19 <:- .end if:>
20 <:- .if article.metaKeywords :>
21   <meta name="keywords" content="<:= article.metaKeywords:>" />
22 <:- .end if:>
23 <:- .if article.metaDescription :>
24   <meta name="description" content="<:= article.metaDescription:>" />
25 <:- .end if:>
26   <link rel="stylesheet" type="text/css" href="/css/style-main.css">
27 <:- .if article.linkAlias or article.id == 1:>
28   <link rel="canonical" href="<:= url(article, 1) :>" />
29 <:- .end if:>
30 <:ajax includes:>
31 <script type="text/javascript" src="/js/bse.js"></script>
32 <:ifCfg "flv" "flowenable":><script type="text/javascript" src="/js/bse_flowplayer.js"></script><:or:><:eif:>
33 <script type="text/javascript" src="/js/swfobject.js"></script>
34 </head>
35 <body bgcolor="#FFFFFF" text="#000000" link="#666666" vlink="#666666" alink="#FF7F00" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
36 <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#FF7F00">
37   <tr> 
38     <td width="100%" height="34">&nbsp;&nbsp;&nbsp;<font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b>Welcome 
39       to <:siteName:></b></font></td>
40   </tr>
41 </table>
42 <table width="100%" border="0" cellspacing="0" cellpadding="0">
43   <tr valign="top"> 
44     <td width="150"> 
45       <table width="100%" border="0" cellspacing="0" cellpadding="5" id="search" bgcolor="#EEEEEE">
46         <tr align="center"> 
47           <td> 
48             <form name="search" method="GET" action="/cgi-bin/search.pl">
49               <input type="hidden" name="s" value="">
50               <input type="hidden" name="d" value="ar">
51               <input type="hidden" name="m" value="0">
52               <br>
53               <nobr> 
54               <input type="text" name="q" size="14">
55               <input type="submit" value="Go" name="submit" class="user-buttons">
56               <br>
57               <font face="Verdana, Arial, Helvetica, sans-serif" size="-2"> Try 
58               our <a href="/cgi-bin/search.pl">advanced search</a></font></nobr> 
59             </form>
60           </td>
61         </tr>
62       </table><table width="100%" border="0" cellspacing="0" cellpadding="0">
63               <tr>
64                 <td><img src="/images/trans_pixel.gif" width="1" height="1" alt="spacer"></td>
65               </tr>
66             </table>
67       <table width="150" border="0" cellspacing="0" cellpadding="0" id="nav">
68         <tr> 
69           <td> 
70             <table width="100%" border="0" cellspacing="0" cellpadding="0">
71               <tr> 
72                 <td> 
73                   <table width="100%" border="0" cellspacing="0" cellpadding="0">
74                     <tr bgcolor="#CCCCFF"> 
75                       <td height="20" width="100%" nowrap bgcolor="#CCCCCC">&nbsp;<a href="<:ifAdmin:>/cgi-bin/admin/admin.pl?id=1<:or:>/<:eif:>"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Home</font></b></a></td>
76                     </tr>
77                   </table>
78                 </td>
79               </tr>
80               <tr>
81                 <td><img src="/images/trans_pixel.gif" width="1" height="1" alt="spacer"></td>
82               </tr>
83             </table>
84 <:if Dynamic:>
85         <:iterator begin dynlevel1s:>
86             <table width="100%" border="0" cellspacing="0" cellpadding="0">
87               <tr> 
88                 <td> 
89                   <table width="100%" border="0" cellspacing="0" cellpadding="0">
90                     <:if Ancestor dynlevel1:>
91                     <tr> 
92                       <td height="19" width="100%" nowrap bgcolor="#999999">&nbsp;<a href="<:url dynlevel1:>"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="2" color="#FFFFFF"><:dynlevel1
93                         title:></font></b></a> </td>
94                     </tr>
95                     <:or Ancestor:>
96                     <tr> 
97                       <td height="19" width="100%" nowrap bgcolor="#CCCCCC">&nbsp;<a href="<:url dynlevel1:>"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><:dynlevel1 
98                         title:></font></b></a> </td>
99                     </tr>
100                     <:eif Ancestor:>
101                   </table>
102                 </td>
103               </tr>
104               <:if Ancestor dynlevel1:>
105                <tr> 
106                 <td>
107                  <:if Dynlevel2s:> 
108                   <table width="100%" border="0" cellspacing="0" cellpadding="3">
109                     <:iterator begin dynlevel2s:>
110                     <:ifAncestor dynlevel2:>
111                      <tr> 
112                       <td bgcolor="#FFFFFF"><font face="Verdana, Arial, Helvetica, sans-serif" size="-2"><a href="<:url dynlevel2:>"><:dynlevel2 title:></a></font> 
113                         </td>
114                      </tr>
115                      <:or:>
116                      <tr> 
117                       <td bgcolor="#EEEEEE"><font face="Verdana, Arial, Helvetica, sans-serif" size="-2"><a href="<:url dynlevel2:>"><:dynlevel2 title:></a></font> 
118                         </td>
119                      </tr>
120                      <:eif:>
121                         <:iterator end dynlevel2s:>
122                   </table>
123             <:or Dynlevel2s:> 
124             <:eif Dynlevel2s:>
125                 </td>
126               </tr>
127 <:or Ancestor:>
128 <:eif Ancestor:>
129               <tr> 
130                 <td><img src="/images/trans_pixel.gif" width="1" height="1" alt="spacer"></td>
131               </tr>
132             </table>
133         <:iterator end dynlevel1s:>
134 <:if Cfg shop sidebar_cart:>
135 <:include include/cart_sidebar.tmpl:>
136 <:or Cfg:><:eif Cfg:>
137 <:or Dynamic:>
138             <:.set level1_menu = [ bse.site.menu_kids ] :>
139             <:.for level1 in level1_menu :>  
140             <table width="100%" border="0" cellspacing="0" cellpadding="0">
141               <tr> 
142                 <td> 
143                   <table width="100%" border="0" cellspacing="0" cellpadding="0">
144                     <:.if article.is_descendant_of(level1):>
145                     <tr> 
146                       <td height="19" width="100%" nowrap bgcolor="#999999">&nbsp;<:.if level1.link:><a href="<:= bse.url(level1) |html:>"><:.end if:><b><font face="Verdana, Arial, Helvetica, sans-serif" size="2" color="#FFFFFF"><:= level1.title
147                         |html :></font></b><:.if level1.link:></a><:.end if:> </td>
148                     </tr>
149                     <:.else:>
150                     <tr> 
151                       <td height="19" width="100%" nowrap bgcolor="#CCCCCC">&nbsp;<:.if level1.link:><a href="<:= bse.url(level1) :>"><:.end if:><b><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><:= level1.title |html:></font></b><:.if level1.link:></a><:.end if:> </td>
152                     </tr>
153                     <:.end if:>
154                   </table>
155                 </td>
156               </tr>
157               <:.if article.is_descendant_of(level1) :>
158                <tr> 
159                 <td>
160                  <:.set level2_menu = [ level1.menu_kids ] :>
161                   <:# = bse.dumper(level2_menu) :>
162                  <:.if level2_menu.size != 0:> 
163                   <table width="100%" border="0" cellspacing="0" cellpadding="3">
164                     <:.for level2 in level2_menu:>
165                     <:.if article.is_descendant_of(level2) :>
166                      <tr> 
167                       <td bgcolor="#FFFFFF"><font face="Verdana, Arial, Helvetica, sans-serif" size="-2"><a href="<:= bse.url(level2) |html:>"><:= level2.title |html:></a></font> 
168                         </td>
169                      </tr>
170                      <:.else:>
171                      <tr> 
172                       <td bgcolor="#EEEEEE"><font face="Verdana, Arial, Helvetica, sans-serif" size="-2"><a href="<:= bse.url(level2) |html:>"><:= level2.title |html:></a></font> 
173                         </td>
174                      </tr>
175                      <:.end if:>
176                         <:.end for:>
177                   </table>
178             <:.end if:>
179                 </td>
180               </tr>
181 <:.end if:>
182               <tr> 
183                 <td><img src="/images/trans_pixel.gif" width="1" height="1" alt="spacer"></td>
184               </tr>
185             </table>
186 <:.end for:>
187 <:eif Dynamic:>
188             <:embed 5:> </td>
189         </tr>
190       </table>
191     </td>
192     <td width="20"><img src="/images/trans_pixel.gif" width="20" height="5" alt="#"></td>
193     <td width="100%"> <br>
194       <:wrap here:>
195 <div align="right">
196         <p>&nbsp;</p>
197         <p>&nbsp;</p>
198       </div>
199     </td>
200     <td width="20"><img src="/images/trans_pixel.gif" width="20" height="5" alt="#"></td>
201   </tr>
202   <tr valign="top"> 
203     <td width="150">&nbsp;</td>
204     <td colspan="2">
205       <hr noshade size="1">
206       <div align="right"><font face="Verdana, Arial, Helvetica, sans-serif" size="1"><:siteName:> - <a href="http://www.visualthought.com.au/">vtc&copy;2002</a></font></div>
207     </td>
208     <td width="20">&nbsp;</td>
209   </tr>
210 </table>
211 <:ifCfg basic times:><p>Page generated in <!--pagegen:time-->ms</p><:or:><:eif:>
212     </body>
213 </html>
214