openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit b602bff7a2adcbd9242e418183df7fca2d9fc0df
parent bebc8b0d6430a2ed0aee1dbbdb85140f9363aa07
Author: Jan Dankert <devnull@localhost>
Date:   Mon,  6 Nov 2017 23:10:19 +0100

Include-Dateien der Templates je Komponente in einen eigenen Unterordner stecken.

Diffstat:
themes/default/include/html/button.inc.php | 33---------------------------------
themes/default/include/html/button/button-begin.inc.php | 33+++++++++++++++++++++++++++++++++
themes/default/include/html/char.inc.php | 7-------
themes/default/include/html/char/char-begin.inc.php | 7+++++++
themes/default/include/html/checkbox.inc.php | 15---------------
themes/default/include/html/checkbox/checkbox-begin.inc.php | 15+++++++++++++++
themes/default/include/html/column-end.inc.php | 2--
themes/default/include/html/column.inc.php | 33---------------------------------
themes/default/include/html/column/column-begin.inc.php | 33+++++++++++++++++++++++++++++++++
themes/default/include/html/column/column-end.inc.php | 2++
themes/default/include/html/date.inc.php | 74--------------------------------------------------------------------------
themes/default/include/html/date/date-begin.inc.php | 74++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/include/html/dummy.inc.php | 0
themes/default/include/html/dummy/dummy-begin.inc.php | 0
themes/default/include/html/editor.inc.php | 104-------------------------------------------------------------------------------
themes/default/include/html/editor/editor-begin.inc.php | 104+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/include/html/else-end.inc.php | 4----
themes/default/include/html/else.inc.php | 3---
themes/default/include/html/else/else-begin.inc.php | 3+++
themes/default/include/html/else/else-end.inc.php | 4++++
themes/default/include/html/end.inc.php | 0
themes/default/include/html/focus.inc.php | 6------
themes/default/include/html/focus/focus-begin.inc.php | 6++++++
themes/default/include/html/form-end.inc.php | 16----------------
themes/default/include/html/form.inc.php | 70----------------------------------------------------------------------
themes/default/include/html/form/form-begin.inc.php | 70++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/include/html/form/form-end.inc.php | 16++++++++++++++++
themes/default/include/html/group-end.inc.php | 5-----
themes/default/include/html/group.inc.php | 7-------
themes/default/include/html/group/group-begin.inc.php | 7+++++++
themes/default/include/html/group/group-end.inc.php | 5+++++
themes/default/include/html/header.inc.php | 11-----------
themes/default/include/html/header/header-begin.inc.php | 11+++++++++++
themes/default/include/html/hidden.inc.php | 9---------
themes/default/include/html/hidden/hidden-begin.inc.php | 9+++++++++
themes/default/include/html/if-end.inc.php | 4----
themes/default/include/html/if.inc.php | 67-------------------------------------------------------------------
themes/default/include/html/if/if-begin.inc.php | 67+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/include/html/if/if-end.inc.php | 4++++
themes/default/include/html/image.inc.php | 57---------------------------------------------------------
themes/default/include/html/image/image-begin.inc.php | 57+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/include/html/input.inc.php | 14--------------
themes/default/include/html/input/input-begin.inc.php | 14++++++++++++++
themes/default/include/html/inputarea.inc.php | 2--
themes/default/include/html/inputarea/inputarea-begin.inc.php | 2++
themes/default/include/html/insert.inc.php | 31-------------------------------
themes/default/include/html/insert/insert-begin.inc.php | 31+++++++++++++++++++++++++++++++
themes/default/include/html/label-end.inc.php | 2--
themes/default/include/html/label.inc.php | 3---
themes/default/include/html/label/label-begin.inc.php | 3+++
themes/default/include/html/label/label-end.inc.php | 2++
themes/default/include/html/link-end.inc.php | 2--
themes/default/include/html/link.inc.php | 63---------------------------------------------------------------
themes/default/include/html/link/link-begin.inc.php | 63+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/include/html/link/link-end.inc.php | 2++
themes/default/include/html/list-end.inc.php | 3---
themes/default/include/html/list.inc.php | 26--------------------------
themes/default/include/html/list/list-begin.inc.php | 26++++++++++++++++++++++++++
themes/default/include/html/list/list-end.inc.php | 3+++
themes/default/include/html/logo.inc.php | 15---------------
themes/default/include/html/logo/logo-begin.inc.php | 15+++++++++++++++
themes/default/include/html/newline.inc.php | 2--
themes/default/include/html/newline/newline-begin.inc.php | 2++
themes/default/include/html/object.inc.php | 1-
themes/default/include/html/output.inc.php | 0
themes/default/include/html/output/output-begin.inc.php | 0
themes/default/include/html/page-end.inc.php | 3---
themes/default/include/html/page.inc.php | 86-------------------------------------------------------------------------------
themes/default/include/html/page/page-begin.inc.php | 86+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/include/html/page/page-end.inc.php | 3+++
themes/default/include/html/part-end.inc.php | 3---
themes/default/include/html/part.inc.php | 15---------------
themes/default/include/html/part/part-begin.inc.php | 15+++++++++++++++
themes/default/include/html/part/part-end.inc.php | 3+++
themes/default/include/html/password.inc.php | 2--
themes/default/include/html/password/password-begin.inc.php | 2++
themes/default/include/html/qrcode.inc.php | 2--
themes/default/include/html/qrcode/qrcode-begin.inc.php | 2++
themes/default/include/html/radio.inc.php | 34----------------------------------
themes/default/include/html/radio/radio-begin.inc.php | 34++++++++++++++++++++++++++++++++++
themes/default/include/html/radiobox.inc.php | 19-------------------
themes/default/include/html/radiobox/radiobox-begin.inc.php | 19+++++++++++++++++++
themes/default/include/html/row-end.inc.php | 2--
themes/default/include/html/row.inc.php | 13-------------
themes/default/include/html/row/row-begin.inc.php | 13+++++++++++++
themes/default/include/html/row/row-end.inc.php | 2++
themes/default/include/html/selectbox.inc.php | 58----------------------------------------------------------
themes/default/include/html/selectbox/selectbox-begin.inc.php | 58++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/include/html/selector.inc.php | 8--------
themes/default/include/html/selector/selector-begin.inc.php | 8++++++++
themes/default/include/html/set.inc.php | 12------------
themes/default/include/html/set/set-begin.inc.php | 12++++++++++++
themes/default/include/html/table-end.inc.php | 7-------
themes/default/include/html/table.inc.php | 29-----------------------------
themes/default/include/html/table/table-begin.inc.php | 29+++++++++++++++++++++++++++++
themes/default/include/html/table/table-end.inc.php | 7+++++++
themes/default/include/html/text.inc.php | 97-------------------------------------------------------------------------------
themes/default/include/html/text/text-begin.inc.php | 97+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/include/html/tree.inc.php | 34----------------------------------
themes/default/include/html/tree/tree-begin.inc.php | 34++++++++++++++++++++++++++++++++++
themes/default/include/html/upload.inc.php | 2--
themes/default/include/html/upload/upload-begin.inc.php | 2++
themes/default/include/html/user.inc.php | 17-----------------
themes/default/include/html/user/user-begin.inc.php | 17+++++++++++++++++
util/TemplateEngine.class.php | 8++++----
105 files changed, 1137 insertions(+), 1138 deletions(-)

