Subversion Repositories svnkaklik

Rev

Go to most recent revision | Details | Last modification | View Log

Rev Author Line No. Line
6 kaklik 1
<?php
2
/*************************
3
  Coppermine Photo Gallery
4
  ************************
5
  Copyright (c) 2003-2005 Coppermine Dev Team
6
  v1.1 originaly written by Gregory DEMAR
7
 
8
  This program is free software; you can redistribute it and/or modify
9
  it under the terms of the GNU General Public License as published by
10
  the Free Software Foundation; either version 2 of the License, or
11
  (at your option) any later version.
12
  ********************************************
13
  Coppermine version: 1.3.3
14
  $Source: /cvsroot/coppermine/stable/themes/styleguide/theme.php,v $
15
  $Revision: 1.6 $
16
  $Author: gaugau $
17
  $Date: 2005/04/19 03:17:16 $
18
**********************************************/
19
 
20
// HTML template for main menu
21
$template_main_menu = <<<EOT
22
                <span class="topmenu">
23
<!-- BEGIN album_list -->
24
                        <a href="{ALB_LIST_TGT}" title="{ALB_LIST_TITLE}">{ALB_LIST_LNK}</a> |
25
<!-- END album_list -->
26
<!-- BEGIN my_gallery -->
27
                        <a href="{MY_GAL_TGT}" title="{MY_GAL_TITLE}">{MY_GAL_LNK}</a> |
28
<!-- END my_gallery -->
29
<!-- BEGIN allow_memberlist -->
30
                        <a href="{MEMBERLIST_TGT}" title="{MEMBERLIST_TITLE}">{MEMBERLIST_LNK}</a>  ::
31
<!-- END allow_memberlist -->
32
<!-- BEGIN my_profile -->
33
                        <a href="{MY_PROF_TGT}">{MY_PROF_LNK}</a> |
34
<!-- END my_profile -->
35
<!-- BEGIN faq -->
36
                        <a href="{FAQ_TGT}" title="{FAQ_TITLE}">{FAQ_LNK}</a> ::
37
<!-- END faq -->
38
<!-- BEGIN enter_admin_mode -->
39
                        <a href="{ADM_MODE_TGT}" title="{ADM_MODE_TITLE}">{ADM_MODE_LNK}</a> |
40
<!-- END enter_admin_mode -->
41
<!-- BEGIN leave_admin_mode -->
42
                        <a href="{USR_MODE_TGT}" title="{USR_MODE_TITLE}">{USR_MODE_LNK}</a> |
43
<!-- END leave_admin_mode -->
44
<!-- BEGIN upload_pic -->
45
                        <a href="{UPL_PIC_TGT}" title="{UPL_PIC_TITLE}">{UPL_PIC_LNK}</a> |
46
<!-- END upload_pic -->
47
<!-- BEGIN register -->
48
                        <a href="{REGISTER_TGT}" title="{REGISTER_TITLE}">{REGISTER_LNK}</a> |
49
<!-- END register -->
50
<!-- BEGIN login -->
51
                        <a href="{LOGIN_TGT}">{LOGIN_LNK}</a> |
52
<!-- END login -->
53
<!-- BEGIN logout -->
54
                        <a href="{LOGOUT_TGT}">{LOGOUT_LNK}</a> |
55
<!-- END logout -->
56
                        <a href="{LASTUP_TGT}">{LASTUP_LNK}</a> |
57
                        <a href="{LASTCOM_TGT}">{LASTCOM_LNK}</a> |
58
                        <a href="{TOPN_TGT}">{TOPN_LNK}</a> |
59
                        <a href="{TOPRATED_TGT}">{TOPRATED_LNK}</a> |
60
                        <a href="{FAV_TGT}">{FAV_LNK}</a> |
61
                        <a href="{SEARCH_TGT}">{SEARCH_LNK}</a>
62
                </span>
63
EOT;
64
// HTML template for gallery admin menu
65
$template_gallery_admin_menu = <<<EOT
66
 
67
                <div align="left">
68
                <table cellpadding="0" cellspacing="1">
69
                        <tr>
70
                                <td class="admin_menu"><a href="editpics.php?mode=upload_approval" title="">{UPL_APP_LNK}</a></td>
71
                                <td class="admin_menu"><a href="config.php" title="">{CONFIG_LNK}</a></td>
72
                                <td class="admin_menu"><a href="albmgr.php{CATL}" title="">{ALBUMS_LNK}</a></td>
73
                                <td class="admin_menu"><a href="catmgr.php" title="">{CATEGORIES_LNK}</a></td>
74
                                <td class="admin_menu"><a href="usermgr.php" title="">{USERS_LNK}</a></td>
75
                                <td class="admin_menu"><a href="groupmgr.php" title="">{GROUPS_LNK}</a></td>
76
                                <td class="admin_menu"><a href="banning.php" title="">{BAN_LNK}</a></td>
77
                                <td class="admin_menu"><a href="db_ecard.php" title="">{DB_ECARD_LNK}</a></td>
78
                                <td class="admin_menu"><a href="reviewcom.php" title="">{COMMENTS_LNK}</a></td>
79
                                <td class="admin_menu"><a href="searchnew.php" title="">{SEARCHNEW_LNK}</a></td>
80
                                <td class="admin_menu"><a href="util.php" title="">{UTIL_LNK}</a></td>
81
                                <td class="admin_menu"><a href="profile.php?op=edit_profile" title="">{MY_PROF_LNK}</a></td>
82
                        </tr>
83
                </table>
84
                </div>
85
 
86
EOT;
87
// HTML template for user admin menu
88
$template_user_admin_menu = <<<EOT
89
 
90
                <div align="left">
91
                <table cellpadding="0" cellspacing="1">
92
                        <tr>
93
                                <td class="admin_menu"><a href="albmgr.php" title="">{ALBMGR_LNK}</a></td>
94
                                <td class="admin_menu"><a href="modifyalb.php" title="">{MODIFYALB_LNK}</a></td>
95
                                <td class="admin_menu"><a href="profile.php?op=edit_profile" title="">{MY_PROF_LNK}</a></td>
96
                        </tr>
97
                </table>
98
                </div>
99
 
100
EOT;
101
// HTML template for the category list
102
$template_cat_list = <<<EOT
103
<!-- BEGIN header -->
104
        <tr>
105
                <td class="tableh1" width="80%"><b>{CATEGORY}</b></td>
106
                <td class="tableh1" width="10%"><b>{ALBUMS}</b></td>
107
                <td class="tableh1" width="10%"><b>{PICTURES}</b></td>
108
        </tr>
109
<!-- END header -->
110
<!-- BEGIN catrow_noalb -->
111
        <tr>
112
                <td class="tableh2" colspan="3"><table border="0"><tr><td>{CAT_THUMB}</td><td><span class="catlink"><b>{CAT_TITLE}</b></span>{CAT_DESC}</td></tr></table></td>
113
        </tr>
114
<!-- END catrow_noalb -->
115
<!-- BEGIN catrow -->
116
        <tr>
117
                <td class="tableb" align="left"><table border="0"><tr><td>{CAT_THUMB}</td><td><span class="catlink"><b>{CAT_TITLE}</b></span>{CAT_DESC}</td></tr></table></td>
118
                <td class="tableb" align="center">{ALB_COUNT}</td>
119
                <td class="tableb" align="center">{PIC_COUNT}</td>
120
        </tr>
121
     <!--if (isset(CAT_ALBUMS)){-->
122
          <tr>
123
            <td class="tableb" colspan=3>{CAT_ALBUMS}</td>
124
      </tr><!--};-->
125
<!-- END catrow -->
126
<!-- BEGIN footer -->
127
        <tr>
128
                <td colspan="3" class="tableh1" align="center"><span class="statlink"><b>{STATISTICS}</b></span></td>
129
        </tr>
130
<!-- END footer -->
131
<!-- BEGIN spacer -->
132
        <img src="images/spacer.gif" width="1" height="17" /><br />
133
<!-- END spacer -->
134
 
135
EOT;
136
// HTML template for the breadcrumb
137
$template_breadcrumb = <<<EOT
138
<!-- BEGIN breadcrumb -->
139
        <tr>
140
                <td colspan="3" class="tableh1"><span class="statlink"><b>{BREADCRUMB}</b></span></td>
141
        </tr>
142
<!-- END breadcrumb -->
143
<!-- BEGIN breadcrumb_user_gal -->
144
        <tr>
145
                <td colspan="3" class="tableh1">
146
                <table width="100%" cellpadding="0" cellspacing="0" border="0">
147
                <tr>
148
                        <td><span class="statlink"><b>{BREADCRUMB}</b></span></td>
149
                        <td align="right"><span class="statlink"><b>{STATISTICS}</b></span></td>
150
                </tr>
151
                </table>
152
                </td>
153
        </tr>
154
<!-- END breadcrumb_user_gal -->
155
 
156
EOT;
157
// HTML template for the album list
158
$template_album_list = <<<EOT
159
 
160
<!-- BEGIN stat_row -->
161
        <tr>
162
                <td colspan="{COLUMNS}" class="tableh1" align="center"><span class="statlink"><b>{STATISTICS}</b></span></td>
163
        </tr>
164
<!-- END stat_row -->
165
<!-- BEGIN header -->
166
        <tr>
167
<!-- END header -->
168
 
169
<!-- BEGIN album_cell -->
170
<td width="{COL_WIDTH}%" height="100%" valign="top">
171
<table width="100%" height="100%" cellspacing="0" cellpadding="0">
172
<tr>
173
<td colspan="3" height="1" valign="top" class="tableh2">
174
<a href="{ALB_LINK_TGT}" class="alblink"><b>{ALBUM_TITLE}</b></a>
175
</td>
176
</tr>
177
<tr>
178
<td colspan="3">
179
<img src="images/spacer.gif" width="1" height="1"><br />
180
</td>
181
</tr>
182
<tr height="100%">
183
<td align="center" height="100%" valign="middle" class="thumbnails">
184
<!-- <img src="images/spacer.gif" width="{THUMB_CELL_WIDTH}" height="1" class="image" style="margin-top: 0px;
185
margin-bottom: 0px; border: none;"><br /> -->
186
<a href="{ALB_LINK_TGT}" class="albums">{ALB_LINK_PIC}<br /></a>
187
</td>
188
<td height="100%">
189
<img src="images/spacer.gif" width="1" height="1">
190
</td>
191
<td width="100%" height="100%" valign="top" class="album_stat">
192
 
193
<div style="width:100%;height:150px;position:relative;overflow:auto; padding-right:10px">
194
{ADMIN_MENU}
195
<p class="album_stat">{ALB_DESC}</p>
196
<p class="album_stat">{ALB_INFOS}</p>
197
</div>
198
 
199
</td>
200
</tr>
201
</table>
202
</td>
203
<!-- END album_cell -->
204
 
205
<!-- BEGIN empty_cell -->
206
        <td width="{COL_WIDTH}%" height="100%" valign="top">
207
        <table width="100%" height="100%" cellspacing="0" cellpadding="0">
208
        <tr>
209
                <td height="1" valign="top" class="tableh2">
210
                        <b>&nbsp;</b>
211
                </td>
212
        </tr>
213
        <tr>
214
                <td>
215
                        <img src="images/spacer.gif" width="1" height="1"><br />
216
                </td>
217
        </tr>
218
        <tr height="100%">
219
                <td width="100%" height="100%" valign="top" class="tableb_compact">
220
                        &nbsp;
221
                </td>
222
        </tr>
223
        </table>
224
        </td>
225
<!-- END empty_cell -->
226
<!-- BEGIN row_separator -->
227
        </tr>
228
        <tr>
229
<!-- END row_separator -->
230
<!-- BEGIN footer -->
231
        </tr>
232
<!-- END footer -->
233
<!-- BEGIN tabs -->
234
        <tr>
235
                <td colspan="{COLUMNS}" style="padding: 0px;">
236
                        <table width="100%" cellspacing="0" cellpadding="0">
237
                                <tr>
238
                                        {TABS}
239
                                </tr>
240
                        </table>
241
                </td>
242
        </tr>
243
<!-- END tabs -->
244
<!-- BEGIN spacer -->
245
        <img src="images/spacer.gif" width="1" height="17" /><br />
246
<!-- END spacer -->
247
 
248
EOT;
249
// HTML template for filmstrip display
250
$template_film_strip = <<<EOT
251
 
252
        <tr>
253
         <td valign="top" background='themes/styleguide/images/tile.gif' align="center" height='30'>&nbsp;</td>
254
        </tr>
255
        <tr>
256
        <td valign="bottom" class="thumbnails" align="center">
257
          {THUMB_STRIP}
258
        </td>
259
        </tr>
260
        <tr>
261
         <td valign="top" background='themes/styleguide/images/tile.gif' align="center" height='30'>&nbsp;</td>
262
        </tr>
263
<!-- BEGIN thumb_cell -->
264
                                        <a href="{LINK_TGT}">{THUMB}</a>&nbsp;
265
                                        {CAPTION}
266
                                        {ADMIN_MENU}
267
<!-- END thumb_cell -->
268
<!-- BEGIN empty_cell -->
269
                <td valign="top" align="center" >1&nbsp;</td>
270
<!-- END empty_cell -->
271
 
272
EOT;
273
// HTML template for the album list
274
$template_album_list_cat = <<<EOT
275
 
