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/project_vii/theme.php,v $
15
  $Revision: 1.10 $
16
  $Author: gaugau $
17
  $Date: 2005/04/19 03:17:15 $
18
**********************************************/
19
 
20
// HTML template for main menu
21
$template_main_menu1 = <<<EOT
22
                                                |
23
<!-- BEGIN my_gallery -->
24
                                                <a href="{MY_GAL_TGT}" title="{MY_GAL_TITLE}">{MY_GAL_LNK}</a> |
25
<!-- END my_gallery -->
26
<!-- BEGIN allow_memberlist -->
27
                                                <a href="{MEMBERLIST_TGT}" title="{MEMBERLIST_TITLE}">{MEMBERLIST_LNK}</a> |
28
<!-- END allow_memberlist -->
29
<!-- BEGIN my_profile -->
30
                                                <a href="{MY_PROF_TGT}">{MY_PROF_LNK}</a> |
31
<!-- END my_profile -->
32
<!-- BEGIN faq -->
33
                        <a href="{FAQ_TGT}" title="{FAQ_TITLE}">{FAQ_LNK}</a> |
34
<!-- END faq -->
35
<!-- BEGIN enter_admin_mode -->
36
                                                <a href="{ADM_MODE_TGT}" title="{ADM_MODE_TITLE}">{ADM_MODE_LNK}</a> |
37
<!-- END enter_admin_mode -->
38
<!-- BEGIN leave_admin_mode -->
39
                                                <a href="{USR_MODE_TGT}" title="{USR_MODE_TITLE}">{USR_MODE_LNK}</a> |
40
<!-- END leave_admin_mode -->
41
<!-- BEGIN upload_pic -->
42
                                                <a href="{UPL_PIC_TGT}" title="{UPL_PIC_TITLE}">{UPL_PIC_LNK}</a> |
43
<!-- END upload_pic -->
44
<!-- BEGIN register -->
45
                                                <a href="{REGISTER_TGT}" title="{REGISTER_TITLE}">{REGISTER_LNK}</a> |
46
<!-- END register -->
47
<!-- BEGIN login -->
48
                                                <a href="{LOGIN_TGT}">{LOGIN_LNK}</a> |
49
<!-- END login -->
50
<!-- BEGIN logout -->
51
                                                <a href="{LOGOUT_TGT}">{LOGOUT_LNK}</a> |
52
<!-- END logout -->
53
EOT;
54
 
55
$template_main_menu2 = <<<EOT
56
                        <table border="0" cellpadding="0" cellspacing="0">
57
                                <tr>
58
                                        <td class="top_menu_left_bttn">
59
                                                <a href="{ALB_LIST_TGT}" title="{ALB_LIST_TITLE}">{ALB_LIST_LNK}</a>
60
                                        </td>
61
                                        <td><img name="menu_spacer" src="themes/project_vii/images/menu_spacer.gif" width="2" height="35" border="0" id="menu_spcer" alt="" /><br /></td>
62
                                        <td class="top_menu_bttn">
63
                                                <a href="javascript:;" onMouseOver="MM_showHideLayers('Menu1','','show')">@</a>
64
                                        </td>
65
                                        <td><img name="menu_spacer" src="themes/project_vii/images/menu_spacer.gif" width="2" height="35" border="0" id="menu_spcer" alt="" /><br /></td>
66
                                        <td class="top_menu_bttn">
67
                                                <a href="{LASTUP_TGT}">{LASTUP_LNK}</a>
68
                                        </td>
69
                                        <td><img name="menu_spacer" src="themes/project_vii/images/menu_spacer.gif" width="2" height="35" border="0" id="menu_spcer" alt="" /><br /></td>
70
                                        <td class="top_menu_bttn">
71
                                                <a href="{LASTCOM_TGT}" onMouseOver="MM_showHideLayers('Menu1','','hide')">{LASTCOM_LNK}</a>
72
                                        </td>
73
                                        <td><img name="menu_spacer" src="themes/project_vii/images/menu_spacer.gif" width="2" height="35" border="0" id="menu_spcer" alt="" /><br /></td>
74
                                        <td class="top_menu_bttn">
75
                                                <a href="{TOPN_TGT}" onMouseOver="MM_showHideLayers('Menu1','','hide')">{TOPN_LNK}</a>
76
                                        </td>
77
                                        <td><img name="menu_spacer" src="themes/project_vii/images/menu_spacer.gif" width="2" height="35" border="0" id="menu_spcer" alt="" /><br /></td>
78
                                        <td class="top_menu_bttn">
79
                                                <a href="{TOPRATED_TGT}" onMouseOver="MM_showHideLayers('Menu1','','hide')">{TOPRATED_LNK}</a>
80
                                        </td>
81
                                        <td><img name="menu_spacer" src="themes/project_vii/images/menu_spacer.gif" width="2" height="35" border="0" id="menu_spcer" alt="" /><br /></td>
82
                                        <td class="top_menu_bttn">
83
                                                <a href="{FAV_TGT}" onMouseOver="MM_showHideLayers('Menu1','','hide')">{FAV_LNK}</a>
84
                                        </td>
85
                                        <td><img name="menu_spacer" src="themes/project_vii/images/menu_spacer.gif" width="2" height="35" border="0" id="menu_spcer" alt="" /><br /></td>
86
                                        <td class="top_menu_right_bttn">
87
                                                <a href="{SEARCH_TGT}" onMouseOver="MM_showHideLayers('Menu1','','hide')">{SEARCH_LNK}</a>
88
                                        </td>
89
                                </tr>
90
                        </table>
91
EOT;
92
// HTML template for gallery admin menu
93
$template_gallery_admin_menu = <<<EOT
94
 
95
                <div align="center">
96
                <table cellpadding="0" cellspacing="1">
97
                        <tr>
98
                                <td class="admin_menu"><a href="editpics.php?mode=upload_approval" title="">{UPL_APP_LNK}</a></td>
99
                                <td class="admin_menu"><a href="config.php" title="">{CONFIG_LNK}</a></td>
100
                                <td class="admin_menu"><a href="albmgr.php{CATL}" title="">{ALBUMS_LNK}</a></td>
101
                                <td class="admin_menu"><a href="catmgr.php" title="">{CATEGORIES_LNK}</a></td>
102
                                <td class="admin_menu"><a href="usermgr.php" title="">{USERS_LNK}</a></td>
103
                                <td class="admin_menu"><a href="groupmgr.php" title="">{GROUPS_LNK}</a></td>
104
                                <td class="admin_menu"><a href="banning.php" title="">{BAN_LNK}</a></td>
105
                                <td class="admin_menu"><a href="db_ecard.php" title="">{DB_ECARD_LNK}</a></td>
106
                                <td class="admin_menu"><a href="reviewcom.php" title="">{COMMENTS_LNK}</a></td>
107
                                <td class="admin_menu"><a href="searchnew.php" title="">{SEARCHNEW_LNK}</a></td>
108
                                <td class="admin_menu"><a href="util.php" title="">{UTIL_LNK}</a></td>
109
                                <td class="admin_menu"><a href="profile.php?op=edit_profile" title="">{MY_PROF_LNK}</a></td>
110
                        </tr>
111
                </table>
112
                </div>
113
 
114
EOT;
115
// HTML template for user admin menu
116
$template_user_admin_menu = <<<EOT
117
 
118
                <div align="center">
119
                <table cellpadding="0" cellspacing="1">
120
                        <tr>
121
                                <td class="admin_menu"><a href="albmgr.php" title="">{ALBMGR_LNK}</a></td>
122
                                <td class="admin_menu"><a href="modifyalb.php" title="">{MODIFYALB_LNK}</a></td>
123
                                <td class="admin_menu"><a href="profile.php?op=edit_profile" title="">{MY_PROF_LNK}</a></td>
124
                        </tr>
125
                </table>
126
                </div>
127
 
128
EOT;
129
// HTML template for the category list
130
$template_cat_list = <<<EOT
131
<!-- BEGIN header -->
132
        <tr>
133
                <td class="tableh1" width="80%"><b>{CATEGORY}</b></td>
134
                <td class="tableh1" width="10%" align="center"><b>{ALBUMS}</b></td>
135
                <td class="tableh1" width="10%" align="center"><b>{PICTURES}</b></td>
136
        </tr>
137
<!-- END header -->
138
<!-- BEGIN catrow_noalb -->
139
        <tr>
140
                <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>
141
        </tr>
142
<!-- END catrow_noalb -->
143
<!-- BEGIN catrow -->
144
        <tr>
145
                <td class="tableb"><table border="0"><tr><td>{CAT_THUMB}</td><td><span class="catlink"><b>{CAT_TITLE}</b></span>{CAT_DESC}</td></tr></table></td>
146
                <td class="tableb" align="center">{ALB_COUNT}</td>
147
                <td class="tableb" align="center">{PIC_COUNT}</td>
148
        </tr>
149
    <tr>