diff --git a/themes/default/include/html/button.inc.php b/themes/default/include/html/button.inc.php @@ -1,32 +0,0 @@ -<div class="invisible"> -<?php - #IF-ATTR-VALUE type:ok# - if ($this->isEditable() && !$this->isEditMode() && !readonly() ) - { - $attr_type = ''; // Knopf nicht anzeigen - ?><a class="action" href="<?php echo Html::url($actionName,$subactionName,0,array('mode'=>'edit')) ?>"><span title="<?php echo lang('MODE_EDIT_DESC') ?>"><?php echo langHtml('MODE_EDIT') ?></span></a><?php - } else - { - $attr_type = 'submit'; - } - #END-IF - - #IF-ATTR src# - $attr_type = 'image'; - $attr_tmp_src = $image_dir.'icon_'.$attr_src.IMG_ICON_EXT; - #ELSE - $attr_tmp_src = ''; - #END-IF - if ( !empty($attr_type)) { -?> -<input type="<?php echo $attr_type ?>"<?php if(isset($attr_src)) { ?> src="<?php $attr_tmp_src ?>"<?php } ?> name="<?php echo $attr_value ?>" class="%class%" title="<?php echo lang($attr_text.'_DESC') ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo langHtml($attr_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?php unset($attr_src); ?> -<?php } - #IF-ATTR-VALUE type:ok# - if ($this->isEditable() && $this->isEditMode() ) - { - // 2. Knopf "Cancel" - ?><a class="action" href="<?php echo Html::url($actionName,$subactionName,0,array('mode'=>'')) ?>"><span title="<?php echo lang('CANCEL_DESC') ?>"><?php echo langHtml('CANCEL') ?></span></a><?php - } - #END-IF -?> -</div>- \ No newline at end of file diff --git a/themes/default/include/html/button/button-begin.inc.php b/themes/default/include/html/button/button-begin.inc.php @@ -0,0 +1,32 @@ +<div class="invisible"> +<?php + #IF-ATTR-VALUE type:ok# + if ($this->isEditable() && !$this->isEditMode() && !readonly() ) + { + $attr_type = ''; // Knopf nicht anzeigen + ?><a class="action" href="<?php echo Html::url($actionName,$subactionName,0,array('mode'=>'edit')) ?>"><span title="<?php echo lang('MODE_EDIT_DESC') ?>"><?php echo langHtml('MODE_EDIT') ?></span></a><?php + } else + { + $attr_type = 'submit'; + } + #END-IF + + #IF-ATTR src# + $attr_type = 'image'; + $attr_tmp_src = $image_dir.'icon_'.$attr_src.IMG_ICON_EXT; + #ELSE + $attr_tmp_src = ''; + #END-IF + if ( !empty($attr_type)) { +?> +<input type="<?php echo $attr_type ?>"<?php if(isset($attr_src)) { ?> src="<?php $attr_tmp_src ?>"<?php } ?> name="<?php echo $attr_value ?>" class="%class%" title="<?php echo lang($attr_text.'_DESC') ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo langHtml($attr_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?php unset($attr_src); ?> +<?php } + #IF-ATTR-VALUE type:ok# + if ($this->isEditable() && $this->isEditMode() ) + { + // 2. Knopf "Cancel" + ?><a class="action" href="<?php echo Html::url($actionName,$subactionName,0,array('mode'=>'')) ?>"><span title="<?php echo lang('CANCEL_DESC') ?>"><?php echo langHtml('CANCEL') ?></span></a><?php + } + #END-IF +?> +</div>+ \ No newline at end of file diff --git a/themes/default/include/html/char.inc.php b/themes/default/include/html/char.inc.php @@ -1,6 +0,0 @@ -<?php - if ($attr_type=='filesep') - echo '&nbsp;<strong>&raquo;</strong>&nbsp;'; - else - echo "char error"; -?>- \ No newline at end of file diff --git a/themes/default/include/html/char/char-begin.inc.php b/themes/default/include/html/char/char-begin.inc.php @@ -0,0 +1,6 @@ +<?php + if ($attr_type=='filesep') + echo '&nbsp;<strong>&raquo;</strong>&nbsp;'; + else + echo "char error"; +?>+ \ No newline at end of file diff --git a/themes/default/include/html/checkbox.inc.php b/themes/default/include/html/checkbox.inc.php @@ -1,14 +0,0 @@ -<?php - if ($this->isEditable() && !$this->isEditMode()) $attr_readonly=true; - - if ( isset($$attr_name) ) - $checked = $$attr_name; - else - $checked = $attr_default; -?><input class="checkbox" type="checkbox" id="<?php echo REQUEST_ID ?>_<?php echo $attr_name ?>" name="<?php echo $attr_name ?>" <?php if ($attr_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?> /><?php - -if ( $attr_readonly && $checked ) -{ -?><input type="hidden" name="<?php echo $attr_name ?>" value="1" /><?php -} -?><?php unset($attr_name); unset($attr_readonly); unset($attr_default); ?>- \ No newline at end of file diff --git a/themes/default/include/html/checkbox/checkbox-begin.inc.php b/themes/default/include/html/checkbox/checkbox-begin.inc.php @@ -0,0 +1,14 @@ +<?php + if ($this->isEditable() && !$this->isEditMode()) $attr_readonly=true; + + if ( isset($$attr_name) ) + $checked = $$attr_name; + else + $checked = $attr_default; +?><input class="checkbox" type="checkbox" id="<?php echo REQUEST_ID ?>_<?php echo $attr_name ?>" name="<?php echo $attr_name ?>" <?php if ($attr_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?> /><?php + +if ( $attr_readonly && $checked ) +{ +?><input type="hidden" name="<?php echo $attr_name ?>" value="1" /><?php +} +?><?php unset($attr_name); unset($attr_readonly); unset($attr_default); ?>+ \ No newline at end of file diff --git a/themes/default/include/html/column-end.inc.php b/themes/default/include/html/column-end.inc.php @@ -1 +0,0 @@ -</td>- \ No newline at end of file diff --git a/themes/default/include/html/column.inc.php b/themes/default/include/html/column.inc.php @@ -1,32 +0,0 @@ -<?php $column_idx++; ?><td -#IF-ATTR width# - width="%width%" -#ELSE# -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" -<?php } ?> -#END-IF# -#IF-ATTR style# - style="%style%" -#END-IF# -#IF-ATTR class# - class="%class%" -#ELSE# -<?php if (!empty($column_classes)) { ?> - class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" -<?php } ?> -#END-IF# -#IF-ATTR colspan# - colspan="%colspan%" -#END-IF# -#IF-ATTR rowspan# - rowspan="%rowspan%" -#END-IF# -#IF-ATTR title# - title="%title%" -#END-IF# - -#IF-ATTR id# - onclick="javascript:openNewAction('<?php echo $attr_name ?>','<?php echo $attr_action ?>','<?php echo $attr_id ?>'); " -#END-IF# ->- \ No newline at end of file diff --git a/themes/default/include/html/column/column-begin.inc.php b/themes/default/include/html/column/column-begin.inc.php @@ -0,0 +1,32 @@ +<?php $column_idx++; ?><td +#IF-ATTR width# + width="%width%" +#ELSE# +<?php if (!empty($column_widths)) { ?> + width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" +<?php } ?> +#END-IF# +#IF-ATTR style# + style="%style%" +#END-IF# +#IF-ATTR class# + class="%class%" +#ELSE# +<?php if (!empty($column_classes)) { ?> + class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" +<?php } ?> +#END-IF# +#IF-ATTR colspan# + colspan="%colspan%" +#END-IF# +#IF-ATTR rowspan# + rowspan="%rowspan%" +#END-IF# +#IF-ATTR title# + title="%title%" +#END-IF# + +#IF-ATTR id# + onclick="javascript:openNewAction('<?php echo $attr_name ?>','<?php echo $attr_action ?>','<?php echo $attr_id ?>'); " +#END-IF# +>+ \ No newline at end of file diff --git a/themes/default/include/html/column/column-end.inc.php b/themes/default/include/html/column/column-end.inc.php @@ -0,0 +1 @@ +</td>+ \ No newline at end of file diff --git a/themes/default/include/html/date.inc.php b/themes/default/include/html/date.inc.php @@ -1,73 +0,0 @@ -<?php - global $conf; - $time = $attr_date; - - if ( $time==0) - echo lang('GLOBAL_UNKNOWN'); - else - { - // Benutzereinstellung 'Zeitzonen-Offset' auswerten. - if ( isset($_COOKIE['or_timezone_offset']) ) - { - $time -= (int)date('Z'); - $time += ((int)$_COOKIE['or_timezone_offset']*60); - } - - 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); -// $dl = str_replace(' ','&nbsp;',$dl); - echo $dl; - unset($dl); - - - $sekunden = time()-$time; - $minuten = intval($sekunden/60); - $stunden = intval($minuten /60); - $tage = intval($stunden /24); - $monate = intval($tage /30); - $jahre = intval($monate /12); - - echo ' ('; - - - if ( $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 ')'; - - - echo '">'; - echo date(lang('DATE_FORMAT'),$time); - echo '</span>'; - } - -?>- \ No newline at end of file diff --git a/themes/default/include/html/date/date-begin.inc.php b/themes/default/include/html/date/date-begin.inc.php @@ -0,0 +1,73 @@ +<?php + global $conf; + $time = $attr_date; + + if ( $time==0) + echo lang('GLOBAL_UNKNOWN'); + else + { + // Benutzereinstellung 'Zeitzonen-Offset' auswerten. + if ( isset($_COOKIE['or_timezone_offset']) ) + { + $time -= (int)date('Z'); + $time += ((int)$_COOKIE['or_timezone_offset']*60); + } + + 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); +// $dl = str_replace(' ','&nbsp;',$dl); + echo $dl; + unset($dl); + + + $sekunden = time()-$time; + $minuten = intval($sekunden/60); + $stunden = intval($minuten /60); + $tage = intval($stunden /24); + $monate = intval($tage /30); + $jahre = intval($monate /12); + + echo ' ('; + + + if ( $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 ')'; + + + echo '">'; + echo date(lang('DATE_FORMAT'),$time); + echo '</span>'; + } + +?>+ \ No newline at end of file diff --git a/themes/default/include/html/dummy.inc.php b/themes/default/include/html/dummy.inc.php diff --git a/themes/default/include/html/dummy/dummy-begin.inc.php b/themes/default/include/html/dummy/dummy-begin.inc.php diff --git a/themes/default/include/html/editor.inc.php b/themes/default/include/html/editor.inc.php @@ -1,103 +0,0 @@ -<?php - - - function checkbox( $name,$value=false,$writable=true,$params=Array() ) - { - $src = '<input type="checkbox" id="'.REQUEST_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="'.REQUEST_ID.'_'.$type.'"><a href="javascript:'.$type.'();" title="'.langHtml('PAGE_EDITOR_ADD_'.$type).'"><img src="'.$image_dir.'/editor/'.$image.'" border"0" /></a></label>'; - } - - - ?><?php - -switch( $attr_type ) -{ - case 'fckeditor': - case 'html': - echo '<textarea name="'.$attr_name.'" class="editor htmleditor" id="pageelement_edit_editor">'.$$attr_name.'</textarea>'; - - break; - - case 'wiki': - $conf_tags = $conf['editor']['text-markup']; - - ?><textarea name="<?php echo $attr_name ?>" class="editor wikieditor"><?php echo $$attr_name ?></textarea><?php - break; - - case 'text': - case 'raw': - if ( $this->isEditMode() ) - echo '<textarea name="'.$attr_name.'" class="editor" style="width:100%;height:300px;">'.$$attr_name.'</textarea>'; - else - echo nl2br($$attr_name); - break; - - case 'ace': - case 'code': -// echo '<div class="ace-editor editor">'; -// echo '<textarea style="display:none" name="'.$attr_name.'" class="editor" style="width:100%;height:300px;">'.$$attr_name.'</textarea>'; -// echo '<div class="ace-editor"textarea name="'.$attr_name.'_ace"></div>'; -// echo '<textarea name="'.$attr_name.'" class="editor ace-editor" style="width:100%;height:300px;">'.$$attr_name.'</textarea>'; - echo '<textarea name="'.$attr_name.'" data-mode="'.$attr_mode.'" class="code-editor">'.$$attr_name.'</textarea>'; -// echo '</div>'; - break; - - - case 'dom': - case 'tree': - - $attr_tmp_doc = new DocumentElement(); - $attr_tmp_text = $$attr_name; - if ( !is_array($attr_tmp_text)) - $attr_tmp_text = explode("\n",$attr_tmp_text); - - $attr_tmp_doc->parse($attr_tmp_text); - echo $attr_tmp_doc->render('application/html-dom'); - break; - - default: - echo "Unknown editor type: ".$attr_type; -} -?>- \ No newline at end of file diff --git a/themes/default/include/html/editor/editor-begin.inc.php b/themes/default/include/html/editor/editor-begin.inc.php @@ -0,0 +1,103 @@ +<?php + + + function checkbox( $name,$value=false,$writable=true,$params=Array() ) + { + $src = '<input type="checkbox" id="'.REQUEST_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="'.REQUEST_ID.'_'.$type.'"><a href="javascript:'.$type.'();" title="'.langHtml('PAGE_EDITOR_ADD_'.$type).'"><img src="'.$image_dir.'/editor/'.$image.'" border"0" /></a></label>'; + } + + + ?><?php + +switch( $attr_type ) +{ + case 'fckeditor': + case 'html': + echo '<textarea name="'.$attr_name.'" class="editor htmleditor" id="pageelement_edit_editor">'.$$attr_name.'</textarea>'; + + break; + + case 'wiki': + $conf_tags = $conf['editor']['text-markup']; + + ?><textarea name="<?php echo $attr_name ?>" class="editor wikieditor"><?php echo $$attr_name ?></textarea><?php + break; + + case 'text': + case 'raw': + if ( $this->isEditMode() ) + echo '<textarea name="'.$attr_name.'" class="editor" style="width:100%;height:300px;">'.$$attr_name.'</textarea>'; + else + echo nl2br($$attr_name); + break; + + case 'ace': + case 'code': +// echo '<div class="ace-editor editor">'; +// echo '<textarea style="display:none" name="'.$attr_name.'" class="editor" style="width:100%;height:300px;">'.$$attr_name.'</textarea>'; +// echo '<div class="ace-editor"textarea name="'.$attr_name.'_ace"></div>'; +// echo '<textarea name="'.$attr_name.'" class="editor ace-editor" style="width:100%;height:300px;">'.$$attr_name.'</textarea>'; + echo '<textarea name="'.$attr_name.'" data-mode="'.$attr_mode.'" class="code-editor">'.$$attr_name.'</textarea>'; +// echo '</div>'; + break; + + + case 'dom': + case 'tree': + + $attr_tmp_doc = new DocumentElement(); + $attr_tmp_text = $$attr_name; + if ( !is_array($attr_tmp_text)) + $attr_tmp_text = explode("\n",$attr_tmp_text); + + $attr_tmp_doc->parse($attr_tmp_text); + echo $attr_tmp_doc->render('application/html-dom'); + break; + + default: + echo "Unknown editor type: ".$attr_type; +} +?>+ \ No newline at end of file diff --git a/themes/default/include/html/else-end.inc.php b/themes/default/include/html/else-end.inc.php @@ -1,3 +0,0 @@ -/* Ignore: */ <?php { ?> -<?php } -unset($attr_tmp_last_exec) ?>- \ No newline at end of file diff --git a/themes/default/include/html/else.inc.php b/themes/default/include/html/else.inc.php @@ -1,2 +0,0 @@ -<?php if (!$attr_tmp_last_exec) { ?> -/* Ignore: */ <?php } ?>- \ No newline at end of file diff --git a/themes/default/include/html/else/else-begin.inc.php b/themes/default/include/html/else/else-begin.inc.php @@ -0,0 +1,2 @@ +<?php if (!$attr_tmp_last_exec) { ?> +/* Ignore: */ <?php } ?>+ \ No newline at end of file diff --git a/themes/default/include/html/else/else-end.inc.php b/themes/default/include/html/else/else-end.inc.php @@ -0,0 +1,3 @@ +/* Ignore: */ <?php { ?> +<?php } +unset($attr_tmp_last_exec) ?>+ \ No newline at end of file diff --git a/themes/default/include/html/end.inc.php b/themes/default/include/html/end.inc.php diff --git a/themes/default/include/html/focus.inc.php b/themes/default/include/html/focus.inc.php @@ -1,6 +0,0 @@ -<script name="JavaScript" type="text/javascript"><!-- -// Auskommentiert, da JQuery sonst abbricht und die Success-Function des LoadEvents nicht mehr ausführt. -//document.forms[0].<?php echo $attr_field ?>.focus(); -//document.forms[0].<?php echo $attr_field ?>.select(); -// --> -</script> diff --git a/themes/default/include/html/focus/focus-begin.inc.php b/themes/default/include/html/focus/focus-begin.inc.php @@ -0,0 +1,6 @@ +<script name="JavaScript" type="text/javascript"><!-- +// Auskommentiert, da JQuery sonst abbricht und die Success-Function des LoadEvents nicht mehr ausführt. +//document.forms[0].<?php echo $attr_field ?>.focus(); +//document.forms[0].<?php echo $attr_field ?>.select(); +// --> +</script> diff --git a/themes/default/include/html/form-end.inc.php b/themes/default/include/html/form-end.inc.php @@ -1,16 +0,0 @@ - -<!-- Ignore: --><form> - -<div class="bottom"> - <div class="command <?php echo $attr_tmp_visible?'visible':'xinvisible' ?>"> - - <input type="button" class="submit ok" value="<?php echo $attr_tmp_ok_label ?>" onclick="$(this).closest('div.sheet').find('form').submit(); " /> - - <!-- Cancel-Button nicht anzeigen, wenn cancel==false. --> - <?php if ($attr_tmp_show_cancel) { ?> - <input type="button" class="submit cancel" value="<?php echo lang('CANCEL') ?>" onclick="$('div#dialog').hide(); $('div#filler').fadeOut(500); $(this).closest('div.panel').find('ul.views > li.active').click();" /> - <?php } ?> - </div> -</div> - -</form> diff --git a/themes/default/include/html/form.inc.php b/themes/default/include/html/form.inc.php @@ -1,69 +0,0 @@ -<?php - #IF-ATTR action# - #ELSE - $attr_action = $actionName; - #END-IF - #IF-ATTR subaction# - #ELSE - $attr_subaction = $targetSubActionName; - #END-IF - #IF-ATTR id# - #ELSE - $attr_id = $this->getRequestId(); - #END-IF - - #IF-ATTR label# - $attr_tmp_ok_label = $attr_label; - #ELSE - $attr_tmp_ok_label = lang('BUTTON_OK'); - #END-IF - - $attr_tmp_show_cancel = $attr_cancel; - $attr_tmp_visible = $attr_visible; - - if ($this->isEditable()) - { - if ($this->isEditMode()) - { - $attr_method = 'POST'; - } - else - { - $attr_method = 'GET'; - $attr_subaction = $subActionName; - } - } - - switch( $attr_type ) - { - case 'upload': - $attr_tmp_submitFunction = ''; - break; - default: - $attr_tmp_submitFunction = 'formSubmit( $(this) ); return false;'; - } - -?><form name="<?php echo $attr_name ?>" - target="<?php echo $attr_target ?>" - action="" - data-method="<?php echo $attr_subaction ?>" - data-action="<?php echo $attr_action ?>" - data-id="<?php echo $requestId ?>" - method="<?php echo $attr_method ?>" - enctype="<?php echo $attr_enctype ?>" - class="<?php echo $attr_action ?>" - data-async="<?php echo $attr_async?'true':'false' ?>" - data-autosave="<?php echo $attr_autosave?'true':'false' ?>" - onSubmit="<?php echo $attr_tmp_submitFunction ?>"><input type="submit" class="invisible" /> - -<?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 $this->actionName ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo empty($attr_subaction)?$this->subActionName:$attr_subaction ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $this->getRequestId() ?>" /><?php - if ( $conf['interface']['url_sessionid'] ) - echo '<input type="hidden" name="'.session_name().'" value="'.session_id().'" />'."\n"; -?>- \ No newline at end of file diff --git a/themes/default/include/html/form/form-begin.inc.php b/themes/default/include/html/form/form-begin.inc.php @@ -0,0 +1,69 @@ +<?php + #IF-ATTR action# + #ELSE + $attr_action = $actionName; + #END-IF + #IF-ATTR subaction# + #ELSE + $attr_subaction = $targetSubActionName; + #END-IF + #IF-ATTR id# + #ELSE + $attr_id = $this->getRequestId(); + #END-IF + + #IF-ATTR label# + $attr_tmp_ok_label = $attr_label; + #ELSE + $attr_tmp_ok_label = lang('BUTTON_OK'); + #END-IF + + $attr_tmp_show_cancel = $attr_cancel; + $attr_tmp_visible = $attr_visible; + + if ($this->isEditable()) + { + if ($this->isEditMode()) + { + $attr_method = 'POST'; + } + else + { + $attr_method = 'GET'; + $attr_subaction = $subActionName; + } + } + + switch( $attr_type ) + { + case 'upload': + $attr_tmp_submitFunction = ''; + break; + default: + $attr_tmp_submitFunction = 'formSubmit( $(this) ); return false;'; + } + +?><form name="<?php echo $attr_name ?>" + target="<?php echo $attr_target ?>" + action="" + data-method="<?php echo $attr_subaction ?>" + data-action="<?php echo $attr_action ?>" + data-id="<?php echo $requestId ?>" + method="<?php echo $attr_method ?>" + enctype="<?php echo $attr_enctype ?>" + class="<?php echo $attr_action ?>" + data-async="<?php echo $attr_async?'true':'false' ?>" + data-autosave="<?php echo $attr_autosave?'true':'false' ?>" + onSubmit="<?php echo $attr_tmp_submitFunction ?>"><input type="submit" class="invisible" /> + +<?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 $this->actionName ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo empty($attr_subaction)?$this->subActionName:$attr_subaction ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $this->getRequestId() ?>" /><?php + if ( $conf['interface']['url_sessionid'] ) + echo '<input type="hidden" name="'.session_name().'" value="'.session_id().'" />'."\n"; +?>+ \ No newline at end of file diff --git a/themes/default/include/html/form/form-end.inc.php b/themes/default/include/html/form/form-end.inc.php @@ -0,0 +1,16 @@ + +<!-- Ignore: --><form> + +<div class="bottom"> + <div class="command <?php echo $attr_tmp_visible?'visible':'xinvisible' ?>"> + + <input type="button" class="submit ok" value="<?php echo $attr_tmp_ok_label ?>" onclick="$(this).closest('div.sheet').find('form').submit(); " /> + + <!-- Cancel-Button nicht anzeigen, wenn cancel==false. --> + <?php if ($attr_tmp_show_cancel) { ?> + <input type="button" class="submit cancel" value="<?php echo lang('CANCEL') ?>" onclick="$('div#dialog').hide(); $('div#filler').fadeOut(500); $(this).closest('div.panel').find('ul.views > li.active').click();" /> + <?php } ?> + </div> +</div> + +</form> diff --git a/themes/default/include/html/group-end.inc.php b/themes/default/include/html/group-end.inc.php @@ -1,4 +0,0 @@ -<!-- Ignore: --><fieldset><div> - - -</div></fieldset>- \ No newline at end of file diff --git a/themes/default/include/html/group.inc.php b/themes/default/include/html/group.inc.php @@ -1,6 +0,0 @@ -<?php -?><fieldset class="<?php echo $attr_open?'open':'' ?> <?php echo $attr_show?'show':'' ?>"><?php if(isset($attr_title)) { ?><legend><?php if(isset($attr_icon)) { ?>&nbsp;&nbsp;<img src="<?php echo $image_dir.'icon_'.$attr_icon.IMG_ICON_EXT ?>" align="left" border="0" /><?php } ?><div class="arrow-right closed" /><div class="arrow-down open" />&nbsp;&nbsp;<?php echo encodeHtml($attr_title) ?>&nbsp;&nbsp;</legend><?php } ?><div> - - - -<!-- Ignored: --></div></fieldset>- \ No newline at end of file diff --git a/themes/default/include/html/group/group-begin.inc.php b/themes/default/include/html/group/group-begin.inc.php @@ -0,0 +1,6 @@ +<?php +?><fieldset class="<?php echo $attr_open?'open':'' ?> <?php echo $attr_show?'show':'' ?>"><?php if(isset($attr_title)) { ?><legend><?php if(isset($attr_icon)) { ?>&nbsp;&nbsp;<img src="<?php echo $image_dir.'icon_'.$attr_icon.IMG_ICON_EXT ?>" align="left" border="0" /><?php } ?><div class="arrow-right closed" /><div class="arrow-down open" />&nbsp;&nbsp;<?php echo encodeHtml($attr_title) ?>&nbsp;&nbsp;</legend><?php } ?><div> + + + +<!-- Ignored: --></div></fieldset>+ \ No newline at end of file diff --git a/themes/default/include/html/group/group-end.inc.php b/themes/default/include/html/group/group-end.inc.php @@ -0,0 +1,4 @@ +<!-- Ignore: --><fieldset><div> + + +</div></fieldset>+ \ No newline at end of file diff --git a/themes/default/include/html/header.inc.php b/themes/default/include/html/header.inc.php @@ -1,11 +0,0 @@ -<?php if(!empty($attr_views)) { ?> - <div class="headermenu"> - <?php foreach( explode(',',$attr_views) as $attr_tmp_view ) { ?> - <div class="toolbar-icon clickable"> - <a href="javascript:void(0);" data-type="dialog" data-name="<?php echo lang('MENU_'.$attr_tmp_view) ?>" data-method="<?php echo $attr_tmp_view ?>"> - <img src="<?php echo $image_dir ?>icon/<?php echo $attr_tmp_view ?>.png" title="<?php echo lang('MENU_'.$attr_tmp_view.'_DESC') ?>" /> <?php echo lang('MENU_'.$attr_tmp_view) ?> - </a> - </div> - <?php } ?> - </div> -<?php } ?> diff --git a/themes/default/include/html/header/header-begin.inc.php b/themes/default/include/html/header/header-begin.inc.php @@ -0,0 +1,11 @@ +<?php if(!empty($attr_views)) { ?> + <div class="headermenu"> + <?php foreach( explode(',',$attr_views) as $attr_tmp_view ) { ?> + <div class="toolbar-icon clickable"> + <a href="javascript:void(0);" data-type="dialog" data-name="<?php echo lang('MENU_'.$attr_tmp_view) ?>" data-method="<?php echo $attr_tmp_view ?>"> + <img src="<?php echo $image_dir ?>icon/<?php echo $attr_tmp_view ?>.png" title="<?php echo lang('MENU_'.$attr_tmp_view.'_DESC') ?>" /> <?php echo lang('MENU_'.$attr_tmp_view) ?> + </a> + </div> + <?php } ?> + </div> +<?php } ?> diff --git a/themes/default/include/html/hidden.inc.php b/themes/default/include/html/hidden.inc.php @@ -1,8 +0,0 @@ -<?php -if (isset($$attr_name)) - $attr_tmp_value = $$attr_name; -elseif ( isset($attr_default) ) - $attr_tmp_value = $attr_default; -else - $attr_tmp_value = ""; -?><input type="hidden" name="<?php echo $attr_name ?>" value="<?php echo $attr_tmp_value ?>" />- \ No newline at end of file diff --git a/themes/default/include/html/hidden/hidden-begin.inc.php b/themes/default/include/html/hidden/hidden-begin.inc.php @@ -0,0 +1,8 @@ +<?php +if (isset($$attr_name)) + $attr_tmp_value = $$attr_name; +elseif ( isset($attr_default) ) + $attr_tmp_value = $attr_default; +else + $attr_tmp_value = ""; +?><input type="hidden" name="<?php echo $attr_name ?>" value="<?php echo $attr_tmp_value ?>" />+ \ No newline at end of file diff --git a/themes/default/include/html/if-end.inc.php b/themes/default/include/html/if-end.inc.php @@ -1,3 +0,0 @@ -/* THIS LINE WILL BE IGNORED */ <?php { ?> - -<?php } ?>- \ No newline at end of file diff --git a/themes/default/include/html/if.inc.php b/themes/default/include/html/if.inc.php @@ -1,66 +0,0 @@ -<?php - -#IF-ATTR true# - // Wahr-Vergleich - if (gettype($attr_true) === '' && gettype($attr_true) === '1') - $attr_tmp_exec = $$attr_true == true; - else - $attr_tmp_exec = $attr_true == true; -#END-IF# - -#IF-ATTR false# - if (gettype($attr_false) === '' && gettype($attr_false) === '1') - $attr_tmp_exec = $$attr_false == false; - else - $attr_tmp_exec = $attr_false == false; - -#END-IF# - -#IF-ATTR contains# - // Inhalt-Vergleich mit Wertliste - $attr_tmp_exec = in_array($attr_value,explode(',',$attr_contains)); -#END-IF# - -#IF-ATTR equals# - $attr_tmp_exec = $attr_equals == $attr_value; -#END-IF# - -#IF-ATTR lessthan# - // Inhalt-Vergleich - $attr_tmp_exec = intval($attr_lessthan) > intval($attr_value); -#END-IF# - -#IF-ATTR greaterthan# - $attr_tmp_exec = intval($attr_greaterthan) < intval($attr_value); -#END-IF# - - -#IF-ATTR empty# - if ( !isset($$attr_empty) ) - $attr_tmp_exec = empty($attr_empty); - elseif ( is_array($$attr_empty) ) - $attr_tmp_exec = (count($$attr_empty)==0); - elseif ( is_bool($$attr_empty) ) - $attr_tmp_exec = true; - else - $attr_tmp_exec = empty( $$attr_empty ); -#END-IF# - - -#IF-ATTR present# - $attr_tmp_exec = isset($$attr_present); -#END-IF# - - -#IF-ATTR not# - $attr_tmp_exec = !$attr_tmp_exec; -#END-IF# - - // Fuer eine eventuelle ELSE-Bedingung merken wir uns den Status. - $attr_tmp_last_exec = $attr_tmp_exec; - - if ( $attr_tmp_exec ) - { -?> - -/* THIS LINE WILL BE IGNORED */ <?php } ?>- \ No newline at end of file diff --git a/themes/default/include/html/if/if-begin.inc.php b/themes/default/include/html/if/if-begin.inc.php @@ -0,0 +1,66 @@ +<?php + +#IF-ATTR true# + // Wahr-Vergleich + if (gettype($attr_true) === '' && gettype($attr_true) === '1') + $attr_tmp_exec = $$attr_true == true; + else + $attr_tmp_exec = $attr_true == true; +#END-IF# + +#IF-ATTR false# + if (gettype($attr_false) === '' && gettype($attr_false) === '1') + $attr_tmp_exec = $$attr_false == false; + else + $attr_tmp_exec = $attr_false == false; + +#END-IF# + +#IF-ATTR contains# + // Inhalt-Vergleich mit Wertliste + $attr_tmp_exec = in_array($attr_value,explode(',',$attr_contains)); +#END-IF# + +#IF-ATTR equals# + $attr_tmp_exec = $attr_equals == $attr_value; +#END-IF# + +#IF-ATTR lessthan# + // Inhalt-Vergleich + $attr_tmp_exec = intval($attr_lessthan) > intval($attr_value); +#END-IF# + +#IF-ATTR greaterthan# + $attr_tmp_exec = intval($attr_greaterthan) < intval($attr_value); +#END-IF# + + +#IF-ATTR empty# + if ( !isset($$attr_empty) ) + $attr_tmp_exec = empty($attr_empty); + elseif ( is_array($$attr_empty) ) + $attr_tmp_exec = (count($$attr_empty)==0); + elseif ( is_bool($$attr_empty) ) + $attr_tmp_exec = true; + else + $attr_tmp_exec = empty( $$attr_empty ); +#END-IF# + + +#IF-ATTR present# + $attr_tmp_exec = isset($$attr_present); +#END-IF# + + +#IF-ATTR not# + $attr_tmp_exec = !$attr_tmp_exec; +#END-IF# + + // Fuer eine eventuelle ELSE-Bedingung merken wir uns den Status. + $attr_tmp_last_exec = $attr_tmp_exec; + + if ( $attr_tmp_exec ) + { +?> + +/* THIS LINE WILL BE IGNORED */ <?php } ?>+ \ No newline at end of file diff --git a/themes/default/include/html/if/if-end.inc.php b/themes/default/include/html/if/if-end.inc.php @@ -0,0 +1,3 @@ +/* THIS LINE WILL BE IGNORED */ <?php { ?> + +<?php } ?>+ \ No newline at end of file diff --git a/themes/default/include/html/image.inc.php b/themes/default/include/html/image.inc.php @@ -1,56 +0,0 @@ -<?php - -/* #IF-ATTR elementtype# */ - $attr_tmp_image_file = $image_dir.'icon_el_'.$attr_elementtype.IMG_ICON_EXT; - $attr_size = '16x16'; -/* #END-IF# */ - -/* #IF-ATTR type# */ - $attr_tmp_image_file = $image_dir.'icon_'.$attr_type.IMG_ICON_EXT; - $attr_size = '16x16'; -/* #END-IF# */ - -/* #IF-ATTR icon# */ - if ( is_file($image_dir.'icon/'.$attr_icon.IMG_ICON_EXT) ) - $attr_tmp_image_file = $image_dir.'icon/'.$attr_icon.IMG_ICON_EXT; - elseif ( is_file($image_dir.'icon/'.$attr_icon.IMG_EXT) ) - $attr_tmp_image_file = $image_dir.'icon/'.$attr_icon.IMG_EXT; - elseif ( is_file($image_dir.'icon_'.$attr_icon.IMG_ICON_EXT) ) - $attr_tmp_image_file = $image_dir.'icon_'.$attr_icon.IMG_ICON_EXT; - elseif ( is_file($image_dir.'icon_'.$attr_icon.IMG_EXT) ) - $attr_tmp_image_file = $image_dir.'icon_'.$attr_icon.IMG_EXT; - else - $attr_tmp_image_file = 'about:blank'; - - $attr_size = '16x16'; -/* #END-IF# */ - -/* #IF-ATTR notice# */ - $attr_tmp_image_file = $image_dir.'notice_'.$attr_notice.IMG_ICON_EXT; - $attr_size = '16x16'; -/* #END-IF# */ - -/* #IF-ATTR tree# */ - $attr_tmp_image_file = $image_dir.'tree_'.$attr_tree.IMG_EXT; - $attr_size = '18x18'; -/* #END-IF# */ - -/* #IF-ATTR url# */ - $attr_tmp_image_file = $attr_url; -/* #END-IF# */ - -/* #IF-ATTR fileext# */ - $attr_tmp_image_file = $image_dir.$attr_fileext; -/* #END-IF# */ - -/* #IF-ATTR file# */ - $attr_tmp_image_file = $image_dir.$attr_file.IMG_ICON_EXT; -/* #END-IF# */ - -/* #IF-ATTR title# */ - $attr_tmp_title = $attr_title; -/* #ELSE# */ - $attr_tmp_title = basename($attr_tmp_image_file); -/* #END-IF# */ - -?><img alt="<?php echo $attr_tmp_title; if (isset($attr_size)) { echo ' ('; list($attr_tmp_width,$attr_tmp_height)=explode('x',$attr_size);echo $attr_tmp_width.'x'.$attr_tmp_height; echo')';} ?>" src="<?php echo $attr_tmp_image_file ?>" border="0"<?php if(isset($attr_align)) echo ' align="'.$attr_align.'"' ?><?php if (isset($attr_size)) { list($attr_tmp_width,$attr_tmp_height)=explode('x',$attr_size);echo ' width="'.$attr_tmp_width.'" height="'.$attr_tmp_height.'"';} ?> />- \ No newline at end of file diff --git a/themes/default/include/html/image/image-begin.inc.php b/themes/default/include/html/image/image-begin.inc.php @@ -0,0 +1,56 @@ +<?php + +/* #IF-ATTR elementtype# */ + $attr_tmp_image_file = $image_dir.'icon_el_'.$attr_elementtype.IMG_ICON_EXT; + $attr_size = '16x16'; +/* #END-IF# */ + +/* #IF-ATTR type# */ + $attr_tmp_image_file = $image_dir.'icon_'.$attr_type.IMG_ICON_EXT; + $attr_size = '16x16'; +/* #END-IF# */ + +/* #IF-ATTR icon# */ + if ( is_file($image_dir.'icon/'.$attr_icon.IMG_ICON_EXT) ) + $attr_tmp_image_file = $image_dir.'icon/'.$attr_icon.IMG_ICON_EXT; + elseif ( is_file($image_dir.'icon/'.$attr_icon.IMG_EXT) ) + $attr_tmp_image_file = $image_dir.'icon/'.$attr_icon.IMG_EXT; + elseif ( is_file($image_dir.'icon_'.$attr_icon.IMG_ICON_EXT) ) + $attr_tmp_image_file = $image_dir.'icon_'.$attr_icon.IMG_ICON_EXT; + elseif ( is_file($image_dir.'icon_'.$attr_icon.IMG_EXT) ) + $attr_tmp_image_file = $image_dir.'icon_'.$attr_icon.IMG_EXT; + else + $attr_tmp_image_file = 'about:blank'; + + $attr_size = '16x16'; +/* #END-IF# */ + +/* #IF-ATTR notice# */ + $attr_tmp_image_file = $image_dir.'notice_'.$attr_notice.IMG_ICON_EXT; + $attr_size = '16x16'; +/* #END-IF# */ + +/* #IF-ATTR tree# */ + $attr_tmp_image_file = $image_dir.'tree_'.$attr_tree.IMG_EXT; + $attr_size = '18x18'; +/* #END-IF# */ + +/* #IF-ATTR url# */ + $attr_tmp_image_file = $attr_url; +/* #END-IF# */ + +/* #IF-ATTR fileext# */ + $attr_tmp_image_file = $image_dir.$attr_fileext; +/* #END-IF# */ + +/* #IF-ATTR file# */ + $attr_tmp_image_file = $image_dir.$attr_file.IMG_ICON_EXT; +/* #END-IF# */ + +/* #IF-ATTR title# */ + $attr_tmp_title = $attr_title; +/* #ELSE# */ + $attr_tmp_title = basename($attr_tmp_image_file); +/* #END-IF# */ + +?><img alt="<?php echo $attr_tmp_title; if (isset($attr_size)) { echo ' ('; list($attr_tmp_width,$attr_tmp_height)=explode('x',$attr_size);echo $attr_tmp_width.'x'.$attr_tmp_height; echo')';} ?>" src="<?php echo $attr_tmp_image_file ?>" border="0"<?php if(isset($attr_align)) echo ' align="'.$attr_align.'"' ?><?php if (isset($attr_size)) { list($attr_tmp_width,$attr_tmp_height)=explode('x',$attr_size);echo ' width="'.$attr_tmp_width.'" height="'.$attr_tmp_height.'"';} ?> />+ \ No newline at end of file diff --git a/themes/default/include/html/input.inc.php b/themes/default/include/html/input.inc.php @@ -1,13 +0,0 @@ -<?php if ($this->isEditable() && !$this->isEditMode()) $attr_readonly=true; - if ($attr_readonly && empty($$attr_name)) $$attr_name = '- '.lang('EMPTY').' -'; - if(!isset($attr_default)) $attr_default=''; -// $tmp_value = htmlentities(isset($$attr_name)?$$attr_name:$attr_default,ENT_COMPAT,'UTF-8'); - $tmp_value = Text::encodeHtml(isset($$attr_name)?$$attr_name:$attr_default); - -?><?php if (!$attr_readonly || $attr_type=='hidden') { - /* Feld editieren */ -?><div class="<?php echo $attr_type!='hidden'?'inputholder':'inputhidden' ?>"><input<?php if ($attr_readonly) echo ' disabled="true"' ?><?php if ($attr_hint) echo ' data-hint="'.$attr_hint.'"'; ?> id="<?php echo REQUEST_ID ?>_<?php echo $attr_name ?><?php if ($attr_readonly) echo '_disabled' ?>" name="<?php echo $attr_name ?><?php if ($attr_readonly) echo '_disabled' ?>" type="<?php echo $attr_type ?>" maxlength="<?php echo $attr_maxlength ?>" class="<?php echo str_replace(',',' ',$attr_class) ?>" value="<?php echo $tmp_value ?>" /><?php if ($attr_icon) echo '<img src="'.$image_dir.'icon_'.$attr_icon.IMG_ICON_EXT.'" width="16" height="16" />'; ?></div><?php -if ($attr_readonly) { - /* Nur anzeigen */ -?><input type="hidden" id="<?php echo REQUEST_ID ?>_<?php echo $attr_name ?>" name="<?php echo $attr_name ?>" value="<?php echo $tmp_value ?>" /><?php - } } else { ?><a title="<?php echo langHtml('EDIT') ?>" href="<?php echo Html::url($actionName,$subActionName,0,array('mode'=>'edit')) ?>"><span class="<?php echo $attr_class ?>"><?php echo $tmp_value ?></span></a><?php } ?>- \ No newline at end of file diff --git a/themes/default/include/html/input/input-begin.inc.php b/themes/default/include/html/input/input-begin.inc.php @@ -0,0 +1,13 @@ +<?php if ($this->isEditable() && !$this->isEditMode()) $attr_readonly=true; + if ($attr_readonly && empty($$attr_name)) $$attr_name = '- '.lang('EMPTY').' -'; + if(!isset($attr_default)) $attr_default=''; +// $tmp_value = htmlentities(isset($$attr_name)?$$attr_name:$attr_default,ENT_COMPAT,'UTF-8'); + $tmp_value = Text::encodeHtml(isset($$attr_name)?$$attr_name:$attr_default); + +?><?php if (!$attr_readonly || $attr_type=='hidden') { + /* Feld editieren */ +?><div class="<?php echo $attr_type!='hidden'?'inputholder':'inputhidden' ?>"><input<?php if ($attr_readonly) echo ' disabled="true"' ?><?php if ($attr_hint) echo ' data-hint="'.$attr_hint.'"'; ?> id="<?php echo REQUEST_ID ?>_<?php echo $attr_name ?><?php if ($attr_readonly) echo '_disabled' ?>" name="<?php echo $attr_name ?><?php if ($attr_readonly) echo '_disabled' ?>" type="<?php echo $attr_type ?>" maxlength="<?php echo $attr_maxlength ?>" class="<?php echo str_replace(',',' ',$attr_class) ?>" value="<?php echo $tmp_value ?>" /><?php if ($attr_icon) echo '<img src="'.$image_dir.'icon_'.$attr_icon.IMG_ICON_EXT.'" width="16" height="16" />'; ?></div><?php +if ($attr_readonly) { + /* Nur anzeigen */ +?><input type="hidden" id="<?php echo REQUEST_ID ?>_<?php echo $attr_name ?>" name="<?php echo $attr_name ?>" value="<?php echo $tmp_value ?>" /><?php + } } else { ?><a title="<?php echo langHtml('EDIT') ?>" href="<?php echo Html::url($actionName,$subActionName,0,array('mode'=>'edit')) ?>"><span class="<?php echo $attr_class ?>"><?php echo $tmp_value ?></span></a><?php } ?>+ \ No newline at end of file diff --git a/themes/default/include/html/inputarea.inc.php b/themes/default/include/html/inputarea.inc.php @@ -1 +0,0 @@ -<div class="inputholder"><textarea class="<?php echo $attr_class ?>" name="<?php echo $attr_name ?>" ><?php echo Text::encodeHtml(isset($$attr_name)?$$attr_name:$attr_default) ?></textarea></div>- \ No newline at end of file diff --git a/themes/default/include/html/inputarea/inputarea-begin.inc.php b/themes/default/include/html/inputarea/inputarea-begin.inc.php @@ -0,0 +1 @@ +<div class="inputholder"><textarea class="<?php echo $attr_class ?>" name="<?php echo $attr_name ?>" ><?php echo Text::encodeHtml(isset($$attr_name)?$$attr_name:$attr_default) ?></textarea></div>+ \ No newline at end of file diff --git a/themes/default/include/html/insert.inc.php b/themes/default/include/html/insert.inc.php @@ -1,31 +0,0 @@ -<!-- This line will be ignored by the template compiler --><?php die() ?> - -/* #IF-ATTR file# */ -<?php include( $tpl_dir.basename($attr_file ).'.tpl.php'); ?> -/* #END-IF# */ - -/* #IF-ATTR script# */ -<?php -$attr_tmp_file = $tpl_dir.'../../js/'.basename($attr_script).'.js'; -if (!$attr_inline) -{ - ?><script src="<?php echo $attr_tmp_file ?>" type="text/javascript"></script><?php -} -else -{ - echo '<script type="text/javascript">'; - // Sehr einfaches Minifizieren des Java-Skriptes. - echo str_replace(' ',' ',str_replace('~','',strtr(implode('',file($attr_tmp_file)),"\t\n\b",'~~~'))); - echo '</script>'; -} -?> -/* #END-IF# */ - -/* #IF-ATTR url# */ -<iframe name="<?php echo $attr_name ?>" src="<?php echo $attr_url ?>"></iframe> -/* #END-IF# */ - -/* #IF-ATTR function# */ -Hallo! -<script type="text/javascript" name="JavaScript"><?php echo $attr_function?>();</script> -/* #END-IF# */ diff --git a/themes/default/include/html/insert/insert-begin.inc.php b/themes/default/include/html/insert/insert-begin.inc.php @@ -0,0 +1,31 @@ +<!-- This line will be ignored by the template compiler --><?php die() ?> + +/* #IF-ATTR file# */ +<?php include( $tpl_dir.basename($attr_file ).'.tpl.php'); ?> +/* #END-IF# */ + +/* #IF-ATTR script# */ +<?php +$attr_tmp_file = $tpl_dir.'../../js/'.basename($attr_script).'.js'; +if (!$attr_inline) +{ + ?><script src="<?php echo $attr_tmp_file ?>" type="text/javascript"></script><?php +} +else +{ + echo '<script type="text/javascript">'; + // Sehr einfaches Minifizieren des Java-Skriptes. + echo str_replace(' ',' ',str_replace('~','',strtr(implode('',file($attr_tmp_file)),"\t\n\b",'~~~'))); + echo '</script>'; +} +?> +/* #END-IF# */ + +/* #IF-ATTR url# */ +<iframe name="<?php echo $attr_name ?>" src="<?php echo $attr_url ?>"></iframe> +/* #END-IF# */ + +/* #IF-ATTR function# */ +Hallo! +<script type="text/javascript" name="JavaScript"><?php echo $attr_function?>();</script> +/* #END-IF# */ diff --git a/themes/default/include/html/label-end.inc.php b/themes/default/include/html/label-end.inc.php @@ -1 +0,0 @@ -</label>- \ No newline at end of file diff --git a/themes/default/include/html/label.inc.php b/themes/default/include/html/label.inc.php @@ -1,2 +0,0 @@ -<label<?php if (isset($attr_for)) { ?> for="<?php echo REQUEST_ID ?>_<?php echo $attr_for ?><?php if (!empty($attr_value)) echo '_'.$attr_value ?>" <?php if(hasLang(@$attr_key.'_desc')) { ?> title="<?php echo lang(@$attr_key.'_desc')?>"<?php } ?> class="label"<?php } ?>> -<?php if (isset($attr_key)) { echo lang($attr_key); ?><?php if (isset($attr_text)) { echo $attr_text; } ?><?php } ?>- \ No newline at end of file diff --git a/themes/default/include/html/label/label-begin.inc.php b/themes/default/include/html/label/label-begin.inc.php @@ -0,0 +1,2 @@ +<label<?php if (isset($attr_for)) { ?> for="<?php echo REQUEST_ID ?>_<?php echo $attr_for ?><?php if (!empty($attr_value)) echo '_'.$attr_value ?>" <?php if(hasLang(@$attr_key.'_desc')) { ?> title="<?php echo lang(@$attr_key.'_desc')?>"<?php } ?> class="label"<?php } ?>> +<?php if (isset($attr_key)) { echo lang($attr_key); ?><?php if (isset($attr_text)) { echo $attr_text; } ?><?php } ?>+ \ No newline at end of file diff --git a/themes/default/include/html/label/label-end.inc.php b/themes/default/include/html/label/label-end.inc.php @@ -0,0 +1 @@ +</label>+ \ No newline at end of file diff --git a/themes/default/include/html/link-end.inc.php b/themes/default/include/html/link-end.inc.php @@ -1 +0,0 @@ -</a>- \ No newline at end of file diff --git a/themes/default/include/html/link.inc.php b/themes/default/include/html/link.inc.php @@ -1,62 +0,0 @@ -<?php - $params = array(); - #IF-ATTR var1# - $params[$attr_var1]=$attr_value1; - #END-IF - #IF-ATTR var2# - $params[$attr_var2]=$attr_value2; - #END-IF - #IF-ATTR var3# - $params[$attr_var3]=$attr_value3; - #END-IF - #IF-ATTR var4# - $params[$attr_var4]=$attr_value4; - #END-IF - #IF-ATTR var5# - $params[$attr_var5]=$attr_value5; - #END-IF - - #IF-ATTR class# - #ELSE - $attr_class=''; - #END-IF - - #IF-ATTR url# - #ELSE - $attr_url=''; - #END-IF - - #IF-ATTR title# - #ELSE - $attr_title = ''; - #END-IF - - $tmp_url = ''; - - #IF-ATTR target# - $params[REQ_PARAM_TARGET] = $attr_target; - #ELSE - $attr_target = $view; - #END-IF - - //$tmp_url = Html::url($attr_action,$attr_subaction,!empty($attr_id)?$attr_id:$this->getRequestId(),$params); - $tmp_href = 'javascript:void(0);'; - switch( $attr_type ) - { - case 'post': - $json = new JSON(); - $tmp_data = $json->encode( array('action'=>!empty($attr_action)?$attr_action:$this->actionName,'subaction'=>!empty($attr_subaction)?$attr_subaction:$this->subActionName,'id'=>!empty($attr_id)?$attr_id:$this->getRequestId()) - +array(REQ_PARAM_TOKEN=>token()) - +$params ); - $tmp_data = str_replace("\n",'',str_replace('"','&quot;',$tmp_data)); - break; - case 'html'; - $tmp_href = $attr_url; - default: - $tmp_data = ''; - } - -// if ( substr($tmp_url,0,10) != 'javascript' ) -// $tmp_url = "javascript:loadViewByName('".$attr_target."','".$tmp_url.(isset($attr_anchor)?'#'.$attr_anchor:'')."'); return false;"; - -?><a data-url="<?php echo $attr_url ?>" target="<?php echo $attr_frame ?>"<?php if (isset($attr_name)) { ?> data-name="<?php echo $attr_name ?>" name="<?php echo $attr_name ?>"<?php }else{ ?> href="<?php echo $tmp_href ?>" <?php } ?> class="<?php echo $attr_class ?>" data-id="<?php echo @$attr_id ?>" data-type="<?php echo $attr_type ?>" data-action="<?php echo @$attr_action ?>" data-method="<?php echo @$attr_subaction ?>" data-data="<?php echo $tmp_data ?>" <?php if (isset($attr_accesskey)) echo ' accesskey="'.$attr_accesskey.'"' ?> title="<?php echo encodeHtml($attr_title) ?>">- \ No newline at end of file diff --git a/themes/default/include/html/link/link-begin.inc.php b/themes/default/include/html/link/link-begin.inc.php @@ -0,0 +1,62 @@ +<?php + $params = array(); + #IF-ATTR var1# + $params[$attr_var1]=$attr_value1; + #END-IF + #IF-ATTR var2# + $params[$attr_var2]=$attr_value2; + #END-IF + #IF-ATTR var3# + $params[$attr_var3]=$attr_value3; + #END-IF + #IF-ATTR var4# + $params[$attr_var4]=$attr_value4; + #END-IF + #IF-ATTR var5# + $params[$attr_var5]=$attr_value5; + #END-IF + + #IF-ATTR class# + #ELSE + $attr_class=''; + #END-IF + + #IF-ATTR url# + #ELSE + $attr_url=''; + #END-IF + + #IF-ATTR title# + #ELSE + $attr_title = ''; + #END-IF + + $tmp_url = ''; + + #IF-ATTR target# + $params[REQ_PARAM_TARGET] = $attr_target; + #ELSE + $attr_target = $view; + #END-IF + + //$tmp_url = Html::url($attr_action,$attr_subaction,!empty($attr_id)?$attr_id:$this->getRequestId(),$params); + $tmp_href = 'javascript:void(0);'; + switch( $attr_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($attr_action)?$attr_action:$this->actionName,'subaction'=>!empty($attr_subaction)?$attr_subaction:$this->subActionName,'id'=>!empty($attr_id)?$attr_id:$this->getRequestId()) + +array(REQ_PARAM_TOKEN=>token()) + +$params ); + $tmp_data = str_replace("\n",'',str_replace('"','&quot;',$tmp_data)); + break; + case 'html'; + $tmp_href = $attr_url; + default: + $tmp_data = ''; + } + +// if ( substr($tmp_url,0,10) != 'javascript' ) +// $tmp_url = "javascript:loadViewByName('".$attr_target."','".$tmp_url.(isset($attr_anchor)?'#'.$attr_anchor:'')."'); return false;"; + +?><a data-url="<?php echo $attr_url ?>" target="<?php echo $attr_frame ?>"<?php if (isset($attr_name)) { ?> data-name="<?php echo $attr_name ?>" name="<?php echo $attr_name ?>"<?php }else{ ?> href="<?php echo $tmp_href ?>" <?php } ?> class="<?php echo $attr_class ?>" data-id="<?php echo @$attr_id ?>" data-type="<?php echo $attr_type ?>" data-action="<?php echo @$attr_action ?>" data-method="<?php echo @$attr_subaction ?>" data-data="<?php echo $tmp_data ?>" <?php if (isset($attr_accesskey)) echo ' accesskey="'.$attr_accesskey.'"' ?> title="<?php echo encodeHtml($attr_title) ?>">+ \ No newline at end of file diff --git a/themes/default/include/html/link/link-end.inc.php b/themes/default/include/html/link/link-end.inc.php @@ -0,0 +1 @@ +</a>+ \ No newline at end of file diff --git a/themes/default/include/html/list-end.inc.php b/themes/default/include/html/list-end.inc.php @@ -1,2 +0,0 @@ -/* Ignore: */ <?php { ?> -<?php } ?>- \ No newline at end of file diff --git a/themes/default/include/html/list.inc.php b/themes/default/include/html/list.inc.php @@ -1,25 +0,0 @@ -<?php -//-- - $attr_list_tmp_key = $attr_key; - $attr_list_tmp_value = $attr_value; - $attr_list_extract = $attr_extract; - unset($attr_key); - unset($attr_value); - - if ( !isset($$attr_list) || !is_array($$attr_list) ) - $$attr_list = array(); - - foreach( $$attr_list as $$attr_list_tmp_key => $$attr_list_tmp_value ) - { - if ( $attr_list_extract ) - { - if ( !is_array($$attr_list_tmp_value) ) - { - print_r($$attr_list_tmp_value); - die( 'not an array at key: '.$$attr_list_tmp_key ); - } - extract($$attr_list_tmp_value); - } - - /* Diese Zeile wird ignoriert */ } -?>- \ No newline at end of file diff --git a/themes/default/include/html/list/list-begin.inc.php b/themes/default/include/html/list/list-begin.inc.php @@ -0,0 +1,25 @@ +<?php +//-- + $attr_list_tmp_key = $attr_key; + $attr_list_tmp_value = $attr_value; + $attr_list_extract = $attr_extract; + unset($attr_key); + unset($attr_value); + + if ( !isset($$attr_list) || !is_array($$attr_list) ) + $$attr_list = array(); + + foreach( $$attr_list as $$attr_list_tmp_key => $$attr_list_tmp_value ) + { + if ( $attr_list_extract ) + { + if ( !is_array($$attr_list_tmp_value) ) + { + print_r($$attr_list_tmp_value); + die( 'not an array at key: '.$$attr_list_tmp_key ); + } + extract($$attr_list_tmp_value); + } + + /* Diese Zeile wird ignoriert */ } +?>+ \ No newline at end of file diff --git a/themes/default/include/html/list/list-end.inc.php b/themes/default/include/html/list/list-end.inc.php @@ -0,0 +1,2 @@ +/* Ignore: */ <?php { ?> +<?php } ?>+ \ No newline at end of file diff --git a/themes/default/include/html/logo.inc.php b/themes/default/include/html/logo.inc.php @@ -1,15 +0,0 @@ -<div class="line logo"> - <div class="label"> - <img src="<?php echo $image_dir.'logo_'.$attr_name.IMG_ICON_EXT ?>" - border="0" /> - </div> - <div class="input"> - <h2> - <?php echo langHtml('logo_'.$attr_name) ?> - </h2> - <p> - <?php echo langHtml('logo_'.$attr_name.'_text') ?> - </p> - - </div> -</div> diff --git a/themes/default/include/html/logo/logo-begin.inc.php b/themes/default/include/html/logo/logo-begin.inc.php @@ -0,0 +1,15 @@ +<div class="line logo"> + <div class="label"> + <img src="<?php echo $image_dir.'logo_'.$attr_name.IMG_ICON_EXT ?>" + border="0" /> + </div> + <div class="input"> + <h2> + <?php echo langHtml('logo_'.$attr_name) ?> + </h2> + <p> + <?php echo langHtml('logo_'.$attr_name.'_text') ?> + </p> + + </div> +</div> diff --git a/themes/default/include/html/newline.inc.php b/themes/default/include/html/newline.inc.php @@ -1 +0,0 @@ -<br/>- \ No newline at end of file diff --git a/themes/default/include/html/newline/newline-begin.inc.php b/themes/default/include/html/newline/newline-begin.inc.php @@ -0,0 +1 @@ +<br/>+ \ No newline at end of file diff --git a/themes/default/include/html/object.inc.php b/themes/default/include/html/object.inc.php @@ -1 +0,0 @@ -<a href="<?php Html::url('main',$$object->type,$$object->objectid) ?>" target="cms_main" title="<?php $$object->description ?>"><img src="<?php echo $image_dir.'icon_'.$$o->getType().IMG_EXT ?>" align="left" border="0"><?php echo $$o->name ?></a> diff --git a/themes/default/include/html/output.inc.php b/themes/default/include/html/output.inc.php diff --git a/themes/default/include/html/output/output-begin.inc.php b/themes/default/include/html/output/output-begin.inc.php diff --git a/themes/default/include/html/page-end.inc.php b/themes/default/include/html/page-end.inc.php @@ -1,2 +0,0 @@ -</body> -</html>- \ No newline at end of file diff --git a/themes/default/include/html/page.inc.php b/themes/default/include/html/page.inc.php @@ -1,86 +0,0 @@ -<?php - if (!defined('OR_VERSION')) die('Forbidden'); - if (!headers_sent()) header('Content-Type: text/html; charset=UTF-8') -?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> -<html> -<head> - <title><?php echo OR_TITLE.' '.OR_VERSION ?></title> - <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> - <meta http-equiv="content-type" content="text/html; charset=UTF-8" > -<?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 - } ?> - <link id="userstyle" rel="stylesheet" type="text/css" href="<?php echo css_link($style) ?>" > - - <link rel="stylesheet" type="text/css" href="<?php echo OR_THEMES_EXT_DIR ?>../editor/markitup/markitup/skins/markitup/style.css" /> - <link rel="stylesheet" type="text/css" href="<?php echo OR_THEMES_EXT_DIR ?>../editor/markitup/markitup/sets/default/style.css" /> - <script src="<?php echo OR_THEMES_EXT_DIR ?>default/js/jquery-1.12.4.min.js" async></script> - <script src="<?php echo OR_THEMES_EXT_DIR ?>default/js/jquery-ui/js/jquery-ui-1.8.16.custom.min.js" async></script> - <script src="<?php echo OR_THEMES_EXT_DIR ?>default/js/jquery.scrollTo.js" async></script> - <!-- - <script src="<?php echo OR_THEMES_EXT_DIR ?>default/js/jquery.mjs.nestedSortable.js"></script> - --> - - <!-- OpenRat internal JS --> - <script src="<?php echo OR_THEMES_EXT_DIR ?>default/js/plugin/jquery-plugin-orHint.js" async></script> - <script src="<?php echo OR_THEMES_EXT_DIR ?>default/js/plugin/jquery-plugin-orSearch.js" async></script> - <script src="<?php echo OR_THEMES_EXT_DIR ?>default/js/plugin/jquery-plugin-orLinkify.js" async></script> - <script src="<?php echo OR_THEMES_EXT_DIR ?>default/js/plugin/jquery-plugin-orTree.js" async></script> - <script src="<?php echo OR_THEMES_EXT_DIR ?>default/js/plugin/jquery-plugin-orLoadView.js" async></script> - <script src="<?php echo OR_THEMES_EXT_DIR ?>default/js/plugin/jquery-plugin-orAutoheight.js" async></script> - - <script src="<?php echo OR_THEMES_EXT_DIR ?>default/js/openrat.js" async></script> - <!-- - <script src="<?php echo OR_THEMES_EXT_DIR ?>../editor/wymeditor/wymeditor/jquery.wymeditor.min.js"></script> - --> - <script src="<?php echo OR_THEMES_EXT_DIR ?>../editor/editor/adapters/jquery.js" async></script> - <script src="<?php echo OR_THEMES_EXT_DIR ?>../editor/markitup/markitup/jquery.markitup.js" async></script> - <script src="<?php echo OR_THEMES_EXT_DIR ?>../editor/editor/ckeditor.js" async></script> - <!-- - <script src="/~dankert/cms-test/cms09/themes/default/js/jquery-ui/js/jquery-ui-1.8.9.custom.min.js"></script> - <script src="/~dankert/cms/themes/default/js/xxxxxxxxxxxjquery-plugin-orSearchBox.js"></script> - <link rel="stylesheet" type="text/css" href="<?php echo OR_THEMES_EXT_DIR ?>default/js/jquery-ui/css/pepper-grinder/jquery-ui-1.8.9.custom.css" > - --> -</head> - - - -<body> - -<script type="text/javascript"> -<!-- -// Konstanten -var OR_THEMES_EXT_DIR = '<?php echo OR_THEMES_EXT_DIR ?>'; -var OR_CONTROLLER_FILE = '<?php echo OR_CONTROLLER_FILE ?>'; -var REQ_PARAM_TOKEN = '<?php echo REQ_PARAM_TOKEN ?>'; -var REQ_PARAM_ACTION = '<?php echo REQ_PARAM_ACTION ?>'; -var REQ_PARAM_SUBACTION = '<?php echo REQ_PARAM_SUBACTION ?>'; -var REQ_PARAM_TARGETSUBACTION = '<?php echo REQ_PARAM_TARGETSUBACTION ?>'; -var REQ_PARAM_ID = '<?php echo REQ_PARAM_ID ?>'; -var REQ_PARAM_OBJECT_ID = '<?php echo REQ_PARAM_OBJECT_ID ?>'; -var REQ_PARAM_LANGUAGE_ID = '<?php echo REQ_PARAM_LANGUAGE_ID ?>'; -var REQ_PARAM_MODEL_ID = '<?php echo REQ_PARAM_MODEL_ID ?>'; -var REQ_PARAM_PROJECT_ID = '<?php echo REQ_PARAM_PROJECT_ID ?>'; -var REQ_PARAM_ELEMENT_ID = '<?php echo REQ_PARAM_ELEMENT_ID ?>'; -var REQ_PARAM_TEMPLATE_ID = '<?php echo REQ_PARAM_TEMPLATE_ID ?>'; -var REQ_PARAM_DATABASE_ID = '<?php echo REQ_PARAM_DATABASE_ID ?>'; -var REQ_PARAM_TARGET = '<?php echo REQ_PARAM_TARGET ?>'; -// --> -</script> - - -<?php global $viewCache; /* Debug-Information */ if (@$showDuration||true) { echo "<!-- Output Variables are:\n";echo str_replace('-->','-- >',print_r($viewCache,true));echo "\n-->";} ?> - diff --git a/themes/default/include/html/page/page-begin.inc.php b/themes/default/include/html/page/page-begin.inc.php @@ -0,0 +1,86 @@ +<?php + if (!defined('OR_VERSION')) die('Forbidden'); + if (!headers_sent()) header('Content-Type: text/html; charset=UTF-8') +?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<html> +<head> + <title><?php echo OR_TITLE.' '.OR_VERSION ?></title> + <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> + <meta http-equiv="content-type" content="text/html; charset=UTF-8" > +<?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 + } ?> + <link id="userstyle" rel="stylesheet" type="text/css" href="<?php echo css_link($style) ?>" > + + <link rel="stylesheet" type="text/css" href="<?php echo OR_THEMES_EXT_DIR ?>../editor/markitup/markitup/skins/markitup/style.css" /> + <link rel="stylesheet" type="text/css" href="<?php echo OR_THEMES_EXT_DIR ?>../editor/markitup/markitup/sets/default/style.css" /> + <script src="<?php echo OR_THEMES_EXT_DIR ?>default/js/jquery-1.12.4.min.js" async></script> + <script src="<?php echo OR_THEMES_EXT_DIR ?>default/js/jquery-ui/js/jquery-ui-1.8.16.custom.min.js" async></script> + <script src="<?php echo OR_THEMES_EXT_DIR ?>default/js/jquery.scrollTo.js" async></script> + <!-- + <script src="<?php echo OR_THEMES_EXT_DIR ?>default/js/jquery.mjs.nestedSortable.js"></script> + --> + + <!-- OpenRat internal JS --> + <script src="<?php echo OR_THEMES_EXT_DIR ?>default/js/plugin/jquery-plugin-orHint.js" async></script> + <script src="<?php echo OR_THEMES_EXT_DIR ?>default/js/plugin/jquery-plugin-orSearch.js" async></script> + <script src="<?php echo OR_THEMES_EXT_DIR ?>default/js/plugin/jquery-plugin-orLinkify.js" async></script> + <script src="<?php echo OR_THEMES_EXT_DIR ?>default/js/plugin/jquery-plugin-orTree.js" async></script> + <script src="<?php echo OR_THEMES_EXT_DIR ?>default/js/plugin/jquery-plugin-orLoadView.js" async></script> + <script src="<?php echo OR_THEMES_EXT_DIR ?>default/js/plugin/jquery-plugin-orAutoheight.js" async></script> + + <script src="<?php echo OR_THEMES_EXT_DIR ?>default/js/openrat.js" async></script> + <!-- + <script src="<?php echo OR_THEMES_EXT_DIR ?>../editor/wymeditor/wymeditor/jquery.wymeditor.min.js"></script> + --> + <script src="<?php echo OR_THEMES_EXT_DIR ?>../editor/editor/adapters/jquery.js" async></script> + <script src="<?php echo OR_THEMES_EXT_DIR ?>../editor/markitup/markitup/jquery.markitup.js" async></script> + <script src="<?php echo OR_THEMES_EXT_DIR ?>../editor/editor/ckeditor.js" async></script> + <!-- + <script src="/~dankert/cms-test/cms09/themes/default/js/jquery-ui/js/jquery-ui-1.8.9.custom.min.js"></script> + <script src="/~dankert/cms/themes/default/js/xxxxxxxxxxxjquery-plugin-orSearchBox.js"></script> + <link rel="stylesheet" type="text/css" href="<?php echo OR_THEMES_EXT_DIR ?>default/js/jquery-ui/css/pepper-grinder/jquery-ui-1.8.9.custom.css" > + --> +</head> + + + +<body> + +<script type="text/javascript"> +<!-- +// Konstanten +var OR_THEMES_EXT_DIR = '<?php echo OR_THEMES_EXT_DIR ?>'; +var OR_CONTROLLER_FILE = '<?php echo OR_CONTROLLER_FILE ?>'; +var REQ_PARAM_TOKEN = '<?php echo REQ_PARAM_TOKEN ?>'; +var REQ_PARAM_ACTION = '<?php echo REQ_PARAM_ACTION ?>'; +var REQ_PARAM_SUBACTION = '<?php echo REQ_PARAM_SUBACTION ?>'; +var REQ_PARAM_TARGETSUBACTION = '<?php echo REQ_PARAM_TARGETSUBACTION ?>'; +var REQ_PARAM_ID = '<?php echo REQ_PARAM_ID ?>'; +var REQ_PARAM_OBJECT_ID = '<?php echo REQ_PARAM_OBJECT_ID ?>'; +var REQ_PARAM_LANGUAGE_ID = '<?php echo REQ_PARAM_LANGUAGE_ID ?>'; +var REQ_PARAM_MODEL_ID = '<?php echo REQ_PARAM_MODEL_ID ?>'; +var REQ_PARAM_PROJECT_ID = '<?php echo REQ_PARAM_PROJECT_ID ?>'; +var REQ_PARAM_ELEMENT_ID = '<?php echo REQ_PARAM_ELEMENT_ID ?>'; +var REQ_PARAM_TEMPLATE_ID = '<?php echo REQ_PARAM_TEMPLATE_ID ?>'; +var REQ_PARAM_DATABASE_ID = '<?php echo REQ_PARAM_DATABASE_ID ?>'; +var REQ_PARAM_TARGET = '<?php echo REQ_PARAM_TARGET ?>'; +// --> +</script> + + +<?php global $viewCache; /* Debug-Information */ if (@$showDuration||true) { echo "<!-- Output Variables are:\n";echo str_replace('-->','-- >',print_r($viewCache,true));echo "\n-->";} ?> + diff --git a/themes/default/include/html/page/page-end.inc.php b/themes/default/include/html/page/page-end.inc.php @@ -0,0 +1,2 @@ +</body> +</html>+ \ No newline at end of file diff --git a/themes/default/include/html/part-end.inc.php b/themes/default/include/html/part-end.inc.php @@ -1,2 +0,0 @@ -<div><!-- Ignore this line --> -</div>- \ No newline at end of file diff --git a/themes/default/include/html/part.inc.php b/themes/default/include/html/part.inc.php @@ -1,14 +0,0 @@ -<!-- #SET-LINEBREAK-OFF# --> -<div -> <!-- Ignore this line --> - -<!-- #IF-ATTR id# --> - id="<?php echo $attr_id ?>" -<!-- #END-IF# --> - -<!-- #IF-ATTR class# --> - class="<?php echo $attr_class ?>" -<!-- #END-IF# --> - -<!-- Ignore this line --></div ->- \ No newline at end of file diff --git a/themes/default/include/html/part/part-begin.inc.php b/themes/default/include/html/part/part-begin.inc.php @@ -0,0 +1,14 @@ +<!-- #SET-LINEBREAK-OFF# --> +<div +> <!-- Ignore this line --> + +<!-- #IF-ATTR id# --> + id="<?php echo $attr_id ?>" +<!-- #END-IF# --> + +<!-- #IF-ATTR class# --> + class="<?php echo $attr_class ?>" +<!-- #END-IF# --> + +<!-- Ignore this line --></div +>+ \ No newline at end of file diff --git a/themes/default/include/html/part/part-end.inc.php b/themes/default/include/html/part/part-end.inc.php @@ -0,0 +1,2 @@ +<div><!-- Ignore this line --> +</div>+ \ No newline at end of file diff --git a/themes/default/include/html/password.inc.php b/themes/default/include/html/password.inc.php @@ -1 +0,0 @@ -<div class="inputholder"><input type="password" name="<?php echo $attr_name ?>" id="<?php echo REQUEST_ID ?>_<?php echo $attr_name ?>" size="<?php echo $attr_size ?>" maxlength="<?php echo $attr_maxlength ?>" class="<?php echo $attr_class ?>" value="<?php echo isset($$attr_name)?$$attr_name:$attr_default ?>" /></div>- \ No newline at end of file diff --git a/themes/default/include/html/password/password-begin.inc.php b/themes/default/include/html/password/password-begin.inc.php @@ -0,0 +1 @@ +<div class="inputholder"><input type="password" name="<?php echo $attr_name ?>" id="<?php echo REQUEST_ID ?>_<?php echo $attr_name ?>" size="<?php echo $attr_size ?>" maxlength="<?php echo $attr_maxlength ?>" class="<?php echo $attr_class ?>" value="<?php echo isset($$attr_name)?$$attr_name:$attr_default ?>" /></div>+ \ No newline at end of file diff --git a/themes/default/include/html/qrcode.inc.php b/themes/default/include/html/qrcode.inc.php @@ -1 +0,0 @@ -<div class="qrcode" data-qrcode="<?php echo $attr_value ?>" title="<?php echo $attr_value ?>"></div>- \ No newline at end of file diff --git a/themes/default/include/html/qrcode/qrcode-begin.inc.php b/themes/default/include/html/qrcode/qrcode-begin.inc.php @@ -0,0 +1 @@ +<div class="qrcode" data-qrcode="<?php echo $attr_value ?>" title="<?php echo $attr_value ?>"></div>+ \ No newline at end of file diff --git a/themes/default/include/html/radio.inc.php b/themes/default/include/html/radio.inc.php @@ -1,33 +0,0 @@ -<?php - if ($this->isEditable() && !$this->isEditMode()) $attr_readonly=true; - - if ( isset($$attr_name) ) - $attr_tmp_default = $$attr_name; - elseif ( isset($attr_default) ) - $attr_tmp_default = $attr_default; - else - $attr_tmp_default = ''; - - ?><input onclick="" class="radio" type="radio" id="<?php echo REQUEST_ID ?>_<?php echo $attr_name.'_'.$attr_value ?>" name="<?php echo $attr_prefix.$attr_name ?>"<?php if ( $attr_readonly ) echo ' disabled="disabled"' ?> value="<?php echo $attr_value ?>"<?php if($attr_value==$attr_tmp_default||@$attr_checked) echo ' checked="checked"' ?> /> - -<?php /* #IF-ATTR deactivated-children# */ ?> -<script name="Javascript" type="text/javascript"> -<!-- -<?php foreach(explode(',',$attr_children) as $attr_tmp_child) { if (empty($attr_tmp_child)) continue; ?> -var e = document.getElementById('<?php echo REQUEST_ID ?>_<?php echo $attr_tmp_child ?>'); -e.disabled = true; -<?php } ?> - -function <?php echo $attr_name.'_'.$attr_value ?>_valueChanged(element) -{ - for(i=0; i<document.forms[0].elements.length; i++) - if (document.forms[0].elements[i].type == 'text') - document.forms[0].elements[i].disabled = true; - <?php foreach(explode(',',$attr_children) as $attr_tmp_child) { if (empty($attr_tmp_child)) continue; ?> - var e = document.getElementById('<?php echo REQUEST_ID ?>_<?php echo $attr_tmp_child ?>'); - e.disabled = false; - <?php } ?> -} -//--> -</script> -<?php /* #END-IF# */ ?>- \ No newline at end of file diff --git a/themes/default/include/html/radio/radio-begin.inc.php b/themes/default/include/html/radio/radio-begin.inc.php @@ -0,0 +1,33 @@ +<?php + if ($this->isEditable() && !$this->isEditMode()) $attr_readonly=true; + + if ( isset($$attr_name) ) + $attr_tmp_default = $$attr_name; + elseif ( isset($attr_default) ) + $attr_tmp_default = $attr_default; + else + $attr_tmp_default = ''; + + ?><input onclick="" class="radio" type="radio" id="<?php echo REQUEST_ID ?>_<?php echo $attr_name.'_'.$attr_value ?>" name="<?php echo $attr_prefix.$attr_name ?>"<?php if ( $attr_readonly ) echo ' disabled="disabled"' ?> value="<?php echo $attr_value ?>"<?php if($attr_value==$attr_tmp_default||@$attr_checked) echo ' checked="checked"' ?> /> + +<?php /* #IF-ATTR deactivated-children# */ ?> +<script name="Javascript" type="text/javascript"> +<!-- +<?php foreach(explode(',',$attr_children) as $attr_tmp_child) { if (empty($attr_tmp_child)) continue; ?> +var e = document.getElementById('<?php echo REQUEST_ID ?>_<?php echo $attr_tmp_child ?>'); +e.disabled = true; +<?php } ?> + +function <?php echo $attr_name.'_'.$attr_value ?>_valueChanged(element) +{ + for(i=0; i<document.forms[0].elements.length; i++) + if (document.forms[0].elements[i].type == 'text') + document.forms[0].elements[i].disabled = true; + <?php foreach(explode(',',$attr_children) as $attr_tmp_child) { if (empty($attr_tmp_child)) continue; ?> + var e = document.getElementById('<?php echo REQUEST_ID ?>_<?php echo $attr_tmp_child ?>'); + e.disabled = false; + <?php } ?> +} +//--> +</script> +<?php /* #END-IF# */ ?>+ \ No newline at end of file diff --git a/themes/default/include/html/radiobox.inc.php b/themes/default/include/html/radiobox.inc.php @@ -1,18 +0,0 @@ -<?php $attr_tmp_list = $$attr_list; - if ( isset($$attr_name) && isset($attr_tmp_list[$$attr_name]) ) - $attr_tmp_default = $$attr_name; - elseif ( isset($attr_default) ) - $attr_tmp_default = $attr_default; - else - $attr_tmp_default = ''; - - foreach( $attr_tmp_list as $box_key=>$box_value ) - { - $box_value = is_array($box_value)?(isset($box_value['lang'])?langHtml($box_value['lang']):$box_value['value']):$box_value; - $id = REQUEST_ID.'_'.$attr_name.'_'.$box_key; - echo '<input id="'.$id.'" name="'.$attr_name.'" type="radio" class="'.$attr_class.'" value="'.$box_key.'"'; - if ($box_key==$attr_tmp_default) - echo ' checked="checked"'; - echo ' />&nbsp;<label for="'.$id.'">'.$box_value.'</label><br />'; - } -?>- \ No newline at end of file diff --git a/themes/default/include/html/radiobox/radiobox-begin.inc.php b/themes/default/include/html/radiobox/radiobox-begin.inc.php @@ -0,0 +1,18 @@ +<?php $attr_tmp_list = $$attr_list; + if ( isset($$attr_name) && isset($attr_tmp_list[$$attr_name]) ) + $attr_tmp_default = $$attr_name; + elseif ( isset($attr_default) ) + $attr_tmp_default = $attr_default; + else + $attr_tmp_default = ''; + + foreach( $attr_tmp_list as $box_key=>$box_value ) + { + $box_value = is_array($box_value)?(isset($box_value['lang'])?langHtml($box_value['lang']):$box_value['value']):$box_value; + $id = REQUEST_ID.'_'.$attr_name.'_'.$box_key; + echo '<input id="'.$id.'" name="'.$attr_name.'" type="radio" class="'.$attr_class.'" value="'.$box_key.'"'; + if ($box_key==$attr_tmp_default) + echo ' checked="checked"'; + echo ' />&nbsp;<label for="'.$id.'">'.$box_value.'</label><br />'; + } +?>+ \ No newline at end of file diff --git a/themes/default/include/html/row-end.inc.php b/themes/default/include/html/row-end.inc.php @@ -1 +0,0 @@ -</tr>- \ No newline at end of file diff --git a/themes/default/include/html/row.inc.php b/themes/default/include/html/row.inc.php @@ -1,12 +0,0 @@ -<?php - $column_idx = 0; -?> -<tr -#IF-ATTR class# - class="%class%" -#END-IF# -#IF-ATTR id# - data-id="%id%" -#END-IF# -> -/* Ignore: */ </tr>- \ No newline at end of file diff --git a/themes/default/include/html/row/row-begin.inc.php b/themes/default/include/html/row/row-begin.inc.php @@ -0,0 +1,12 @@ +<?php + $column_idx = 0; +?> +<tr +#IF-ATTR class# + class="%class%" +#END-IF# +#IF-ATTR id# + data-id="%id%" +#END-IF# +> +/* Ignore: */ </tr>+ \ No newline at end of file diff --git a/themes/default/include/html/row/row-end.inc.php b/themes/default/include/html/row/row-end.inc.php @@ -0,0 +1 @@ +</tr>+ \ No newline at end of file diff --git a/themes/default/include/html/selectbox.inc.php b/themes/default/include/html/selectbox.inc.php @@ -1,57 +0,0 @@ -<?php -$attr_readonly=false; -$attr_tmp_list = $$attr_list; -if ($this->isEditable() && !$this->isEditMode()) -{ - echo empty($$attr_name)?'- '.lang('EMPTY').' -':$attr_tmp_list[$$attr_name]; -} -else -{ -if ( $attr_addempty!==FALSE ) -{ - if ($attr_addempty===TRUE) - $attr_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$attr_tmp_list; - else - $attr_tmp_list = array(''=>'- '.lang($attr_addempty).' -')+$attr_tmp_list; -} -?><div class="inputholder"><select<?php if ($attr_readonly) echo ' disabled="disabled"' ?> id="<?php echo REQUEST_ID ?>_<?php echo $attr_name ?>" name="<?php echo $attr_name; if ($attr_multiple) echo '[]'; ?>" onchange="<?php echo $attr_onchange ?>" title="<?php echo $attr_title ?>" class="<?php echo $attr_class ?>"<?php -if (count($$attr_list)<=1) echo ' disabled="disabled"'; -if ($attr_multiple) echo ' multiple="multiple"'; -echo ' size="'.intval($attr_size).'"'; -?>><?php - if ( isset($$attr_name) && isset($attr_tmp_list[$$attr_name]) ) - $attr_tmp_default = $$attr_name; - elseif ( isset($attr_default) ) - $attr_tmp_default = $attr_default; - else - $attr_tmp_default = ''; - - foreach( $attr_tmp_list as $box_key=>$box_value ) - { - if ( is_array($box_value) ) - { - $box_key = $box_value['key' ]; - $box_title = $box_value['title']; - $box_value = $box_value['value']; - } - elseif( $attr_lang ) - { - $box_title = lang( $box_value.'_DESC'); - $box_value = lang( $box_value ); - } - else - { - $box_title = ''; - } - echo '<option class="'.$attr_class.'" value="'.$box_key.'" title="'.$box_title.'"'; - - if ((string)$box_key==$attr_tmp_default) - echo ' selected="selected"'; - - echo '>'.$box_value.'</option>'; - } -?></select></div><?php -if (count($$attr_list)==0) echo '<input type="hidden" name="'.$attr_name.'" value="" />'; -if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" value="'.$box_key.'" />'; -} -?>- \ No newline at end of file diff --git a/themes/default/include/html/selectbox/selectbox-begin.inc.php b/themes/default/include/html/selectbox/selectbox-begin.inc.php @@ -0,0 +1,57 @@ +<?php +$attr_readonly=false; +$attr_tmp_list = $$attr_list; +if ($this->isEditable() && !$this->isEditMode()) +{ + echo empty($$attr_name)?'- '.lang('EMPTY').' -':$attr_tmp_list[$$attr_name]; +} +else +{ +if ( $attr_addempty!==FALSE ) +{ + if ($attr_addempty===TRUE) + $attr_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$attr_tmp_list; + else + $attr_tmp_list = array(''=>'- '.lang($attr_addempty).' -')+$attr_tmp_list; +} +?><div class="inputholder"><select<?php if ($attr_readonly) echo ' disabled="disabled"' ?> id="<?php echo REQUEST_ID ?>_<?php echo $attr_name ?>" name="<?php echo $attr_name; if ($attr_multiple) echo '[]'; ?>" onchange="<?php echo $attr_onchange ?>" title="<?php echo $attr_title ?>" class="<?php echo $attr_class ?>"<?php +if (count($$attr_list)<=1) echo ' disabled="disabled"'; +if ($attr_multiple) echo ' multiple="multiple"'; +echo ' size="'.intval($attr_size).'"'; +?>><?php + if ( isset($$attr_name) && isset($attr_tmp_list[$$attr_name]) ) + $attr_tmp_default = $$attr_name; + elseif ( isset($attr_default) ) + $attr_tmp_default = $attr_default; + else + $attr_tmp_default = ''; + + foreach( $attr_tmp_list as $box_key=>$box_value ) + { + if ( is_array($box_value) ) + { + $box_key = $box_value['key' ]; + $box_title = $box_value['title']; + $box_value = $box_value['value']; + } + elseif( $attr_lang ) + { + $box_title = lang( $box_value.'_DESC'); + $box_value = lang( $box_value ); + } + else + { + $box_title = ''; + } + echo '<option class="'.$attr_class.'" value="'.$box_key.'" title="'.$box_title.'"'; + + if ((string)$box_key==$attr_tmp_default) + echo ' selected="selected"'; + + echo '>'.$box_value.'</option>'; + } +?></select></div><?php +if (count($$attr_list)==0) echo '<input type="hidden" name="'.$attr_name.'" value="" />'; +if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" value="'.$box_key.'" />'; +} +?>+ \ No newline at end of file diff --git a/themes/default/include/html/selector.inc.php b/themes/default/include/html/selector.inc.php @@ -1,7 +0,0 @@ -<div class="selector"> - <div class="inputholder"> - <input type="hidden" name="<?php echo $attr_param ?>" value="<?php echo $attr_id ?>" /> - <input type="text" disabled="disabled" value="<?php echo $attr_name ?>" /> - </div> - <div class="tree selector" data-types="<?php echo $attr_types ?>" data-init-id="<?php echo $attr_id ?>" data-init-folderid="<?php echo $attr_folderid ?>"></div> -</div>- \ No newline at end of file diff --git a/themes/default/include/html/selector/selector-begin.inc.php b/themes/default/include/html/selector/selector-begin.inc.php @@ -0,0 +1,7 @@ +<div class="selector"> + <div class="inputholder"> + <input type="hidden" name="<?php echo $attr_param ?>" value="<?php echo $attr_id ?>" /> + <input type="text" disabled="disabled" value="<?php echo $attr_name ?>" /> + </div> + <div class="tree selector" data-types="<?php echo $attr_types ?>" data-init-id="<?php echo $attr_id ?>" data-init-folderid="<?php echo $attr_folderid ?>"></div> +</div>+ \ No newline at end of file diff --git a/themes/default/include/html/set.inc.php b/themes/default/include/html/set.inc.php @@ -1,11 +0,0 @@ -<?php - #IF-ATTR value# - if (isset($attr_key)) - $$attr_var = $attr_value[$attr_key]; - else - $$attr_var = $attr_value; - #ELSE# - if (!isset($attr_value)) - unset($$attr_var); - #END-IF# -?>- \ No newline at end of file diff --git a/themes/default/include/html/set/set-begin.inc.php b/themes/default/include/html/set/set-begin.inc.php @@ -0,0 +1,11 @@ +<?php + #IF-ATTR value# + if (isset($attr_key)) + $$attr_var = $attr_value[$attr_key]; + else + $$attr_var = $attr_value; + #ELSE# + if (!isset($attr_value)) + unset($$attr_var); + #END-IF# +?>+ \ No newline at end of file diff --git a/themes/default/include/html/table-end.inc.php b/themes/default/include/html/table-end.inc.php @@ -1,6 +0,0 @@ -<?php - // Restore state - $column_idx = $last_column_idx; -?> -/* ignore: */ <table> -</table>- \ No newline at end of file diff --git a/themes/default/include/html/table.inc.php b/themes/default/include/html/table.inc.php @@ -1,28 +0,0 @@ -<?php - // Status speichern - $last_column_idx = @$column_idx; - $column_idx = 0; - $coloumn_widths = array(); - $row_classes = array(); - $column_classes = array(); - - #IF-ATTR widths# - $column_widths = explode(',',$attr_widths); - #END-IF - - #IF-ATTR classes# - $row_classes = explode(',',$attr_rowclasses); - $row_class_idx = 999; - #END-IF - - #IF-ATTR rowclasses# - $row_classes = explode(',',$attr_rowclasses); - $row_class_idx = 999; - #END-IF - - #IF-ATTR columnclasses# - $column_classes = explode(',',$attr_columnclasses); - #END-IF - -?><table class="%class%" cellspacing="%space%" width="%width%" cellpadding="%padding%"> -<!-- ignore this line --></table>- \ No newline at end of file diff --git a/themes/default/include/html/table/table-begin.inc.php b/themes/default/include/html/table/table-begin.inc.php @@ -0,0 +1,28 @@ +<?php + // Status speichern + $last_column_idx = @$column_idx; + $column_idx = 0; + $coloumn_widths = array(); + $row_classes = array(); + $column_classes = array(); + + #IF-ATTR widths# + $column_widths = explode(',',$attr_widths); + #END-IF + + #IF-ATTR classes# + $row_classes = explode(',',$attr_rowclasses); + $row_class_idx = 999; + #END-IF + + #IF-ATTR rowclasses# + $row_classes = explode(',',$attr_rowclasses); + $row_class_idx = 999; + #END-IF + + #IF-ATTR columnclasses# + $column_classes = explode(',',$attr_columnclasses); + #END-IF + +?><table class="%class%" cellspacing="%space%" width="%width%" cellpadding="%padding%"> +<!-- ignore this line --></table>+ \ No newline at end of file diff --git a/themes/default/include/html/table/table-end.inc.php b/themes/default/include/html/table/table-end.inc.php @@ -0,0 +1,6 @@ +<?php + // Restore state + $column_idx = $last_column_idx; +?> +/* ignore: */ <table> +</table>+ \ No newline at end of file diff --git a/themes/default/include/html/text.inc.php b/themes/default/include/html/text.inc.php @@ -1,96 +0,0 @@ -<?php - - #IF-ATTR prefix# - $attr_key = $attr_prefix.$attr_key; - #END-IF# - - #IF-ATTR suffix# - $attr_key = $attr_key.$attr_suffix; - #END-IF# - - #IF-ATTR title# - #ELSE# - $attr_title = ''; - #END-IF# - - #IF-ATTR type# - #ELSE# - // Attribut "type" nicht vorhanden, also Default-Tag "<span>..." verwenden. - $tmp_tag = 'span'; - #END-IF# - - #IF-ATTR-VALUE type:emphatic# - $tmp_tag = 'em'; - #END-IF# - #IF-ATTR-VALUE type:italic# - $tmp_tag = 'em'; - #END-IF# - #IF-ATTR-VALUE type:strong# - $tmp_tag = 'strong'; - #END-IF# - #IF-ATTR-VALUE type:bold# - $tmp_tag = 'strong'; - #IF-ATTR-VALUE type:tt# - $tmp_tag = 'tt'; - #END-IF# - #IF-ATTR-VALUE type:teletype# - $tmp_tag = 'tt'; - #END-IF# - #IF-ATTR-VALUE type:preformatted# - $tmp_tag = 'pre'; - #END-IF# - #IF-ATTR-VALUE type:code# - $tmp_tag = 'code'; - #END-IF# - -?><<?php echo $tmp_tag ?> class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php - $langF = $attr_escape?'langHtml':'lang'; - - #IF-ATTR array# - //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; - else - $tmp_text = $langF($tmpArray[$attr_text]); - #END-IF - - #IF-ATTR textvar# - $tmp_text = $langF($$attr_textvar); - #END-IF - - #IF-ATTR text# - $tmp_text = $langF($attr_text); - #END-IF - - #IF-ATTR key# - $tmp_text = $langF($attr_key); - #END-IF - - #IF-ATTR var# - $tmp_text = isset($$attr_var)?$$attr_var:$langF('UNKNOWN'); - #END-IF - - #IF-ATTR raw# - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - #END-IF - - #IF-ATTR value# - $tmp_text = $attr_escape?htmlentities($attr_value):$attr_value; - #END-IF - - #IF-ATTR maxlength# - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength),'..',constant('STR_PAD_'.strtoupper($attr_cut)) ); - #END-IF - - #IF-ATTR accesskey# - $pos = strpos(strtolower($tmp_text),strtolower($attr_accesskey)); - if ( $pos !== false ) - $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); - #END-IF - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - - unset($tmp_text); -?></<?php echo $tmp_tag ?>>- \ No newline at end of file diff --git a/themes/default/include/html/text/text-begin.inc.php b/themes/default/include/html/text/text-begin.inc.php @@ -0,0 +1,96 @@ +<?php + + #IF-ATTR prefix# + $attr_key = $attr_prefix.$attr_key; + #END-IF# + + #IF-ATTR suffix# + $attr_key = $attr_key.$attr_suffix; + #END-IF# + + #IF-ATTR title# + #ELSE# + $attr_title = ''; + #END-IF# + + #IF-ATTR type# + #ELSE# + // Attribut "type" nicht vorhanden, also Default-Tag "<span>..." verwenden. + $tmp_tag = 'span'; + #END-IF# + + #IF-ATTR-VALUE type:emphatic# + $tmp_tag = 'em'; + #END-IF# + #IF-ATTR-VALUE type:italic# + $tmp_tag = 'em'; + #END-IF# + #IF-ATTR-VALUE type:strong# + $tmp_tag = 'strong'; + #END-IF# + #IF-ATTR-VALUE type:bold# + $tmp_tag = 'strong'; + #IF-ATTR-VALUE type:tt# + $tmp_tag = 'tt'; + #END-IF# + #IF-ATTR-VALUE type:teletype# + $tmp_tag = 'tt'; + #END-IF# + #IF-ATTR-VALUE type:preformatted# + $tmp_tag = 'pre'; + #END-IF# + #IF-ATTR-VALUE type:code# + $tmp_tag = 'code'; + #END-IF# + +?><<?php echo $tmp_tag ?> class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $langF = $attr_escape?'langHtml':'lang'; + + #IF-ATTR array# + //geht nicht: + //echo $$attr_array[$attr_var].'%'; + $tmpArray = $$attr_array; + if (!empty($attr_var)) + $tmp_text = $tmpArray[$attr_var]; + else + $tmp_text = $langF($tmpArray[$attr_text]); + #END-IF + + #IF-ATTR textvar# + $tmp_text = $langF($$attr_textvar); + #END-IF + + #IF-ATTR text# + $tmp_text = $langF($attr_text); + #END-IF + + #IF-ATTR key# + $tmp_text = $langF($attr_key); + #END-IF + + #IF-ATTR var# + $tmp_text = isset($$attr_var)?$$attr_var:$langF('UNKNOWN'); + #END-IF + + #IF-ATTR raw# + $tmp_text = str_replace('_','&nbsp;',$attr_raw); + #END-IF + + #IF-ATTR value# + $tmp_text = $attr_escape?htmlentities($attr_value):$attr_value; + #END-IF + + #IF-ATTR maxlength# + $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength),'..',constant('STR_PAD_'.strtoupper($attr_cut)) ); + #END-IF + + #IF-ATTR accesskey# + $pos = strpos(strtolower($tmp_text),strtolower($attr_accesskey)); + if ( $pos !== false ) + $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); + #END-IF + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + + unset($tmp_text); +?></<?php echo $tmp_tag ?>>+ \ No newline at end of file diff --git a/themes/default/include/html/tree.inc.php b/themes/default/include/html/tree.inc.php @@ -1,33 +0,0 @@ -<?php showList($attr_tree); - -function showList( $contents ) -{ - //Html::debug($contents,'contents'); - - echo '<ul class="tree">'; - foreach( $contents as $key=>$el) { - - //Html::debug($el['name'],'Name'); - $selected = isset($el['self']); - if ($selected ) - echo '<li class="">'; - else - echo '<li>'; - - echo '<div class="tree" />'; - echo '<div class="entry '.($selected?' selected':'').'" onclick="javascript:openNewAction( \''.$el['name'].'\',\''.$el['type'].'\',\''.$el['id'].'\',0 );">'; - //Html::debug($el); - echo '<img src="'.OR_THEMES_EXT_DIR.'default/images/icon_'.$el['type'].'.png" />'; - echo $el['name']; - echo '</div>'; - - if ( isset($el['children']) ) - { - showList($el['children'] ); - } - - echo '</li>'; - } - echo '</ul>'; -} -?>- \ No newline at end of file diff --git a/themes/default/include/html/tree/tree-begin.inc.php b/themes/default/include/html/tree/tree-begin.inc.php @@ -0,0 +1,33 @@ +<?php showList($attr_tree); + +function showList( $contents ) +{ + //Html::debug($contents,'contents'); + + echo '<ul class="tree">'; + foreach( $contents as $key=>$el) { + + //Html::debug($el['name'],'Name'); + $selected = isset($el['self']); + if ($selected ) + echo '<li class="">'; + else + echo '<li>'; + + echo '<div class="tree" />'; + echo '<div class="entry '.($selected?' selected':'').'" onclick="javascript:openNewAction( \''.$el['name'].'\',\''.$el['type'].'\',\''.$el['id'].'\',0 );">'; + //Html::debug($el); + echo '<img src="'.OR_THEMES_EXT_DIR.'default/images/icon_'.$el['type'].'.png" />'; + echo $el['name']; + echo '</div>'; + + if ( isset($el['children']) ) + { + showList($el['children'] ); + } + + echo '</li>'; + } + echo '</ul>'; +} +?>+ \ No newline at end of file diff --git a/themes/default/include/html/upload.inc.php b/themes/default/include/html/upload.inc.php @@ -1 +0,0 @@ -<input size="<?php echo $attr_size ?>" id="<?php echo REQUEST_ID ?>_<?php echo $attr_name ?>" type="file" <?php if (isset($attr_maxlength))echo ' maxlength="'.$attr_maxlength.'"' ?> name="<?php echo $attr_name ?>" class="<?php echo $attr_class ?>" <?php echo ($attr_multiple=='true'?' multiple':'') ?> />- \ No newline at end of file diff --git a/themes/default/include/html/upload/upload-begin.inc.php b/themes/default/include/html/upload/upload-begin.inc.php @@ -0,0 +1 @@ +<input size="<?php echo $attr_size ?>" id="<?php echo REQUEST_ID ?>_<?php echo $attr_name ?>" type="file" <?php if (isset($attr_maxlength))echo ' maxlength="'.$attr_maxlength.'"' ?> name="<?php echo $attr_name ?>" class="<?php echo $attr_class ?>" <?php echo ($attr_multiple=='true'?' multiple':'') ?> />+ \ No newline at end of file diff --git a/themes/default/include/html/user.inc.php b/themes/default/include/html/user.inc.php @@ -1,16 +0,0 @@ -<?php - if ( is_object($attr_user) ) - $user = $attr_user; - else - $user = $$attr_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>'; -?>- \ No newline at end of file diff --git a/themes/default/include/html/user/user-begin.inc.php b/themes/default/include/html/user/user-begin.inc.php @@ -0,0 +1,16 @@ +<?php + if ( is_object($attr_user) ) + $user = $attr_user; + else + $user = $$attr_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>'; +?>+ \ No newline at end of file diff --git a/util/TemplateEngine.class.php b/util/TemplateEngine.class.php @@ -107,14 +107,14 @@ class TemplateEngine $attributes = $this->checkAttributes($tag,$attributes); if ( $type == 'open' ) - $this->copyFileContents( $tag,$outFile,$attributes,++$depth ); + $this->copyFileContents( $tag.'/'.$tag.'-begin',$outFile,$attributes,++$depth ); elseif ( $type == 'complete' ) { - $this->copyFileContents( $tag ,$outFile,$attributes,++$depth ); - $this->copyFileContents( $tag.'-end',$outFile,array() , $depth-- ); + $this->copyFileContents( $tag.'/'.$tag.'-begin',$outFile,$attributes,++$depth ); + $this->copyFileContents( $tag.'/'.$tag.'-end' ,$outFile,array() , $depth-- ); } elseif ( $type == 'close' ) - $this->copyFileContents( $tag.'-end',$outFile,array(),$depth-- ); + $this->copyFileContents( $tag.'/'.$tag.'-end' ,$outFile,array(),$depth-- ); } fclose($outFile);