276
<!-- BEGIN c_stat_row -->
277
        <tr>
278
                <td colspan="{COLUMNS}" class="tableh1" align="center"><span class="statlink"><b>{STATISTICS}</b></span></td>
279
        </tr>
280
<!-- END c_stat_row -->
281
<!-- BEGIN c_header -->
282
        <tr>
283
<!-- END c_header -->
284
<!-- BEGIN c_album_cell -->
285
        <td width="{COL_WIDTH}%" height="100%" valign="top">
286
        <table width="100%" height="100%" cellspacing="0" cellpadding="0">
287
        <tr>
288
                <td colspan="3" height="1" valign="top" class="tableh2">
289
                        <a href="{ALB_LINK_TGT}" class="alblink"><b>{ALBUM_TITLE}</b></a>
290
                </td>
291
        </tr>
292
        <tr>
293
                <td colspan="3">
294
                        <img src="images/spacer.gif" width="1" height="1"><br />
295
                </td>
296
        </tr>
297
        <tr height="100%">
298
                <td align="center" height="100%" valign="middle" class="thumbnails">
299
                        <img src="images/spacer.gif" width="{THUMB_CELL_WIDTH}" height="1" class="image" style="margin-top: 0px;
300
 margin-bottom: 0px; border: none;"><br />
301
                        <a href="{ALB_LINK_TGT}" class="albums">{ALB_LINK_PIC}<br /></a>
302
                </td>
303
                <td height="100%">
304
                        <img src="images/spacer.gif" width="1" height="1">
305
                </td>
306
                <td width="100%" height="100%" valign="top" class="tableb_compact">
307
                        {ADMIN_MENU}
308
                        <p>{ALB_DESC}</p>
309
                        <p class="album_stat">{ALB_INFOS}</p>
310
                </td>
311
        </tr>
312
        </table>
313
        </td>
314
<!-- END c_album_cell -->
315
<!-- BEGIN c_empty_cell -->
316
        <td width="{COL_WIDTH}%" height="100%" valign="top">
317
        <table width="100%" height="100%" cellspacing="0" cellpadding="0">
318
        <tr>
319
                <td height="1" valign="top" class="tableh2">
320
                        <b>&nbsp;</b>
321
                </td>
322
        </tr>
323
        <tr>
324
                <td>
325
                        <img src="images/spacer.gif" width="1" height="1"><br />
326
                </td>
327
        </tr>
328
        <tr height="100%">
329
                <td width="100%" height="100%" valign="top" class="tableb_compact">
330
                        &nbsp;
331
                </td>
332
        </tr>
333
        </table>
334
        </td>
335
<!-- END c_empty_cell -->
336
<!-- BEGIN c_row_separator -->
337
        </tr>
338
        <tr>
339
<!-- END c_row_separator -->
340
<!-- BEGIN c_footer -->
341
        </tr>
342
<!-- END c_footer -->
343
<!-- BEGIN c_tabs -->
344
        <tr>
345
                <td colspan="{COLUMNS}" style="padding: 0px;">
346
                        <table width="100%" cellspacing="0" cellpadding="0">
347
                                <tr>
348
                                        {TABS}
349
                                </tr>
350
                        </table>
351
                </td>
352
        </tr>
353
<!-- END c_tabs -->
354
<!-- BEGIN c_spacer -->
355
        <img src="images/spacer.gif" width="1" height="17" /><br />
356
<!-- END c_spacer -->
357
 
358
EOT;
359
// HTML template for the ALBUM admin menu displayed in the album list
360
$template_album_admin_menu = <<<EOT
361
        <table border="0" cellpadding="0" cellspacing="1">
362
                <tr>
363
                        <td align="center" valign="middle" class="admin_menu">
364
                                <a href="delete.php?id={ALBUM_ID}&what=album"  class="adm_menu" onclick="return confirm('{CONFIRM_DELETE}');">{DELETE}</a>
365
                        </td>
366
                        <td align="center" valign="middle" class="admin_menu">
367
                                <a href="modifyalb.php?album={ALBUM_ID}"  class="adm_menu">{MODIFY}</a>
368
                        </td>
369
                        <td align="center" valign="middle" class="admin_menu">
370
                                <a href="editpics.php?album={ALBUM_ID}"  class="adm_menu">{EDIT_PICS}</a>
371
                        </td>
372
                </tr>
373
        </table>
374
 
375
EOT;
376
// HTML template for title row of the thumbnail view (album title + sort options)
377
$template_thumb_view_title_row = <<<EOT
378
 
379
                        <table width="100%" cellpadding="0" cellspacing="0">
380
                        <tr>
381
                                <td width="100%" class="statlink"><h2>{ALBUM_NAME}</h2></td>
382
                                <td><img src="images/spacer.gif" width="1"></td>
383
                                <td class="sortorder_cell">
384
                                        <table height="100%" cellpadding="0" cellspacing="0">
385
                                        <tr>
386
                                <td class="sortorder_options">{TITLE}</td>
387
                                <td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&page={PAGE}&sort=ta" title="{SORT_TA}">&nbsp;+&nbsp;</a></span></td>
388
                                <td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&page={PAGE}&sort=td" title="{SORT_TD}">&nbsp;-&nbsp;</a></span></td>
389
                                        </tr>
390
                                        <tr>
391
                                                <td class="sortorder_options">{NAME}</td>
392
                                                <td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&page={PAGE}&sort=na" title="{SORT_NA}">&nbsp;+&nbsp;</a></span></td>
393
                                                <td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&page={PAGE}&sort=nd" title="{SORT_ND}">&nbsp;-&nbsp;</a></span></td>
394
                                        </tr>
395
                                        <tr>
396
                                                <td class="sortorder_options">{DATE}</td>
397
                                                <td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&page={PAGE}&sort=da" title="{SORT_DA}">&nbsp;+&nbsp;</a></span></td>
398
                                                <td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&page={PAGE}&sort=dd" title="{SORT_DD}">&nbsp;-&nbsp;</a></span></td>
399
                                        </tr>
400
                                        </table>
401
                                </td>
402
                        </tr>
403
                        </table>
404
 
405
EOT;
406
 
407
 
408
// HTML template for title row of the fav thumbnail view (album title + download)
409
$template_fav_thumb_view_title_row = <<<EOT
410
 
411
                        <table width="100%" cellpadding="0" cellspacing="0">
412
                        <tr>
413
                                <td width="100%" class="statlink"><h2>{ALBUM_NAME}</h2></td>
414
                                <td><img src="images/spacer.gif" width="1"></td>
415
                                <td class="sortorder_cell">
416
                                        <table height="100%" cellpadding="0" cellspacing="0">
417
                                                <tr>
418
                                                        <td class="sortorder_options"><span class="statlink"><a href="zipdownload.php">{DOWNLOAD_ZIP}</a></span></td>
419
                                                </tr>
420
                                                </table>
421
                                </td>
422
                        </tr>
423
                        </table>
424
 
425
EOT;
426
 
427
 
428
// HTML template for thumbnails display
429
$template_thumbnail_view = <<<EOT
430
 
431
<!-- BEGIN header -->
432
        <tr>
433
<!-- END header -->
434
<!-- BEGIN thumb_cell -->
435
        <td valign="top" class="thumbnails" width ="{CELL_WIDTH}" align="center">
436
                <table width="100%" cellpadding="0" cellspacing="0">
437
                        <tr>
438
                                <td align="center">
439
                                        <a href="{LINK_TGT}">{THUMB}<br /></a>
440
                                        {CAPTION}
441
                                        {ADMIN_MENU}
442
                                </td>
443
                        </tr>
444
                </table>
445
        </td>
446
<!-- END thumb_cell -->
447
<!-- BEGIN empty_cell -->
448
                <td valign="top" class="thumbnails" align="center">&nbsp;</td>
449
<!-- END empty_cell -->
450
<!-- BEGIN row_separator -->
451
        </tr>
452
        <tr>
453
<!-- END row_separator -->
454
<!-- BEGIN footer -->
455
        </tr>
456
<!-- END footer -->
457
<!-- BEGIN tabs -->
458
        <tr>
459
                <td colspan="{THUMB_COLS}" style="padding: 0px;">
460
                        <table width="100%" cellspacing="0" cellpadding="0">
461
                                <tr>
462
                                        {TABS}
463
                                </tr>
464
                        </table>
465
                </td>
466
        </tr>
467
<!-- END tabs -->
468
<!-- BEGIN spacer -->
469
        <img src="images/spacer.gif" width="1" height="17" /><br />
470
<!-- END spacer -->
471
 
472
EOT;
473
// HTML template for the thumbnail view when there is no picture to show
474
$template_no_img_to_display = <<<EOT
475
        <tr>
476
                <td class="tableb" height="200" align="center">
477
                        <font size="3"><b>{TEXT}</b></font>
478
                </td>
479
        </tr>
480
<!-- BEGIN spacer -->
481
        <img src="images/spacer.gif" width="1" height="17" /><br />
482
<!-- END spacer -->
483
 
484
EOT;
485
// HTML template for the USER info box in the user list view
486
$template_user_list_info_box = <<<EOT
487
 
488
        <table cellspacing="1" cellpadding="0" border="0" width="100%" class="user_thumb_infobox">
489
                <tr>
490
                        <th><a href="profile.php?uid={USER_ID}">{USER_NAME}</a></th>
491
                </tr>
492
                <tr>
493
                        <td>{ALBUMS}</td>
494
                </tr>
495
                <tr>
496
                        <td>{PICTURES}</td>
497
                </tr>
498
        </table>
499
 
500
EOT;
501
// HTML template for the image navigation bar
502
$template_img_navbar = <<<EOT
503
 
504
        <tr>
505
                <td align="center" valign="middle" class="navmenu" width="48">
506
                        <a href="{THUMB_TGT}" class="navmenu_pic" title="{THUMB_TITLE}"><img src="images/folder.gif" width="16" height="16" align="absmiddle" border="0" alt="{THUMB_TITLE}" /></a>
507
                </td>
508
                <td align="center" valign="middle" class="navmenu" width="48">
509
                        <a href="javascript:;" onClick="blocking('picinfo','yes', 'block'); return false;" title="{PIC_INFO_TITLE}"><img src="images/info.gif" width="16" height="16" border="0" align="absmiddle" alt="{PIC_INFO_TITLE}" /></a>
510
                </td>
511
                <td align="center" valign="middle" class="navmenu" width="48">
512
                        <a href="{SLIDESHOW_TGT}" title="{SLIDESHOW_TITLE}"><img src="images/slideshow.gif" width="16" height="16" border="0" align="absmiddle" alt="{SLIDESHOW_TITLE}" /></a>
513
                </td>
514
                <td align="center" valign="middle" class="navmenu" witdh="100%">
515
                        {PIC_POS}
516
                </td>
517
                <td align="center" valign="middle" class="navmenu" width="48">
518
                        <a href="{ECARD_TGT}" title="{ECARD_TITLE}"><img src="images/ecard.gif" width="16" height="16" border="0" align="absmiddle" alt="{ECARD_TITLE}"></a>
519
                </td>
520
                <td align="center" valign="middle" class="navmenu" width="48">
521
                        <a href="{PREV_TGT}" class="navmenu_pic" title="{PREV_TITLE}"><img src="images/prev.gif" width="16" height="16" border="0" align="absmiddle" alt="{PREV_TITLE}" /></a>
522
                </td>
523
                <td align="center" valign="middle" class="navmenu" width="48">
524
                        <a href="{NEXT_TGT}" class="navmenu_pic" title="{NEXT_TITLE}"><img src="images/next.gif" width="16" height="16" border="0" align="absmiddle" alt="{NEXT_TITLE}" /></a>
525
                </td>
526
        </tr>
527
 
528
EOT;
529
// HTML template for intermediate image display
530
$template_display_picture = <<<EOT
531
        <tr>
532
                <td align="center" class="tableb" height="{CELL_HEIGHT}" style="white-space: nowrap; padding: 0px;">
533
                        <table cellspacing="2" cellpadding="0" class="imageborder">
534
                                <tr>
535
                                        <td align="center">
536
                                                {IMAGE}
537
                                                {ADMIN_MENU}
538
                                        </td>
539
                                </tr>
540
                        </table>
541
<!-- BEGIN img_desc -->
542
                        <table cellpadding="0" cellspacing="0" class="img_caption_table">
543
<!-- BEGIN title -->
544
                                <tr>
545
                                        <th>
546
                                                {TITLE}
547
                                        </th>
548
                                </tr>
549
<!-- END title -->
550
<!-- BEGIN caption -->
551
                                <tr>
552
                                        <td>
553
                                                {CAPTION}
554
                                        </td>
555
                                </tr>
556
<!-- END caption -->
557
                        </table>
558
<!-- END img_desc -->
559
                </td>
560
        </tr>
561
 
562
EOT;
563
// HTML template for the image rating box
564
$template_image_rating = <<<EOT
565
 
566
        <tr>
567
                <td colspan="6" class="tableh2_compact"><b>{TITLE}</b> {VOTES}</td>
568
        </tr>
569
        <tr>
570
                <td class="tableb_compact" width="17%" align="center"><a href="{RATE0}" title="{RUBBISH}"><img src="images/rating0.gif" alt="{RUBBISH}" border="0" /><br /></a></td>
571
                <td class="tableb_compact" width="17%" align="center"><a href="{RATE1}" title="{POOR}"><img src="images/rating1.gif" alt="{POOR}" border="0" /><br /></a></td>