150
         <td class="tableb" colspan=3>{CAT_ALBUMS}</td>
151
    </tr>
152
<!-- END catrow -->
153
<!-- BEGIN footer -->
154
        <tr>
155
                <td colspan="3" class="tableh1" align="center"><span class="statlink"><b>{STATISTICS}</b></span></td>
156
        </tr>
157
<!-- END footer -->
158
<!-- BEGIN spacer -->
159
        <img src="images/spacer.gif" width="1" height="17" alt="" /><br />
160
<!-- END spacer -->
161
 
162
EOT;
163
// HTML template for the breadcrumb
164
$template_breadcrumb = <<<EOT
165
<!-- BEGIN breadcrumb -->
166
        <tr>
167
                <td colspan="3" class="tableh1"><span class="statlink"><b>{BREADCRUMB}</b></span></td>
168
        </tr>
169
<!-- END breadcrumb -->
170
<!-- BEGIN breadcrumb_user_gal -->
171
        <tr>
172
                <td colspan="3" class="tableh1">
173
                <table width="100%" cellpadding="0" cellspacing="0" border="0">
174
                <tr>
175
                        <td><span class="statlink"><b>{BREADCRUMB}</b></span></td>
176
                        <td align="right"><span class="statlink"><b>{STATISTICS}</b></span></td>
177
                </tr>
178
                </table>
179
                </td>
180
        </tr>
181
<!-- END breadcrumb_user_gal -->
182
 
183
EOT;
184
// HTML template for the album list
185
$template_album_list = <<<EOT
186
 
187
<!-- BEGIN stat_row -->
188
        <tr>
189
                <td colspan="{COLUMNS}" class="tableh1" align="center"><span class="statlink"><b>{STATISTICS}</b></span></td>
190
        </tr>
191
<!-- END stat_row -->
192
<!-- BEGIN header -->
193
        <tr>
194
<!-- END header -->
195
<!-- BEGIN album_cell -->
196
        <td width="{COL_WIDTH}%" height="100%" valign="top">
197
        <table width="100%" height="100%" cellspacing="0" cellpadding="0">
198
        <tr>
199
                <td colspan="3" height="1" valign="top" class="tableh2">
200
                        <a href="{ALB_LINK_TGT}" class="alblink"><b>{ALBUM_TITLE}</b></a>
201
                </td>
202
        </tr>
203
        <tr>
204
                <td colspan="3">
205
                        <img src="images/spacer.gif" width="1" height="1" alt="" /><br />
206
                </td>
207
        </tr>
208
        <tr height="100%">
209
                <td align="center" height="100%" valign="middle" class="thumbnails">
210
                        <img src="images/spacer.gif" width="{THUMB_CELL_WIDTH}" height="1" class="image" style="margin-top: 0px; margin-bottom: 0px; border: none;" alt="" /><br />
211
                        <a href="{ALB_LINK_TGT}" class="albums">{ALB_LINK_PIC}<br /></a>
212
                </td>
213
                <td height="100%">
214
                        <img src="images/spacer.gif" width="1" height="1" alt="" />
215
                </td>
216
                <td width="100%" height="100%" valign="top" class="tableb_compact">
217
                        {ADMIN_MENU}
218
                        <p>{ALB_DESC}</p>
219
                        <p class="album_stat">{ALB_INFOS}</p>
220
                </td>
221
        </tr>
222
        </table>
223
        </td>
224
<!-- END album_cell -->
225
<!-- BEGIN empty_cell -->
226
        <td width="{COL_WIDTH}%" height="100%" valign="top">
227
        <table width="100%" height="100%" cellspacing="0" cellpadding="0">
228
        <tr>
229
                <td height="1" valign="top" class="tableh2">
230
                        <b>&nbsp;</b>
231
                </td>
232
        </tr>
233
        <tr>
234
                <td>
235
                        <img src="images/spacer.gif" width="1" height="1" alt="" /><br />
236
                </td>
237
        </tr>
238
        <tr height="100%">
239
                <td width="100%" height="100%" valign="top" class="tableb_compact">
240
                        &nbsp;
241
                </td>
242
        </tr>
243
        </table>
244
        </td>
245
<!-- END empty_cell -->
246
<!-- BEGIN row_separator -->
247
        </tr>
248
        <tr>
249
<!-- END row_separator -->
250
<!-- BEGIN footer -->
251
        </tr>
252
<!-- END footer -->
253
<!-- BEGIN tabs -->
254
        <tr>
255
                <td colspan="{COLUMNS}" style="padding: 0px;">
256
                        <table width="100%" cellspacing="0" cellpadding="0">
257
                                <tr>
258
                                        {TABS}
259
                                </tr>
260
                        </table>
261
                </td>
262
        </tr>
263
<!-- END tabs -->
264
<!-- BEGIN spacer -->
265
        <img src="images/spacer.gif" width="1" height="17" alt="" /><br />
266
<!-- END spacer -->
267
 
268
EOT;
269
// HTML template for filmstrip display
270
$template_film_strip = <<<EOT
271
 
272
        <tr>
273
         <td valign="top" background='themes/project_vii/images/tile.gif' align="center" height='30'>&nbsp;</td>
274
        </tr>
275
        <tr>
276
        <td valign="bottom" class="thumbnails" align="center">
277
          {THUMB_STRIP}
278
        </td>
279
        </tr>
280
        <tr>
281
         <td valign="top" background='themes/project_vii/images/tile.gif' align="center" height='30'>&nbsp;</td>
282
        </tr>
283
<!-- BEGIN thumb_cell -->
284
                                        <a href="{LINK_TGT}">{THUMB}</a>&nbsp;
285
                                        {CAPTION}
286
                                        {ADMIN_MENU}
287
<!-- END thumb_cell -->
288
<!-- BEGIN empty_cell -->
289
                <td valign="top" align="center" >1&nbsp;</td>
290
<!-- END empty_cell -->
291
 
292
EOT;
293
// HTML template for the album list
294
$template_album_list_cat = <<<EOT
295
 
296
<!-- BEGIN c_stat_row -->
297
        <tr>
298
                <td colspan="{COLUMNS}" class="tableh1" align="center"><span class="statlink"><b>{STATISTICS}</b></span></td>
299
        </tr>
300
<!-- END c_stat_row -->
301
<!-- BEGIN c_header -->
302
        <tr>
303
<!-- END c_header -->
304
<!-- BEGIN c_album_cell -->
305
        <td width="{COL_WIDTH}%" height="100%" valign="top">
306
        <table width="100%" height="100%" cellspacing="0" cellpadding="0">
307
        <tr>
308
                <td colspan="3" height="1" valign="top" class="tableh2">
309
                        <a href="{ALB_LINK_TGT}" class="alblink"><b>{ALBUM_TITLE}</b></a>
310
                </td>
311
        </tr>
312
        <tr>
313
                <td colspan="3">
314
                        <img src="images/spacer.gif" width="1" height="1" alt="" /><br />
315
                </td>
316
        </tr>
317
        <tr height="100%">
318
                <td align="center" height="100%" valign="middle" class="thumbnails">
319
                        <img src="images/spacer.gif" width="{THUMB_CELL_WIDTH}" height="1" class="image" style="margin-top: 0px; margin-bottom: 0px; border: none;" alt="" /><br />
320
                        <a href="{ALB_LINK_TGT}" class="albums">{ALB_LINK_PIC}<br /></a>
321
                </td>
322
                <td height="100%">
323
                        <img src="images/spacer.gif" width="1" height="1" alt="" />
324
                </td>
325
                <td width="100%" height="100%" valign="top" class="tableb_compact">
326
                        {ADMIN_MENU}
327
                        <p>{ALB_DESC}</p>
328
                        <p class="album_stat">{ALB_INFOS}</p>
329
                </td>
330
        </tr>
331
        </table>
332
        </td>
333
<!-- END c_album_cell -->
334
<!-- BEGIN c_empty_cell -->
335
        <td width="{COL_WIDTH}%" height="100%" valign="top">
336
        <table width="100%" height="100%" cellspacing="0" cellpadding="0">
337
        <tr>
338
                <td height="1" valign="top" class="tableh2">
339
                        <b>&nbsp;</b>
340
                </td>
341
        </tr>
342
        <tr>
343
                <td>
344
                        <img src="images/spacer.gif" width="1" height="1" alt="" /><br />
345
                </td>
346
        </tr>
347
        <tr height="100%">
348
                <td width="100%" height="100%" valign="top" class="tableb_compact">
349
                        &nbsp;
350
                </td>
351
        </tr>
352
        </table>
353
        </td>
354
<!-- END c_empty_cell -->
355
<!-- BEGIN c_row_separator -->
356
        </tr>
357
        <tr>
358
<!-- END c_row_separator -->
359
<!-- BEGIN c_footer -->
360
        </tr>
361
<!-- END c_footer -->
362
<!-- BEGIN c_tabs -->
363
        <tr>
