<?php $a1_class='main'; ?><?php
if (!defined('OR_VERSION')) die('Forbidden');
if (!headers_sent()) header('Content-Type: text/html; charset='.$charset)
?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title><?php echo isset($a1_title)?langHtml($a1_title).' - ':(isset($windowTitle)?langHtml($windowTitle).' - ':'') ?><?php echo $cms_title ?></title>
<meta http-equiv="content-type" content="text/html; charset=<?php echo $charset ?>" >
<?php if ( isset($refresh_url) ) { ?>
<meta http-equiv="refresh" content="<?php echo isset($refresh_timeout)?$refresh_timeout:0 ?>; URL=<?php echo $refresh_url; if (ini_get('session.use_trans_sid')) echo '&'.session_name().'='.session_id(); ?>">
<?php } ?>
<meta name="MSSmartTagsPreventParsing" content="true" >
<meta name="robots" content="noindex,nofollow" >
<?php if (isset($windowMenu) && is_array($windowMenu)) foreach( $windowMenu as $menu )
{
?>
<link rel="section" href="<?php echo Html::url($actionName,@$menu['subaction'],$this->getRequestId() ) ?>" title="<?php echo lang($menu['text']) ?>" >
<?php
}
?><?php if (isset($metaList) && is_array($metaList)) foreach( $metaList as $meta )
{
?>
<link rel="<?php echo $meta['name'] ?>" href="<?php echo $meta['url'] ?>" title="<?php echo $meta['title'] ?>" ><?php
}
?><?php if(!empty($root_stylesheet)) { ?>
<link rel="stylesheet" type="text/css" href="<?php echo $root_stylesheet ?>" >
<?php } ?>
<?php if($root_stylesheet!=$user_stylesheet) { ?>
<link rel="stylesheet" type="text/css" href="<?php echo $user_stylesheet ?>" >
<?php } ?>
</head>
<body class="main" <?php if (@$conf['interface']['application_mode']) { ?> style="padding:0px;margin:0px;"<?php } ?> >
<?php /* Debug-Information */ if ($showDuration) { echo "<!-- Output Variables are:\n";echo str_replace('-->','-- >',print_r($this->templateVars,true));echo "\n-->";} ?><?php unset($a1_class) ?><?php $a2_name='';$a2_target='_self';$a2_method='post';$a2_enctype='application/x-www-form-urlencoded'; ?><?php
$a2_action = $actionName;
$a2_subaction = $targetSubActionName;
$a2_id = $this->getRequestId();
if ($this->isEditable())
{
if ($this->isEditMode())
{
$a2_method = 'POST';
}
else
{
$a2_method = 'GET';
$a2_subaction = $subActionName;
}
}
?><form name="<?php echo $a2_name ?>"
target="<?php echo $a2_target ?>"
action="<?php echo Html::url( $a2_action,$a2_subaction,$a2_id ) ?>"
method="<?php echo $a2_method ?>"
enctype="<?php echo $a2_enctype ?>" style="margin:0px;padding:0px;">
<?php if ($this->isEditable() && !$this->isEditMode()) { ?>
<input type="hidden" name="mode" value="edit" />
<?php } ?>
<input type="hidden" name="<?php echo REQ_PARAM_TOKEN ?>" value="<?php echo token() ?>" />
<input type="hidden" name="<?php echo REQ_PARAM_ACTION ?>" value="<?php echo $a2_action ?>" />
<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo $a2_subaction ?>" />
<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $a2_id ?>" /><?php
if ( $conf['interface']['url_sessionid'] )
echo '<input type="hidden" name="'.session_name().'" value="'.session_id().'" />'."\n";
?><?php unset($a2_name,$a2_target,$a2_method,$a2_enctype) ?><?php $a3_icon='folder';$a3_widths='40%,60%';$a3_width='93%';$a3_rowclasses='odd,even';$a3_columnclasses='1,2,3'; ?><?php
$coloumn_widths=array();
$icon=$a3_icon;
$coldumn_widths = explode(',',$a3_widths);
$row_classes = explode(',',$a3_rowclasses);
$row_class_idx = 999;
$column_classes = explode(',',$a3_columnclasses);
$row_idx = 0;
$column_idx = 0;
global $image_dir;
if (@$conf['interface']['application_mode'] )
{
echo '<table class="main" cellspacing="0" cellpadding="4" width="100%" style="margin:0px;border:0px; padding:0px;" height_oo="100%">';
}
else
{
echo '<br/><br/><br/><center>';
echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$a3_width.'">';
}
if (!@$conf['interface']['application_mode'] )
{
echo '<tr class="title"><td>';
echo '<img src="'.$image_dir.'icon_'.$icon.IMG_ICON_EXT.'" align="left" border="0">';
if ($this->isEditable()) { ?>
<?php if ($this->isEditMode()) {
?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php }
elseif (readonly()) {
?><img src="<?php echo $image_dir ?>readonly.png" style="vertical-align:top; " border="0" /> <?php } else {
?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>readonly.png" style="vertical-align:top; " border="0" /></a> <?php }
?><?php }
echo '<span class="path">'.langHtml($actionName).'</span> <strong>»</strong> ';
if ( !isset($path) || is_array($path) )
$path = array();
foreach( $path as $pathElement)
{
extract($pathElement);
echo '<a href="'.$url.'" class="path">'.langHtml($name).'</a>';
echo ' » ';
}
echo '<span class="title">'.langHtml($windowTitle).'</span>';
if ( isset($notice_status))
{
?><img src="<?php echo $image_dir.'notice_'.$notice_status.IMG_ICON_EXT ?>" align="right" /><?php
}
?>
</td>
<?php
}
?>
<?php ?> <!--<td class="menu" style="align:right;">
<?php if (isset($windowIcons)) foreach( $windowIcons as $icon )
{
?><a href="<?php echo $icon['url'] ?>" title="<?php echo 'ICON_'.langHtml($menu['type'].'_DESC') ?>"><image border="0" src="<?php echo $image_dir.$icon['type'].IMG_ICON_EXT ?>"></a> <?php
}
?>
</td>-->
</tr>
<tr class="menu"><td>
<table class="menu"><tr>
<?php if ( !isset($windowMenu) || !is_array($windowMenu) )
$windowMenu = array();
foreach( $windowMenu as $menu )
{
$tmp_text = langHtml($menu['text']);
$tmp_key = strtoupper(langHtml($menu['key' ]));
$tmp_pos = strpos(strtolower($tmp_text),strtolower($tmp_key));
if ( $tmp_pos !== false )
$tmp_text = substr($tmp_text,0,max($tmp_pos,0)).'<span class="accesskey">'. substr($tmp_text,$tmp_pos,1).'</span>'.substr($tmp_text,$tmp_pos+1);
if ( isset($menu['url']) )
{
?><td class="action"><a href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" accesskey="<?php echo $tmp_key ?>" title="<?php echo langHtml($menu['text'].'_DESC') ?>" class="menu<?php echo $this->subActionName==$menu['subaction']?'_highlight':'' ?>"><?php echo $tmp_text ?></a></td><?php
}
else
{
?><td class="noaction"><?php echo $tmp_text ?></td><?php
}
}
if (@$conf['help']['enabled'] )
{
?><td><a href="<?php echo $conf['help']['url'].$actionName.'/'.$subActionName.@$conf['help']['suffix'] ?> " target="_new" title="<?php echo langHtml('MENU_HELP_DESC') ?>" class="menu" style="cursor:help;"><?php echo @$conf['help']['only_question_mark']?'?':langHtml('MENU_HELP') ?></a></td><?php
}
?>
</tr></table></td>
</tr>
<?php if (isset($notices) && count($notices)>0 )
{ ?>
<tr>
<td align="center" class="notice">
<?php foreach( $notices as $notice_idx=>$notice ) { ?>
<br><table class="notice">
<?php if ($notice['name']!='') { ?>
<tr>
<th colspan="2"><img src="<?php echo $image_dir.'icon_'.$notice['type'].IMG_ICON_EXT ?>" align="left" /><?php echo $notice['name'] ?>
</th>
</tr>
<?php } ?>
<tr class="<?php echo $notice['status'] ?>">
<td style="padding:10px;" width="30px"><img src="<?php echo $image_dir.'notice_'.$notice['status'].IMG_ICON_EXT ?>" style="padding:10px" /></td>
<td style="padding:10px;padding-right:10px;padding-bottom:10px;"><?php if ($notice['status']=='error') { ?><strong><?php } ?><?php echo langHtml($notice['key'],$notice['vars']) ?><?php if ($notice['status']=='error') { ?></strong><?php } ?>
<?php if (!empty($notice['log'])) { ?><pre><?php echo htmlentities(implode("\n",$notice['log'])) ?></pre><?php } ?>
</td>
</tr>
</table>
<?php } ?>
</td>
</tr>
<tr>
<td colspan="2"><fieldset></fieldset></td>
</tr>
<?php } ?>
<tr>
<td class="window">
<table cellspacing="0" width="100%" cellpadding="4">
<?php unset($a3_icon,$a3_widths,$a3_width,$a3_rowclasses,$a3_columnclasses) ?><?php
$row_idx++;
$column_idx = 0;
?>
<tr
>
<?php $column_idx++; ?><td
<?php if (!empty($column_widths)) { ?>
width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>"
<?php } ?>
<?php if (!empty($column_classes)) { ?>
class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>"
<?php } ?>
><?php $a6_class='text';$a6_text='name';$a6_escape=true;$a6_cut='both'; ?><?php
$a6_title = '';
$tmp_tag = 'span';
?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php
$langF = $a6_escape?'langHtml':'lang';
$tmp_text = $langF($a6_text);
$tmp_text = nl2br($tmp_text);
echo $tmp_text;
unset($tmp_text);
?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_text,$a6_escape,$a6_cut) ?></td><?php $a5_class='name'; ?><?php $column_idx++; ?><td
<?php if (!empty($column_widths)) { ?>
width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>"
<?php } ?>
class="name"
><?php unset($a5_class) ?><?php $a6_class='text';$a6_var='name';$a6_escape=true;$a6_cut='both'; ?><?php
$a6_title = '';
$tmp_tag = 'span';
?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php
$langF = $a6_escape?'langHtml':'lang';
$tmp_text = isset($$a6_var)?$$a6_var:$langF('UNKNOWN');
$tmp_text = nl2br($tmp_text);
echo $tmp_text;
unset($tmp_text);
?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_var,$a6_escape,$a6_cut) ?></td></tr><?php
$row_idx++;
$column_idx = 0;
?>
<tr
>
<?php $column_idx++; ?><td
<?php if (!empty($column_widths)) { ?>
width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>"
<?php } ?>
<?php if (!empty($column_classes)) { ?>
class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>"
<?php } ?>
><?php $a6_class='text';$a6_text='description';$a6_escape=true;$a6_cut='both'; ?><?php
$a6_title = '';
$tmp_tag = 'span';
?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php
$langF = $a6_escape?'langHtml':'lang';
$tmp_text = $langF($a6_text);
$tmp_text = nl2br($tmp_text);
echo $tmp_text;
unset($tmp_text);
?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_text,$a6_escape,$a6_cut) ?></td><?php $column_idx++; ?><td
<?php if (!empty($column_widths)) { ?>
width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>"
<?php } ?>
<?php if (!empty($column_classes)) { ?>
class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>"
<?php } ?>
><?php $a6_class='text';$a6_var='description';$a6_escape=true;$a6_cut='both'; ?><?php
$a6_title = '';
$tmp_tag = 'span';
?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php
$langF = $a6_escape?'langHtml':'lang';
$tmp_text = isset($$a6_var)?$$a6_var:$langF('UNKNOWN');
$tmp_text = nl2br($tmp_text);
echo $tmp_text;
unset($tmp_text);
?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_var,$a6_escape,$a6_cut) ?></td></tr><?php
$row_idx++;
$column_idx = 0;
?>
<tr
>
<?php $column_idx++; ?><td
<?php if (!empty($column_widths)) { ?>
width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>"
<?php } ?>
<?php if (!empty($column_classes)) { ?>
class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>"
<?php } ?>
><?php $a6_class='text';$a6_text='type';$a6_escape=true;$a6_cut='both'; ?><?php
$a6_title = '';
$tmp_tag = 'span';
?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php
$langF = $a6_escape?'langHtml':'lang';
$tmp_text = $langF($a6_text);
$tmp_text = nl2br($tmp_text);
echo $tmp_text;
unset($tmp_text);
?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_text,$a6_escape,$a6_cut) ?></td><?php $a5_class='filename'; ?><?php $column_idx++; ?><td
<?php if (!empty($column_widths)) { ?>
width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>"
<?php } ?>
class="filename"
><?php unset($a5_class) ?><?php $a6_align='left';$a6_elementtype=$element_type; ?><?php
$a6_tmp_image_file = $image_dir.'icon_el_'.$a6_elementtype.IMG_ICON_EXT;
$a6_size = '16x16';
$a6_tmp_title = basename($a6_tmp_image_file);
?><img alt="<?php echo $a6_tmp_title; if (isset($a6_size)) { echo ' ('; list($a6_tmp_width,$a6_tmp_height)=explode('x',$a6_size);echo $a6_tmp_width.'x'.$a6_tmp_height; echo')';} ?>" src="<?php echo $a6_tmp_image_file ?>" border="0"<?php if(isset($a6_align)) echo ' align="'.$a6_align.'"' ?><?php if (isset($a6_size)) { list($a6_tmp_width,$a6_tmp_height)=explode('x',$a6_size);echo ' width="'.$a6_tmp_width.'" height="'.$a6_tmp_height.'"';} ?>><?php unset($a6_align,$a6_elementtype) ?><?php $a6_class='text';$a6_key='el_'.$element_type.'';$a6_escape=true;$a6_cut='both'; ?><?php
$a6_title = '';
$tmp_tag = 'span';
?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php
$langF = $a6_escape?'langHtml':'lang';
$tmp_text = $langF($a6_key);
$tmp_text = nl2br($tmp_text);
echo $tmp_text;
unset($tmp_text);
?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_key,$a6_escape,$a6_cut) ?></td></tr><?php
$row_idx++;
$column_idx = 0;
?>
<tr
>
<?php $a5_colspan='2'; ?><?php $column_idx++; ?><td
<?php if (!empty($column_widths)) { ?>
width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>"
<?php } ?>
<?php if (!empty($column_classes)) { ?>
class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>"
<?php } ?>
colspan="2"
><?php unset($a5_colspan) ?><?php $a6_title=lang('additional_info'); ?><fieldset><?php if(isset($a6_title)) { ?><legend><?php if(isset($a6_icon)) { ?><image src="<?php echo $image_dir.'icon_'.$a6_icon.IMG_ICON_EXT ?>" align="left" border="0"><?php } ?><?php echo encodeHtml($a6_title) ?></legend><?php } ?><?php unset($a6_title) ?></fieldset></td></tr><?php
$row_idx++;
$column_idx = 0;
?>
<tr
>
<?php $column_idx++; ?><td
<?php if (!empty($column_widths)) { ?>
width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>"
<?php } ?>
<?php if (!empty($column_classes)) { ?>
class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>"
<?php } ?>
><?php $a6_class='text';$a6_key='template';$a6_escape=true;$a6_cut='both'; ?><?php
$a6_title = '';
$tmp_tag = 'span';
?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php
$langF = $a6_escape?'langHtml':'lang';
$tmp_text = $langF($a6_key);
$tmp_text = nl2br($tmp_text);
echo $tmp_text;
unset($tmp_text);
?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_key,$a6_escape,$a6_cut) ?></td><?php $column_idx++; ?><td
<?php if (!empty($column_widths)) { ?>
width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>"
<?php } ?>
<?php if (!empty($column_classes)) { ?>
class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>"
<?php } ?>
><?php $a6_present='template_url'; ?><?php
$a6_tmp_exec = isset($$a6_present);
$a6_tmp_last_exec = $a6_tmp_exec;
if ( $a6_tmp_exec )
{
?>
<?php unset($a6_present) ?><?php $a7_title='';$a7_target='cms_main_main';$a7_url=$template_url;$a7_class=''; ?><?php
$params = array();
$tmp_url = '';
$tmp_url = $a7_url;
?><a<?php if (isset($a7_name)) echo ' name="'.$a7_name.'"'; else echo ' href="'.$tmp_url.(isset($a7_anchor)?'#'.$a7_anchor:'').'"' ?> class="<?php echo $a7_class ?>" target="<?php echo $a7_target ?>"<?php if (isset($a7_accesskey)) echo ' accesskey="'.$a7_accesskey.'"' ?> title="<?php echo encodeHtml($a7_title) ?>"><?php unset($a7_title,$a7_target,$a7_url,$a7_class) ?><?php $a8_file='icon_template';$a8_align='left'; ?><?php
$a8_tmp_image_file = $image_dir.$a8_file.IMG_ICON_EXT;
$a8_tmp_title = basename($a8_tmp_image_file);
?><img alt="<?php echo $a8_tmp_title; if (isset($a8_size)) { echo ' ('; list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo $a8_tmp_width.'x'.$a8_tmp_height; echo')';} ?>" src="<?php echo $a8_tmp_image_file ?>" border="0"<?php if(isset($a8_align)) echo ' align="'.$a8_align.'"' ?><?php if (isset($a8_size)) { list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo ' width="'.$a8_tmp_width.'" height="'.$a8_tmp_height.'"';} ?>><?php unset($a8_file,$a8_align) ?><?php $a8_class='text';$a8_var='template_name';$a8_escape=true;$a8_cut='both'; ?><?php
$a8_title = '';
$tmp_tag = 'span';
?><<?php echo $tmp_tag ?> class="<?php echo $a8_class ?>" title="<?php echo $a8_title ?>"><?php
$langF = $a8_escape?'langHtml':'lang';
$tmp_text = isset($$a8_var)?$$a8_var:$langF('UNKNOWN');
$tmp_text = nl2br($tmp_text);
echo $tmp_text;
unset($tmp_text);
?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_var,$a8_escape,$a8_cut) ?></a><?php } ?><?php $a6_empty='template_url'; ?><?php
if ( !isset($$a6_empty) )
$a6_tmp_exec = empty($a6_empty);
elseif ( is_array($$a6_empty) )
$a6_tmp_exec = (count($$a6_empty)==0);
elseif ( is_bool($$a6_empty) )
$a6_tmp_exec = true;
else
$a6_tmp_exec = empty( $$a6_empty );
$a6_tmp_last_exec = $a6_tmp_exec;
if ( $a6_tmp_exec )
{
?>
<?php unset($a6_empty) ?><?php $a7_file='icon_template';$a7_align='left'; ?><?php
$a7_tmp_image_file = $image_dir.$a7_file.IMG_ICON_EXT;
$a7_tmp_title = basename($a7_tmp_image_file);
?><img alt="<?php echo $a7_tmp_title; if (isset($a7_size)) { echo ' ('; list($a7_tmp_width,$a7_tmp_height)=explode('x',$a7_size);echo $a7_tmp_width.'x'.$a7_tmp_height; echo')';} ?>" src="<?php echo $a7_tmp_image_file ?>" border="0"<?php if(isset($a7_align)) echo ' align="'.$a7_align.'"' ?><?php if (isset($a7_size)) { list($a7_tmp_width,$a7_tmp_height)=explode('x',$a7_size);echo ' width="'.$a7_tmp_width.'" height="'.$a7_tmp_height.'"';} ?>><?php unset($a7_file,$a7_align) ?><?php $a7_class='text';$a7_var='template_name';$a7_escape=true;$a7_cut='both'; ?><?php
$a7_title = '';
$tmp_tag = 'span';
?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php
$langF = $a7_escape?'langHtml':'lang';
$tmp_text = isset($$a7_var)?$$a7_var:$langF('UNKNOWN');
$tmp_text = nl2br($tmp_text);
echo $tmp_text;
unset($tmp_text);
?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_var,$a7_escape,$a7_cut) ?><?php } ?></td></tr><?php
$row_idx++;
$column_idx = 0;
?>
<tr
>
<?php $column_idx++; ?><td
<?php if (!empty($column_widths)) { ?>
width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>"
<?php } ?>
<?php if (!empty($column_classes)) { ?>
class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>"
<?php } ?>
><?php $a6_class='text';$a6_key='element';$a6_escape=true;$a6_cut='both'; ?><?php
$a6_title = '';
$tmp_tag = 'span';
?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php
$langF = $a6_escape?'langHtml':'lang';
$tmp_text = $langF($a6_key);
$tmp_text = nl2br($tmp_text);
echo $tmp_text;
unset($tmp_text);
?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_key,$a6_escape,$a6_cut) ?></td><?php $column_idx++; ?><td
<?php if (!empty($column_widths)) { ?>
width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>"
<?php } ?>
<?php if (!empty($column_classes)) { ?>
class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>"
<?php } ?>
><?php $a6_present='element_url'; ?><?php
$a6_tmp_exec = isset($$a6_present);
$a6_tmp_last_exec = $a6_tmp_exec;
if ( $a6_tmp_exec )
{
?>
<?php unset($a6_present) ?><?php $a7_title='';$a7_target='cms_main_main';$a7_url=$element_url;$a7_class=''; ?><?php
$params = array();
$tmp_url = '';
$tmp_url = $a7_url;
?><a<?php if (isset($a7_name)) echo ' name="'.$a7_name.'"'; else echo ' href="'.$tmp_url.(isset($a7_anchor)?'#'.$a7_anchor:'').'"' ?> class="<?php echo $a7_class ?>" target="<?php echo $a7_target ?>"<?php if (isset($a7_accesskey)) echo ' accesskey="'.$a7_accesskey.'"' ?> title="<?php echo encodeHtml($a7_title) ?>"><?php unset($a7_title,$a7_target,$a7_url,$a7_class) ?><?php $a8_align='left';$a8_elementtype=$element_type; ?><?php
$a8_tmp_image_file = $image_dir.'icon_el_'.$a8_elementtype.IMG_ICON_EXT;
$a8_size = '16x16';
$a8_tmp_title = basename($a8_tmp_image_file);
?><img alt="<?php echo $a8_tmp_title; if (isset($a8_size)) { echo ' ('; list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo $a8_tmp_width.'x'.$a8_tmp_height; echo')';} ?>" src="<?php echo $a8_tmp_image_file ?>" border="0"<?php if(isset($a8_align)) echo ' align="'.$a8_align.'"' ?><?php if (isset($a8_size)) { list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo ' width="'.$a8_tmp_width.'" height="'.$a8_tmp_height.'"';} ?>><?php unset($a8_align,$a8_elementtype) ?><?php $a8_class='text';$a8_var='element_name';$a8_escape=true;$a8_cut='both'; ?><?php
$a8_title = '';
$tmp_tag = 'span';
?><<?php echo $tmp_tag ?> class="<?php echo $a8_class ?>" title="<?php echo $a8_title ?>"><?php
$langF = $a8_escape?'langHtml':'lang';
$tmp_text = isset($$a8_var)?$$a8_var:$langF('UNKNOWN');
$tmp_text = nl2br($tmp_text);
echo $tmp_text;
unset($tmp_text);
?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_var,$a8_escape,$a8_cut) ?></a><?php } ?><?php $a6_empty='element_url'; ?><?php
if ( !isset($$a6_empty) )
$a6_tmp_exec = empty($a6_empty);
elseif ( is_array($$a6_empty) )
$a6_tmp_exec = (count($$a6_empty)==0);
elseif ( is_bool($$a6_empty) )
$a6_tmp_exec = true;
else
$a6_tmp_exec = empty( $$a6_empty );
$a6_tmp_last_exec = $a6_tmp_exec;
if ( $a6_tmp_exec )
{
?>
<?php unset($a6_empty) ?><?php $a7_icon='element';$a7_align='left'; ?><?php
$a7_tmp_image_file = $image_dir.'icon_'.$a7_icon.IMG_ICON_EXT;
$a7_size = '16x16';
$a7_tmp_title = basename($a7_tmp_image_file);
?><img alt="<?php echo $a7_tmp_title; if (isset($a7_size)) { echo ' ('; list($a7_tmp_width,$a7_tmp_height)=explode('x',$a7_size);echo $a7_tmp_width.'x'.$a7_tmp_height; echo')';} ?>" src="<?php echo $a7_tmp_image_file ?>" border="0"<?php if(isset($a7_align)) echo ' align="'.$a7_align.'"' ?><?php if (isset($a7_size)) { list($a7_tmp_width,$a7_tmp_height)=explode('x',$a7_size);echo ' width="'.$a7_tmp_width.'" height="'.$a7_tmp_height.'"';} ?>><?php unset($a7_icon,$a7_align) ?><?php $a7_class='text';$a7_var='element_name';$a7_escape=true;$a7_cut='both'; ?><?php
$a7_title = '';
$tmp_tag = 'span';
?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php
$langF = $a7_escape?'langHtml':'lang';
$tmp_text = isset($$a7_var)?$$a7_var:$langF('UNKNOWN');
$tmp_text = nl2br($tmp_text);
echo $tmp_text;
unset($tmp_text);
?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_var,$a7_escape,$a7_cut) ?><?php } ?></td></tr><?php $a4_present='text'; ?><?php
$a4_tmp_exec = isset($$a4_present);
$a4_tmp_last_exec = $a4_tmp_exec;
if ( $a4_tmp_exec )
{
?>
<?php unset($a4_present) ?><?php
$row_idx++;
$column_idx = 0;
?>
<tr
>
<?php $a6_colspan='2'; ?><?php $column_idx++; ?><td
<?php if (!empty($column_widths)) { ?>
width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>"
<?php } ?>
<?php if (!empty($column_classes)) { ?>
class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>"
<?php } ?>
colspan="2"
><?php unset($a6_colspan) ?><?php $a7_title=lang('DOCUMENT_TREE'); ?><fieldset><?php if(isset($a7_title)) { ?><legend><?php if(isset($a7_icon)) { ?><image src="<?php echo $image_dir.'icon_'.$a7_icon.IMG_ICON_EXT ?>" align="left" border="0"><?php } ?><?php echo encodeHtml($a7_title) ?></legend><?php } ?><?php unset($a7_title) ?></fieldset></td></tr><?php
$row_idx++;
$column_idx = 0;
?>
<tr
>
<?php $a6_colspan='2'; ?><?php $column_idx++; ?><td
<?php if (!empty($column_widths)) { ?>
width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>"
<?php } ?>
<?php if (!empty($column_classes)) { ?>
class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>"
<?php } ?>
colspan="2"
><?php unset($a6_colspan) ?><?php $a7_name='text';$a7_type='dom'; ?><?php
function checkbox( $name,$value=false,$writable=true,$params=Array() )
{
$src = '<input type="checkbox" id="id_'.$name.'" name="'.$name.'"';
foreach( $params as $name=>$val )
$src .= " $name=\"$val\"";
if ( !$writable )
$src .= ' disabled="disabled"';
if ( $value )
$src .= ' value="1" checked="checked"';
$src .= ' />';
return $src;
}
function selectBox( $name,$values,$default='',$params=Array() )
{
if ( ! is_array($values) )
$values = array($values);
$src = '<select size="1" name="'.$name.'"';
foreach( $params as $name=>$value )
$src .= " $name=\"$value\"";
$src .= '>';
foreach( $values as $key=>$value )
{
$src .= '<option value="'.$key.'"';
if ($key == $default)
$src .= ' selected="selected"';
$src .= '>'.$value.'</option>';
}
$src .= '</select>';
return $src;
}
function add_control($type,$image)
{
global $image_dir;
echo '<td><noscript>'.checkbox($type).'</noscript><label for="id_'.$type.'"><a href="javascript:'.$type.'();" title="'.langHtml('PAGE_EDITOR_ADD_'.$type).'"><img src="'.$image_dir.'/editor/'.$image.'" border"0" /></a></label>';
}
?><?php
switch( $a7_type )
{
case 'fckeditor':
case 'html':
if ( $this->isEditMode() )
{
include_once('./editor/editor/ckeditor.php');
$editor = new CKeditor() ;
$url = FileUtils::slashify(dirname($_SERVER['SCRIPT_NAME']));
$base = defined('OR_BASE_URL')?slashify(OR_BASE_URL).'editor/editor/':'./editor/editor/';
$editor->basePath = $base;
$editor->config['skin' ] = 'v2';
$editor->config['language' ] = config('language','language_code');
$editor->config['toolbar' ] = 'Openrat';
$editor->config['toolbar_Openrat' ] = array(
array('Save','Preview','-'/*,'Templates'*/),
array('Cut','Copy','Paste','PasteText','PasteFromWord','-','Print', 'SpellChecker', 'Scayt'),
array('Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'),
array('Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField'),
'/',
array('Bold','Italic',/*'Underline',*/'Strike','-','Subscript','Superscript'),
array('NumberedList','BulletedList','-','Outdent','Indent','Blockquote'),
array('JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'),
array('Link','Unlink','Anchor'),
array('Image','Flash','Table','HorizontalRule','SpecialChar','PageBreak'),
'/',
array(/*'Styles',*/'Format','Font','FontSize'),
array('TextColor','BGColor'),
array('Source','-', 'ShowBlocks','Maximize') );
$editor->config['filebrowserUploadUrl' ] = str_replace('&','&',Html::url('filebrowser','directupload','-',array(REQ_PARAM_TOKEN=>token(),'name'=>'upload')));
$editor->config['filebrowserBrowseUrl' ] = str_replace('&','&',Html::url('filebrowser','browse','-'));
$editor->editor($a7_name,$$a7_name);
}
else
{
echo ($$a7_name);
}
break;
case 'wiki':
$conf_tags = $conf['editor']['text-markup'];
if ( $this->isEditMode() )
{
?>
<script name="Javascript" type="text/javascript" src="<?php echo $tpl_dir ?>../../js/editor.js"></script>
<script name="JavaScript" type="text/javascript">
function strong()
{
insert('<?php echo $a7_name ?>','<?php echo $conf_tags['strong-begin'] ?>','<?php echo $conf_tags['strong-end'] ?>');
}
function emphatic()
{
insert('<?php echo $a7_name ?>','<?php echo $conf_tags['emphatic-begin'] ?>','<?php echo $conf_tags['emphatic-end'] ?>');
}
function link()
{
objectid = document.forms[0].objectid.value;
if (objectid=="" ||objectid=="0"||objectid==null)
objectid = window.prompt("Id","");
if (objectid=="" ||objectid=="0"||objectid==null)
return;
insert('<?php echo $a7_name ?>','"','"<?php echo $conf_tags['linkto'] ?>"'+objectid+'"');
}
function image()
{
objectid = document.forms[0].objectid.value;
if (objectid=="" ||objectid=="0"||objectid==null)
objectid = window.prompt("Id","");
if (objectid=="" ||objectid=="0"||objectid==null)
return;
insert('<?php echo $a7_name ?>','','<?php echo $conf_tags['image-begin'] ?>"'+objectid+'"<?php echo $conf_tags['image-end'] ?>');
}
function list()
{
insert('<?php echo $a7_name ?>',"","\n");
while( true )
{
t = window.prompt('<?php echo langHtml('EDITOR_PROMPT_LIST_ENTRY') ?>','');
if ( t != '' && t != null )
insert('<?php echo $a7_name ?>',"<?php echo $conf_tags['list-unnumbered'] ?> "+t+"\n","");
else
break;
}
}
function numlist()
{
insert('<?php echo $a7_name ?>',"\n\n<?php echo $conf_tags['list-numbered'] ?> ","\n<?php echo $conf_tags['list-numbered'] ?> \n<?php echo $conf_tags['list-numbered'] ?> \n");
}
function table()
{
column=1;
while( true )
{
if ( column==1 )
text='<?php echo langHtml('EDITOR_PROMPT_TABLE_CELL_FIRST_COLUMN') ?>';
else
text='<?php echo langHtml('EDITOR_PROMPT_TABLE_CELL') ?>';
t = window.prompt(text,'');
if ( t != '' && t != null )
{
insert('<?php echo $a7_name ?>',"<?php echo $conf_tags['table-cell-sep'] ?>"+t,"");
column++;
}
else
{
if (column==1)
{
break;
}
else
{
insert('text',"\n","");
column=1;
}
}
}
}
</script>
<fieldset><legend><?php echo langHtml('EDITOR') ?></legend></fieldset>
<table>
<tr>
<td><noscript><input type="text" name="addtext" size="30" /></noscript></td>
<td><?php add_control('strong' ,'bold.png' )?></td>
<td><?php add_control('emphatic','italic.png') ?></td>
<td> </td>
<td><?php add_control('table','table.png') ?></td>
<td> </td>
<td><?php add_control('list' ,'list.png') ; ?></td>
<td><?php add_control('numlist','numlist.png') ?></td>
<td> </td>
<td><?php add_control('image','image.png') ?></td>
<td><?php add_control('link' ,'link.png' ) ?></td>
<td><input name="objectid" size="6" title="<?php echo langHtml('LINK_TO') ?>"></td>
<td><noscript> <input type="submit" class="submit" name="addmarkup" value="<?php echo langHtml('ADD') ?>"/></noscript></td>
</tr>
</table>
<fieldset><legend><?php echo langHtml('CONTENT') ?></legend></fieldset>
<textarea name="<?php echo $a7_name ?>" class="editor"><?php echo $$a7_name ?></textarea>
<?php
}
else
{
$a7_tmp_text = $$a7_name;
if ( !is_array($a7_tmp_text))
$a7_tmp_text = explode("\n",$a7_tmp_text);
echo implode('',$a7_tmp_text);
}
break;
case 'text':
case 'raw':
if ( $this->isEditMode() )
echo '<textarea name="'.$a7_name.'" class="editor" style="width:100%;height:300px;">'.$$a7_name.'</textarea>';
else
echo nl2br($$a7_name);
break;
case 'dom':
case 'tree':
$a7_tmp_doc = new DocumentElement();
$a7_tmp_text = $$a7_name;
if ( !is_array($a7_tmp_text))
$a7_tmp_text = explode("\n",$a7_tmp_text);
$a7_tmp_doc->parse($a7_tmp_text);
echo $a7_tmp_doc->render('application/html-dom');
break;
default:
echo "Unknown editor type: ".$a7_type;
}
?><?php unset($a7_name,$a7_type) ?></td></tr><?php } ?><?php
$row_idx++;
$column_idx = 0;
?>
<tr
>
<?php $a5_colspan='2'; ?><?php $column_idx++; ?><td
<?php if (!empty($column_widths)) { ?>
width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>"
<?php } ?>
<?php if (!empty($column_classes)) { ?>
class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>"
<?php } ?>
colspan="2"
><?php unset($a5_colspan) ?><?php $a6_title=lang('prop_userinfo'); ?><fieldset><?php if(isset($a6_title)) { ?><legend><?php if(isset($a6_icon)) { ?><image src="<?php echo $image_dir.'icon_'.$a6_icon.IMG_ICON_EXT ?>" align="left" border="0"><?php } ?><?php echo encodeHtml($a6_title) ?></legend><?php } ?><?php unset($a6_title) ?></fieldset></td></tr><?php
$row_idx++;
$column_idx = 0;
?>
<tr
>
<?php $column_idx++; ?><td
<?php if (!empty($column_widths)) { ?>
width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>"
<?php } ?>
<?php if (!empty($column_classes)) { ?>
class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>"
<?php } ?>
><?php $a6_class='text';$a6_text='lastchange';$a6_escape=true;$a6_cut='both'; ?><?php
$a6_title = '';
$tmp_tag = 'span';
?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php
$langF = $a6_escape?'langHtml':'lang';
$tmp_text = $langF($a6_text);
$tmp_text = nl2br($tmp_text);
echo $tmp_text;
unset($tmp_text);
?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_text,$a6_escape,$a6_cut) ?></td><?php $column_idx++; ?><td
<?php if (!empty($column_widths)) { ?>
width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>"
<?php } ?>
<?php if (!empty($column_classes)) { ?>
class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>"
<?php } ?>
><?php $a6_width='100%';$a6_space='0px';$a6_padding='0px'; ?><?php
$last_row_idx = @$row_idx;
$last_column_idx = @$column_idx;
$row_idx = 0;
$column_idx = 0;
$coloumn_widths = array();
$row_classes = array();
$column_classes = array();
?><table class="%class%" cellspacing="0px" width="100%" cellpadding="0px">
<?php unset($a6_width,$a6_space,$a6_padding) ?><?php
$row_idx++;
$column_idx = 0;
?>
<tr
>
<?php $column_idx++; ?><td
<?php if (!empty($column_widths)) { ?>
width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>"
<?php } ?>
<?php if (!empty($column_classes)) { ?>
class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>"
<?php } ?>
><?php $a9_icon='el_date';$a9_align='left'; ?><?php
$a9_tmp_image_file = $image_dir.'icon_'.$a9_icon.IMG_ICON_EXT;
$a9_size = '16x16';
$a9_tmp_title = basename($a9_tmp_image_file);
?><img alt="<?php echo $a9_tmp_title; if (isset($a9_size)) { echo ' ('; list($a9_tmp_width,$a9_tmp_height)=explode('x',$a9_size);echo $a9_tmp_width.'x'.$a9_tmp_height; echo')';} ?>" src="<?php echo $a9_tmp_image_file ?>" border="0"<?php if(isset($a9_align)) echo ' align="'.$a9_align.'"' ?><?php if (isset($a9_size)) { list($a9_tmp_width,$a9_tmp_height)=explode('x',$a9_size);echo ' width="'.$a9_tmp_width.'" height="'.$a9_tmp_height.'"';} ?>><?php unset($a9_icon,$a9_align) ?><?php $a9_date=$lastchange_date; ?><?php
global $conf;
$time = $a9_date;
if ( isset($_COOKIE['or_timezone_offset']) )
{
$time -= (int)date('Z');
$time += ((int)$_COOKIE['or_timezone_offset']*60);
}
if ( $time==0)
echo lang('GLOBAL_UNKNOWN');
elseif ( !$conf['interface']['human_date_format'] )
{
echo '<span title="';
$dl = date(lang('DATE_FORMAT_LONG'),$time);
$dl = str_replace('{weekday}',lang('DATE_WEEKDAY'.strval(date('w',$time))),$dl);
$dl = str_replace('{month}' ,lang('DATE_MONTH' .strval(date('n',$time))),$dl);
echo $dl;
unset($dl);
echo '">';
echo date(lang('DATE_FORMAT'),$time);
echo '</span>';
}
else
{
$sekunden = time()-$time;
$minuten = intval($sekunden/60);
$stunden = intval($minuten /60);
$tage = intval($stunden /24);
$monate = intval($tage /30);
$jahre = intval($monate /12);
echo '<span title="'.date(lang('DATE_FORMAT'),$time).'"">';
if ( $time==0)
echo lang('GLOBAL_UNKNOWN');
elseif ( !$conf['interface']['human_date_format'] )
echo date(lang('DATE_FORMAT'),$time);
elseif ( $sekunden == 1 )
echo $sekunden.' '.lang('GLOBAL_SECOND');
elseif ( $sekunden < 60 )
echo $sekunden.' '.lang('GLOBAL_SECONDS');
elseif ( $minuten == 1 )
echo $minuten.' '.lang('GLOBAL_MINUTE');
elseif ( $minuten < 60 )
echo $minuten.' '.lang('GLOBAL_MINUTES');
elseif ( $stunden == 1 )
echo $stunden.' '.lang('GLOBAL_HOUR');
elseif ( $stunden < 60 )
echo $stunden.' '.lang('GLOBAL_HOURS');
elseif ( $tage == 1 )
echo $tage.' '.lang('GLOBAL_DAY');
elseif ( $tage < 60 )
echo $tage.' '.lang('GLOBAL_DAYS');
elseif ( $monate == 1 )
echo $monate.' '.lang('GLOBAL_MONTH');
elseif ( $monate < 12 )
echo $monate.' '.lang('GLOBAL_MONTHS');
elseif ( $jahre == 1 )
echo $jahre.' '.lang('GLOBAL_YEAR');
else
echo $jahre.' '.lang('GLOBAL_YEARS');
echo '</span>';
}
?><?php unset($a9_date) ?></td><?php $column_idx++; ?><td
<?php if (!empty($column_widths)) { ?>
width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>"
<?php } ?>
<?php if (!empty($column_classes)) { ?>
class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>"
<?php } ?>
><?php $a9_icon='user';$a9_align='left'; ?><?php
$a9_tmp_image_file = $image_dir.'icon_'.$a9_icon.IMG_ICON_EXT;
$a9_size = '16x16';
$a9_tmp_title = basename($a9_tmp_image_file);
?><img alt="<?php echo $a9_tmp_title; if (isset($a9_size)) { echo ' ('; list($a9_tmp_width,$a9_tmp_height)=explode('x',$a9_size);echo $a9_tmp_width.'x'.$a9_tmp_height; echo')';} ?>" src="<?php echo $a9_tmp_image_file ?>" border="0"<?php if(isset($a9_align)) echo ' align="'.$a9_align.'"' ?><?php if (isset($a9_size)) { list($a9_tmp_width,$a9_tmp_height)=explode('x',$a9_size);echo ' width="'.$a9_tmp_width.'" height="'.$a9_tmp_height.'"';} ?>><?php unset($a9_icon,$a9_align) ?><?php $a9_user=$lastchange_user; ?><?php
if ( is_object($a9_user) )
$user = $a9_user;
else
$user = $$a9_user;
if ( empty($user->name) )
$user->name = lang('GLOBAL_UNKNOWN');
if ( empty($user->fullname) )
$user->fullname = lang('GLOBAL_NO_DESCRIPTION_AVAILABLE');
if ( !empty($user->mail) && $conf['security']['user']['show_mail'] )
echo '<a href="mailto:'.$user->mail.'" title="'.$user->fullname.'">'.$user->name.'</a>';
else
echo '<span title="'.$user->fullname.'">'.$user->name.'</span>';
?><?php unset($a9_user) ?></td></tr><?php
$row_idx = $last_row_idx;
$column_idx = $last_column_idx;
?>
</table></td></tr> </table>
</td>
</tr>
</table>
</center>
<?php if ($showDuration)
{ ?>
<br/>
<center><small>
<?php $dur = time()-START_TIME;
echo floor($dur/60).':'.str_pad($dur%60,2,'0',STR_PAD_LEFT); ?></small></center>
<?php } ?>
</form>
</body>
</html>