572
                <td class="tableb_compact" width="17%" align="center"><a href="{RATE2}" title="{FAIR}"><img src="images/rating2.gif" alt="{FAIR}" border="0" /><br /></a></td>
573
                <td class="tableb_compact" width="17%" align="center"><a href="{RATE3}" title="{GOOD}"><img src="images/rating3.gif" alt="{GOOD}" border="0" /><br /></a></td>
574
                <td class="tableb_compact" width="17%" align="center"><a href="{RATE4}" title="{EXCELLENT}"><img src="images/rating4.gif" alt="{EXCELLENT}" border="0" /><br /></a></td>
575
                <td class="tableb_compact" width="17%" align="center"><a href="{RATE5}" title="{GREAT}"><img src="images/rating5.gif" alt="{GREAT}" border="0" /><br /></a></td>
576
        </tr>
577
 
578
EOT;
579
// HTML template for the display of comments
580
$template_image_comments = <<<EOT
581
 
582
        <tr>
583
                <td>
584
                        <table width="100%" cellpadding="0" cellspacing="0">
585
                                <td class="tableh2_compact" nowrap>
586
                                        <b>{MSG_AUTHOR}</b>
587
<!-- BEGIN ipinfo -->
588
                                                                                 ({HDR_IP} [{RAW_IP}])
589
<!-- END ipinfo -->
590
                                </td>
591
                                <td class="tableh2_compact" align="right" width="100%">
592
<!-- BEGIN buttons -->
593
                                        <a href="javascript:;" onClick="blocking('cbody{MSG_ID}','', 'block'); blocking('cedit{MSG_ID}','', 'block'); return false;" title="{EDIT_TITLE}"><img src="images/edit.gif" border="0" align="absmiddle" ></a>
594
                                        <a href="delete.php?msg_id={MSG_ID}&what=comment"  onclick="return confirm('{CONFIRM_DELETE}');"><img src="images/delete.gif" border="0" align="absmiddle" ></a>
595
<!-- END buttons -->
596
                                </td>
597
                                <td class="tableh2_compact" align="right" nowrap>
598
                                        <span class="comment_date">[{MSG_DATE}]</span>
599
                                </td>
600
                        </table>
601
                </td>
602
        </tr>
603
        <tr>
604
                <td class="tableb_compact">
605
                        <div id="cbody{MSG_ID}" style="display:block">
606
                                {MSG_BODY}
607
                        </div>
608
                        <div id="cedit{MSG_ID}" style="display:none">
609
<!-- BEGIN edit_box_smilies -->
610
                                <table width="100%" cellpadding="0" cellspacing="0">
611
 
612
                                                <form name="f{MSG_ID}" method="POST" action="db_input.php">
613
                                                <input type="hidden" name="event" value="comment_update">
614
                                                <input type="hidden" name="msg_id" value="{MSG_ID}">
615
                                                <tr>
616
                                                <td>
617
                                                   <input type=text name=msg_author value={MSG_AUTHOR} class="textinput" size="25">
618
                                                </td>
619
                                                </tr>
620
                                                <tr>
621
                                                <td width="80%">
622
                                                        <textarea cols="40" rows="2" class="textinput" name="msg_body" onselect="storeCaret_f{MSG_ID}(this);" onclick="storeCaret_f{MSG_ID}(this);" onkeyup="storeCaret_f{MSG_ID}(this);" style="width: 100%;">{MSG_BODY_RAW}</textarea>
623
                                                </td>
624
                                                <td class="tableb_compact">
625
                                                </td>
626
                                                <td>
627
                                                        <input type="submit" class="comment_button" name="submit" value="{OK}">
628
                                                </td>
629
                                                </form>
630
                                        </tr>
631
                                        <tr>
632
                                                <td colspan="3"><img src="images/spacer.gif" width="1" height="2" /><br /></td>
633
                                        </tr>
634
                                </table>
635
                                {SMILIES}
636
<!-- END edit_box_smilies -->
637
<!-- BEGIN edit_box_no_smilies -->
638
                                <table width="100%" cellpadding="0" cellspacing="0">
639
                                        <tr>
640
                                                <form name="f{MSG_ID}" method="POST" action="db_input.php">
641
                                                <input type="hidden" name="event" value="comment_update">
642
                                                <input type="hidden" name="msg_id" value="{MSG_ID}">
643
<td>
644
                                                   <input type=text name=msg_author value={MSG_AUTHOR} class="textinput" size="25">
645
                                                </td>
646
                                                <td width="100%">
647
                                                        <textarea cols="40" rows="2" class="textinput" name="msg_body" style="width: 100%;">{MSG_BODY_RAW}</textarea>
648
                                                </td>
649
                                                <td class="tableb_compact">
650
                                                </td>
651
                                                <td>
652
                                                        <input type="submit" class="comment_button" name="submit" value="{OK}">
653
                                                </td>
654
                                                </form>
655
                                        </tr>
656
                                        <tr>
657
                                                <td colspan="3"><img src="images/spacer.gif" width="1" height="2" /><br /></td>
658
                                        </tr>
659
                                </table>
660
<!-- END edit_box_no_smilies -->
661
                        </div>
662
                </td>
663
        </tr>
664
 
665
EOT;
666
 
667
$template_add_your_comment = <<<EOT
668
 
669
        <tr>
670
                <td class="tableh2_compact"><b>{ADD_YOUR_COMMENT}</b></td>
671
        </tr>
672
        <tr>
673
                <form method="post" name="post" action="db_input.php">
674
                <td colspan="3">
675
                        <table width="100%" cellpadding="0" cellspacing="0">
676
                                <input type="hidden" name="event" value="comment">
677
                                <input type="hidden" name="pid" value="{PIC_ID}">
678
<!-- BEGIN user_name_input -->
679
                                <td class="tableb_compact">
680
                                        {NAME}
681
                                </td>
682
                                <td class="tableb_compact">
683
                                        <input type="text" class="textinput" name="msg_author" size="10" maxlength="20" value={USER_NAME}>
684
                                </td>
685
<!-- END user_name_input -->
686
<!-- BEGIN input_box_smilies -->
687
                                <td class="tableb_compact">
688
                                {COMMENT} </td>
689
                                <td width="100%" class="tableb_compact">
690
                                <input type="text" class="textinput" id="message" name="msg_body" onselect="storeCaret_post(this);" onclick="storeCaret_post(this);" onkeyup="storeCaret_post(this);" maxlength="{MAX_COM_LENGTH}" style="width: 100%;">                                        <!-- END input_box_smilies -->
691
<!-- BEGIN input_box_no_smilies -->
692
                                <input type="text" class="textinput" id="message" name="msg_body"  maxlength="{MAX_COM_LENGTH}" style="width: 100%;">
693
<!-- END input_box_no_smilies -->
694
                                </td>
695
                                <td class="tableb_compact">
696
                                <input type="submit" class="comment_button" name="submit" value="{OK}">
697
                                </td>
698
                        </table>
699
                </td>
700
                </form>
701
        </tr>
702
<!-- BEGIN smilies -->
703
        <tr>
704
                <td width="100%" class="tableb_compact">
705
                        {SMILIES}
706
                </td>
707
        </tr>
708
<!-- END smilies -->
709
 
710
EOT;
711
// HTML template used by the cpg_die function
712
$template_cpg_die = <<<EOT
713
 
714
        <tr>
715
                <td class="tableb" height="300" align="center">
716
                        <font size="3"><b>{MESSAGE}</b></font>
717
<!-- BEGIN file_line -->
718
                        <br />
719
                        <br />
720
                        {FILE_TXT}{FILE} - {LINE_TXT}{LINE}
721
<!-- END file_line -->
722
<!-- BEGIN output_buffer -->
723
                        <br />
724
                        <br />
725
                        <div align="left">
726
                                {OUTPUT_BUFFER}
727
                        </div>
728
<!-- END output_buffer -->
729
                        <br /><br />
730
                </td>
731
        </tr>
732
 
733
 
734
EOT;
735
// HTML template used by the msg_box function
736
$template_msg_box = <<<EOT
737
 
738
        <tr>
739
                <td class="tableb" height="150" align="center">
740
                        <font size="3"><b>{MESSAGE}</b></font>
741
                </td>
742
        </tr>
743
<!-- BEGIN button -->
744
                <tr>
745
                        <td align="center" class="tablef">
746
                                <table cellpadding="0" cellspacing="0">
747
                                        <tr>
748
                                                <td class="admin_menu">
749
                                                        <a href="{LINK}">{TEXT}</a>
750
                                                </td>
751
                                        </tr>
752
                                </table>
753
                        </td>
754
                </tr>
755
<!-- END button -->
756
 
757
EOT;
758
// HTML template for e-cards
759
$template_ecard = <<<EOT
760
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
761
<html dir="{LANG_DIR}">
762
<head>
763
<title>{TITLE}</title>
764
<meta http-equiv="content-type" content="text/html; charset={CHARSET}" />
765
</head>
766
<body bgcolor="#FFFFFF" text="#0F5475" link="#0F5475" vlink="#0F5475" alink="#0F5475">
767
<br />
768
<p align="center"><a href="{VIEW_ECARD_TGT}"><b>{VIEW_ECARD_LNK}</b></a></p>
769
<table border="0" cellspacing="0" cellpadding="1" align="center">
770
  <tr>
771
    <td bgcolor="#000000">
772
      <table border="0" cellspacing="0" cellpadding="10" bgcolor="#ffffff">
773
        <tr>
774
          <td valign="top">
775
           <img src="{PIC_URL}" border="1" alt="" /><br />
776
          </td>
777
          <td valign="top" width="200" height="250">
778
            <div align="right"><img src="{URL_PREFIX}images/stamp.gif" alt="" border="0" /></div>
779
            <br />
780
            <b><font face="arial" color="#000000" size="4">{GREETINGS}</font></b>
781
            <br />
782
            <br />
783
            <font face="arial" color="#000000" size="2">{MESSAGE}</font>
784
            <br />
785
            <br />
786
            <font face="arial" color="#000000" size="2">{SENDER_NAME}</font>
787
            (<a href="mailto:{SENDER_EMAIL}"><font face="arial" color="#000000" size="2">{SENDER_EMAIL}</font></a>)
788
          </td>
789
        </tr>
790
      </table>
791
    </td>
792
  </tr>
793
</table>
794
<p align="center"><a href="{VIEW_MORE_TGT}"><b>{VIEW_MORE_LNK}</b></a></p>
795
</body>
796
</html>
797
EOT;
798
// Template used for tabbed display
799
$template_tab_display = array('left_text' => '<td width="100%%" align="left" valign="middle" class="tableh1_compact" style="white-space: nowrap"><b>{LEFT_TEXT}</b></td>' . "\n",
800
    'tab_header' => '',
801
    'tab_trailer' => '',
802
    'active_tab' => '<td><img src="images/spacer.gif" width="1" height="1"></td>' . "\n" . '<td align="center" valign="middle" class="tableb_compact"><b>%d</b></td>',
803
    'inactive_tab' => '<td><img src="images/spacer.gif" width="1" height="1"></td>' . "\n" . '<td align="center" valign="middle" class="navmenu"><a href="{LINK}"><b>%d</b></a></td>' . "\n"
804
    );
805
 