364
                <td colspan="{COLUMNS}" style="padding: 0px;">
365
                        <table width="100%" cellspacing="0" cellpadding="0">
366
                                <tr>
367
                                        {TABS}
368
                                </tr>
369
                        </table>
370
                </td>
371
        </tr>
372
<!-- END c_tabs -->
373
<!-- BEGIN c_spacer -->
374
        <img src="images/spacer.gif" width="1" height="17" alt="" /><br />
375
<!-- END c_spacer -->
376
 
377
EOT;
378
// HTML template for the ALBUM admin menu displayed in the album list
379
$template_album_admin_menu = <<<EOT
380
        <table border="0" cellpadding="0" cellspacing="1">
381
                <tr>
382
                        <td align="center" valign="middle" class="admin_menu">
383
                                <a href="delete.php?id={ALBUM_ID}&what=album"  class="adm_menu" onclick="return confirm('{CONFIRM_DELETE}');">{DELETE}</a>
384
                        </td>
385
                        <td align="center" valign="middle" class="admin_menu">
386
                                <a href="modifyalb.php?album={ALBUM_ID}"  class="adm_menu">{MODIFY}</a>
387
                        </td>
388
                        <td align="center" valign="middle" class="admin_menu">
389
                                <a href="editpics.php?album={ALBUM_ID}"  class="adm_menu">{EDIT_PICS}</a>
390
                        </td>
391
                </tr>
392
        </table>
393
 
394
EOT;
395
// HTML template for title row of the thumbnail view (album title + sort options)
396
$template_thumb_view_title_row = <<<EOT
397
 
398
                        <table width="100%" cellpadding="0" cellspacing="0">
399
                        <tr>
400
                                <td width="100%" class="statlink"><h2>{ALBUM_NAME}</h2></td>
401
                                <td><img src="images/spacer.gif" width="1" height="1" alt="" /></td>
402
                                <td class="sortorder_cell">
403
                                        <table height="100%" cellpadding="0" cellspacing="0">
404
                                        <tr>
405
                        <td class="sortorder_options">{TITLE}</td>
406
                        <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>
407
                        <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>
408
                                        </tr>
409
                                        <tr>
410
                                                <td class="sortorder_options">{NAME}</td>
411
                                                <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>
412
                                                <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>
413
                                        </tr>
414
                                        <tr>
415
                                                <td class="sortorder_options">{DATE}</td>
416
                                                <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>
417
                                                <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>
418
                                        </tr>
419
                                        </table>
420
                                </td>
421
                        </tr>
422
                        </table>
423
 
424
EOT;
425
 
426
 
427
// HTML template for title row of the fav thumbnail view (album title + download)
428
$template_fav_thumb_view_title_row = <<<EOT
429
 
430
                        <table width="100%" cellpadding="0" cellspacing="0">
431
                        <tr>
432
                                <td width="100%" class="statlink"><h2>{ALBUM_NAME}</h2></td>
433
                                <td><img src="images/spacer.gif" width="1" height="1" alt="" /></td>
434
                                <td class="sortorder_cell">
435
                                        <table height="100%" cellpadding="0" cellspacing="0">
436
                                                <tr>
437
                                                        <td class="sortorder_options"><span class="statlink"><a href="zipdownload.php">{DOWNLOAD_ZIP}</a></span>&nbsp;&nbsp;</td>
438
                                                </tr>
439
                                                </table>
440
                                </td>
441
                        </tr>
442
                        </table>
443
 
444
EOT;
445
 
446
 
447
// HTML template for thumbnails display
448
$template_thumbnail_view = <<<EOT
449
 
450
<!-- BEGIN header -->
451
        <tr>
452
<!-- END header -->
453
<!-- BEGIN thumb_cell -->
454
        <td valign="top" class="thumbnails" width ="{CELL_WIDTH}" align="center">
455
                <table width="100%" cellpadding="0" cellspacing="0">
456
                        <tr>
457
                                <td align="center">
458
                                        <a href="{LINK_TGT}">{THUMB}<br /></a>
459
                                        {CAPTION}
460
                                        {ADMIN_MENU}
461
                                </td>
462
                        </tr>
463
                </table>
464
        </td>
465
<!-- END thumb_cell -->
466
<!-- BEGIN empty_cell -->
467
                <td valign="top" class="thumbnails" align="center">&nbsp;</td>
468
<!-- END empty_cell -->
469
<!-- BEGIN row_separator -->
470
        </tr>
471
        <tr>
472
<!-- END row_separator -->
473
<!-- BEGIN footer -->
474
        </tr>
475
<!-- END footer -->
476
<!-- BEGIN tabs -->
477
        <tr>
478
                <td colspan="{THUMB_COLS}" style="padding: 0px;">
479
                        <table width="100%" cellspacing="0" cellpadding="0">
480
                                <tr>
481
                                        {TABS}
482
                                </tr>
483
                        </table>
484
                </td>
485
        </tr>
486
<!-- END tabs -->
487
<!-- BEGIN spacer -->
488
        <img src="images/spacer.gif" width="1" height="17" alt="" /><br />
489
<!-- END spacer -->
490
 
491
EOT;
492
// HTML template for the thumbnail view when there is no picture to show
493
$template_no_img_to_display = <<<EOT
494
        <tr>
495
                <td class="tableb" height="200" align="center">
496
                        <font size="3"><b>{TEXT}</b></font>
497
                </td>
498
        </tr>
499
<!-- BEGIN spacer -->
500
        <img src="images/spacer.gif" width="1" height="17" alt="" /><br />
501
<!-- END spacer -->
502
 
503
EOT;
504
// HTML template for the USER info box in the user list view
505
$template_user_list_info_box = <<<EOT
506
 
507
        <table cellspacing="1" cellpadding="0" border="0" width="100%" class="user_thumb_infobox">
508
                <tr>
509
                        <th><a href="profile.php?uid={USER_ID}">{USER_NAME}</a></th>
510
                </tr>
511
                <tr>
512
                        <td>{ALBUMS}</td>
513
                </tr>
514
                <tr>
515
                        <td>{PICTURES}</td>
516
                </tr>
517
        </table>
518
 
519
EOT;
520
// HTML template for the image navigation bar
521
$template_img_navbar = <<<EOT
522
 
523
        <tr>
524
                <td align="center" valign="middle" class="navmenu" width="48">
525
                        <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>
526
                </td>
527
                <td align="center" valign="middle" class="navmenu" width="48">
528
                        <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>
529
                </td>
530
                <td align="center" valign="middle" class="navmenu" width="48">
531
                        <a href="{SLIDESHOW_TGT}" title="{SLIDESHOW_TITLE}"><img src="images/slideshow.gif" width="16" height="16" border="0" align="absmiddle" alt="{SLIDESHOW_TITLE}" /></a>
532
                </td>
533
                <td align="center" valign="middle" class="navmenu" witdh="100%">
534
                        {PIC_POS}
535
                </td>
536
                <td align="center" valign="middle" class="navmenu" width="48">
537
                        <a href="{ECARD_TGT}" title="{ECARD_TITLE}"><img src="images/ecard.gif" width="16" height="16" border="0" align="absmiddle" alt="{ECARD_TITLE}" /></a>
538
                </td>
539
                <td align="center" valign="middle" class="navmenu" width="48">
540
                        <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>
541
                </td>
542
                <td align="center" valign="middle" class="navmenu" width="48">
543
                        <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>
544
                </td>
545
        </tr>
546
 
547
EOT;
548
// HTML template for intermediate image display
549
$template_display_picture = <<<EOT
550
        <tr>
551
                <td align="center" class="tableb" height="{CELL_HEIGHT}" style="white-space: nowrap; padding: 0px;">
552
                        <table cellspacing="2" cellpadding="0" class="imageborder">
553
                                <tr>
554
                                        <td align="center">
555
                                                {IMAGE}
556
                                                {ADMIN_MENU}
557
                                        </td>
558
                                </tr>
559
                        </table>
560
<!-- BEGIN img_desc -->
561
                        <table cellpadding="0" cellspacing="0" class="img_caption_table">
562
<!-- BEGIN title -->
563
                                <tr>
564
                                        <th>
565
                                                {TITLE}
566
                                        </th>
567
                                </tr>
568
<!-- END title -->
569
<!-- BEGIN caption -->
570
                                <tr>
571
                                        <td>
572
                                                {CAPTION}
573
                                        </td>
574
                                </tr>
575
<!-- END caption -->
576
                        </table>
577
<!-- END img_desc -->
578
                </td>
579
        </tr>
580
 
581
EOT;
582
// HTML template for the image rating box
583
$template_image_rating = <<<EOT
584
 
585
        <tr>
586
                <td colspan="6" class="tableh2_compact"><b>{TITLE}</b> {VOTES}</td>
587
        </tr>
588
        <tr>
589
                <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>
590
                <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>
591
                <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>
592
                <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>
593
                <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>
594
                <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>
595
        </tr>
