Viewing file: 7a4554c8b7e7601d7a4f744be379a8e27777654b.file.panels.tpl.php (7.96 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php /* Smarty version Smarty3-RC3, created on 2011-05-11 15:39:34 compiled from "user/templates/options/panels.tpl" */ ?> <?php /*%%SmartyHeaderCode:635579644dca8386e02cd3-61219268%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed'); $_smarty_tpl->decodeProperties(array ( 'file_dependency' => array ( '7a4554c8b7e7601d7a4f744be379a8e27777654b' => array ( 0 => 'user/templates/options/panels.tpl', 1 => 1305061748, ), ), 'nocache_hash' => '635579644dca8386e02cd3-61219268', 'function' => array ( ), 'has_nocache_code' => false, )); /*/%%SmartyHeaderCode%%*/?> <style type="text/css">
.title { text-align:center; color:blue; font-size:12pt; }
.demo { width: 1000px; margin: 0 auto; }
.column { float: left; padding-bottom: 100px; cursor:move; }
#column_left, #column_right { width:200px; }
#column_center { width:400px; }
#column_no_use { width:200px; background-color: #F0F0F0;}
.portlet { margin: 0.4em ; }
.portlet-header { margin: 0.3em; padding-bottom: 4px; padding-left: 0.2em; }
.portlet-header .ui-icon { float: right; }
.portlet-content { padding: 0.4em; }
.ui-sortable-placeholder { border: 1px dotted black; visibility: visible !important; height: 50px !important; }
.ui-sortable-placeholder * { visibility: hidden; }
</style>
<script type="text/javascript">
$(function() {
$(".column").sortable({
connectWith: '.column',
stop: function()
{
col_left = $("#column_left").sortable('serialize');
col_right = $("#column_right").sortable('serialize');
col_center = $("#column_center").sortable('serialize');
col_no_use = $("#column_no_use").sortable('serialize');
$.post("/admin-asynch.php?mod=Options&columns",
{ 'left' : col_left, 'right' : col_right, 'center' : col_center, 'nouse' : col_no_use} , function(){},'json');
}
});
$(".portlet").addClass("ui-widget ui-widget-content ui-helper-clearfix ui-corner-all")
.find(".portlet-header")
.addClass("ui-widget-header ui-corner-all")
.prepend('<span class="ui-icon ui-icon-minusthick"></span>')
.end()
.find(".portlet-content");
$(".portlet-header .ui-icon").click(function() {
$(this).toggleClass("ui-icon-minusthick").toggleClass("ui-icon-plusthick");
$(this).parents(".portlet:first").find(".portlet-content").toggle();
});
$(".column").disableSelection();
});
</script>
<div class="demo">
<div class="column" id="column_left">
<div class="title"><?php echo $_smarty_tpl->getVariable('ALANG')->value['OptionsColumnLeft'];?> </div>
<?php $_smarty_tpl->tpl_vars['panel'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable; $_from = unserialize(GetParam("Panel-left","all")); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} if (count($_from) > 0){ foreach ($_from as $_smarty_tpl->tpl_vars['panel']->key => $_smarty_tpl->tpl_vars['panel']->value){ $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['panel']->key; ?>
<?php if (strlen($_smarty_tpl->getVariable('panels')->value[$_smarty_tpl->tpl_vars['panel']->value]['Title'])>0){?>
<div class="portlet" id="panel_<?php echo $_smarty_tpl->tpl_vars['panel']->value;?> ">
<div class="portlet-header"><?php if (strlen(trim($_smarty_tpl->getVariable('panels')->value[$_smarty_tpl->tpl_vars['panel']->value]['Title']))>0){?> <?php echo $_smarty_tpl->getVariable('panels')->value[$_smarty_tpl->tpl_vars['panel']->value]['Title'];?> <?php }else{ ?> <?php ob_start();?><?php echo $_smarty_tpl->getVariable('alang')->value;?> <?php $_tmp1=ob_get_clean();?><?php echo GetParam("Module".($_smarty_tpl->getVariable('panels')->value[$_smarty_tpl->tpl_vars['panel']->value]['Module']),$_tmp1);?> <?php }?></div>
<div class="portlet-content"></div>
</div>
<?php }?>
<?php }} ?>
</div>
<div class="column" id="column_center">
<div class="title"><?php echo $_smarty_tpl->getVariable('ALANG')->value['OptionsColumnCenter'];?> </div>
<?php $_smarty_tpl->tpl_vars['panel'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable; $_from = unserialize(GetParam("Panel-center","all")); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} if (count($_from) > 0){ foreach ($_from as $_smarty_tpl->tpl_vars['panel']->key => $_smarty_tpl->tpl_vars['panel']->value){ $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['panel']->key; ?>
<?php if (strlen($_smarty_tpl->getVariable('panels')->value[$_smarty_tpl->tpl_vars['panel']->value]['Title'])>0){?>
<div class="portlet" id="panel_<?php echo $_smarty_tpl->tpl_vars['panel']->value;?> ">
<div class="portlet-header"><?php if (strlen(trim($_smarty_tpl->getVariable('panels')->value[$_smarty_tpl->tpl_vars['panel']->value]['Title']))>0){?> <?php echo $_smarty_tpl->getVariable('panels')->value[$_smarty_tpl->tpl_vars['panel']->value]['Title'];?> <?php }else{ ?> <?php ob_start();?><?php echo $_smarty_tpl->getVariable('alang')->value;?> <?php $_tmp2=ob_get_clean();?><?php echo GetParam("Module".($_smarty_tpl->getVariable('panels')->value[$_smarty_tpl->tpl_vars['panel']->value]['Module']),$_tmp2);?> <?php }?></div>
<div class="portlet-content"></div>
</div>
<?php }?>
<?php }} ?>
</div>
<div class="column" id="column_right">
<div class="title"><?php echo $_smarty_tpl->getVariable('ALANG')->value['OptionsColumnRight'];?> </div>
<?php $_smarty_tpl->tpl_vars['panel'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable; $_from = unserialize(GetParam("Panel-right","all")); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} if (count($_from) > 0){ foreach ($_from as $_smarty_tpl->tpl_vars['panel']->key => $_smarty_tpl->tpl_vars['panel']->value){ $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['panel']->key; ?>
<?php if (strlen($_smarty_tpl->getVariable('panels')->value[$_smarty_tpl->tpl_vars['panel']->value]['Title'])>0){?>
<div class="portlet" id="panel_<?php echo $_smarty_tpl->tpl_vars['panel']->value;?> ">
<div class="portlet-header"><?php if (strlen(trim($_smarty_tpl->getVariable('panels')->value[$_smarty_tpl->tpl_vars['panel']->value]['Title']))>0){?> <?php echo $_smarty_tpl->getVariable('panels')->value[$_smarty_tpl->tpl_vars['panel']->value]['Title'];?> <?php }else{ ?> <?php ob_start();?><?php echo $_smarty_tpl->getVariable('alang')->value;?> <?php $_tmp3=ob_get_clean();?><?php echo GetParam("Module".($_smarty_tpl->getVariable('panels')->value[$_smarty_tpl->tpl_vars['panel']->value]['Module']),$_tmp3);?> <?php }?></div>
<div class="portlet-content"></div>
</div>
<?php }?>
<?php }} ?>
</div>
<div class="column" id="column_no_use">
<div class="title"><?php echo $_smarty_tpl->getVariable('ALANG')->value['OptionsColumnNouse'];?> </div>
<?php $_smarty_tpl->tpl_vars['panel'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable; $_from = $_smarty_tpl->getVariable('nouse')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} if (count($_from) > 0){ foreach ($_from as $_smarty_tpl->tpl_vars['panel']->key => $_smarty_tpl->tpl_vars['panel']->value){ $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['panel']->key; ?>
<div class="portlet" id="panel_<?php echo $_smarty_tpl->tpl_vars['key']->value;?> ">
<div class="portlet-header"><?php if (strlen(trim($_smarty_tpl->getVariable('panels')->value[$_smarty_tpl->tpl_vars['key']->value]['Title']))>0){?> <?php echo $_smarty_tpl->getVariable('panels')->value[$_smarty_tpl->tpl_vars['key']->value]['Title'];?> <?php }else{ ?> <?php ob_start();?><?php echo $_smarty_tpl->getVariable('alang')->value;?> <?php $_tmp4=ob_get_clean();?><?php echo GetParam("Module".($_smarty_tpl->getVariable('panels')->value[$_smarty_tpl->tpl_vars['key']->value]['Module']),$_tmp4);?> <?php }?></div>
<div class="portlet-content"></div>
</div>
<?php }} ?>
</div>
</div><!-- End demo -->
<!-- End demo-description -->
<div style="clear:both"></div>
|