806
function pageheader($section, $meta = '')
807
{
808
    global $CONFIG, $THEME_DIR;
809
    global $template_header, $lang_charset, $lang_text_dir;
810
 
811
    $charset = ($CONFIG['charset'] == 'language file') ? $lang_charset : $CONFIG['charset'];
812
 
813
    header('P3P: CP="CAO DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE"');
814
    header("Content-Type: text/html; charset=$charset");
815
    user_save_profile();
816
 
817
    $template_vars = array('{LANG_DIR}' => $lang_text_dir,
818
        '{TITLE}' => $CONFIG['gallery_name'] . ' - ' . $section,
819
        '{CHARSET}' => $charset,
820
        '{META}' => $meta,
821
        '{GAL_NAME}' => $CONFIG['gallery_name'],
822
        '{GAL_DESCRIPTION}' => $CONFIG['gallery_description'],
823
        '{MAIN_MENU}' => theme_main_menu(),
824
        '{ADMIN_MENU}' => theme_admin_mode_menu(),
825
        '{CUSTOM_STYLESHEET}' => customStylesheet(),
826
        '{CUSTOM_HEADER}' => customHeader(),
827
        );
828
 
829
    echo template_eval($template_header, $template_vars);
830
}
831
// Function for writing a pagefooter
832
function pagefooter()
833
{
834
    global $HTTP_GET_VARS, $HTTP_POST_VARS, $HTTP_SERVER_VARS;
835
    global $USER, $USER_DATA, $ALBUM_SET, $CONFIG, $time_start, $query_stats, $queries;;
836
    global $template_footer;
837
 
838
    if ($CONFIG['debug_mode']==1 || ($CONFIG['debug_mode']==2 && GALLERY_ADMIN_MODE)) {
839
        $time_end = cpgGetMicroTime();
840
        $time = round($time_end - $time_start, 3);
841
 
842
        $query_count = count($query_stats);
843
        $query_times = '';
844
        $total_query_time = 0;
845
        foreach ($query_stats as $qtime) {
846
            $query_times .= round($qtime, 3) . "s ";
847
            $total_query_time += $qtime;
848
        }
849
        $total_query_time = round($total_query_time, 3);
850
 
851
        starttable('100%', 'Debug info');
852
        echo "<tr><td class=\"tableb\">";
853
        echo "USER: <pre>";
854
        print_r($USER);
855
        echo "</pre></td></tr><td class=\"tableb\">";
856
        echo "<tr><td class=\"tableb\">";
857
        echo "USER DATA: <pre>";
858
        print_r($USER_DATA);
859
        echo "</pre></td></tr><td class=\"tableb\">";
860
        echo "<tr><td class=\"tableb\">";
861
        echo "Queries: <pre>";
862
        print_r($queries);
863
        echo "</pre></td></tr><td class=\"tableb\">";
864
        echo "GET :<pre>";
865
        print_r($HTTP_GET_VARS);
866
        echo "</pre></td></tr><td class=\"tableb\">";
867
        echo "POST :<pre>";
868
        print_r($HTTP_POST_VARS);
869
        echo "</pre></td></tr><td class=\"tableb\" >";
870
        echo <<<EOT
871
                Page generated in <b>$time</b> seconds - <b>$query_count</b> queries in <b>$total_query_time</b> seconds - Album set : $ALBUM_SET
872
EOT;
873
        echo "</td></tr>";
874
        echo "<tr><td class=\"tableb\">";
875
        echo "<a href=\"phpinfo.php\">Advanced debug mode</a> (phpinfo)";
876
        echo "</td></tr>";
877
        endtable();
878
    }
879
 
880
    echo $template_footer;
881
}
882
// Function to start a 'standard' table
883
function starttable($width = '-1', $title = '', $title_colspan = '1')
884
{
885
    global $CONFIG;
886
 
887
    if ($width == '-1') $width = $CONFIG['picture_table_width'];
888
    if ($width == '100%') $width = $CONFIG['main_table_width'];
889
    echo <<<EOT
890
 
891
<!-- Start standard table -->
892
<table align="center" width="$width" cellspacing="1" cellpadding="0" class="maintable">
893
 
894
EOT;
895
    if ($title) {
896
        echo <<<EOT
897
        <tr>
898
                <td class="tableh1" colspan="$title_colspan"><h2>$title</h2></td>
899
        </tr>
900
 
901
EOT;
902
    }
903
}
904
 
905
function endtable()
906
{
907
    echo <<<EOT
908
</table>
909
<!-- End standard table -->
910
 
911
EOT;
912
}
913
 
914
function theme_main_menu()
915
{
916
    global $AUTHORIZED, $CONFIG, $album, $actual_cat, $cat, $REFERER, $HTTP_SERVER_VARS;
917
    global $lang_main_menu, $template_main_menu;
918
 
919
    static $main_menu = '';
920
 
921
    if ($main_menu != '') return $main_menu;
922
 
923
    $album_l = isset($album) ? "?album=$album" : '';
924
    $cat_l = (isset($actual_cat))? "?cat=$actual_cat" : (isset($cat) ? "?cat=$cat" : '');
925
    $cat_l2 = isset($cat) ? "&cat=$cat" : '';
926
    $my_gallery_id = FIRST_USER_CAT + USER_ID;
927
 
928
    if (USER_ID) {
929
        template_extract_block($template_main_menu, 'login');
930
    } else {
931
        template_extract_block($template_main_menu, 'logout');
932
        template_extract_block($template_main_menu, 'my_profile');
933
    }
934
 
935
    if (GALLERY_ADMIN_MODE || USER_ADMIN_MODE) {
936
        template_extract_block($template_main_menu, 'enter_admin_mode');
937
    } elseif (USER_CAN_CREATE_ALBUMS || USER_IS_ADMIN) {
938
        template_extract_block($template_main_menu, 'leave_admin_mode');
939
    }
940
 
941
    if (!USER_CAN_CREATE_ALBUMS && !USER_IS_ADMIN) {
942
        template_extract_block($template_main_menu, 'enter_admin_mode');
943
        template_extract_block($template_main_menu, 'leave_admin_mode');
944
    }
945
 
946
    if (!USER_CAN_CREATE_ALBUMS) {
947
        template_extract_block($template_main_menu, 'my_gallery');
948
    }
949
 
950
    if (USER_CAN_CREATE_ALBUMS) {
951
        template_extract_block($template_main_menu, 'my_profile');
952
    }
953
 
954
    if (!USER_CAN_UPLOAD_PICTURES) {
955
        template_extract_block($template_main_menu, 'upload_pic');
956
    }
957
 
958
    if (USER_ID || !$CONFIG['allow_user_registration']) {
959
        template_extract_block($template_main_menu, 'register');
960
    }
961
    if (!USER_ID || !$CONFIG['allow_memberlist']) {
962
        template_extract_block($template_main_menu, 'allow_memberlist');
963
    }
964
 
965
    if (!$CONFIG['display_faq']) {
966
        template_extract_block($template_main_menu, 'faq');
967
    }
968
 
969
    $param = array('{ALB_LIST_TGT}' => "index.php$cat_l",
970
        '{ALB_LIST_TITLE}' => $lang_main_menu['alb_list_title'],
971
        '{ALB_LIST_LNK}' => $lang_main_menu['alb_list_lnk'],
972
        '{MY_GAL_TGT}' => "index.php?cat=$my_gallery_id",
973
        '{MY_GAL_TITLE}' => $lang_main_menu['my_gal_title'],
974
        '{MY_GAL_LNK}' => $lang_main_menu['my_gal_lnk'],
975
        '{MY_PROF_TGT}' => "profile.php?op=edit_profile",
976
        '{MY_PROF_LNK}' => $lang_main_menu['my_prof_lnk'],
977
        '{MEMBERLIST_TGT}' => "usermgr.php",
978
        '{MEMBERLIST_TITLE}' => $lang_main_menu['memberlist_title'],
979
        '{MEMBERLIST_LNK}' => $lang_main_menu['memberlist_lnk'],
980
        '{ADM_MODE_TGT}' => "admin.php?admin_mode=1&referer=$REFERER",
981
        '{ADM_MODE_TITLE}' => $lang_main_menu['adm_mode_title'],
982
        '{ADM_MODE_LNK}' => $lang_main_menu['adm_mode_lnk'],
983
        '{USR_MODE_TGT}' => "admin.php?admin_mode=0&referer=$REFERER",
984
        '{USR_MODE_TITLE}' => $lang_main_menu['usr_mode_title'],
985
        '{USR_MODE_LNK}' => $lang_main_menu['usr_mode_lnk'],
986
        '{UPL_PIC_TGT}' => "upload.php",
987
        '{UPL_PIC_TITLE}' => $lang_main_menu['upload_pic_title'],
988
        '{UPL_PIC_LNK}' => $lang_main_menu['upload_pic_lnk'],
989
        '{REGISTER_TGT}' => "register.php",
990
        '{REGISTER_TITLE}' => $lang_main_menu['register_title'],
991
        '{REGISTER_LNK}' => $lang_main_menu['register_lnk'],
992
        '{LOGIN_TGT}' => "login.php?referer=$REFERER",
993
        '{LOGIN_LNK}' => $lang_main_menu['login_lnk'],
994
        '{LOGOUT_TGT}' => "logout.php?referer=$REFERER",
995
        '{LOGOUT_LNK}' => $lang_main_menu['logout_lnk'] . " [" . USER_NAME . "]",
996
        '{FAQ_TGT}' => "faq.php",
997
        '{FAQ_TITLE}' => $lang_main_menu['faq_title'],
998
        '{FAQ_LNK}' => $lang_main_menu['faq_lnk'],
999
        '{LASTUP_TGT}' => "thumbnails.php?album=lastup$cat_l2",
1000
        '{LASTUP_LNK}' => $lang_main_menu['lastup_lnk'],
1001
        '{LASTCOM_TGT}' => "thumbnails.php?album=lastcom$cat_l2",
1002
        '{LASTCOM_LNK}' => $lang_main_menu['lastcom_lnk'],
1003
        '{TOPN_TGT}' => "thumbnails.php?album=topn$cat_l2",
1004
        '{TOPN_LNK}' => $lang_main_menu['topn_lnk'],
1005
        '{TOPRATED_TGT}' => "thumbnails.php?album=toprated$cat_l2",
1006
        '{TOPRATED_LNK}' => $lang_main_menu['toprated_lnk'],
1007
        '{FAV_TGT}' => "thumbnails.php?album=favpics",
1008
        '{FAV_LNK}' => $lang_main_menu['fav_lnk'],
1009
        '{SEARCH_TGT}' => "search.php",
1010
        '{SEARCH_LNK}' => $lang_main_menu['search_lnk'],
1011
        );
1012
 
1013
    $main_menu = template_eval($template_main_menu, $param);
1014
    return $main_menu;
1015
}
1016
 
1017
function theme_admin_mode_menu()
1018
{
1019
    global $cat;
1020
    global $lang_gallery_admin_menu, $lang_user_admin_menu;
1021
    global $template_gallery_admin_menu, $template_user_admin_menu;
1022
 
1023
    $cat_l = isset($cat) ? "?cat=$cat" : '';
1024
 
1025
    if (GALLERY_ADMIN_MODE) {
1026
        $param = array('{CATL}' => $cat_l,
1027
            '{UPL_APP_LNK}' => $lang_gallery_admin_menu['upl_app_lnk'],
1028
            '{CONFIG_LNK}' => $lang_gallery_admin_menu['config_lnk'],
1029
            '{ALBUMS_LNK}' => $lang_gallery_admin_menu['albums_lnk'],
1030
            '{CATEGORIES_LNK}' => $lang_gallery_admin_menu['categories_lnk'],
1031
            '{USERS_LNK}' => $lang_gallery_admin_menu['users_lnk'],
1032
            '{GROUPS_LNK}' => $lang_gallery_admin_menu['groups_lnk'],
1033
            '{COMMENTS_LNK}' => $lang_gallery_admin_menu['comments_lnk'],
1034
            '{SEARCHNEW_LNK}' => $lang_gallery_admin_menu['searchnew_lnk'],
1035
            '{MY_PROF_LNK}' => $lang_user_admin_menu['my_prof_lnk'],
1036
            '{UTIL_LNK}' => $lang_gallery_admin_menu['util_lnk'],
1037
            '{BAN_LNK}' => $lang_gallery_admin_menu['ban_lnk'],
1038
            '{DB_ECARD_LNK}' => $lang_gallery_admin_menu['db_ecard_lnk'],
1039
            );
1040
 
1041
        $html = template_eval($template_gallery_admin_menu, $param);
1042
    } elseif (USER_ADMIN_MODE) {
1043
        $param = array('{ALBMGR_LNK}' => $lang_user_admin_menu['albmgr_lnk'],
1044
            '{MODIFYALB_LNK}' => $lang_user_admin_menu['modifyalb_lnk'],
1045
            '{MY_PROF_LNK}' => $lang_user_admin_menu['my_prof_lnk']
1046
            );
1047
 
1048
        $html = template_eval($template_user_admin_menu, $param);
1049
    } else {
1050
        $html = '';
1051
    }
1052
 
1053
    return $html;
1054
}
1055
 
1056
function theme_display_cat_list($breadcrumb, &$cat_data, $statistics)
1057
{
1058
    global $template_cat_list, $lang_cat_list;
1059
 
1060
    starttable('100%');
1061
 
1062
    if (count($cat_data) > 0) {
1063
        $template = template_extract_block($template_cat_list, 'header');
1064
        $params = array('{CATEGORY}' => $lang_cat_list['category'],
1065
            '{ALBUMS}' => $lang_cat_list['albums'],
1066
            '{PICTURES}' => $lang_cat_list['pictures'],
1067
            );
1068
        echo template_eval($template, $params);
1069
    }
1070
 
1071
    $template_noabl = template_extract_block($template_cat_list, 'catrow_noalb');
1072
    $template = template_extract_block($template_cat_list, 'catrow');
1073
    foreach($cat_data as $category) {
1074
        if (count($category) == 3) {
1075
            $params = array('{CAT_TITLE}' => $category[0],
1076
                '{CAT_THUMB}' => $category['cat_thumb'],
1077
                '{CAT_DESC}' => $category[1]
1078
                );
1079
            echo template_eval($template_noabl, $params);
1080
        } elseif (isset($category['cat_albums']) && ($category['cat_albums'] != '')) {
1081
            $params = array('{CAT_TITLE}' => $category[0],
1082
                '{CAT_THUMB}' => $category['cat_thumb'],
1083
                '{CAT_DESC}' => $category[1],
1084
                '{CAT_ALBUMS}' => $category['cat_albums'],
1085
                '{ALB_COUNT}' => $category[2],
1086
                '{PIC_COUNT}' => $category[3],
1087
                );
1088
            echo template_eval($template, $params);
1089
        } else {
1090
            $params = array('{CAT_TITLE}' => $category[0],
1091
                '{CAT_THUMB}' => $category['cat_thumb'],
1092
                '{CAT_DESC}' => $category[1],
1093
                '{CAT_ALBUMS}' => '',
1094
                '{ALB_COUNT}' => $category[2],
1095
                '{PIC_COUNT}' => $category[3],
1096
                );
1097
            echo template_eval($template, $params);
1098
        }
1099
    }
1100
 
1101
    if ($statistics && count($cat_data) > 0) {
1102
        $template = template_extract_block($template_cat_list, 'footer');
1103
        $params = array('{STATISTICS}' => $statistics);
1104
        echo template_eval($template, $params);
1105
    }
1106
    endtable();
1107
 
1108
    if (count($cat_data) > 0)
1109
        echo template_extract_block($template_cat_list, 'spacer');
1110
}
1111
 