596
 
597
EOT;
598
// HTML template for the display of comments
599
$template_image_comments = <<<EOT
600
 
601
        <tr>
602
                <td>
603
                        <table width="100%" cellpadding="0" cellspacing="0">
604
                                <td class="tableh2_compact" nowrap>
605
                                        <b>{MSG_AUTHOR}</b>
606
<!-- BEGIN ipinfo -->
607
                                                                                 ({HDR_IP} [{RAW_IP}])
608
<!-- END ipinfo -->
609
                                </td>
610
                                <td class="tableh2_compact" align="right" width="100%">
611
<!-- BEGIN buttons -->
612
                                        <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" alt="" /></a>
613
                                        <a href="delete.php?msg_id={MSG_ID}&what=comment"  onclick="return confirm('{CONFIRM_DELETE}');"><img src="images/delete.gif" border="0" align="absmiddle" alt="" /></a>
614
<!-- END buttons -->
615
                                </td>
616
                                <td class="tableh2_compact" align="right" nowrap>
617
                                        <span class="comment_date">[{MSG_DATE}]</span>
618
                                </td>
619
                        </table>
620
                </td>
621
        </tr>
622
        <tr>
623
                <td class="tableb_compact">
624
                        <div id="cbody{MSG_ID}" style="display:block">
625
                                {MSG_BODY}
626
                        </div>
627
                        <div id="cedit{MSG_ID}" style="display:none">
628
<!-- BEGIN edit_box_smilies -->
629
                                <table width="100%" cellpadding="0" cellspacing="0">
630
 
631
                                                <form name="f{MSG_ID}" method="POST" action="db_input.php">
632
                                                <input type="hidden" name="event" value="comment_update" />
633
                                                <input type="hidden" name="msg_id" value="{MSG_ID}" />
634
                                                <tr>
635
                                                <td>
636
                                                   <input type="text" name="msg_author" value="{MSG_AUTHOR}" class="textinput" size="25" />
637
                                                </td>
638
                                                </tr>
639
                                                <tr>
640
                                                <td width="80%">
641
                                                        <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>
642
                                                </td>
643
                                                <td class="tableb_compact">
644
                                                </td>
645
                                                <td>
646
                                                        <input type="submit" class="comment_button" name="submit" value="{OK}" />
647
                                                </td>
648
                                                </form>
649
                                        </tr>
650
                                        <tr>
651
                                                <td colspan="3"><img src="images/spacer.gif" width="1" height="2" alt="" /><br /></td>
652
                                        </tr>
653
                                </table>
654
                                {SMILIES}
655
<!-- END edit_box_smilies -->
656
<!-- BEGIN edit_box_no_smilies -->
657
                                <table width="100%" cellpadding="0" cellspacing="0">
658
                                        <tr>
659
                                                <form name="f{MSG_ID}" method="POST" action="db_input.php">
660
                                                <input type="hidden" name="event" value="comment_update" />
661
                                                <input type="hidden" name="msg_id" value="{MSG_ID}" />
662
                                                <td>
663
                                                <input type="text" name="msg_author" value="{MSG_AUTHOR}" class="textinput" size="25" />
664
                                                </td>
665
                                        </tr>
666
                                        <tr>
667
                                                <td width="100%">
668
                                                        <textarea cols="40" rows="2" class="textinput" name="msg_body" style="width: 100%;">{MSG_BODY_RAW}</textarea>
669
                                                </td>
670
                                                <td class="tableb_compact">
671
                                                </td>
672
                                                <td>
673
                                                        <input type="submit" class="comment_button" name="submit" value="{OK}" />
674
                                                </td>
675
                                                </form>
676
                                        </tr>
677
                                        <tr>
678
                                                <td colspan="3"><img src="images/spacer.gif" width="1" height="2" alt="" /><br /></td>
679
                                        </tr>
680
                                </table>
681
<!-- END edit_box_no_smilies -->
682
                        </div>
683
                </td>
684
        </tr>
685
 
686
EOT;
687
 
688
$template_add_your_comment = <<<EOT
689
 
690
        <tr>
691
                <td class="tableh2_compact"><b>{ADD_YOUR_COMMENT}</b></td>
692
        </tr>
693
        <tr>
694
                <form method="post" name="post" action="db_input.php">
695
                <td colspan="3">
696
                        <table width="100%" cellpadding="0" cellspacing="0">
697
                                <input type="hidden" name="event" value="comment" />
698
                                <input type="hidden" name="pid" value="{PIC_ID}" />
699
<!-- BEGIN user_name_input -->
700
                                <td class="tableb_compact">
701
                                        {NAME}
702
                                </td>
703
                                <td class="tableb_compact">
704
                                        <input type="text" class="textinput" name="msg_author" size="10" maxlength="20" value="{USER_NAME}">
705
                                </td>
706
<!-- END user_name_input -->
707
<!-- BEGIN input_box_smilies -->
708
                                <td class="tableb_compact">
709
                                {COMMENT} </td>
710
                                <td width="100%" class="tableb_compact">
711
                                <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 -->
712
<!-- BEGIN input_box_no_smilies -->
713
                                <input type="text" class="textinput" id="message" name="msg_body"  maxlength="{MAX_COM_LENGTH}" style="width: 100%;" />
714
<!-- END input_box_no_smilies -->
715
                                </td>
716
                                <td class="tableb_compact">
717
                                <input type="submit" class="comment_button" name="submit" value="{OK}" />
718
                                </td>
719
                        </table>
720
                </td>
721
                </form>
722
        </tr>
723
<!-- BEGIN smilies -->
724
        <tr>
725
                <td width="100%" class="tableb_compact">
726
                        {SMILIES}
727
                </td>
728
        </tr>
729
<!-- END smilies -->
730
 
731
EOT;
732
// HTML template used by the cpg_die function
733
$template_cpg_die = <<<EOT
734
 
735
        <tr>
736
                <td class="tableb" height="300" align="center">
737
                        <font size="3"><b>{MESSAGE}</b></font>
738
<!-- BEGIN file_line -->
739
                        <br />
740
                        <br />
741
                        {FILE_TXT}{FILE} - {LINE_TXT}{LINE}
742
<!-- END file_line -->
743
<!-- BEGIN output_buffer -->
744
                        <br />
745
                        <br />
746
                        <div align="left">
747
                                {OUTPUT_BUFFER}
748
                        </div>
749
<!-- END output_buffer -->
750
                        <br /><br />
751
                </td>
752
        </tr>
753
 
754
 
755
EOT;
756
// HTML template used by the msg_box function
757
$template_msg_box = <<<EOT
758
 
759
        <tr>
760
                <td class="tableb" height="150" align="center">
761
                        <font size="3"><b>{MESSAGE}</b></font>
762
                </td>
763
        </tr>
764
<!-- BEGIN button -->
765
                <tr>
766
                        <td align="center" class="tablef">
767
                                <table cellpadding="0" cellspacing="0">
768
                                        <tr>
769
                                                <td class="admin_menu">
770
                                                        <a href="{LINK}">{TEXT}</a>
771
                                                </td>
772
                                        </tr>
773
                                </table>
774
                        </td>
775
                </tr>
776
<!-- END button -->
777
 
778
EOT;
779
// HTML template for e-cards
780
$template_ecard = <<<EOT
781
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
782
<html dir="{LANG_DIR}">
783
<head>
784
<title>{TITLE}</title>
785
<meta http-equiv="content-type" content="text/html; charset={CHARSET}" />
786
</head>
787
<body bgcolor="#FFFFFF" text="#0F5475" link="#0F5475" vlink="#0F5475" alink="#0F5475">
788
<br />
789
<p align="center"><a href="{VIEW_ECARD_TGT}"><b>{VIEW_ECARD_LNK}</b></a></p>
790
<table border="0" cellspacing="0" cellpadding="1" align="center">
791
  <tr>
792
    <td bgcolor="#000000">
793
      <table border="0" cellspacing="0" cellpadding="10" bgcolor="#ffffff">
794
        <tr>
795
          <td valign="top">
796
           <img src="{PIC_URL}" border="1" alt="" /><br />
797
          </td>
798
          <td valign="top" width="200" height="250">
799
            <div align="right"><img src="{URL_PREFIX}images/stamp.gif" alt="" border="0" /></div>
800
            <br />
801
            <b><font face="arial" color="#000000" size="4">{GREETINGS}</font></b>
802
            <br />
803
            <br />
804
            <font face="arial" color="#000000" size="2">{MESSAGE}</font>
805
            <br />
806
            <br />
807
            <font face="arial" color="#000000" size="2">{SENDER_NAME}</font>
808
            (<a href="mailto:{SENDER_EMAIL}"><font face="arial" color="#000000" size="2">{SENDER_EMAIL}</font></a>)
809
          </td>
810
        </tr>
811
      </table>
812
    </td>
813
  </tr>
