Viewing file: 2c9103a952faa6f066c15b938613d449191b315b.file.photosorder.tpl.php (2.72 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php /* Smarty version Smarty3-RC3, created on 2012-05-10 23:42:35 compiled from "modules/photogallery/templates/photosorder.tpl" */ ?> <?php /*%%SmartyHeaderCode:6293873034fac283b743785-23610209%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed'); $_smarty_tpl->decodeProperties(array ( 'file_dependency' => array ( '2c9103a952faa6f066c15b938613d449191b315b' => array ( 0 => 'modules/photogallery/templates/photosorder.tpl', 1 => 1336682552, ), ), 'nocache_hash' => '6293873034fac283b743785-23610209', '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);?> <form style="margin:0px;" method="post"> <div style="text-align:center"> <?php echo $_smarty_tpl->getVariable('ALANG')->value['PhotogalleryAlbumSelect'];?> : <select id="album_id" name="album_id" onchange="submit();"> <?php $_smarty_tpl->tpl_vars['album'] = new Smarty_Variable; $_from = $_smarty_tpl->getVariable('albums')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} if (count($_from) > 0){ foreach ($_from as $_smarty_tpl->tpl_vars['album']->key => $_smarty_tpl->tpl_vars['album']->value){ ?> <option <?php if ($_REQUEST['album_id']==$_smarty_tpl->tpl_vars['album']->value['album_id']){?> selected="selected" <?php }?> value="<?php echo $_smarty_tpl->tpl_vars['album']->value['album_id'];?> "><?php echo $_smarty_tpl->tpl_vars['album']->value[$_smarty_tpl->getVariable('album_name')->value];?> </option> <?php }} ?> </select> </div><br /> <table align="center"> <tr><td> <div class="photogallery"> <ul class="order"> <?php $_smarty_tpl->tpl_vars['photo'] = new Smarty_Variable; $_from = $_smarty_tpl->getVariable('photos')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} if (count($_from) > 0){ foreach ($_from as $_smarty_tpl->tpl_vars['photo']->key => $_smarty_tpl->tpl_vars['photo']->value){ ?> <li class="ui-state-default" id="photo_id_<?php echo $_smarty_tpl->tpl_vars['photo']->value['photo_id'];?> "> <img src="/data/photogallery/i<?php echo $_smarty_tpl->tpl_vars['photo']->value['photo_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=Photogallery", { "ids" : str, "oper" : "sorting", "table" : "AMCMS_photogallery_photos" }); } }); $(".photogallery .sortable").disableSelection();
</script>
|