1112
function theme_display_breadcrumb($breadcrumb, &$cat_data)
1113
{
1114
    /**
1115
     * ** added breadcrumb as a seperate element
1116
     */
1117
    global $template_breadcrumb, $lang_breadcrumb;
1118
 
1119
    starttable('100%');
1120
    if ($breadcrumb) {
1121
        $template = template_extract_block($template_breadcrumb, 'breadcrumb');
1122
        $params = array('{BREADCRUMB}' => $breadcrumb
1123
            );
1124
        echo template_eval($template, $params);
1125
    }
1126
    endtable();
1127
}
1128
 
1129
function theme_display_album_list(&$alb_list, $nbAlb, $cat, $page, $total_pages)
1130
{
1131
    global $CONFIG, $STATS_IN_ALB_LIST, $statistics, $template_tab_display, $template_album_list, $lang_album_list;
1132
 
1133
    $theme_alb_list_tab_tmpl = $template_tab_display;
1134
 
1135
    $theme_alb_list_tab_tmpl['left_text'] = strtr($theme_alb_list_tab_tmpl['left_text'], array('{LEFT_TEXT}' => $lang_album_list['album_on_page']));
1136
    $theme_alb_list_tab_tmpl['inactive_tab'] = strtr($theme_alb_list_tab_tmpl['inactive_tab'], array('{LINK}' => 'index.php?cat=' . $cat . '&page=%d'));
1137
 
1138
    $tabs = create_tabs($nbAlb, $page, $total_pages, $theme_alb_list_tab_tmpl);
1139
 
1140
    $album_cell = template_extract_block($template_album_list, 'album_cell');
1141
    $empty_cell = template_extract_block($template_album_list, 'empty_cell');
1142
    $tabs_row = template_extract_block($template_album_list, 'tabs');
1143
    $stat_row = template_extract_block($template_album_list, 'stat_row');
1144
    $spacer = template_extract_block($template_album_list, 'spacer');
1145
    $header = template_extract_block($template_album_list, 'header');
1146
    $footer = template_extract_block($template_album_list, 'footer');
1147
    $rows_separator = template_extract_block($template_album_list, 'row_separator');
1148
 
1149
    $count = 0;
1150
 
1151
    $columns = $CONFIG['album_list_cols'];
1152
    $column_width = ceil(100 / $columns);
1153
    $thumb_cell_width = $CONFIG['alb_list_thumb_size'] + 2;
1154
 
1155
    starttable('100%');
1156
 
1157
    if ($STATS_IN_ALB_LIST) {
1158
        $params = array('{STATISTICS}' => $statistics,
1159
            '{COLUMNS}' => $columns,
1160
            );
1161
        echo template_eval($stat_row, $params);
1162
    }
1163
 
1164
    echo $header;
1165
 
1166
    if (is_array($alb_list)) {
1167
        foreach($alb_list as $album) {
1168
            $count ++;
1169
 
1170
            $params = array('{COL_WIDTH}' => $column_width,
1171
                '{ALBUM_TITLE}' => $album['album_title'],
1172
                '{THUMB_CELL_WIDTH}' => $thumb_cell_width,
1173
                '{ALB_LINK_TGT}' => "thumbnails.php?album={$album['aid']}",
1174
                '{ALB_LINK_PIC}' => $album['thumb_pic'],
1175
                '{ADMIN_MENU}' => $album['album_adm_menu'],
1176
                '{ALB_DESC}' => $album['album_desc'],
1177
                '{ALB_INFOS}' => $album['album_info'],
1178
                );
1179
 
1180
            echo template_eval($album_cell, $params);
1181
 
1182
            if ($count % $columns == 0 && $count < count($alb_list)) {
1183
                echo $rows_separator;
1184
            }
1185
        }
1186
    }
1187
 
1188
    $params = array('{COL_WIDTH}' => $column_width);
1189
    $empty_cell = template_eval($empty_cell, $params);
1190
 
1191
    while ($count++ % $columns != 0) {
1192
        echo $empty_cell;
1193
    }
1194
 
1195
    echo $footer;
1196
    // Tab display
1197
    $params = array('{COLUMNS}' => $columns,
1198
        '{TABS}' => $tabs,
1199
        );
1200
    echo template_eval($tabs_row, $params);
1201
 
1202
    endtable();
1203
 
1204
    echo $spacer;
1205
}
1206
// Function to display first level Albums of a category
1207
function theme_display_album_list_cat(&$alb_list, $nbAlb, $cat, $page, $total_pages)
1208
{
1209
    global $CONFIG, $STATS_IN_ALB_LIST, $statistics, $template_tab_display, $template_album_list_cat, $lang_album_list;
1210
    if (!$CONFIG['first_level']) {
1211
        return;
1212
    }
1213
 
1214
    $theme_alb_list_tab_tmpl = $template_tab_display;
1215
 
1216
    $theme_alb_list_tab_tmpl['left_text'] = strtr($theme_alb_list_tab_tmpl['left_text'], array('{LEFT_TEXT}' => $lang_album_list['album_on_page']));
1217
    $theme_alb_list_tab_tmpl['inactive_tab'] = strtr($theme_alb_list_tab_tmpl['inactive_tab'], array('{LINK}' => 'index.php?cat=' . $cat . '&page=%d'));
1218
 
1219
    $tabs = create_tabs($nbAlb, $page, $total_pages, $theme_alb_list_tab_tmpl);
1220
    // echo $template_album_list_cat;
1221
    $template_album_list_cat1 = $template_album_list_cat;
1222
    $album_cell = template_extract_block($template_album_list_cat1, 'c_album_cell');
1223
    $empty_cell = template_extract_block($template_album_list_cat1, 'c_empty_cell');
1224
    $tabs_row = template_extract_block($template_album_list_cat1, 'c_tabs');
1225
    $stat_row = template_extract_block($template_album_list_cat1, 'c_stat_row');
1226
    $spacer = template_extract_block($template_album_list_cat1, 'c_spacer');
1227
    $header = template_extract_block($template_album_list_cat1, 'c_header');
1228
    $footer = template_extract_block($template_album_list_cat1, 'c_footer');
1229
    $rows_separator = template_extract_block($template_album_list_cat1, 'c_row_separator');
1230
 
1231
    $count = 0;
1232
 
1233
    $columns = $CONFIG['album_list_cols'];
1234
    $column_width = ceil(100 / $columns);
1235
    $thumb_cell_width = $CONFIG['alb_list_thumb_size'] + 2;
1236
 
1237
    starttable('100%');
1238
 
1239
    if ($STATS_IN_ALB_LIST) {
1240
        $params = array('{STATISTICS}' => $statistics,
1241
            '{COLUMNS}' => $columns,
1242
            );
1243
        echo template_eval($stat_row, $params);
1244
    }
1245
 
1246
    echo $header;
1247
 
1248
    if (is_array($alb_list)) {
1249
        foreach($alb_list as $album) {
1250
            $count ++;
1251
 
1252
            $params = array('{COL_WIDTH}' => $column_width,
1253
                '{ALBUM_TITLE}' => $album['album_title'],
1254
                '{THUMB_CELL_WIDTH}' => $thumb_cell_width,
1255
                '{ALB_LINK_TGT}' => "thumbnails.php?album={$album['aid']}",
1256
                '{ALB_LINK_PIC}' => $album['thumb_pic'],
1257
                '{ADMIN_MENU}' => $album['album_adm_menu'],
1258
                '{ALB_DESC}' => $album['album_desc'],
1259
                '{ALB_INFOS}' => $album['album_info'],
1260
                );
1261
 
1262
            echo template_eval($album_cell, $params);
1263
 
1264
            if ($count % $columns == 0 && $count < count($alb_list)) {
1265
                echo $rows_separator;
1266
            }
1267
        }
1268
    }
1269
 
1270
    $params = array('{COL_WIDTH}' => $column_width);
1271
    $empty_cell = template_eval($empty_cell, $params);
1272
 
1273
    while ($count++ % $columns != 0) {
1274
        echo $empty_cell;
1275
    }
1276
 
1277
    echo $footer;
1278
    // Tab display
1279
    $params = array('{COLUMNS}' => $columns,
1280
        '{TABS}' => $tabs,
1281
        );
1282
    echo template_eval($tabs_row, $params);
1283
 
1284
    endtable();
1285
 
1286
    echo $spacer;
1287
}
1288
 