814
</table>
815
<p align="center"><a href="{VIEW_MORE_TGT}"><b>{VIEW_MORE_LNK}</b></a></p>
816
</body>
817
</html>
818
EOT;
819
// Template used for tabbed display
820
$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",
821
    'tab_header' => '',
822
    'tab_trailer' => '',
823
    'active_tab' => '<td><img src="images/spacer.gif" width="1" height="1" alt="" /></td>' . "\n" . '<td align="center" valign="middle" class="tableb_compact"><b>%d</b></td>',
824
    '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"
825
    );
826
 
827
function pageheader($section, $meta = '')
828
{
829
    global $CONFIG, $THEME_DIR;
830
    global $template_header, $lang_charset, $lang_text_dir;
831
 
832
    $charset = ($CONFIG['charset'] == 'language file') ? $lang_charset : $CONFIG['charset'];
833
 
834
    header('P3P: CP="CAO DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE"');
835
    header("Content-Type: text/html; charset=$charset");
836
    user_save_profile();
837
 
838
    $template_vars = array('{LANG_DIR}' => $lang_text_dir,
839
        '{TITLE}' => $CONFIG['gallery_name'] . ' - ' . $section,
840
        '{CHARSET}' => $charset,
841
        '{META}' => $meta,
842
        '{GAL_NAME}' => $CONFIG['gallery_name'],
843
        '{GAL_DESCRIPTION}' => $CONFIG['gallery_description'],
844
        '{MAIN_MENU1}' => theme_main_menu1(),
845
        '{MAIN_MENU2}' => theme_main_menu2(),
846
        '{ADMIN_MENU}' => theme_admin_mode_menu()
847
        );
848
 
849
    echo template_eval($template_header, $template_vars);
850
}
851
// Function for writing a pagefooter
852
function pagefooter()
853
{
854
    global $HTTP_GET_VARS, $HTTP_POST_VARS, $HTTP_SERVER_VARS;
855
    global $USER, $ALBUM_SET, $CONFIG, $time_start, $query_stats;
856
    global $template_footer;
857
 
858
    if ($CONFIG['debug_mode']==1 || ($CONFIG['debug_mode']==2 && GALLERY_ADMIN_MODE)) {
859
    cpg_debug_output();
860
    }
861
 
862
    echo $template_footer;
863
}
864
// Function to start a 'standard' table
865
function starttable($width = '-1', $title = '', $title_colspan = '1')
866
{
867
    global $CONFIG;
868
 
869
    if ($width == '-1') $width = $CONFIG['picture_table_width'];
870
    if ($width == '100%') $width = $CONFIG['main_table_width'];
871
    echo <<<EOT
872
 
873
<!-- Start standard table -->
874
<table align="center" width="$width" cellspacing="1" cellpadding="0" class="maintable">
875
 
876
EOT;
877
    if ($title) {
878
        echo <<<EOT
879
        <tr>
880
                <td class="tableh1" colspan="$title_colspan"><h2>$title</h2></td>
881
        </tr>
882
 
883
EOT;
884
    }
885
}
886
 
887
function endtable()
888
{
889
    echo <<<EOT
890
</table>
891
<!-- End standard table -->
892
 
893
EOT;
894
}
895
 
896
function theme_main_menu1()
897
{
898
    global $CONFIG, $album, $actual_cat, $cat, $REFERER, $HTTP_SERVER_VARS;
899
    global $lang_main_menu, $template_main_menu1;
900
 
901
    static $main_menu = '';
902
 
903
    if ($main_menu != '') return $main_menu;
904
 
905
    $album_l = isset($album) ? "?album=$album" : '';
906
    $cat_l = (isset($actual_cat))? "?cat=$actual_cat" : (isset($cat) ? "?cat=$cat" : '');
907
    $my_gallery_id = FIRST_USER_CAT + USER_ID;
908
 
909
    $template_main_menu = &$template_main_menu1;
910
 
911
    if (USER_ID) {
912
        template_extract_block($template_main_menu, 'login');
913
    } else {
914
        template_extract_block($template_main_menu, 'logout');
915
        template_extract_block($template_main_menu, 'my_profile');
916
    }
917
 
918
    if (GALLERY_ADMIN_MODE || USER_ADMIN_MODE) {
919
        template_extract_block($template_main_menu, 'enter_admin_mode');
920
    } elseif (USER_CAN_CREATE_ALBUMS || USER_IS_ADMIN) {
921
        template_extract_block($template_main_menu, 'leave_admin_mode');
922
    }
923
 
924
    if (!USER_CAN_CREATE_ALBUMS && !USER_IS_ADMIN) {
925
        template_extract_block($template_main_menu, 'enter_admin_mode');
926
        template_extract_block($template_main_menu, 'leave_admin_mode');
927
    }
928
 
929
    if (!USER_CAN_CREATE_ALBUMS) {
930
        template_extract_block($template_main_menu, 'my_gallery');
931
    }
932
 
933
    if (USER_CAN_CREATE_ALBUMS) {
934
        template_extract_block($template_main_menu, 'my_profile');
935
    }
936
 
937
    if (!USER_CAN_UPLOAD_PICTURES) {
938
        template_extract_block($template_main_menu, 'upload_pic');
939
    }
940
 
941
    if (USER_ID || !$CONFIG['allow_user_registration']) {
942
        template_extract_block($template_main_menu, 'register');
943
    }
944
 
945
    if (!USER_ID || !$CONFIG['allow_memberlist']) {
946
        template_extract_block($template_main_menu, 'allow_memberlist');
947
    }
948
 
949
    if (!$CONFIG['display_faq']) {
950
        template_extract_block($template_main_menu, 'faq');
951
    }
952
 
953
 
954
    $param = array('{MY_GAL_TGT}' => "index.php?cat=$my_gallery_id",
955
        '{MY_GAL_TITLE}' => $lang_main_menu['my_gal_title'],
956
        '{MY_GAL_LNK}' => $lang_main_menu['my_gal_lnk'],
957
        '{MEMBERLIST_TGT}' => "usermgr.php",
958
        '{MEMBERLIST_TITLE}' => $lang_main_menu['memberlist_title'],
959
        '{MEMBERLIST_LNK}' => $lang_main_menu['memberlist_lnk'],
960
        '{MY_PROF_TGT}' => "profile.php?op=edit_profile",
961
        '{MY_PROF_LNK}' => $lang_main_menu['my_prof_lnk'],
962
        '{FAQ_TGT}' => "faq.php",
963
        '{FAQ_TITLE}' => $lang_main_menu['faq_title'],
964
        '{FAQ_LNK}' => $lang_main_menu['faq_lnk'],
965
        '{ADM_MODE_TGT}' => "admin.php?admin_mode=1&referer=$REFERER",
966
        '{ADM_MODE_TITLE}' => $lang_main_menu['adm_mode_title'],
967
        '{ADM_MODE_LNK}' => $lang_main_menu['adm_mode_lnk'],
968
        '{USR_MODE_TGT}' => "admin.php?admin_mode=0&referer=$REFERER",
969
        '{USR_MODE_TITLE}' => $lang_main_menu['usr_mode_title'],
970
        '{USR_MODE_LNK}' => $lang_main_menu['usr_mode_lnk'],
971
        '{UPL_PIC_TGT}' => "upload.php",
972
        '{UPL_PIC_TITLE}' => $lang_main_menu['upload_pic_title'],
973
        '{UPL_PIC_LNK}' => $lang_main_menu['upload_pic_lnk'],
974
        '{REGISTER_TGT}' => "register.php",
975
        '{REGISTER_TITLE}' => $lang_main_menu['register_title'],
976
        '{REGISTER_LNK}' => $lang_main_menu['register_lnk'],
977
        '{LOGIN_TGT}' => "login.php?referer=$REFERER",
978
        '{LOGIN_LNK}' => $lang_main_menu['login_lnk'],
979
        '{LOGOUT_TGT}' => "logout.php?referer=$REFERER",
980
        '{LOGOUT_LNK}' => $lang_main_menu['logout_lnk'] . " [" . USER_NAME . "]",
981
        );
982
 
983
    $main_menu = template_eval($template_main_menu, $param);
984
    return $main_menu;
985
}
986
 
