Viewing file: 6e4fcdaa4770402a94075f5a888ae5015f4c813c.file.videoalbumblock.tpl.php (3.95 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php /* Smarty version Smarty3-RC3, created on 2014-10-12 12:50:28 compiled from "modules/videogallery/templates/videoalbumblock.tpl" */ ?> <?php /*%%SmartyHeaderCode:12608232364dc9944346ba16-97400775%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed'); $_smarty_tpl->decodeProperties(array ( 'file_dependency' => array ( '6e4fcdaa4770402a94075f5a888ae5015f4c813c' => array ( 0 => 'modules/videogallery/templates/videoalbumblock.tpl', 1 => 1410983426, ), ), 'nocache_hash' => '12608232364dc9944346ba16-97400775', 'function' => array ( ), 'has_nocache_code' => false, )); /*/%%SmartyHeaderCode%%*/?> <?php $_smarty_tpl->tpl_vars["album_name"] = new Smarty_variable("album_name_".($_smarty_tpl->getVariable('alang')->value), 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=Videogallery&video&list&album_id=<?php echo $_smarty_tpl->tpl_vars['row']->value['album_id'];?> "><img src="/data/videogallery/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=Videogallery&video&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_videos'];?> </strong> <?php echo $_smarty_tpl->getVariable('ALANG')->value['CoreItem'];?> </div> <div class="date"><?php echo $_smarty_tpl->getVariable('ALANG')->value['VideogalleryAlbumCreationDate'];?> : <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['VideogalleryAlbumEditionDate'];?> <strong><?php echo $_smarty_tpl->tpl_vars['row']->value['album_date_of_edition'];?> </strong></div> <div class="links"> <a href="admin.php?mod=Videogallery&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=Videogallery&album_id=<?php echo $_smarty_tpl->tpl_vars['row']->value['album_id'];?> &video&packet" class="add"><?php echo $_smarty_tpl->getVariable('ALANG')->value['VideogalleryVideosAdd'];?> </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=Videogallery", { "oper" : "delete", "id" : id, "table" : "AMCMS_videogallery_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=Videogallery", { "ids" : str, "oper" : "sorting", "table" : "AMCMS_videogallery_albums" }); } }); $(".photogallery .sortable").disableSelection(); }); </script>
|