1289
function theme_display_thumbnails(&$thumb_list, $nbThumb, $album_name, $aid, $cat, $page, $total_pages, $sort_options, $display_tabs, $mode = 'thumb')
1290
{
1291
    global $CONFIG;
1292
    global $template_thumb_view_title_row, $template_fav_thumb_view_title_row, $lang_thumb_view, $template_tab_display, $template_thumbnail_view;
1293
 
1294
    static $header = '';
1295
    static $thumb_cell = '';
1296
    static $empty_cell = '';
1297
    static $row_separator = '';
1298
    static $footer = '';
1299
    static $tabs = '';
1300
    static $spacer = '';
1301
 
1302
    if ($header == '') {
1303
        $thumb_cell = template_extract_block($template_thumbnail_view, 'thumb_cell');
1304
        $tabs = template_extract_block($template_thumbnail_view, 'tabs');
1305
        $header = template_extract_block($template_thumbnail_view, 'header');
1306
        $empty_cell = template_extract_block($template_thumbnail_view, 'empty_cell');
1307
        $row_separator = template_extract_block($template_thumbnail_view, 'row_separator');
1308
        $footer = template_extract_block($template_thumbnail_view, 'footer');
1309
        $spacer = template_extract_block($template_thumbnail_view, 'spacer');
1310
    }
1311
 
1312
    $cat_link = is_numeric($aid) ? '' : '&cat=' . $cat;
1313
 
1314
    $theme_thumb_tab_tmpl = $template_tab_display;
1315
 
1316
    if ($mode == 'thumb') {
1317
        $theme_thumb_tab_tmpl['left_text'] = strtr($theme_thumb_tab_tmpl['left_text'], array('{LEFT_TEXT}' => $lang_thumb_view['pic_on_page']));
1318
        $theme_thumb_tab_tmpl['inactive_tab'] = strtr($theme_thumb_tab_tmpl['inactive_tab'], array('{LINK}' => 'thumbnails.php?album=' . $aid . $cat_link . '&page=%d'));
1319
    } else {
1320
        $theme_thumb_tab_tmpl['left_text'] = strtr($theme_thumb_tab_tmpl['left_text'], array('{LEFT_TEXT}' => $lang_thumb_view['user_on_page']));
1321
        $theme_thumb_tab_tmpl['inactive_tab'] = strtr($theme_thumb_tab_tmpl['inactive_tab'], array('{LINK}' => 'index.php?cat=' . $cat . '&page=%d'));
1322
    }
1323
 
1324
    $thumbcols = $CONFIG['thumbcols'];
1325
    $cell_width = ceil(100 / $CONFIG['thumbcols']) . '%';
1326
 
1327
    $tabs_html = $display_tabs ? create_tabs($nbThumb, $page, $total_pages, $theme_thumb_tab_tmpl) : '';
1328
    // The sort order options are not available for meta albums
1329
    if ($sort_options) {
1330
        $param = array('{ALBUM_NAME}' => $album_name,
1331
            '{AID}' => $aid,
1332
            '{PAGE}' => $page,
1333
            '{NAME}' => $lang_thumb_view['name'],
1334
            '{TITLE}' => $lang_thumb_view['title'],
1335
            '{DATE}' => $lang_thumb_view['date'],
1336
            '{SORT_TA}' => $lang_thumb_view['sort_ta'],
1337
            '{SORT_TD}' => $lang_thumb_view['sort_td'],
1338
            '{SORT_NA}' => $lang_thumb_view['sort_na'],
1339
            '{SORT_ND}' => $lang_thumb_view['sort_nd'],
1340
            '{SORT_DA}' => $lang_thumb_view['sort_da'],
1341
            '{SORT_DD}' => $lang_thumb_view['sort_dd'],
1342
            );
1343
        $title = template_eval($template_thumb_view_title_row, $param);
1344
    } else if ($aid == 'favpics' && $CONFIG['enable_zipdownload'] == 1) { //Lots of stuff can be added here later
1345
       $param = array('{ALBUM_NAME}' => $album_name,
1346
                             '{DOWNLOAD_ZIP}'=>$lang_thumb_view['download_zip']
1347
                               );
1348
       $title = template_eval($template_fav_thumb_view_title_row, $param);
1349
    } else {
1350
        $title = $album_name;
1351
    }
1352
 
1353
    if ($mode == 'thumb') {
1354
        starttable('100%', $title, $thumbcols);
1355
    } else {
1356
        starttable('100%');
1357
    }
1358
 
1359
    echo $header;
1360
 
1361
    $i = 0;
1362
    foreach($thumb_list as $thumb) {
1363
        $i++;
1364
        if ($mode == 'thumb') {
1365
            if ($aid == 'lastalb') {
1366
                $params = array('{CELL_WIDTH}' => $cell_width,
1367
                    '{LINK_TGT}' => "thumbnails.php?album={$thumb['aid']}",
1368
                    '{THUMB}' => $thumb['image'],
1369
                    '{CAPTION}' => $thumb['caption'],
1370
                    '{ADMIN_MENU}' => $thumb['admin_menu']
1371
                    );
1372
            } else {
1373
                $params = array('{CELL_WIDTH}' => $cell_width,
1374
                    '{LINK_TGT}' => "displayimage.php?album=$aid$cat_link&pos={$thumb['pos']}",
1375
                    '{THUMB}' => $thumb['image'],
1376
                    '{CAPTION}' => $thumb['caption'],
1377
                    '{ADMIN_MENU}' => $thumb['admin_menu']
1378
                    );
1379
            }
1380
        } else {
1381
            $params = array('{CELL_WIDTH}' => $cell_width,
1382
                '{LINK_TGT}' => "index.php?cat={$thumb['cat']}",
1383
                '{THUMB}' => $thumb['image'],
1384
                '{CAPTION}' => $thumb['caption'],
1385
                '{ADMIN_MENU}' => ''
1386
                );
1387
        }
1388
        echo template_eval($thumb_cell, $params);
1389
 
1390
        if ((($i % $thumbcols) == 0) && ($i < count($thumb_list))) {
1391
            echo $row_separator;
1392
        }
1393
    }
1394
    for (;($i % $thumbcols); $i++) {
1395
        echo $empty_cell;
1396
    }
1397
    echo $footer;
1398
 
1399
    if ($display_tabs) {
1400
        $params = array('{THUMB_COLS}' => $thumbcols,
1401
            '{TABS}' => $tabs_html
1402
            );
1403
        echo template_eval($tabs, $params);
1404
    }
1405
 
1406
    endtable();
1407
    echo $spacer;
1408
}
1409
// Added to display flim_strip
1410
function theme_display_film_strip(&$thumb_list, $nbThumb, $album_name, $aid, $cat, $pos, $sort_options, $mode = 'thumb')
1411
{
1412
    global $CONFIG;
1413
    global $template_film_strip, $lang_film_strip;
1414
 
1415
    static $template = '';
1416
    static $thumb_cell = '';
1417
    static $empty_cell = '';
1418
    static $spacer = '';
1419
 
1420
    if ((!$template)) {
1421
        $template = $template_film_strip;
1422
        $thumb_cell = template_extract_block($template, 'thumb_cell');
1423
        $empty_cell = template_extract_block($template, 'empty_cell');
1424
        // $spacer = template_extract_block($template, 'spacer');
1425
    }
1426
    // if ($header == '') {}
1427
    $cat_link = is_numeric($aid) ? '' : '&cat=' . $cat;
1428
 
1429
    $theme_thumb_tab_tmpl = $template_tab_display;
1430
 
1431
    if ($mode == 'thumb') {
1432
        $theme_thumb_tab_tmpl['left_text'] = strtr($theme_thumb_tab_tmpl['left_text'], array('{LEFT_TEXT}' => $lang_thumb_view['pic_on_page']));
1433
        $theme_thumb_tab_tmpl['inactive_tab'] = strtr($theme_thumb_tab_tmpl['inactive_tab'], array('{LINK}' => 'thumbnails.php?album=' . $aid . $cat_link . '&page=%d'));
1434
    } else {
1435
        $theme_thumb_tab_tmpl['left_text'] = strtr($theme_thumb_tab_tmpl['left_text'], array('{LEFT_TEXT}' => $lang_thumb_view['user_on_page']));
1436
        $theme_thumb_tab_tmpl['inactive_tab'] = strtr($theme_thumb_tab_tmpl['inactive_tab'], array('{LINK}' => 'index.php?cat=' . $cat . '&page=%d'));
1437
    }
1438
 
1439
    $thumbcols = $CONFIG['thumbcols'];
1440
    $cell_width = ceil(100 / $CONFIG['max_film_strip_items']) . '%';
1441
 
1442
    $i = 0;
1443
    $thumb_strip = '';
1444
    foreach($thumb_list as $thumb) {
1445
        $i++;
1446
        if ($mode == 'thumb') {
1447
            $params = array('{CELL_WIDTH}' => $cell_width,
1448
                '{LINK_TGT}' => "displayimage.php?album=$aid$cat_link&pos={$thumb['pos']}",
1449
                '{THUMB}' => $thumb['image'],
1450
                '{CAPTION}' => '',
1451
                '{ADMIN_MENU}' => ''
1452
                );
1453
        } else {
1454
            $params = array('{CELL_WIDTH}' => $cell_width,
1455
                '{LINK_TGT}' => "index.php?cat={$thumb['cat']}",
1456
                '{THUMB}' => $thumb['image'],
1457
                '{CAPTION}' => '',
1458
                '{ADMIN_MENU}' => ''
1459
                );
1460
        }
1461
        $thumb_strip .= template_eval($thumb_cell, $params);
1462
        // if ((($i % $thumbcols) == 0) && ($i < count($thumb_list))) {
1463
        // echo $row_separator;
1464
        // }
1465
    }
1466
    // for (;($i % $thumbcols); $i++){
1467
    // echo $empty_cell;
1468
    // }
1469
    $params = array('{THUMB_STRIP}' => $thumb_strip,
1470
        '{COLS}' => $i);
1471
 
1472
    ob_start();
1473
    starttable('');
1474
    echo template_eval($template, $params);
1475
    endtable();
1476
    $film_strip = ob_get_contents();
1477
    ob_end_clean();
1478
 
1479
    return $film_strip;
1480
}
1481
 
1482
function theme_no_img_to_display($album_name)
1483
{
1484
    global $lang_errors, $template_no_img_to_display;
1485
 
1486
    static $template = '';
1487
    static $spacer;
1488
 
1489
    if ((!$template)) {
1490
        $template = $template_no_img_to_display;
1491
        $spacer = template_extract_block($template, 'spacer');
1492
    }
1493
 
1494
    $params = array('{TEXT}' => $lang_errors['no_img_to_display']);
1495
    starttable('100%', $album_name);
1496
    echo template_eval($template, $params);
1497
    endtable();
1498
}
1499
 
1500
function theme_display_image($nav_menu, $picture, $votes, $pic_info, $comments, $film_strip)
1501
{
1502
    global $HTTP_COOKIE_VARS, $CONFIG;
1503
 
1504
    starttable();
1505
    echo $nav_menu;
1506
    endtable();
1507
 
1508
    starttable();
1509
    echo $picture;
1510
    endtable();
1511
    if ($CONFIG['display_film_strip'] == 1) {
1512
        echo $film_strip;
1513
    }
1514
    starttable();
1515
    echo $votes;
1516
    endtable();
1517
 
1518
    $picinfo = isset($HTTP_COOKIE_VARS['picinfo']) ? $HTTP_COOKIE_VARS['picinfo'] : ($CONFIG['display_pic_info'] ? 'block' : 'none');
1519
    echo "<div id=\"picinfo\" style=\"display: $picinfo;\">\n";
1520
    starttable();
1521
    echo $pic_info;
1522
    endtable();
1523
    echo "</div>\n";
1524
 
1525
    starttable();
1526
    echo $comments;
1527
    endtable();
1528
}
1529
 
1530
function theme_html_picinfo(&$info)
1531
{
1532
    global $lang_picinfo;
1533
 
1534
    $html = '';
1535
 
1536
    $html .= "        <tr><td colspan=\"2\" class=\"tableh2_compact\"><b>{$lang_picinfo['title']}</b></td></tr>\n";
1537
    $template = "        <tr><td class=\"tableb_compact\" valign=\"top\" nowrap>%s:</td><td class=\"tableb_compact\">%s</td></tr>\n";
1538
    foreach ($info as $key => $value) $html .= sprintf($template, $key, $value);
1539
 
1540
    return $html;
1541
}
1542
 