987
function theme_main_menu2()
988
{
989
    global $CONFIG, $album, $actual_cat, $cat, $REFERER, $HTTP_SERVER_VARS;
990
    global $lang_main_menu, $template_main_menu2;
991
 
992
    static $main_menu = '';
993
 
994
    if ($main_menu != '') return $main_menu;
995
 
996
    $cat_l = isset($actual_cat) ? "?cat=$actual_cat" : (isset($cat) ? "?cat=$cat" : '');
997
    $cat_l2 = isset($cat) ? "&cat=$cat" : '';
998
 
999
    $template_main_menu = &$template_main_menu2;
1000
 
1001
    $param = array('{ALB_LIST_TGT}' => "index.php$cat_l",
1002
        '{ALB_LIST_TITLE}' => $lang_main_menu['alb_list_title'],
1003
        '{ALB_LIST_LNK}' => $lang_main_menu['alb_list_lnk'],
1004
        '{LASTUP_TGT}' => "thumbnails.php?album=lastup$cat_l2",
1005
        '{LASTUP_LNK}' => $lang_main_menu['lastup_lnk'],
1006
        '{LASTCOM_TGT}' => "thumbnails.php?album=lastcom$cat_l2",
1007
        '{LASTCOM_LNK}' => $lang_main_menu['lastcom_lnk'],
1008
        '{TOPN_TGT}' => "thumbnails.php?album=topn$cat_l2",
1009
        '{TOPN_LNK}' => $lang_main_menu['topn_lnk'],
1010
        '{TOPRATED_TGT}' => "thumbnails.php?album=toprated$cat_l2",
1011
        '{TOPRATED_LNK}' => $lang_main_menu['toprated_lnk'],
1012
        '{FAV_TGT}' => "thumbnails.php?album=favpics",
1013
        '{FAV_LNK}' => $lang_main_menu['fav_lnk'],
1014
        '{SEARCH_TGT}' => "search.php",
1015
        '{SEARCH_LNK}' => $lang_main_menu['search_lnk'],
1016
        );
1017
 
1018
    $main_menu = template_eval($template_main_menu, $param);
1019
    return $main_menu;
1020
}
1021
 
1022
function theme_admin_mode_menu()
1023
{
1024
    global $cat;
1025
    global $lang_gallery_admin_menu, $lang_user_admin_menu;
1026
    global $template_gallery_admin_menu, $template_user_admin_menu;
1027
 
1028
    $cat_l = isset($cat) ? "?cat=$cat" : '';
1029
 
1030
    if (GALLERY_ADMIN_MODE) {
1031
        $param = array('{CATL}' => $cat_l,
1032
            '{UPL_APP_LNK}' => $lang_gallery_admin_menu['upl_app_lnk'],
1033
            '{CONFIG_LNK}' => $lang_gallery_admin_menu['config_lnk'],
1034
            '{ALBUMS_LNK}' => $lang_gallery_admin_menu['albums_lnk'],
1035
            '{CATEGORIES_LNK}' => $lang_gallery_admin_menu['categories_lnk'],
1036
            '{USERS_LNK}' => $lang_gallery_admin_menu['users_lnk'],
1037
            '{GROUPS_LNK}' => $lang_gallery_admin_menu['groups_lnk'],
1038
            '{COMMENTS_LNK}' => $lang_gallery_admin_menu['comments_lnk'],
1039
            '{SEARCHNEW_LNK}' => $lang_gallery_admin_menu['searchnew_lnk'],
1040
            '{MY_PROF_LNK}' => $lang_user_admin_menu['my_prof_lnk'],
1041
            '{UTIL_LNK}' => $lang_gallery_admin_menu['util_lnk'],
1042
            '{BAN_LNK}' => $lang_gallery_admin_menu['ban_lnk'],
1043
            '{DB_ECARD_LNK}' => $lang_gallery_admin_menu['db_ecard_lnk'],
1044
            );
1045
 
1046
        $html = template_eval($template_gallery_admin_menu, $param);
1047
    } elseif (USER_ADMIN_MODE) {
1048
        $param = array('{ALBMGR_LNK}' => $lang_user_admin_menu['albmgr_lnk'],
1049
            '{MODIFYALB_LNK}' => $lang_user_admin_menu['modifyalb_lnk'],
1050
            '{MY_PROF_LNK}' => $lang_user_admin_menu['my_prof_lnk']
1051
            );
1052
 
1053
        $html = template_eval($template_user_admin_menu, $param);
1054
    } else {
1055
        $html = '';
1056
    }
1057
 
1058
    return $html;
1059
}
1060
 
1061
function theme_display_cat_list($breadcrumb, &$cat_data, $statistics)
1062
{
1063
    global $template_cat_list, $lang_cat_list;
1064
 
1065
    starttable('100%');
1066
    if (count($cat_data) > 0) {
1067
        $template = template_extract_block($template_cat_list, 'header');
1068
        $params = array('{CATEGORY}' => $lang_cat_list['category'],
1069
            '{ALBUMS}' => $lang_cat_list['albums'],
1070
            '{PICTURES}' => $lang_cat_list['pictures'],
1071
            );
1072
        echo template_eval($template, $params);
1073
    }
1074
 
1075
    $template_noabl = template_extract_block($template_cat_list, 'catrow_noalb');
1076
    $template = template_extract_block($template_cat_list, 'catrow');
1077
    foreach($cat_data as $category) {
1078
        if (count($category) == 3) {
1079
            $params = array('{CAT_TITLE}' => $category[0],
1080
                '{CAT_THUMB}' => $category['cat_thumb'],
1081
                '{CAT_DESC}' => $category[1]
1082
                );
1083
            echo template_eval($template_noabl, $params);
1084
        } else {
1085
            $params = array('{CAT_TITLE}' => $category[0],
1086
                '{CAT_THUMB}' => $category['cat_thumb'],
1087
                '{CAT_DESC}' => $category[1],
1088
                '{CAT_ALBUMS}' => $category['cat_albums'],
1089
                '{ALB_COUNT}' => $category[2],
1090
                '{PIC_COUNT}' => $category[3],
1091
                );
1092
            echo template_eval($template, $params);
1093
        }
1094
    }
1095
 
1096
    if ($statistics && count($cat_data) > 0) {
1097
        $template = template_extract_block($template_cat_list, 'footer');
1098
        $params = array('{STATISTICS}' => $statistics);
1099
        echo template_eval($template, $params);
1100
    }
1101
    endtable();
1102
 
1103
    if (count($cat_data) > 0)
1104
        echo template_extract_block($template_cat_list, 'spacer');
1105
}
1106
 
1107
function theme_display_breadcrumb($breadcrumb, &$cat_data)
1108
{
1109
    /**
1110
     * ** added breadcrumb as a seperate element
1111
     */
1112
    global $template_breadcrumb, $lang_breadcrumb;
1113
 
1114
    starttable('100%');
1115
    if ($breadcrumb) {
1116
        $template = template_extract_block($template_breadcrumb, 'breadcrumb');
1117
        $params = array('{BREADCRUMB}' => $breadcrumb
1118
            );
1119
        echo template_eval($template, $params);
1120
    }
1121
    endtable();
1122
}
1123
 
