Viewing file: d9c5352b8d6da2dfa42b57818f0c22384dfeb9fc.file.photoalbumblock.tpl.php (4 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php /* Smarty version Smarty3-RC3, created on 2012-05-10 23:42:38 compiled from "modules/photogallery/templates/photoalbumblock.tpl" */ ?> <?php /*%%SmartyHeaderCode:8724039644fac283e7faf26-69070502%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed'); $_smarty_tpl->decodeProperties(array ( 'file_dependency' => array ( 'd9c5352b8d6da2dfa42b57818f0c22384dfeb9fc' => array ( 0 => 'modules/photogallery/templates/photoalbumblock.tpl', 1 => 1336682551, ), ), 'nocache_hash' => '8724039644fac283e7faf26-69070502', 'function' => array ( ), 'has_nocache_code' => false, )); /*/%%SmartyHeaderCode%%*/?> <?php ob_start();?><?php echo GetParam('DefaultLanguage');?> <?php $_tmp1=ob_get_clean();?><?php $_smarty_tpl->tpl_vars["album_name"] = new Smarty_variable("album_name_".$_tmp1, null, null);?> <div class="photogallery"> <ul class="sortable"> <?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){ ?> <li id="album_id_<?php echo $_smarty_tpl->tpl_vars['row']->value['album_id'];?> " code="<?php echo $_smarty_tpl->tpl_vars['row']->value['album_id'];?> "> <div class="picture"> <a href="admin.php?mod=Photogallery&photo&list&album_id=<?php echo $_smarty_tpl->tpl_vars['row']->value['album_id'];?> "><img src="/data/photogallery/i<?php echo $_smarty_tpl->tpl_vars['row']->value['album_cover_filename'];?> .jpg" /></a> </div> <div class="info"> <div class="title"><a href="admin.php?mod=Photogallery&photo&list&album_id=<?php echo $_smarty_tpl->tpl_vars['row']->value['album_id'];?> "><?php echo $_smarty_tpl->tpl_vars['row']->value[$_smarty_tpl->getVariable('album_name')->value];?> </a></div> <div class="count">Фотографий: <strong><?php echo $_smarty_tpl->tpl_vars['row']->value['album_count_of_photos'];?> </strong> <?php echo $_smarty_tpl->getVariable('ALANG')->value['CoreItem'];?> </div> <div class="date"><?php echo $_smarty_tpl->getVariable('ALANG')->value['PhotogalleryAlbumCreationDate'];?> : <strong><?php echo $_smarty_tpl->tpl_vars['row']->value['album_date_of_creation'];?> </strong></div> <div class="date"><?php echo $_smarty_tpl->getVariable('ALANG')->value['PhotogalleryAlbumEditionDate'];?> <strong><?php echo $_smarty_tpl->tpl_vars['row']->value['album_date_of_edition'];?> </strong></div> <div class="links"> <a href="admin.php?mod=Photogallery&album_id=<?php echo $_smarty_tpl->tpl_vars['row']->value['album_id'];?> &edit" class="edit"><?php echo $_smarty_tpl->getVariable('ALANG')->value['CoreEdit'];?> </a> <a href="#" class="delete"><?php echo $_smarty_tpl->getVariable('ALANG')->value['CoreDelete'];?> </a> <a href="admin.php?mod=Photogallery&album_id=<?php echo $_smarty_tpl->tpl_vars['row']->value['album_id'];?> &photo&packet" class="add"><?php echo $_smarty_tpl->getVariable('ALANG')->value['PhotogalleryPhotosAdd'];?> </a> </div> </div> </li> <?php }} ?> </ul> </div> <script type="text/javascript"> $(document).ready(function() { $(".photogallery .sortable .delete").click(function() { if ($(this).hasClass('delete')) if (!confirm("delete_question".l())) return false; elem = $(this).parents("li"); id = $(this).parents("li").attr("code"); $.post("/admin-asynch.php?mod=Photogallery", { "oper" : "delete", "id" : id, "table" : "AMCMS_photogallery_albums" }, function(data) { elem.hide(1000).remove(1000); }); return false; }); $(".photogallery .sortable").sortable({ placeholder: 'placeholder', stop : function() { str = $(this).sortable('serialize'); $.post("/admin-asynch.php?mod=Photogallery", { "ids" : str, "oper" : "sorting", "table" : "AMCMS_photogallery_albums" }); } }); $(".photogallery .sortable").disableSelection(); }); </script>
|