1543
function customHeader()
1544
{
1545
$backToDefaultTheme = customGetUrlVars('theme').'xxx';
1546
$highlightUrl = customGetUrlVars2('highlight').'highlight';
1547
//$return='|'.customGetUrlVars2('highlight').'|';
1548
$return=<<<EOT
1549
<table border="0" cellspacing="0" cellpadding="0">
1550
<tr><td class="stgsm">
1551
<ul style="margin-top:0px;margin-bottom:0px;">
1552
<li>visible for <span class="bgg">everyone</span>/<span class="bgy">admin and logged-in user</span>/<span class="bgr">admin only</span></li>
1553
<li>X = applies, C = depending on config, A = when in admin mode</li>
1554
<li><a href="javascript:;" onClick="MM_openBrWindow('themes/styleguide/readme.htm','styleguide','scrollbars=yes,toolbar=no,status=no,resizable=yes,width=600,height=300')">view styleguide readme</a></li>
1555
<li><a href="$backToDefaultTheme">back to default theme</a></li>
1556
</ul>
1557
</td>
1558
<td class="bgy" valign="bottom"><img src="themes/styleguide/images/albmgr_php.gif" width="11" height="50" border="0" alt="" /></td>
1559
<td class="bgr" valign="bottom"><img src="themes/styleguide/images/banning_php.gif" width="11" height="55" border="0" alt="" /></td>
1560
<td class="bgr" valign="bottom"><img src="themes/styleguide/images/catmgr_php.gif" width="12" height="83" border="0" alt="" /></td>
1561
<td class="bgr" valign="bottom"><img src="themes/styleguide/images/config_php.gif" width="11" height="46" border="0" alt="" /></td>
1562
<td class="bgy" valign="bottom"><img src="themes/styleguide/images/delete_php.gif" width="11" height="47" border="0" alt="" /></td>
1563
<td class="bgg" valign="bottom"><img src="themes/styleguide/images/displayimage_php.gif" width="12" height="76" border="0" alt="" /></td>
1564
<td class="bgg" valign="bottom"><img src="themes/styleguide/images/ecard_php.gif" width="11" height="44" border="0" alt="" /></td>
1565
<td class="bgy" valign="bottom"><img src="themes/styleguide/images/editpics_php.gif" width="11" height="53" border="0" alt="" /></td>
1566
<td class="bgg" valign="bottom"><img src="themes/styleguide/images/forgot_passwd_php.gif" width="11" height="83" border="0" alt="" /></td>
1567
<td class="bgr" valign="bottom"><img src="themes/styleguide/images/groupmgr_php.gif" width="12" height="62" border="0" alt="" /></td>
1568
<td class="bgg" valign="bottom"><img src="themes/styleguide/images/index_php.gif" width="11" height="41" border="0" alt="" /></td>
1569
<td class="bgg" valign="bottom"><img src="themes/styleguide/images/login_php.gif" width="11" height="41" border="0" alt="" /></td>
1570
<td class="bgy" valign="bottom"><img src="themes/styleguide/images/logout_php.gif" width="12" height="47" border="0" alt="" /></td>
1571
<td class="bgy" valign="bottom"><img src="themes/styleguide/images/modifyalb_php.gif" width="11" height="62" border="0" alt="" /></td>
1572
<td class="bgy" valign="bottom"><img src="themes/styleguide/images/profile_php.gif" width="11" height="47" border="0" alt="" /></td>
1573
<td class="bgr" valign="bottom"><img src="themes/styleguide/images/reviewcom_php.gif" width="12" height="66" border="0" alt="" /></td>
1574
<td class="bgg" valign="bottom"><img src="themes/styleguide/images/search_php.gif" width="11" height="48" border="0" alt="" /></td>
1575
<td class="bgr" valign="bottom"><img src="themes/styleguide/images/searchnew_php.gif" width="11" height="66" border="0" alt="" /></td>
1576
<td class="bgg" valign="bottom"><img src="themes/styleguide/images/thumbnails_php.gif" width="11" height="68" border="0" alt="" /></td>
1577
<td class="bgg" valign="bottom"><img src="themes/styleguide/images/upload_php.gif" width="12" height="49" border="0" alt="" /></td>
1578
<td class="bgr" valign="bottom"><img src="themes/styleguide/images/usermgr_php.gif" width="11" height="56" border="0" alt="" /></td>
1579
<td class="bgr" valign="bottom"><img src="themes/styleguide/images/util_php.gif" width="11" height="34" border="0" alt="" />
1580
<td class="bgr" valign="bottom"><img src="themes/styleguide/images/db_ecard_php.gif" width="11" height="56" border="0" alt="" />
1581
</tr>
1582
<tr><td class="bgsm"><a href="$highlightUrl=admin_menu" onmouseover="return makeTrue(domTT_activate(this, event, 'caption', 'admin_menu', 'content', 'Controls the admin menu buttons.<br />The row of admin fuction buttons across the top of the gallery in admin mode. If you allow users to login, they will have an admin mode as well (user admin mode), so you better configure this to look nicely!',   'trail', true));">admin_menu</a></td><td class="bgsm">A</td><td class="bgsm">A</td><td class="bgsm">A</td><td class="bgsm">A</td><td class="bgsm">A</td><td class="bgsm">A</td><td class="bgsm">A</td><td class="bgsm">A</td><td class="bgsm">A</td><td class="bgsm">A</td><td class="bgsm">A</td><td class="bgsm">&nbsp;</td><td class="bgsm">A</td><td class="bgsm">A</td><td class="bgsm">A</td><td class="bgsm">A</td><td class="bgsm">A</td><td class="bgsm">A</td><td class="bgsm">A</td><td class="bgsm">A</td><td class="bgsm">A</td><td class="bgsm">A</td><td class="bgsm">A</td></tr>
1583
<tr><td class="bgsm"><a href="$highlightUrl=admin_menu_thumb" onmouseover="return makeTrue(domTT_activate(this, event, 'caption', 'admin_menu_thumb', 'content', 'Only available on delete.php, visible for a short instance. This class will vanish in future versions, as it is not needed any longer.',   'trail', true));">admin_menu_thumb</a></td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">X</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td></tr>
1584
<tr><td class="bgsm"><a href="$highlightUrl=alblink" onmouseover="return makeTrue(domTT_activate(this, event, 'caption', 'alblink', 'content', 'On displayimage.php, this controls the link back to an album in the information area.',   'trail', true));">alblink</a></td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">X</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td></tr>
1585
<tr><td class="bgsm"><a href="$highlightUrl=album_stat" onmouseover="return makeTrue(domTT_activate(this, event, 'caption', 'album_stat', 'content', 'Controls the album stats text.<br />e.g. 57 pictures, last one added on Jan 03, 2004',   'trail', true));">album_stat</a></td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">C</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td></tr>
1586
<tr><td class="bgsm"><a href="$highlightUrl=button" onmouseover="return makeTrue(domTT_activate(this, event, 'caption', 'button', 'content', 'Controls the look of the buttons used to submit forms.',   'trail', true));">button</a></td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">X</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">X</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">X</td><td class="bgsm">&nbsp;</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">X</td></tr>
1587
<tr><td class="bgsm"><a href="$highlightUrl=catlink" onmouseover="return makeTrue(domTT_activate(this, event, 'caption', 'catlink', 'content', '',   'trail', true));">catlink</a></td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">X</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td></tr>
1588
<tr><td class="bgsm"><a href="$highlightUrl=checkbox" onmouseover="return makeTrue(domTT_activate(this, event, 'caption', 'checkbox', 'content', 'Controls the look of checkboxes. In cpg1.3.0 it is only used on forgot_passwd.php.<br />Make sure to set background color properly when experiencing &quot;strange&quot; borders around the checkbox.',   'trail', true));">checkbox</a></td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">X</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">X</td></tr>
1589
<tr><td class="bgsm"><a href="$highlightUrl=clickable_option" onmouseover="return makeTrue(domTT_activate(this, event, 'caption', 'clickable_option', 'content', 'Only visible in config screen (for admin) - admin does not have to click on radio buttons, but can click to corresponding text as well.',   'trail', true));">clickable_option</a></td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">X</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td></tr>
1590
<tr><td class="bgsm"><a href="$highlightUrl=comment_date" onmouseover="return makeTrue(domTT_activate(this, event, 'caption', 'comment_date', 'content', 'Controls the text on displayimage.php that tells the date a comment was made.',   'trail', true));">comment_date</a></td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">X</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">X</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td></tr>
1591
<tr><td class="bgsm"><a href="$highlightUrl=debug_text" onmouseover="return makeTrue(domTT_activate(this, event, 'caption', 'debug_text', 'content', 'Visible on every page, but only debug_mode is switched on in coppermine config.',   'trail', true));">debug_text</a></td><td class="bgsm">C</td><td class="bgsm">C</td><td class="bgsm">C</td><td class="bgsm">C</td><td class="bgsm">C</td><td class="bgsm">C</td><td class="bgsm">C</td><td class="bgsm">C</td><td class="bgsm">C</td><td class="bgsm">C</td><td class="bgsm">C</td><td class="bgsm">C</td><td class="bgsm">C</td><td class="bgsm">C</td><td class="bgsm">C</td><td class="bgsm">C</td><td class="bgsm">C</td><td class="bgsm">C</td><td class="bgsm">C</td><td class="bgsm">C</td><td class="bgsm">C</td><td class="bgsm">C</td><td class="bgsm">C</td></tr>
1592
<tr><td class="bgsm"><a href="$highlightUrl=footer" onmouseover="return makeTrue(domTT_activate(this, event, 'caption', 'footer', 'content', 'Controls the &quot;Powered by Coppermine&quot; text at the bottom of the gallery. ',   'trail', true));">footer</a></td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td></tr>
1593
<tr><td class="bgsm"><a href="$highlightUrl=image" onmouseover="return makeTrue(domTT_activate(this, event, 'caption', 'image', 'content', 'Controls settings like border size and color for images on displayimage.php.',   'trail', true));">image</a></td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">X</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">X</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">X</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">X</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td></tr>
1594
<tr><td class="bgsm"><a href="$highlightUrl=image" onmouseover="return makeTrue(domTT_activate(this, event, 'caption', 'imageborder', 'content', 'Controls border around intermediate picture on displayimage.php',   'trail', true));">imageborder</a></td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">X</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td></tr>
1595
<tr><td class="bgsm"><a href="$highlightUrl=listbox" onmouseover="return makeTrue(domTT_activate(this, event, 'caption', 'listbox', 'content', 'Controls the look of dropdown fields',   'trail', true));">listbox</a></td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">X</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">X</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td></tr>
1596
<tr><td class="bgsm"><a href="$highlightUrl=listbox_lang" onmouseover="return makeTrue(domTT_activate(this, event, 'caption', 'listbox_lang', 'content', 'The language and theme selection dropdown boxes (only in cpg1.3.0 or better), if switched on in config and existing in template.html. Will appear on all pages.',   'trail', true));">listbox_lang</a></td><td class="bgsm">C</td><td class="bgsm">C</td><td class="bgsm">C</td><td class="bgsm">C</td><td class="bgsm">C</td><td class="bgsm">C</td><td class="bgsm">C</td><td class="bgsm">C</td><td class="bgsm">C</td><td class="bgsm">C</td><td class="bgsm">C</td><td class="bgsm">C</td><td class="bgsm">C</td><td class="bgsm">C</td><td class="bgsm">C</td><td class="bgsm">C</td><td class="bgsm">C</td><td class="bgsm">C</td><td class="bgsm">C</td><td class="bgsm">C</td><td class="bgsm">C</td><td class="bgsm">C</td><td class="bgsm">&nbsp;</td></tr>
1597
<tr><td class="bgsm"><a href="$highlightUrl=maintable" onmouseover="return makeTrue(domTT_activate(this, event, 'caption', 'maintable', 'content', 'Shows on every coppermine page: maintable controls (as the name suggests) the main table that has the gallery content in it.',   'trail', true));">maintable</a></td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td></tr>
1598
<tr><td class="bgsm"><a href="$highlightUrl=navmenu" onmouseover="return makeTrue(domTT_activate(this, event, 'caption', 'navmenu', 'content', 'On thumbnails.php, this controls the cells at the bottom that contain page numbers. On displayimage.php, this controls the header where the e-card, information, previous, next, etc... images are.<br />&quot;navmenu img&quot; controls spacing for images which use the navmenu style.',   'trail', true));">navmenu</a></td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">X</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td></tr>
1599
<tr><td class="bgsm"><a href="$highlightUrl=sortorder_cell" onmouseover="return makeTrue(domTT_activate(this, event, 'caption', 'sortorder_cell', 'content', 'Controls the appearance of the cells that have options for sorting the images on thumbnails.php.',   'trail', true));">sortorder_cell</a></td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">X</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td></tr>
1600
<tr><td class="bgsm"><a href="$highlightUrl=sortorder_options" onmouseover="return makeTrue(domTT_activate(this, event, 'caption', 'sortorder_options', 'content', 'Controls the appearance of the cells that have options for sorting the images on thumbnails.php. This controls the actual text contents of the cell as well.',   'trail', true));">sortorder_options</a></td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">X</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td></tr>
1601
<tr><td class="bgsm"><a href="$highlightUrl=statlink" onmouseover="return makeTrue(domTT_activate(this, event, 'caption', 'statlink', 'content', 'Controls the stats text at the top of the main page,<br />e.g. xx pictures in yy Albums',   'trail', true));">statlink</a></td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">X</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">X</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">X</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">X</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td></tr>
1602
<tr><td class="bgsm"><a href="$highlightUrl=tableb" onmouseover="return makeTrue(domTT_activate(this, event, 'caption', 'tableb', 'content', 'Controls the table cell on displayimage.php where the image is.',   'trail', true));">tableb</a></td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">&nbsp;</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td></tr>
1603
<tr><td class="bgsm"><a href="$highlightUrl=tableb_compact" onmouseover="return makeTrue(domTT_activate(this, event, 'caption', 'tableb_compact', 'content', 'Controls all of the &quot;information&quot; fields on displayimage.php as well as the area where the rating stars are and the cell that the add comment area is in.',   'trail', true));">tableb_compact</a></td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">C</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">C</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">X</td></tr>
1604
<tr><td class="bgsm"><a href="$highlightUrl=tablef" onmouseover="return makeTrue(domTT_activate(this, event, 'caption', 'tablef', 'content', 'Controls cells of tables on some pages with form submission buttons.<br />It controls cells on the search, upload and on the page that appears when you enter admin mode.',   'trail', true));">tablef</a></td><td class="bgsm">X</td><td class="bgsm">&nbsp;</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">&nbsp;</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">&nbsp;</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">&nbsp;</td></tr>
1605
<tr><td class="bgsm"><a href="$highlightUrl=tableh1" onmouseover="return makeTrue(domTT_activate(this, event, 'caption', 'tableh1', 'content', 'Controls the main table header areas.',   'trail', true));">tableh1</a></td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td></tr>
1606
<tr><td class="bgsm"><a href="$highlightUrl=tableh1_compact" onmouseover="return makeTrue(domTT_activate(this, event, 'caption', 'tableh1_compact', 'content', 'Controls the areas at the bottoms of the main tables.',   'trail', true));">tableh1_compact</a></td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">X</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">X</td><td class="bgsm">&nbsp;</td><td class="bgsm">X</td><td class="bgsm">&nbsp;</td><td class="bgsm">X</td></tr>
1607
<tr><td class="bgsm"><a href="$highlightUrl=tableh2" onmouseover="return makeTrue(domTT_activate(this, event, 'caption', 'tableh2', 'content', 'On the main page, it controls the title area under the main table header.',   'trail', true));">tableh2</a></td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">X</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">&nbsp;</td><td class="bgsm">X</td><td class="bgsm">C</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">X</td><td class="bgsm">&nbsp;</td><td class="bgsm">X</td><td class="bgsm">&nbsp;</td><td class="bgsm">X</td><td class="bgsm">&nbsp;</td><td class="bgsm">X</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td></tr>
1608
<tr><td class="bgsm"><a href="$highlightUrl=textinput" onmouseover="return makeTrue(domTT_activate(this, event, 'caption', 'textinput', 'content', 'Controls the look of all textinput fields (like comments)',   'trail', true));">textinput</a></td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">X</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">X</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">X</td><td class="bgsm">&nbsp;</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td></tr>
1609
<tr><td class="bgsm"><a href="$highlightUrl=thumb_caption" onmouseover="return makeTrue(domTT_activate(this, event, 'caption', 'thumb_caption', 'content', 'Only visible on the thumbnails pages - used to control the caption of a thumbnail.',   'trail', true));">thumb_caption</a></td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">C</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">X</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">X</td></tr>
1610
<tr><td class="bgsm"><a href="$highlightUrl=thumb_num_comments" onmouseover="return makeTrue(domTT_activate(this, event, 'caption', 'thumb_num_comments', 'content', 'Only visible on the thumbnails page - controls the way the number of comments are displayed.',   'trail', true));">thumb_num_comments</a></td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">X</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td></tr>
1611
<tr><td class="bgsm"><a href="$highlightUrl=thumb_title" onmouseover="return makeTrue(domTT_activate(this, event, 'caption', 'thumb_title', 'content', 'Controls text that appears under thumbnails.<br />e.g. X views. A title that you have given to an image.',   'trail', true));">thumb_title</a></td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">C</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">X</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td></tr>
1612
<tr><td class="bgsm"><a href="$highlightUrl=thumbnails" onmouseover="return makeTrue(domTT_activate(this, event, 'caption', 'thumbnails', 'content', 'Controls the cells that thumbnail images are in.<br />The cells on the main page and on thumbnails.php',   'trail', true));">thumbnails</a></td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">C</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">C</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">X</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td><td class="bgsm">&nbsp;</td></tr>
1613
<tr><td class="bgsm"><a href="$highlightUrl=topmenu" onmouseover="return makeTrue(domTT_activate(this, event, 'caption', 'topmenu', 'content', 'Controls the menu at the top of the gallery.<br />The search, upload picture, favorites, most viewed, last uploaded, etc links. Visible on all coppermine pages.',   'trail', true));">topmenu</a></td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td><td class="bgsm">X</td></tr>
1614
</table>
1615
EOT;
1616
 
1617
 
1618
 
1619
return $return;
1620
}
1621
 