1124
function theme_display_album_list(&$alb_list, $nbAlb, $cat, $page, $total_pages)
1125
{
1126
    global $CONFIG, $STATS_IN_ALB_LIST, $statistics, $template_tab_display, $template_album_list, $lang_album_list;
1127
 
1128
    $theme_alb_list_tab_tmpl = $template_tab_display;
1129
 
1130
    $theme_alb_list_tab_tmpl['left_text'] = strtr($theme_alb_list_tab_tmpl['left_text'], array('{LEFT_TEXT}' => $lang_album_list['album_on_page']));
1131
    $theme_alb_list_tab_tmpl['inactive_tab'] = strtr($theme_alb_list_tab_tmpl['inactive_tab'], array('{LINK}' => 'index.php?cat=' . $cat . '&page=%d'));
1132
 
1133
    $tabs = create_tabs($nbAlb, $page, $total_pages, $theme_alb_list_tab_tmpl);
1134
 
1135
    $album_cell = template_extract_block($template_album_list, 'album_cell');
1136
    $empty_cell = template_extract_block($template_album_list, 'empty_cell');
1137
    $tabs_row = template_extract_block($template_album_list, 'tabs');
1138
    $stat_row = template_extract_block($template_album_list, 'stat_row');
1139
    $spacer = template_extract_block($template_album_list, 'spacer');
1140
    $header = template_extract_block($template_album_list, 'header');
1141
    $footer = template_extract_block($template_album_list, 'footer');
1142
    $rows_separator = template_extract_block($template_album_list, 'row_separator');
1143
 
1144
    $count = 0;
1145
 
1146
    $columns = $CONFIG['album_list_cols'];
1147
    $column_width = ceil(100 / $columns);
1148
    $thumb_cell_width = $CONFIG['alb_list_thumb_size'] + 2;
1149
 
1150
    starttable('100%');
1151
 
1152
    if ($STATS_IN_ALB_LIST) {
1153
        $params = array('{STATISTICS}' => $statistics,
1154
            '{COLUMNS}' => $columns,
1155
            );
1156
        echo template_eval($stat_row, $params);
1157
    }
1158
 
1159
    echo $header;
1160
    if (is_array($alb_list)) {
1161
        foreach($alb_list as $album) {
1162
                $count ++;
1163
 
1164
                $params = array('{COL_WIDTH}' => $column_width,
1165
                '{ALBUM_TITLE}' => $album['album_title'],
1166
                '{THUMB_CELL_WIDTH}' => $thumb_cell_width,
1167
                '{ALB_LINK_TGT}' => "thumbnails.php?album={$album['aid']}",
1168
                '{ALB_LINK_PIC}' => $album['thumb_pic'],
1169
                '{ADMIN_MENU}' => $album['album_adm_menu'],
1170
                '{ALB_DESC}' => $album['album_desc'],
1171
                '{ALB_INFOS}' => $album['album_info'],
1172
                );
1173
 
1174
                echo template_eval($album_cell, $params);
1175
 
1176
                if ($count % $columns == 0 && $count < count($alb_list)) {
1177
                echo $rows_separator;
1178
                }
1179
        }
1180
    }
1181
 
1182
    $params = array('{COL_WIDTH}' => $column_width);
1183
    $empty_cell = template_eval($empty_cell, $params);
1184
 
1185
    while ($count++ % $columns != 0) {
1186
        echo $empty_cell;
1187
    }
1188
 
1189
    echo $footer;
1190
    // Tab display
1191
    $params = array('{COLUMNS}' => $columns,
1192
        '{TABS}' => $tabs,
1193
        );
1194
    echo template_eval($tabs_row, $params);
1195
 
1196
    endtable();
1197
 
1198
    echo $spacer;
1199
}
1200
// Function to display first level Albums of a category
1201
function theme_display_album_list_cat(&$alb_list, $nbAlb, $cat, $page, $total_pages)
1202
{
1203
    global $CONFIG, $STATS_IN_ALB_LIST, $statistics, $template_tab_display, $template_album_list_cat, $lang_album_list;
1204
    if (!$CONFIG['first_level']) {
1205
        return;
1206
    }
1207
    // $theme_alb_list_tab_tmpl = $template_tab_display;
1208
    // $theme_alb_list_tab_tmpl['left_text'] = strtr($theme_alb_list_tab_tmpl['left_text'],array('{LEFT_TEXT}' => $lang_album_list['album_on_page']));
1209
    // $theme_alb_list_tab_tmpl['inactive_tab'] = strtr($theme_alb_list_tab_tmpl['inactive_tab'],array('{LINK}' => 'index.php?cat='.$cat.'&page=%d'));
1210
    // $tabs = create_tabs($nbAlb, $page, $total_pages, $theme_alb_list_tab_tmpl);
1211
    // echo $template_album_list_cat;
1212
    $template_album_list_cat1 = $template_album_list_cat;
1213
    $album_cell = template_extract_block($template_album_list_cat1, 'c_album_cell');
1214
    $empty_cell = template_extract_block($template_album_list_cat1, 'c_empty_cell');
1215
    $tabs_row = template_extract_block($template_album_list_cat1, 'c_tabs');
1216
    $stat_row = template_extract_block($template_album_list_cat1, 'c_stat_row');
1217
    $spacer = template_extract_block($template_album_list_cat1, 'c_spacer');
1218
    $header = template_extract_block($template_album_list_cat1, 'c_header');
1219
    $footer = template_extract_block($template_album_list_cat1, 'c_footer');
1220
    $rows_separator = template_extract_block($template_album_list_cat1, 'c_row_separator');
1221
 
1222
    $count = 0;
1223
 
1224
    $columns = $CONFIG['album_list_cols'];
1225
    $column_width = ceil(100 / $columns);
1226
    $thumb_cell_width = $CONFIG['alb_list_thumb_size'] + 2;
1227
 
1228
    starttable('100%');
1229
 
1230
    if ($STATS_IN_ALB_LIST) {
1231
        $params = array('{STATISTICS}' => $statistics,
1232
            '{COLUMNS}' => $columns,
1233
            );
1234
        echo template_eval($stat_row, $params);
1235
    }
1236
 
1237
    echo $header;
1238
    if (is_array($alb_list)) {
1239
        foreach($alb_list as $album) {
1240
                $count ++;
1241
 
1242
                $params = array('{COL_WIDTH}' => $column_width,
1243
                '{ALBUM_TITLE}' => $album['album_title'],
1244
                '{THUMB_CELL_WIDTH}' => $thumb_cell_width,
1245
                '{ALB_LINK_TGT}' => "thumbnails.php?album={$album['aid']}",
1246
                '{ALB_LINK_PIC}' => $album['thumb_pic'],
1247
                '{ADMIN_MENU}' => $album['album_adm_menu'],
1248
                '{ALB_DESC}' => $album['album_desc'],
1249
                '{ALB_INFOS}' => $album['album_info'],
1250
                );
1251
 
1252
                echo template_eval($album_cell, $params);
1253
 
1254
                if ($count % $columns == 0 && $count < count($alb_list)) {
1255
                echo $rows_separator;
1256
                }
1257
        }
1258
    }
1259
    $params = array('{COL_WIDTH}' => $column_width);
1260
    $empty_cell = template_eval($empty_cell, $params);
1261
 
1262
    while ($count++ % $columns != 0) {
1263
        echo $empty_cell;
1264
    }
1265
 
1266
    echo $footer;
1267
    // Tab display
1268
    $params = array('{COLUMNS}' => $columns,
1269
        '{TABS}' => $tabs,
1270
        );
1271
    echo template_eval($tabs_row, $params);
1272
 
1273
    endtable();
1274
 
1275
    echo $spacer;
1276
}
1277
 
