2 <!-- Photo album options and page numbers -->
3 <div class="album_panel">
5 <div class="search_bar">
6 <form action="<?php echo AT_PA_BASENAME.'search.php'; ?>" id="pa_search_form" name="pa_search_form" method="post">
7 <input type="text" class="s" name="pa_search" id="pa_search" title="<?php echo _AT('search');?>" />
8 <input type="image" class="s_img" src="<?php echo AT_PA_BASENAME; ?>images/search_icon.png" alt="<?php echo _AT('search');?>" />
11 <?php if($this->num_rows > AT_PA_ALBUMS_PER_PAGE): ?>
13 <div class="paginator">
14 <?php print_paginator($this->page, $this->num_rows, 'type='.$this->type, AT_PA_ALBUMS_PER_PAGE, AT_PA_PAGE_WINDOW); ?>
19 <!-- loop through this -->
20 <?php if(!empty($this->albums)): ?>
21 <?php foreach($this->albums as $index=>$row):
22 $pa = new PhotoAlbum($index);
25 <!-- TODO: If photo is not presense, print another image? -->
28 $photo_info = $pa->getPhotoInfo($row['photo_id']);
29 if (!empty($photo_info)):
31 <a href="<?php echo AT_PA_BASENAME.'albums.php?id='.$row['id'];?>"><img src="<?php echo AT_PA_BASENAME.'get_photo.php?aid='.$row['id'].SEP.'pid='.$row['photo_id'].SEP.'ph='.getPhotoFilePath($photo_info['id'], '', $photo_info['created_date']);?>" title="<?php echo AT_print($photo_info['description'], 'input.text'); ?>" alt="<?php echo AT_print($row['name'], 'input.text'); ?>" /></a>
33 <a href="<?php echo AT_PA_BASENAME.'albums.php?id='.$row['id'];?>"><img src="" class="no-image" title="<?php echo _AT('pa_no_image'); ?>" alt="<?php echo _AT('pa_no_image'); ?>" /></a>
34 <?php endif; //image ?>
37 <h4><a href="<?php echo AT_PA_BASENAME.'albums.php?id='.$row['id'];?>"><?php echo AT_print($row['name'], 'photo_albums.name'); ?></a></h4>
38 <p><?php echo AT_print($row['description'], 'photo_albums.description'); ?></p>
39 <p><?php echo _AT('location').': '.AT_print($row['location'], 'photo_albums.location'); ?></p>
40 <!-- If this is shared album, display the author -->
41 <?php if (isset($this->isSharedAlbum)): ?>
42 <p><?php echo _AT('created_by').': '.AT_print(get_display_name($row['member_id']), 'members.full_name'); ?></p>
44 <p><?php echo _AT('last_updated', AT_date(_AT('forum_date_format'), $row['last_updated'], AT_DATE_MYSQL_DATETIME));?></p>
45 <p><?php echo _AT('created').': '.AT_date(_AT('forum_date_format'), $row['created_date'], AT_DATE_MYSQL_DATETIME); ?></p>
48 /* If the span has 3 rows, we need 2 <br> for the next span to sink to the bottom.
49 * So if we have an extra "created_by" row, we need an extra <br> tag
51 if (isset($this->isSharedAlbum)){
55 <?php if($pa->checkAlbumPriv($_SESSION['member_id'])): ?>
56 <p><a href="<?php echo AT_PA_BASENAME;?>edit_album.php?id=<?php echo $row['id'];?>"><?php echo _AT('edit'); ?></a> | <a href="<?php echo AT_PA_BASENAME;?>delete_album.php?id=<?php echo $row['id'];?>"><?php echo _AT('delete');?></a></p>
63 <p><?php echo _AT('pa_no_album'); ?></p>
68 <?php if($this->num_rows > AT_PA_ALBUMS_PER_PAGE): ?>
70 <div class="paginator">
71 <?php print_paginator($this->page, $this->num_rows, 'type='.$this->type, AT_PA_ALBUMS_PER_PAGE, AT_PA_PAGE_WINDOW); ?>