1622
function customStylesheet()
1623
{
1624
//initialize class definitions that can be highlighted
1625
$cssClassDef = array(
1626
'admin_menu' => ' font-family: Arial, Helvetica, sans-serif; font-size: 85%; border: 1px solid #005D8C; background-image : url(images/button_bg.gif); background-position : bottom; color: #000000; margin-top: 0px; margin-bottom: 0px; text-align: center; ',
1627
'admin_menu a' => ' color: #000000; text-decoration: none; display: block; position: relative; padding-top: 1px; padding-bottom: 1px; padding-left: 2px; padding-right: 2px; ',
1628
'admin_menu a:hover' => ' color: #000000; text-decoration: underline; ',
1629
'admin_menu_thumb' => ' font-family: Arial, Helvetica, sans-serif; font-size: 85%; border: 1px solid #005D8C; background-image : url(images/button_bg.gif); background-position : bottom; color: #000000; font-weight: bold; margin-top: 0px; margin-bottom: 0px; width: 85px; ',
1630
'admin_menu_thumb a' => ' color: #000000; text-decoration: none; display: block; position: relative; padding-top: 1px; padding-bottom: 1px; padding-left: 10px; padding-right: 10px; ',
1631
'admin_menu_thumb a:hover' => ' color: #000000; text-decoration: underline; ',
1632
'alblink a' => ' text-decoration: underline; color: #000000; ',
1633
'alblink a:hover' => ' color: #000000; text-decoration: underline; ',
1634
'album_stat' => ' font-size: 85%; margin: 5px 0px; ',
1635
'bblink a' => ' color: #7F7F7F; text-decoration: none; ',
1636
'bblink a:hover' => ' color: #7F7F7F; text-decoration: underline; ',
1637
'button' => ' font-family: Arial, Helvetica, sans-serif; font-size: 100%; border: 1px solid #005D8C; background-image : url(images/button_bg.gif); background-position : bottom; ',
1638
'catlink' => ' display: block; margin-bottom: 2px; ',
1639
'catlink a' => ' text-decoration: underline; color: #000000; ',
1640
'catlink a:hover' => ' color: #000000; text-decoration: underline; ',
1641
'checkbox' => ' font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 100%; vertical-align : middle; ',
1642
'clickable_option' => ' border-bottom : 1px dotted blue; cursor : hand; ',
1643
'comment_button' => ' font-family: Arial, Helvetica, sans-serif; font-size: 85%; border: 1px solid #005D8C; background-image : url(images/button_bg.gif); background-position : bottom; padding-left: 3px; padding-right: 3px; ',
1644
'comment_date{ color : #5F5F5F; font-size : 90%; vertical-align : middle; ',
1645
'debug_text' => ' border: #BDBEBD; background-color: #EFEFEF; width : 100%; margin : 0px; ',
1646
'footer' => ' font-size : 9px; ',
1647
'footer a' => ' text-decoration: none; color: #000000; ',
1648
'footer a:hover' => ' color: #000000; text-decoration: underline; ',
1649
'image' => ' border-style: solid; border-width:1px; border-color: #000000; margin: 2px; ',
1650
'imageborder' => ' border: 1px solid #000000; background-color: #FFFFFF; margin-top: 30px; margin-bottom: 30px; ',
1651
'img_caption_table' => ' border: none; background-color: #FFFFFF; width : 100%; margin : 0px; ',
1652
'img_caption_table th' => ' background: #D1D7DC ; font-size: 100%; color : #000000; padding-top: 4px; padding-right: 10px; padding-bottom: 4px; padding-left: 10px; border-top : 1px solid #FFFFFF; ',
1653
'listbox' => ' font-family: Verdana, Arial, Arial, Helvetica, sans-serif; font-size: 100%; border: 1px solid #D1D7DC; vertical-align : middle; ',
1654
'listbox_lang' => ' color: #000000; background-color: #D1D7DC; border: 1px solid #D1D7DC; font-size: 80%; font-family: Arial, Helvetica, sans-serif; vertical-align : middle; ',
1655
'maintable' => ' border: 1px solid #C0C0C0; background-color: #FFFFFF; margin-top: 1px; margin-bottom: 1px; ',
1656
'navmenu' => ' font-family: Verdana, Arial, Helvetica, sans-serif; color: #FFFFFF; font-size: 100%; font-weight: bold; background : #C0C0C0 ; border-style: none; ',
1657
'navmenu a' => ' position: relative; display: block; padding-top: 2px; padding-right: 5px; padding-bottom: 2px; padding-left: 5px; text-decoration: none; color: #FFFFFF; ',
1658
'navmenu a:hover' => ' background : #EFEFEF ; text-decoration: none; color:         #000000; ',
1659
'navmenu img' => ' margin-top: 1px; margin-right: 5px; margin-bottom: 1px; margin-left: 5px; ',
1660
'radio' => ' font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 100%; vertical-align : middle; ',
1661
'sortorder_cell' => ' background : #C0C0C0 ; color : #FFFFFF; padding: 0px; margin: 0px; ',
1662
'sortorder_options' => ' font-family: Verdana, Arial, Helvetica, sans-serif; background : #C0C0C0 ; color : #FFFFFF; padding: 0px; margin: 0px; font-weight: normal; font-size: 80%; white-space: nowrap; ',
1663
'statlink' => ' color: #FFFFFF; ',
1664
'statlink a' => ' text-decoration: none; color: #FFFFFF; ',
1665
'statlink a:hover' => ' color: #FFFFFF; text-decoration: underline; ',
1666
'tableb' => ' background: #EFEFEF ; padding-top: 3px; padding-right: 10px; padding-bottom: 3px; padding-left: 10px; ',
1667
'tableb_compact' => ' background: #EFEFEF ; padding-top: 2px; padding-right: 5px; padding-bottom: 2px; padding-left: 5px; ',
1668
'tablef' => ' background: #D1D7DC; padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; ',
1669
'tableh1' => ' background : #C0C0C0 ; color : #FFFFFF; padding-top: 3px; padding-right: 10px; padding-bottom: 3px; padding-left: 10px; ',
1670
'tableh1_compact' => ' background : #C0C0C0 ; color : #FFFFFF; padding-top: 2px; padding-right: 5px; padding-bottom: 2px; padding-left: 5px; ',
1671
'tableh2' => ' background: #D1D7DC ; color : #000000; padding-top: 3px; padding-right: 10px; padding-bottom: 3px; padding-left: 10px; ',
1672
'tableh2_compact' => ' background: #D1D7DC ; color : #000000; padding-top: 2px; padding-right: 5px; padding-bottom: 2px; padding-left: 5px; ',
1673
'textinput' => 'font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 100%; border: 1px solid #D1D7DC; padding-right: 3px; padding-left: 3px; ',
1674
'thumb_caption' => ' font-size: 80%; padding: 1px; display : block; ',
1675
'thumb_caption a' => ' text-decoration: underline; color: #000000; ',
1676
'thumb_num_comments' => ' font-weight: normal; font-size: 80%; padding: 2px; font-style : italic; display : block; ',
1677
'thumb_title' => ' font-weight : bold; font-size: 80%; padding: 2px; display : block; ',
1678
'thumbnails' => ' background: #EFEFEF ; padding: 5px; ',
1679
'topmenu' => ' line-height : 130%; font-size: 100%; ',
1680
'topmenu a' => ' color : #7F7F7F; text-decoration : none; ',
1681
'topmenu a:hover ' => ' color : #7F7F7F; text-decoration : underline; ',
1682
'user_thumb_infobox' => ' margin-top: 1px; margin-bottom: 1px; ',
1683
'user_thumb_infobox a' => ' text-decoration: none; color: #000000; ',
1684
'user_thumb_infobox a:hover' => ' color: #000000; text-decoration: underline; ',
1685
'user_thumb_infobox td' => ' font-size: 80%; margin-top: 1px; margin-bottom: 1px; text-align : center; ',
1686
'user_thumb_infobox th' => ' font-weight : bold; font-size: 100%; margin-top: 1px; margin-bottom: 1px; text-align : center; ',
1687
);
1688
 
1689
 
1690
$return = <<<EOT
1691
<style type="text/css">
1692
body {font-family : Verdana, Arial, Helvetica, sans-serif;font-size: 12px;background : #FFFFFF ;color : Black;margin: 0px;}
1693
 
1694
table {font-size: 12px;}
1695
 
1696
h1{font-weight: bold;font-size: 22px; font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; text-decoration: none; line-height : 120%; color : #000000; margin: 2px; }
1697
 
1698
h2 {font-family: Arial, Helvetica, sans-serif; font-size: 18px; margin: 0px;}
1699
 
1700
h3 {font-weight: normal; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; margin: 2px; }
1701
 
1702
p {font-family: Arial, Helvetica, sans-serif; font-size: 100%; margin: 2px 0px; }
1703
 
1704
ul { margin-left: 5px; padding: 0px;}
1705
 
1706
li { margin-left: 10px; margin-top: 4px; margin-bottom: 4px; padding: 0px; list-style-position: outside; list-style-type: disc; }
1707
 
1708
a { color: #7F7F7F; text-decoration: none; }
1709
 
1710
a:hover { color: #7F7F7F; text-decoration: underline;}
1711
 
1712
/* Default DOM Tooltip Style */
1713
div.domTT {
1714
    border: 1px solid #333333;
1715
}
1716
div.domTTCaption {
1717
    font-family: serif;
1718
    font-size: 12px;
1719
    font-weight: bold;
1720
    padding: 1px 2px;
1721
    color: #FFFFFF;
1722
    background-color: #333333;
1723
}
1724
div.domTTContent {
1725
    font-size: 12px;
1726
    font-family: sans-serif;
1727
    padding: 3px 2px;
1728
    background-color: #F1F1FF;
1729
}
1730
/* Classic Style */
1731
div.domTTClassic {
1732
    border: 1px solid black;
1733
    background-color: #FBF4D4;
1734
}
1735
div.domTTClassicCaption {
1736
    font-family: serif;
1737
    font-size: 12px;
1738
    font-weight: bold;
1739
    font-style: italic;
1740
    padding: 1px 2px;
1741
}
1742
div.domTTClassicContent {
1743
    font-size: 12px;
1744
    font-family: Arial, sans-serif;
1745
    padding: 1px 2px 0 2px;
1746
}
1747
/* Win9x Style */
1748
div.domTTWin {
1749
  border: 2px outset #BFBFBF;
1750
  background-color: #808080
1751
}
1752
div.domTTWinCaption {
1753
  border: 0px solid #BFBFBF;
1754
  border-width: 1px 1px 0px 1px;
1755
  background-color: #00007F;
1756
  padding: 2px;
1757
  font-size: 12px;
1758
  font-weight: bold;
1759
  font-family: sans-serif;
1760
  color: white;
1761
}
1762
div.domTTWinContent {
1763
  border: 1px solid #BFBFBF;
1764
}
1765
/* Overlib Style */
1766
div.domTTOverlib {
1767
    border: 1px solid #333366;
1768
}
1769
div.domTTOverlibCaption {
1770
    font-family: Verdana, Helvetica;
1771
    font-size: 10px;
1772
    font-weight: bold;
1773
    color: #FFFFFF;
1774
    background-color: #333366;
1775
}
1776
div.domTTOverlibContent {
1777
    font-size: 10px;
1778
    font-family: Verdana, Helvetica;
1779
    padding: 2px;
1780
    background-color: #F1F1FF;
1781
}
1782
div.domTTMenu {
1783
  width: 150px;
1784
  border: 2px outset #E6E6E6;
1785
}
1786
div.domTTMenuCaption {
1787
  font-size: 12px;
1788
  font-family: sans-serif;
1789
  background-color: #E6E6E6;
1790
}
1791
div.domTTMenuContent {
1792
  padding: 1px 0;
1793
  background-color: #E6E6E6;
1794
}
1795
.bgg {
1796
background-color: #00E090;
1797
padding:0px;
1798
margin: 0px
1799
text-align : center;
1800
font-size:8px;
1801
}
1802
.bgy {
1803
background-color: #FFDF00;
1804
padding:0px;
1805
margin: 0px
1806
text-align : center;
1807
font-size:8px;
1808
}
1809
.bgr {
1810
background-color: #FF3F00;
1811
padding:0px;
1812
margin:0px
1813
text-align : center;
1814
font-size:8px;
1815
}
1816
.stgsm {
1817
font-size:9px;
1818
}
1819
.bgsm {
1820
font-size:9px;
1821
border-color:#EFEFEF; border-width:1px; border-style:solid;
1822
}
1823
 
1824
EOT;
1825
 
1826
foreach ($cssClassDef as $key => $value) {
1827
  $return.= '.' . $key .'{';
1828
  $return.= $value;
1829
  if ($_GET['highlight'] == $key){$return.= 'background:red;border: 2px solid green;color:black;font-style: italic;font-weight:bold;font-variant:small-caps ;';}
1830
  $return.= "}\n";
1831
}
1832
 
1833
$return.= '</style>';
1834
 
1835
return $return;
1836
}
1837
 
1838
function customGetUrlVars($exception)
1839
// get the url vars
1840
{
1841
 $cpgGetUrl = $_SERVER["SCRIPT_NAME"]."?";
1842
 foreach ($_GET as $key => $value) {
1843
    if ($key!=$exception){$cpgGetUrl.= $key . "=" . $value . "&";}
1844
 }
1845
 $cpgGetUrl.= $exception . '=';
1846
 return $cpgGetUrl;
1847
}
1848
 
1849
function customGetUrlVars2($exception)
1850
// get the url vars
1851
{
1852
 $cpgGetUrl = $_SERVER["SCRIPT_NAME"]."?";
1853
 foreach ($_GET as $key => $value) {
1854
    if ($key!=$exception){$cpgGetUrl.= $key . "=" . $value . "&";}
1855
 }
1856
 //$cpgGetUrl.= $exception . '=';
1857
 return $cpgGetUrl;
1858
}
1859
?>