1278
function theme_display_thumbnails(&$thumb_list, $nbThumb, $album_name, $aid, $cat, $page, $total_pages, $sort_options, $display_tabs, $mode = 'thumb')
1279
{
1280
    global $CONFIG;
1281
    global $template_thumb_view_title_row, $template_fav_thumb_view_title_row, $lang_thumb_view, $template_tab_display, $template_thumbnail_view;
1282
 
1283
    static $header = '';
1284
    static $thumb_cell = '';
1285
    static $empty_cell = '';
1286
    static $row_separator = '';
1287
    static $footer = '';
1288
    static $tabs = '';
1289
    static $spacer = '';
1290
 
1291
    if ($header == '') {
1292
        $thumb_cell = template_extract_block($template_thumbnail_view, 'thumb_cell');
1293
        $tabs = template_extract_block($template_thumbnail_view, 'tabs');
1294
        $header = template_extract_block($template_thumbnail_view, 'header');
1295
        $empty_cell = template_extract_block($template_thumbnail_view, 'empty_cell');
1296
        $row_separator = template_extract_block($template_thumbnail_view, 'row_separator');
1297
        $footer = template_extract_block($template_thumbnail_view, 'footer');
1298
        $spacer = template_extract_block($template_thumbnail_view, 'spacer');
1299
    }
1300
 
1301
    $cat_link = is_numeric($aid) ? '' : '&cat=' . $cat;
1302
 
1303
    $theme_thumb_tab_tmpl = $template_tab_display;
1304
 
1305
    if ($mode == 'thumb') {
1306
        $theme_thumb_tab_tmpl['left_text'] = strtr($theme_thumb_tab_tmpl['left_text'], array('{LEFT_TEXT}' => $lang_thumb_view['pic_on_page']));
1307
        $theme_thumb_tab_tmpl['inactive_tab'] = strtr($theme_thumb_tab_tmpl['inactive_tab'], array('{LINK}' => 'thumbnails.php?album=' . $aid . $cat_link . '&page=%d'));
1308
    } else {
1309
        $theme_thumb_tab_tmpl['left_text'] = strtr($theme_thumb_tab_tmpl['left_text'], array('{LEFT_TEXT}' => $lang_thumb_view['user_on_page']));
1310
        $theme_thumb_tab_tmpl['inactive_tab'] = strtr($theme_thumb_tab_tmpl['inactive_tab'], array('{LINK}' => 'index.php?cat=' . $cat . '&page=%d'));
1311
    }
1312
 
1313
    $thumbcols = $CONFIG['thumbcols'];
1314
    $cell_width = ceil(100 / $CONFIG['thumbcols']) . '%';
1315
 
1316
    $tabs_html = $display_tabs ? create_tabs($nbThumb, $page, $total_pages, $theme_thumb_tab_tmpl) : '';
1317
    // The sort order options are not available for meta albums
1318
    if ($sort_options) {
1319
        $param = array('{ALBUM_NAME}' => $album_name,
1320
            '{AID}' => $aid,
1321
            '{PAGE}' => $page,
1322
            '{NAME}' => $lang_thumb_view['name'],
1323
            '{TITLE}' => $lang_thumb_view['title'],
1324
            '{DATE}' => $lang_thumb_view['date'],
1325
            '{SORT_TA}' => $lang_thumb_view['sort_ta'],
1326
            '{SORT_TD}' => $lang_thumb_view['sort_td'],
1327
            '{SORT_NA}' => $lang_thumb_view['sort_na'],
1328
            '{SORT_ND}' => $lang_thumb_view['sort_nd'],
1329
            '{SORT_DA}' => $lang_thumb_view['sort_da'],
1330
            '{SORT_DD}' => $lang_thumb_view['sort_dd'],
1331
            );
1332
        $title = template_eval($template_thumb_view_title_row, $param);
1333
    } else if ($aid == 'favpics' && $CONFIG['enable_zipdownload'] == 1) { //Lots of stuff can be added here later
1334
       $param = array('{ALBUM_NAME}' => $album_name,
1335
                             '{DOWNLOAD_ZIP}'=>$lang_thumb_view['download_zip']
1336
                               );
1337
       $title = template_eval($template_fav_thumb_view_title_row, $param);
1338
    } else {
1339
        $title = $album_name;
1340
    }
1341
 
1342
    if ($mode == 'thumb') {
1343
        starttable('100%', $title, $thumbcols);
1344
    } else {
1345
        starttable('100%');
1346
    }
1347
 
1348
    echo $header;
1349
 
1350
    $i = 0;
1351
    foreach($thumb_list as $thumb) {
1352
        $i++;
1353
        if ($mode == 'thumb') {
1354
            if ($aid == 'lastalb') {
1355
                $params = array('{CELL_WIDTH}' => $cell_width,
1356
                    '{LINK_TGT}' => "thumbnails.php?album={$thumb['aid']}",
1357
                    '{THUMB}' => $thumb['image'],
1358
                    '{CAPTION}' => $thumb['caption'],
1359
                    '{ADMIN_MENU}' => $thumb['admin_menu']
1360
                    );
1361
            } else {
1362
                $params = array('{CELL_WIDTH}' => $cell_width,
1363
                    '{LINK_TGT}' => "displayimage.php?album=$aid$cat_link&pos={$thumb['pos']}",
1364
                    '{THUMB}' => $thumb['image'],
1365
                    '{CAPTION}' => $thumb['caption'],
1366
                    '{ADMIN_MENU}' => $thumb['admin_menu']
1367
                    );
1368
            }
1369
        } else {
1370
            $params = array('{CELL_WIDTH}' => $cell_width,
1371
                '{LINK_TGT}' => "index.php?cat={$thumb['cat']}",
1372
                '{THUMB}' => $thumb['image'],
1373
                '{CAPTION}' => $thumb['caption'],
1374
                '{ADMIN_MENU}' => ''
1375
                );
1376
        }
1377
        echo template_eval($thumb_cell, $params);
1378
 
1379
        if ((($i % $thumbcols) == 0) && ($i < count($thumb_list))) {
1380
            echo $row_separator;
1381
        }
1382
    }
1383
    for (;($i % $thumbcols); $i++) {
1384
        echo $empty_cell;
1385
    }
1386
    echo $footer;
1387
 
1388
    if ($display_tabs) {
1389
        $params = array('{THUMB_COLS}' => $thumbcols,
1390
            '{TABS}' => $tabs_html
1391
            );
1392
        echo template_eval($tabs, $params);
1393
    }
1394
 
1395
    endtable();
1396
    echo $spacer;
1397
}
1398
// Added to display flim_strip
1399
function theme_display_film_strip(&$thumb_list, $nbThumb, $album_name, $aid, $cat, $pos, $sort_options, $mode = 'thumb')
1400
{
1401
    global $CONFIG;
1402
    global $template_film_strip, $lang_film_strip;
1403
 
1404
    static $template = '';
1405
    static $thumb_cell = '';
1406
    static $empty_cell = '';
1407
    static $spacer = '';
1408
 
1409
    if ((!$template)) {
1410
        $template = $template_film_strip;
1411
        $thumb_cell = template_extract_block($template, 'thumb_cell');
1412
        $empty_cell = template_extract_block($template, 'empty_cell');
1413
        // $spacer = template_extract_block($template, 'spacer');
1414
    }
1415
 
1416
    if ($header == '') {
1417
    }
1418
 
1419
    $cat_link = is_numeric($aid) ? '' : '&cat=' . $cat;
1420
 
1421
    $theme_thumb_tab_tmpl = $template_tab_display;
1422
 
1423
    if ($mode == 'thumb') {
1424
        $theme_thumb_tab_tmpl['left_text'] = strtr($theme_thumb_tab_tmpl['left_text'], array('{LEFT_TEXT}' => $lang_thumb_view['pic_on_page']));
1425
        $theme_thumb_tab_tmpl['inactive_tab'] = strtr($theme_thumb_tab_tmpl['inactive_tab'], array('{LINK}' => 'thumbnails.php?album=' . $aid . $cat_link . '&page=%d'));
1426
    } else {
1427
        $theme_thumb_tab_tmpl['left_text'] = strtr($theme_thumb_tab_tmpl['left_text'], array('{LEFT_TEXT}' => $lang_thumb_view['user_on_page']));
1428
        $theme_thumb_tab_tmpl['inactive_tab'] = strtr($theme_thumb_tab_tmpl['inactive_tab'], array('{LINK}' => 'index.php?cat=' . $cat . '&page=%d'));
1429
    }
1430
 
1431
    $thumbcols = $CONFIG['thumbcols'];
1432
    $cell_width = ceil(100 / $CONFIG['max_film_strip_items']) . '%';
1433
 
1434
    $i = 0;
1435
    $thumb_strip = '';
1436
    foreach($thumb_list as $thumb) {
1437
        $i++;
1438
        if ($mode == 'thumb') {
1439
            $params = array('{CELL_WIDTH}' => $cell_width,
1440
                '{LINK_TGT}' => "displayimage.php?album=$aid$cat_link&pos={$thumb['pos']}",
1441
                '{THUMB}' => $thumb['image'],
1442
                '{CAPTION}' => '',
1443
                '{ADMIN_MENU}' => ''
1444
                );
1445
        } else {
1446
            $params = array('{CELL_WIDTH}' => $cell_width,
1447
                '{LINK_TGT}' => "index.php?cat={$thumb['cat']}",
1448
                '{THUMB}' => $thumb['image'],
1449
                '{CAPTION}' => '',
1450
                '{ADMIN_MENU}' => ''
1451
                );
1452
        }
1453
        $thumb_strip .= template_eval($thumb_cell, $params);
1454
        // if ((($i % $thumbcols) == 0) && ($i < count($thumb_list))) {
1455
        // echo $row_separator;
1456
        // }
1457
    }
1458
    // for (;($i % $thumbcols); $i++){
1459
    // echo $empty_cell;
1460
    // }
1461
    $params = array('{THUMB_STRIP}' => $thumb_strip,
1462
        '{COLS}' => $i);
1463
 
1464
    ob_start();
1465
    starttable('');
1466
    echo template_eval($template, $params);
1467
    endtable();
1468
    $film_strip = ob_get_contents();
1469
    ob_end_clean();
1470
 
1471
    return $film_strip;
1472
}
1473
 
1474
function theme_no_img_to_display($album_name)
1475
{
1476
    global $lang_errors, $template_no_img_to_display;
1477
 
1478
    static $template = '';
1479
    static $spacer;
1480
 
1481
    if ((!$template)) {
1482
        $template = $template_no_img_to_display;
1483
        $spacer = template_extract_block($template, 'spacer');
1484
    }
1485
 
1486
    $params = array('{TEXT}' => $lang_errors['no_img_to_display']);
1487
    starttable('100%', $album_name);
1488
    echo template_eval($template, $params);
1489
    endtable();
1490
}
1491
 
1492
function theme_display_image($nav_menu, $picture, $votes, $pic_info, $comments, $film_strip)
1493
{
1494
    global $HTTP_COOKIE_VARS, $CONFIG;
1495
 
1496
    starttable();
1497
    echo $nav_menu;
1498
    endtable();
1499
 
1500
    starttable();
1501
    echo $picture;
1502
    endtable();
1503
    if ($CONFIG['display_film_strip'] == 1) {
1504
        echo $film_strip;
1505
    }
1506
 
1507
    starttable();
1508
    echo $votes;
1509
    endtable();
1510
 
1511
    $picinfo = isset($HTTP_COOKIE_VARS['picinfo']) ? $HTTP_COOKIE_VARS['picinfo'] : ($CONFIG['display_pic_info'] ? 'block' : 'none');
1512
    echo "<div id=\"picinfo\" style=\"display: $picinfo;\">\n";
1513
    starttable();
1514
    echo $pic_info;
1515
    endtable();
1516
    echo "</div>\n";
1517
 
1518
    starttable();
1519
    echo $comments;
1520
    endtable();
1521
}
1522
 
1523
function theme_html_picinfo(&$info)
1524
{
1525
    global $lang_picinfo;
1526
 
1527
    $html = '';
1528
 
1529
    $html .= "        <tr><td colspan=\"2\" class=\"tableh2_compact\"><b>{$lang_picinfo['title']}</b></td></tr>\n";
1530
    $template = "        <tr><td class=\"tableb_compact\" valign=\"top\" nowrap>%s:</td><td class=\"tableb_compact\">%s</td></tr>\n";
1531
    foreach ($info as $key => $value) $html .= sprintf($template, $key, $value);
1532
 
1533
    return $html;
1534
}
1535
 
1536
?>