function content_5204bde19b5300_71661654($_smarty_tpl) { if (!is_callable('smarty_function_cycle')) { include '/homepages/26/d480780604/htdocs/lib/smarty/plugins/function.cycle.php'; } if (!is_callable('smarty_cms_modifier_cms_date_format')) { include '/homepages/26/d480780604/htdocs/plugins/modifier.cms_date_format.php'; } if (!is_callable('smarty_modifier_replace')) { include '/homepages/26/d480780604/htdocs/lib/smarty/plugins/modifier.replace.php'; } if (!isset($_smarty_tpl->tpl_vars['noform']->value)) { ?> <script type="text/javascript"> var refresh_url = '<?php echo $_smarty_tpl->tpl_vars['refresh_url']->value; ?> '+'&showtemplate=false'; refresh_url = refresh_url.replace(/amp;/g,''); // <![CDATA[ function enable_action_buttons() { var files = $("#filesarea input[type='checkbox'].fileselect").filter(':checked').length; var dirs = $("#filesarea input[type='checkbox'].dir").filter(':checked:').length; var arch = $("#filesarea input[type='checkbox'].archive").filter(':checked:').length; var imgs = $("#filesarea input[type='checkbox'].image").filter(':checked:').length; $('.filebtn').attr('disabled','disabled'); if( jQuery.ui ) $('.filebtn').button( "option", "disabled", true ).addClass('disabled'); if( files == 0 && dirs == 0 ) { // nothing selected, enable anything with select_none $('#btn_newdir').removeAttr('disabled').removeClass('disabled'); if( jQuery.ui ) $('#btn_newdir').button( "option", "disabled", false ); } else if( files == 1 ) { // 1 selected, enable anything with select_one $('#btn_rename').removeAttr('disabled').removeClass('disabled'); if( jQuery.ui ) $('#btn_rename').button( "option", "disabled", false ); $('#btn_move').removeAttr('disabled').removeClass('disabled'); if( jQuery.ui ) $('#btn_move').button( "option", "disabled", false ); $('#btn_delete').removeAttr('disabled').removeClass('disabled'); if( jQuery.ui ) $('#btn_delete').button( "option", "disabled", false ); if( dirs == 0 ) { // one selected, it's not a directory $('#btn_copy').removeAttr('disabled').removeClass('disabled'); if( jQuery.ui ) $('#btn_copy').button( "option", "disabled", false ); } if( arch == 1 ) { // one selected, it's an archive. $('#btn_unpack').removeAttr('disabled').removeClass('disabled'); if( jQuery.ui ) $('#btn_unpack').button( "option", "disabled", false ); } if( imgs == 1 ) { $('#btn_thumb').removeAttr('disabled').removeClass('disabled'); if( jQuery.ui ) $('#btn_thumb').button( "option", "disabled", false ); } } else if( files > 1 && dirs == 0 ) { // multiple files selected $('#btn_delete').removeAttr('disabled').removeClass('disabled'); if( jQuery.ui ) $('#btn_delete').button( "option", "disabled", false ); $('#btn_copy').removeAttr('disabled').removeClass('disabled'); if( jQuery.ui ) $('#btn_copy').button( "option", "disabled", false ); $('#btn_move').removeAttr('disabled').removeClass('disabled'); if( jQuery.ui ) $('#btn_move').button( "option", "disabled", false ); } else if( files > 1 && dirs > 0 ) { // multiple selected, at least one dir. $('#btn_delete').removeAttr('disabled').removeClass('disabled'); if( jQuery.ui ) $('#btn_delete').button( "option", "disabled", false ); $('#btn_move').removeAttr('disabled').removeClass('disabled'); if( jQuery.ui ) $('#btn_move').button( "option", "disabled", false ); } } $(document).ready(function(){ enable_action_buttons(); $('#refresh').unbind('click'); $('#refresh').live('click',function(){ // ajaxy reload for the files area. $('#filesarea').load(refresh_url); return false; }); $(this).live('dropzone_chdir',function(e,data){ // if change dir via the dropzone, make sure filemanager refreshes. location.reload(); }); $("#filesarea input[type='checkbox'].fileselect").live('change',function(e){ // find the parent row e.stopPropagation(); var t = $(this).attr('checked'); if( t ) { $(this).closest('tr').addClass('selected'); } else { $(this).closest('tr').removeClass('selected'); } enable_action_buttons(); }); $('#tagall').live('change',function(event){ if( $(this).attr('checked') == 'checked' ) { $('#filesarea input:checkbox.fileselect').attr('checked','checked').trigger('change'); } else { $('#filesarea input:checkbox.fileselect').removeAttr('checked').trigger('change'); } }); $('td.clickable').live('click',function(){ var t = $(this).parent().find(':checkbox:').attr('checked'); if( t != 'checked' ) { $(this).parent().find(':checkbox:').attr('checked','checked').trigger('change'); } else { $(this).parent().find(':checkbox:').removeAttr('checked').trigger('change'); } }); }); // ]]> </script> <h3><?php echo $_smarty_tpl->tpl_vars['currentpath']->value; ?> <?php echo $_smarty_tpl->tpl_vars['path']->value; ?> </h3> <div> <?php echo $_smarty_tpl->tpl_vars['formstart']->value; ?> <div> <fieldset> <input type="submit" id="btn_newdir" name="<?php echo $_smarty_tpl->tpl_vars['actionid']->value; ?> fileactionnewdir" value="<?php echo $_smarty_tpl->tpl_vars['mod']->value->Lang('newdir'); ?> " class="filebtn"/> <input type="submit" id="btn_rename" name="<?php echo $_smarty_tpl->tpl_vars['actionid']->value; ?> fileactionrename" value="<?php echo $_smarty_tpl->tpl_vars['mod']->value->Lang('rename'); ?> " class="filebtn"/> <input type="submit" id="btn_delete" name="<?php echo $_smarty_tpl->tpl_vars['actionid']->value; ?> fileactiondelete" value="<?php echo $_smarty_tpl->tpl_vars['mod']->value->Lang('delete'); ?> " class="filebtn"/> <input type="submit" id="btn_move" name="<?php echo $_smarty_tpl->tpl_vars['actionid']->value; ?> fileactionmove" value="<?php echo $_smarty_tpl->tpl_vars['mod']->value->Lang('move'); ?> " class="filebtn"/> <input type="submit" id="btn_copy" name="<?php echo $_smarty_tpl->tpl_vars['actionid']->value; ?> fileactioncopy" value="<?php echo $_smarty_tpl->tpl_vars['mod']->value->Lang('copy'); ?> " class="filebtn"/> <input type="submit" id="btn_unpack" name="<?php echo $_smarty_tpl->tpl_vars['actionid']->value; ?> fileactionunpack" value="<?php echo $_smarty_tpl->tpl_vars['mod']->value->Lang('unpack'); ?> " class="filebtn" onclick="return confirm('<?php echo $_smarty_tpl->tpl_vars['confirm_unpack']->value; ?> ');"/> <input type="submit" id="btn_thumb" name="<?php echo $_smarty_tpl->tpl_vars['actionid']->value; ?> fileactionthumb" value="<?php echo $_smarty_tpl->tpl_vars['mod']->value->Lang('thumbnail'); ?> " class="filebtn"/> </fieldset> </div> <?php echo $_smarty_tpl->tpl_vars['hiddenpath']->value; ?> <?php } ?> <div id="filesarea"> <table width="100%" class="pagetable" cellspacing="0"> <thead> <tr> <th class="pageicon"> </th> <th><?php echo $_smarty_tpl->tpl_vars['filenametext']->value; ?> </th> <th class="pageicon"><?php echo $_smarty_tpl->tpl_vars['fileinfotext']->value; ?> </th> <th class="pageicon"><?php echo $_smarty_tpl->tpl_vars['fileownertext']->value; ?> </th> <th class="pageicon"><?php echo $_smarty_tpl->tpl_vars['filepermstext']->value; ?> </th> <th class="pageicon" style="text-align:right;"><?php echo $_smarty_tpl->tpl_vars['filesizetext']->value; ?> </th> <th class="pageicon"> </th> <th class="pageicon"><?php echo $_smarty_tpl->tpl_vars['filedatetext']->value; ?> </th> <th class="pageicon"> <input type="checkbox" name="tagall" value="tagall" id="tagall"/> </th> </tr> </thead> <tbody> <?php $_smarty_tpl->tpl_vars['file'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['file']->_loop = false; $_from = $_smarty_tpl->tpl_vars['files']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['file']->key => $_smarty_tpl->tpl_vars['file']->value) { $_smarty_tpl->tpl_vars['file']->_loop = true; ?> <?php echo smarty_function_cycle(array('values' => "row1,row2", 'assign' => 'rowclass'), $_smarty_tpl); ?> <tr class="<?php echo $_smarty_tpl->tpl_vars['rowclass']->value; ?> "> <td valign="middle"><?php if (isset($_smarty_tpl->tpl_vars['file']->value->thumbnail) && $_smarty_tpl->tpl_vars['file']->value->thumbnail != '') { echo $_smarty_tpl->tpl_vars['file']->value->thumbnail; } else { echo $_smarty_tpl->tpl_vars['file']->value->iconlink; } ?> </td> <td class="clickable" valign="middle"><?php echo $_smarty_tpl->tpl_vars['file']->value->txtlink; ?> </td> <td class="clickable" style="padding-right:8px;" valign="middle"><?php echo $_smarty_tpl->tpl_vars['file']->value->fileinfo; ?> </td> <td class="clickable" style="padding-right:8px;" valign="middle"><?php if (isset($_smarty_tpl->tpl_vars['file']->value->fileowner)) { echo $_smarty_tpl->tpl_vars['file']->value->fileowner; } else { ?> <?php } ?> </td> <td class="clickable" style="padding-right:8px;" valign="middle"><?php echo $_smarty_tpl->tpl_vars['file']->value->filepermissions; ?> </td> <td class="clickable" style="padding-right:2px;text-align:right;" valign="middle"><?php echo $_smarty_tpl->tpl_vars['file']->value->filesize; ?> </td> <td class="clickable" style="padding-right:8px;" valign="middle"><?php if (isset($_smarty_tpl->tpl_vars['file']->value->filesizeunit)) { echo $_smarty_tpl->tpl_vars['file']->value->filesizeunit; } else { ?> <?php } ?> </td> <td class="clickable" style="padding-right:8px;" valign="middle"><?php echo smarty_modifier_replace(smarty_modifier_replace(smarty_cms_modifier_cms_date_format($_smarty_tpl->tpl_vars['file']->value->filedate), " ", " "), "-", "−"); ?> </td> <td> <?php if (!isset($_smarty_tpl->tpl_vars['file']->value->noCheckbox)) { ?> <input type="checkbox" name="<?php echo $_smarty_tpl->tpl_vars['actionid']->value; ?> selall[]" value="<?php echo $_smarty_tpl->tpl_vars['file']->value->urlname; ?> " class="fileselect <?php echo $_smarty_tpl->tpl_vars['file']->value->type; ?> " <?php if (isset($_smarty_tpl->tpl_vars['file']->value->checked)) { ?> checked="checked"<?php } ?> /> <?php } ?> </td> </tr> <?php } ?> </tbody> <tfoot> <tr> <td> </td> <td colspan="7"><?php echo $_smarty_tpl->tpl_vars['countstext']->value; ?> </td> </tr> </tfoot> </table> </div> <?php if (!isset($_smarty_tpl->tpl_vars['noform']->value)) { ?> <?php echo $_smarty_tpl->tpl_vars['formend']->value; ?> </div> <?php } ?> <?php }
function content_51f3ccbeb469c8_36382916($_smarty_tpl) { if (!is_callable('smarty_modifier_cms_escape')) { include '/homepages/26/d480780604/htdocs/plugins/modifier.cms_escape.php'; } if (!is_callable('smarty_cms_modifier_cms_date_format')) { include '/homepages/26/d480780604/htdocs/plugins/modifier.cms_date_format.php'; } if (isset($_smarty_tpl->tpl_vars['entry']->value->canonical)) { ?> <?php if (isset($_smarty_tpl->tpl_vars['canonical'])) { $_smarty_tpl->tpl_vars['canonical'] = clone $_smarty_tpl->tpl_vars['canonical']; $_smarty_tpl->tpl_vars['canonical']->value = $_smarty_tpl->tpl_vars['entry']->value->canonical; $_smarty_tpl->tpl_vars['canonical']->nocache = null; $_smarty_tpl->tpl_vars['canonical']->scope = 0; } else { $_smarty_tpl->tpl_vars['canonical'] = new Smarty_variable($_smarty_tpl->tpl_vars['entry']->value->canonical, null, 0); } } ?> <h2><?php echo smarty_modifier_cms_escape($_smarty_tpl->tpl_vars['entry']->value->title, 'htmlall'); ?> </h2> <?php if ($_smarty_tpl->tpl_vars['entry']->value->summary) { ?> <?php $_template = new Smarty_Internal_Template('eval:' . $_smarty_tpl->tpl_vars['entry']->value->summary, $_smarty_tpl->smarty, $_smarty_tpl); echo $_template->fetch(); } ?> <?php $_template = new Smarty_Internal_Template('eval:' . $_smarty_tpl->tpl_vars['entry']->value->content, $_smarty_tpl->smarty, $_smarty_tpl); echo $_template->fetch(); if ($_smarty_tpl->tpl_vars['entry']->value->extra) { ?> <?php echo $_smarty_tpl->tpl_vars['extra_label']->value; ?> <?php echo $_smarty_tpl->tpl_vars['entry']->value->extra; ?> <?php } if ($_smarty_tpl->tpl_vars['return_url']->value != '') { ?> <br /> <span class='back'>← <?php echo $_smarty_tpl->tpl_vars['return_url']->value; if ($_smarty_tpl->tpl_vars['category_name']->value != '') { ?> - <?php echo $_smarty_tpl->tpl_vars['category_link']->value; } ?> </span> <?php } ?> <?php if (isset($_smarty_tpl->tpl_vars['entry']->value->fields)) { ?> <?php $_smarty_tpl->tpl_vars['field'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['field']->_loop = false; $_from = $_smarty_tpl->tpl_vars['entry']->value->fields; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['field']->key => $_smarty_tpl->tpl_vars['field']->value) { $_smarty_tpl->tpl_vars['field']->_loop = true; ?> <div> <?php if ($_smarty_tpl->tpl_vars['field']->value->type == 'file') { ?> <img src='<?php echo $_smarty_tpl->tpl_vars['entry']->value->file_location; ?> /<?php echo $_smarty_tpl->tpl_vars['field']->value->value; ?> ' alt='' /> <?php } else { ?> <?php echo $_smarty_tpl->tpl_vars['field']->value->name; ?> : <?php $_template = new Smarty_Internal_Template('eval:' . $_smarty_tpl->tpl_vars['field']->value->value, $_smarty_tpl->smarty, $_smarty_tpl); echo $_template->fetch(); ?> <?php } ?> </div> <?php } } ?> <footer class='news-meta'> <?php if ($_smarty_tpl->tpl_vars['entry']->value->postdate) { ?> <?php echo smarty_cms_modifier_cms_date_format($_smarty_tpl->tpl_vars['entry']->value->postdate); ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['entry']->value->category) { ?> <strong><?php echo $_smarty_tpl->tpl_vars['category_label']->value; ?> </strong> <?php echo $_smarty_tpl->tpl_vars['entry']->value->category; ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['entry']->value->author) { ?> <strong><?php echo $_smarty_tpl->tpl_vars['author_label']->value; ?> </strong> <?php echo $_smarty_tpl->tpl_vars['entry']->value->author; ?> <?php } ?> </footer><?php }