Viewing file: 4dceea186daa4e16804223ac618af19dfb45d759.file.videosorder.tpl.php (1.68 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php /* Smarty version Smarty3-RC3, created on 2012-05-10 22:28:37 compiled from "modules/videogallery/templates/videosorder.tpl" */ ?> <?php /*%%SmartyHeaderCode:9489479144fac16e5dbfd13-42919340%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed'); $_smarty_tpl->decodeProperties(array ( 'file_dependency' => array ( '4dceea186daa4e16804223ac618af19dfb45d759' => array ( 0 => 'modules/videogallery/templates/videosorder.tpl', 1 => 1336678117, ), ), 'nocache_hash' => '9489479144fac16e5dbfd13-42919340', 'function' => array ( ), 'has_nocache_code' => false, )); /*/%%SmartyHeaderCode%%*/?> <table align="center">
<tr><td>
<div class="photogallery">
<ul class="order">
<?php $_smarty_tpl->tpl_vars['video'] = new Smarty_Variable; $_from = $_smarty_tpl->getVariable('videos')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} if (count($_from) > 0){ foreach ($_from as $_smarty_tpl->tpl_vars['video']->key => $_smarty_tpl->tpl_vars['video']->value){ ?>
<li class="ui-state-default" id="video_id_<?php echo $_smarty_tpl->tpl_vars['video']->value['video_id'];?> ">
<img src="/data/videogallery/i<?php echo $_smarty_tpl->tpl_vars['video']->value['video_filename'];?> .jpg" />
</li>
<?php }} ?>
</ul>
</div>
</td></tr></table>
<script type="text/javascript">
$(".photogallery .order").sortable({
placeholder: 'placeholder',
stop : function()
{
str = $(this).sortable('serialize');
$.post("/admin-asynch.php?mod=Videogallery", { "ids" : str, "oper" : "sorting", "table" : "AMCMS_videogallery_videos" });
}
});
$(".photogallery .sortable").disableSelection();
</script>
|