Viewing file: 5406c3e7ef197085385a139232db91b7b25b95de.file.albums.tpl.php (7.54 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php /* Smarty version Smarty3-RC3, created on 2012-04-12 16:35:47 compiled from "user/templates/photochapter/albums.tpl" */ ?> <?php /*%%SmartyHeaderCode:20625023274f86da33e7b111-32287734%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed'); $_smarty_tpl->decodeProperties(array ( 'file_dependency' => array ( '5406c3e7ef197085385a139232db91b7b25b95de' => array ( 0 => 'user/templates/photochapter/albums.tpl', 1 => 1334237746, ), ), 'nocache_hash' => '20625023274f86da33e7b111-32287734', 'function' => array ( ), 'has_nocache_code' => false, )); /*/%%SmartyHeaderCode%%*/?> <div class="template-page albums-list">
<table class="header">
<tr>
<td class="left">
<div class="counter">
<?php if (strlen($_GET['text'])>0){?> <?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_photochapter']['Found'];?> <?php }else{ ?>
<?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_photochapter']['InList'];?> <?php }?>
<?php echo count($_smarty_tpl->getVariable('rows')->value);?> <?php echo AssumeNumber(count($_smarty_tpl->getVariable('rows')->value),$_smarty_tpl->getVariable('ULANG')->value['AMCMS_photochapter']['albums']);?> .
</div>
</td>
<td class="center">
<div class="search-panel">
<form method="get">
<input name="text" type="text" class="search" value="<?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_photochapter']['SearchDefaultText'];?> " val="<?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_photochapter']['SearchDefaultText'];?> " style="color:gray;" size="16" /> <input type="image" src="/user/icons/search-icon.gif" align="absmiddle" />
</form>
</div>
</td>
<td class="right">
<div class="manage-panel">
<ul>
<li><a href="/photochapter/0"><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_photochapter']['AllPhotos'];?> </a></li>
<li class="delimiter">|</li>
<li style="position: relative;"><a href="javascript: return false;" class="submenu"><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_photochapter']['Sort'];?> </a>
<ul class="submenu">
<li><a href="?order=default"><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_photochapter']['AlbumsSortDefault'];?> </a></li>
<li><a href="?order=creation"><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_photochapter']['AlbumsSortByCreation'];?> </a></li>
<li><a href="?order=update"><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_photochapter']['AlbumsSortByUpdation'];?> </a></li>
<li><a href="?order=alpha"><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_photochapter']['AlbumsSortByAlphabet'];?> </a></li>
</ul>
</li>
<?php if ($_SESSION['user']['user_access']['photochapter']=='Y'||$_SESSION['user']['user_access']['admin']=='Y'){?>
<li class="delimiter">|</li>
<li><a href="/photochapter/album/create"><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_photochapter']['AlbumCreate'];?> </a></li>
<?php }?>
</ul>
</div>
</td> </tr>
</table>
<br />
<ul class="albums <?php if ($_SESSION['user']['user_access']['photochapter']=='Y'||$_SESSION['user']['user_access']['admin']=='Y'){?><?php if ($_smarty_tpl->getVariable('order')->value!='default'){?>non<?php }?>sortable<?php }?>">
<?php $_smarty_tpl->tpl_vars['row'] = new Smarty_Variable; $_from = $_smarty_tpl->getVariable('rows')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} if (count($_from) > 0){ foreach ($_from as $_smarty_tpl->tpl_vars['row']->key => $_smarty_tpl->tpl_vars['row']->value){ ?>
<?php if (!(($_smarty_tpl->tpl_vars['row']->value['album_id']==1)&&($_smarty_tpl->tpl_vars['row']->value['count']==0))){?>
<li id="album_<?php echo $_smarty_tpl->tpl_vars['row']->value['album_id'];?> ">
<div class="album" <?php if ($_smarty_tpl->tpl_vars['row']->value['album_id']==17){?> style="background-color: #FEF4E2"<?php }?>>
<div class="left">
<a href="/photochapter/<?php echo $_smarty_tpl->tpl_vars['row']->value['album_id'];?> ">
<?php if (strlen($_smarty_tpl->tpl_vars['row']->value['album_thumb_file'])>0&&file_exists("data/photochapter/".($_smarty_tpl->tpl_vars['row']->value['album_thumb_file']))){?>
<img src="/data/photochapter/<?php echo $_smarty_tpl->tpl_vars['row']->value['album_thumb_file'];?> " style="padding:0;" />
<?php }else{ ?>
<?php if ((strlen(Photochapter::GetLastPhotoInAlbum($_smarty_tpl->tpl_vars['row']->value['album_id']))>0)){?>
<img src="/data/photochapter/<?php echo Photochapter::GetLastPhotoInAlbum($_smarty_tpl->tpl_vars['row']->value['album_id']);?> " style="padding:0;" />
<?php }else{ ?>
<img src="/data/photochapter/new-<?php echo $_smarty_tpl->getVariable('ulang')->value;?> .png" style="padding:0;" />
<?php }?>
<?php }?></a>
</div>
<div class="info">
<div class="title"><a href="/photochapter/<?php echo $_smarty_tpl->tpl_vars['row']->value['album_id'];?> "><?php echo $_smarty_tpl->tpl_vars['row']->value["album_title_".($_smarty_tpl->getVariable('ulang')->value)];?> </a></div>
<span class="counter"><?php echo $_smarty_tpl->tpl_vars['row']->value['count'];?> <?php echo AssumeNumber($_smarty_tpl->tpl_vars['row']->value['count'],$_smarty_tpl->getVariable('ULANG')->value['AMCMS_photochapter']['photos']);?> .</span> <span class="updated"><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_photochapter']['UpdatedAt'];?> <?php echo SimpleDateEcho($_smarty_tpl->tpl_vars['row']->value['album_date_of_modification']);?> </span>
<div class="description"><?php echo nl2br($_smarty_tpl->tpl_vars['row']->value["album_description_".($_smarty_tpl->getVariable('ulang')->value)]);?> </div>
<?php if ($_smarty_tpl->tpl_vars['row']->value['album_id']>1&&($_SESSION['user']['user_access']['photochapter']=='Y'||$_SESSION['user']['user_access']['admin']=='Y')){?>
<div class="controls">
<a href="/photochapter/<?php echo $_smarty_tpl->tpl_vars['row']->value['album_id'];?> /upload"
class="<?php if (!isset($_SESSION['user'])){?>photo-login<?php }?> <?php if ($_smarty_tpl->tpl_vars['row']->value['album_closed']=='Y'&&$_SESSION['user']['user_access']['admin']!='Y'){?>album-closed<?php }?>" ><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_photochapter']['PhotosAdd'];?> </a>
<?php if (($_SESSION['user']['user_access']['photochapter']=='Y')||($_SESSION['user']['user_access']['admin']=='Y')){?>
| <a href="/photochapter/<?php echo $_smarty_tpl->tpl_vars['row']->value['album_id'];?> /edit"><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_photochapter']['EditAlbum'];?> </a>
<?php }?>
</div>
<?php }?>
</div>
</div>
</li>
<?php }?>
<?php }} ?>
</ul>
</div>
<input type="hidden" id="albums-sort-order" value="<?php echo $_smarty_tpl->getVariable('order')->value;?> "/>
|