commit 0b8f700c5400321393293856c86ef21658a98e25 parent 699576986bcd1865d4cf5ddeb88a1800d9cb6237 Author: Jan Dankert <devnull@localhost> Date: Sun, 3 Dec 2017 02:51:28 +0100 Refactoring: Template-Engine als POC in ein eigenes "Modul" ausgelagert. Diffstat:
206 files changed, 7678 insertions(+), 6921 deletions(-)
diff --git a/action/Action.class.php b/action/Action.class.php @@ -457,12 +457,14 @@ class Action if ( DEVELOPMENT ) { + $srcXmlFilename = 'themes/default/templates/' . $tplName . '.tpl.src.xml'; + // Das Template kompilieren. // Aus dem XML wird eine PHP-Datei erzeugt. try { $te = new TemplateEngine(); - $te->compile($tplName); + $te->compile($srcXmlFilename,$iFile); unset($te); } catch (Exception $e) diff --git a/action/IndexAction.class.php b/action/IndexAction.class.php @@ -130,7 +130,7 @@ class IndexAction extends Action foreach (array_keys($elements) as $c) { - $componentCssFile = OR_THEMES_DIR . config('interface', 'theme') . '/include/html/' . $c . '/' . $c; + $componentCssFile = OR_MODULES_DIR . 'template-engine/components/html/' . $c . '/' . $c; if (is_file($componentCssFile . '.less')) $css[] = $componentCssFile; } @@ -285,8 +285,7 @@ class IndexAction extends Action $js[] = OR_THEMES_EXT_DIR . 'default/js/jquery.scrollTo'; // $js[] = OR_THEMES_EXT_DIR default/js/jquery.mjs.nestedSortable.js"></script> - // <!-- OpenRat internal JS --> - $js[] = OR_THEMES_EXT_DIR . 'default/js/openrat'; + // Jquery-Plugins $js[] = OR_THEMES_EXT_DIR . 'default/js/plugin/jquery-plugin-orHint'; $js[] = OR_THEMES_EXT_DIR . 'default/js/plugin/jquery-plugin-orSearch'; $js[] = OR_THEMES_EXT_DIR . 'default/js/plugin/jquery-plugin-orLinkify'; @@ -295,6 +294,8 @@ class IndexAction extends Action $js[] = OR_THEMES_EXT_DIR . 'default/js/plugin/jquery-plugin-orAutoheight'; $js[] = OR_THEMES_EXT_DIR . 'default/js/plugin/jquery-plugin-svg'; $js[] = OR_THEMES_EXT_DIR . 'default/js/jquery-qrcode'; + // OpenRat internal JS + $js[] = OR_THEMES_EXT_DIR . 'default/js/openrat'; $js[] = OR_THEMES_EXT_DIR . '../editor/markitup/markitup/jquery.markitup'; $js[] = OR_THEMES_EXT_DIR . '../editor/editor/ckeditor'; $js[] = OR_THEMES_EXT_DIR . '../editor/ace/src-min-noconflict/ace'; @@ -305,7 +306,7 @@ class IndexAction extends Action foreach (array_keys($elements) as $c) { - $componentJsFile = OR_THEMES_DIR . config('interface', 'theme') . '/include/html/' . $c . '/' . $c; + $componentJsFile = OR_MODULES_DIR . '/template-engine/components/html/' . $c . '/' . $c; if (is_file($componentJsFile . '.js')) $js[] = $componentJsFile; } diff --git a/init.php b/init.php @@ -46,6 +46,7 @@ define('OR_THEMES_DIR' ,'./themes/' ); define('OR_THEMES_EXT_DIR' ,OR_THEMES_DIR); define('OR_TMP_DIR' ,'./tmp/' ); define('OR_CONTROLLER_FILE' ,'dispatcher'); +define('OR_MODULES_DIR' ,'./modules/'); define('START_TIME' ,time() ); define('REQUEST_ID' ,'req'.time().rand() ); @@ -116,4 +117,7 @@ require_once( OR_SERVICECLASSES_DIR."include.inc.".PHP_EXT ); require_once( OR_AUTHCLASSES_DIR."include.inc.".PHP_EXT ); +require_once( OR_MODULES_DIR."template-engine/require.".PHP_EXT ); + + ?> \ No newline at end of file diff --git a/modules/template-engine/components/html/Component.class.php b/modules/template-engine/components/html/Component.class.php @@ -0,0 +1,221 @@ +<?php + +abstract class Component +{ + + private $depth; + + public function getDepth() + { + return $this->depth; + } + + public function setDepth($depth) + { + $this->depth = $depth; + } + + /** + * Gets the beginning of this component. + * @return string + */ + public function getBegin() + { + ob_start(); + $this->begin(); + $src = ob_get_contents(); + ob_end_clean(); + return $src; + } + + public function getEnd() + { + ob_start(); + $this->end(); + $src = ob_get_contents(); + ob_end_clean(); + return $src; + } + + /** + * Outputs the beginning of this component. + */ + protected function begin() + {} + + protected function end() + {} + + + protected function textasvarname($value) + { + $expr = new Expression($value); + return $expr->getTextAsVarName(); + + } + + + protected function varname($value) + { + $expr = new Expression($value); + return $expr->getVarName(); + } + + + + protected function htmlvalue($value) + { + $expr = new Expression($value); + return $expr->getHTMLValue(); + } + + + + protected function value( $value ) + { + $expr = new Expression($value); + return $expr->getPHPValue(); + } + + + protected function include( $file ) + { + echo "<?php include_once( OR_THEMES_DIR.'default/include/html/".$file."') ?>"; + } + +} + + + +class Expression +{ + public $type; + public $value; + public $invert = false; + + public function __construct( $value ) + { + // Falls der Wert 'true' oder 'false' ist. + if ( is_bool($value)) + $value = strval($value); + + // Negierung berücksichtigen. + if ( substr($value,0,4)=='not:' ) + { + $value = substr($value,4); + $this->invert = true; + } + + // Trennung 'type:value' + $parts = explode( ':', $value, 2 ); + + if ( count($parts) < 2 ) + $parts = array('',$value); + + list( $this->type,$this->value ) = $parts; + + // Fallback: Typ = 'text'. + if ( empty($this->type)) + $this->type = 'text'; + + } + + + + public function getHTMLValue() + { + switch( $this->type ) + { + case 'text': + return $this->value; + + default: + return '<'.'?php echo '.$this->getPHPValue().' ?>'; + } + } + + + public function getVarName() + { + switch( $this->type ) + { + case 'var': + return '$'.$this->value; + case 'text': + return $this->value; + default: + throw new LogicException("Invalid expression type '$type' in attribute value. Allowed: text|var"); + } + } + + + public function getTextAsVarName() + { + switch( $this->type ) + { + case 'var': + return '$$'.$this->value; + case 'text': + return '$'.$this->value; + default: + return $this->getPHPValue(); + } + } + + + public function getPHPValue() + { + $value = $this->value; + + $invert = $this->invert?'!':''; + + switch( $this->type ) + { + case 'text': + // Sonderf�lle f�r die Attributwerte "true" und "false". + // Hinweis: Die Zeichenkette "false" entspricht in PHP true. + // Siehe http://de.php.net/manual/de/language.types.boolean.php + if ( $value == 'true' || $value == 'false' ) + return $value; + else + return "'".$value."'"; + case 'tpl': + // macht aus "text1{var}text2" => "text1".$var."text2" + $value = preg_replace('/{(\w+)\}/','\'.$\\1.\'',$value); + return "'".$value."'"; + case 'var': + return $invert.'$'.$value; + case 'function': + return $invert.$value.'()'; + case 'method': + return $invert.'$this->'.$value.'()'; + case 'size': + return '@count($'.$value.')'; + case 'property': + return $invert.'$this->'.$value; + case 'message': + // macht aus "text1{var}text2" => "text1".$var."text2" + $value = preg_replace('/{(\w+)\}/','\'.$\\1.\'',$value); + return 'lang('."'".$value."'".')'; + case 'messagevar': + return 'lang($'.$value.')'; + case 'mode': + return $invert.'$mode=="'.$value.'"'; + case 'arrayvar': + list($arr,$key) = explode(':',$value.':none'); + return $invert.'@$'.$arr.'['.$key.']'; + case 'config': + $config_parts = explode('/',$value); + return $invert.'@$conf['."'".implode("'".']'.'['."'",$config_parts)."'".']'; + + default: + throw new LogicException("Unknown expression type '{$this->type}' in attribute value. Allowed: var|function|method|text|size|property|message|messagevar|arrayvar|config or none"); + } + } + + +} + + + +?>+ \ No newline at end of file diff --git a/modules/template-engine/components/html/button/Button.class.php b/modules/template-engine/components/html/button/Button.class.php @@ -0,0 +1,52 @@ +<?php + +class ButtonComponent extends Component +{ + + public $type = 'submit'; + public $class = 'ok'; + public $src; + public $text = 'button_ok'; + public $value = 'ok'; + + private $tmp_src; + + protected function begin() + { + echo <<<'HTML' + <div class="invisible"> +HTML; + + if ($this->type == 'ok') + $this->type = 'submit'; + + if (! empty($this->src)) + { + $this->type = 'image'; + $this->tmp_src = $image_dir . 'icon_' . $this->src . IMG_ICON_EXT; + } + else + { + $this->tmp_src = ''; + } + + if (! empty($this->type)) + { + ?> +<input type="<?php echo $this->type ?>" <?php if(isset($this->src)) { ?> + src="<?php $this->tmp_src ?>" <?php } ?> + name="<?php echo $this->value ?>" class="%class%" + title="<?php echo lang($this->text.'_DESC') ?>" + value=" <?php echo langHtml($this->text) ?> " /><?php unset($this->src); ?> + <?php + +} + } + + protected function end() + { + echo "</div>"; + } +} + +?>+ \ No newline at end of file diff --git a/modules/template-engine/components/html/checkbox/Checkbox.class.php b/modules/template-engine/components/html/checkbox/Checkbox.class.php @@ -0,0 +1,36 @@ +<?php + +class CheckboxComponent extends Component +{ + + public $default = false; + public $name; + public $readonly = false; + + protected function begin(){ + + echo '<?php { '; + echo '$tmpname = '.$this->value($this->name).';'; + echo '$default = '.$this->value($this->default).';'; + echo '$readonly = '.$this->value($this->readonly).';'; + + echo <<<'HTML' + + if ( isset($$tmpname) ) + $checked = $$tmpname; + else + $checked = $default; + + ?><input class="checkbox" type="checkbox" id="<?php echo REQUEST_ID ?>_<?php echo $tmpname ?>" name="<?php echo $tmpname ?>" <?php if ($readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?> /><?php + + if ( $readonly && $checked ) + { + ?><input type="hidden" name="<?php echo $tmpname ?>" value="1" /><?php + } + } ?> +HTML; + } +} + + +?>+ \ No newline at end of file diff --git a/modules/template-engine/components/html/column/Column.class.php b/modules/template-engine/components/html/column/Column.class.php @@ -0,0 +1,48 @@ +<?php + +class ColumnComponent extends Component +{ + public $width; + public $style; + public $class; + public $colspan; + public $rowspan; + public $header = false; + public $title; + public $url; + public $action; + public $id; + public $name; + + protected function begin() + { + echo '<td'; + if ( ! empty($this->width)) + echo ' width="'.$this->htmlvalue($this->width).'"'; + if ( ! empty($this->style)) + echo ' style="'.$this->htmlvalue($this->style).'"'; + if ( ! empty($this->class)) + echo ' class="'.$this->htmlvalue($this->class).'"'; + if ( ! empty($this->colspan)) + echo ' colspan="'.$this->htmlvalue($this->colspan).'"'; + if ( ! empty($this->rowspan)) + echo ' rowspan="'.$this->htmlvalue($this->rowspan).'"'; + if ( ! empty($this->rowspan)) + echo ' rowspan="'.$this->htmlvalue($this->rowspan).'"'; + if ( ! empty($this->title)) + echo ' title="'.$this->htmlvalue($this->title).'"'; + if ( ! empty($this->id)) + echo ' onclick="javascript:openNewAction('."'".$this->htmlvalue($this->name)."','".$this->htmlvalue($this->action)."','".$this->htmlvalue($this->id)."');".'"'; + echo '>'; + } + + + protected function end() + { + echo '</td>'; + } + +} + + +?>+ \ No newline at end of file diff --git a/modules/template-engine/components/html/date/Date.class.php b/modules/template-engine/components/html/date/Date.class.php @@ -0,0 +1,17 @@ +<?php + +class DateComponent extends Component +{ + public $date; + + protected function begin() + { + $date = $this->date; + + $this->include( 'date/component-date.php'); + echo '<?php component_date('.$this->value($this->date).') ?>'; + } +} + + +?>+ \ No newline at end of file diff --git a/modules/template-engine/components/html/date/component-date.php b/modules/template-engine/components/html/date/component-date.php @@ -0,0 +1,72 @@ +<?php +function component_date( $time ) +{ + 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(' ',' ',$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/modules/template-engine/components/html/dummy/Dummy.class.php b/modules/template-engine/components/html/dummy/Dummy.class.php @@ -0,0 +1,8 @@ +<?php + +class DummyComponent extends Component +{ +} + + +?>+ \ No newline at end of file diff --git a/modules/template-engine/components/html/editor/Editor.class.php b/modules/template-engine/components/html/editor/Editor.class.php @@ -0,0 +1,56 @@ +<?php + +class EditorComponent extends Component +{ + public $type; + public $name; + public $mode='html'; + + protected function begin() + { + switch( $this->type ) + { + case 'fckeditor': + case 'html': + echo '<textarea name="'.$this->htmlvalue($this->name).'" class="editor__html-editor" id="pageelement_edit_editor"><?php echo ${'.$this->value($this->name).'} ?></textarea>'; + + break; + + case 'wiki': + echo '<textarea name="'.$this->htmlvalue($this->name).'" class="editor__wiki-editor"><?php echo ${'.$this->value($this->name).'} ?></textarea>'; + break; + + case 'text': + case 'raw': + echo '<textarea name="'.$this->htmlvalue($this->name).'" class="editor__text-editor"><?php echo ${'.$this->value($this->name).'} ?></textarea>'; + break; + + case 'ace': + case 'code': + echo '<textarea name="'.$this->htmlvalue($this->name).'" data-mode="'.$this->htmlvalue($this->mode).'" class="editor__code-editor"><?php echo ${'.$this->value($this->name).'} ?></textarea>'; + break; + + + case 'dom': + case 'tree': + echo <<<HTML + <?php + $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'); + ?> +HTML; + break; + + default: + throw new LogicException("Unknown editor type: ".$this->type); + } + } +} + + +?>+ \ No newline at end of file diff --git a/modules/template-engine/components/html/editor/editor.css b/modules/template-engine/components/html/editor/editor.css @@ -0,0 +1,31 @@ +.editor__text-editor { + width: 100%; + height: 300px; +} +/* ACE-Editor */ +textarea.editor__code-editor { + display: none; + /* Textarea nicht anzeigen, da durch Editor im DIV ersetzt */ +} +div.editor__code-editor { + position: absolute; + height: 500px; + width: 100%; + font-size: 14px; + z-index: 256; +} +textarea.editor__text-editor, +textarea.editor__wiki-editor, +textarea.editor__html-editor { + width: 100%; +} +a.editorlink:active, +a.editorlink:hover { + font-weight: normal; + text-decoration: none; +} +a.editorlink:link, +a.editorlink:visited { + font-weight: normal; + text-decoration: none; +} diff --git a/modules/template-engine/components/html/editor/editor.js b/modules/template-engine/components/html/editor/editor.js @@ -0,0 +1,87 @@ +$(document).on('orViewLoaded',function(event, data) { + + if ( $(event.target).find('textarea#pageelement_edit_editor').size() > 0 ) + { + var instance = CKEDITOR.instances['pageelement_edit_editor']; + if(instance) + { + CKEDITOR.remove(instance); + } + CKEDITOR.replace( 'pageelement_edit_editor',{customConfig:'config-openrat.js'} ); + } + + // Wiki-Editor + var markitupSettings = { markupSet: [ + {name:'Bold', key:'B', openWith:'*', closeWith:'*' }, + {name:'Italic', key:'I', openWith:'_', closeWith:'_' }, + {name:'Stroke through', key:'S', openWith:'--', closeWith:'--' }, + {separator:'-----------------' }, + {name:'Bulleted List', openWith:'*', closeWith:'', multiline:true, openBlockWith:'\n', closeBlockWith:'\n'}, + {name:'Numeric List', openWith:'#', closeWith:'', multiline:true, openBlockWith:'\n', closeBlockWith:'\n'}, + {separator:'---------------' }, + {name:'Picture', key:'P', replaceWith:'{[![Source:!:http://]!]" alt="[![Alternative text]!]" }' }, + {name:'Link', key:'L', openWith:'""->"[![Link:!:http://]!]"', closeWith:'"', placeHolder:'Your text to link...' }, + {separator:'---------------' }, + {name:'Clean', className:'clean', replaceWith:function(markitup) { return markitup.selection.replace(/<(.*?)>/g, "") } }, + {name:'Preview', className:'preview', call:'preview'} + ]}; + $(event.target).find('.wikieditor').markItUp(markitupSettings); + + // HTML-Editor + var wymSettings = {lang: 'de',basePath: OR_THEMES_EXT_DIR+'../editor/wymeditor/wymeditor/', + toolsItems: [ + {'name': 'Bold', 'title': 'Strong', 'css': 'wym_tools_strong'}, + {'name': 'Italic', 'title': 'Emphasis', 'css': 'wym_tools_emphasis'}, + {'name': 'Superscript', 'title': 'Superscript', 'css': 'wym_tools_superscript'}, + {'name': 'Subscript', 'title': 'Subscript', 'css': 'wym_tools_subscript'}, + {'name': 'InsertOrderedList', 'title': 'Ordered_List', 'css': 'wym_tools_ordered_list'}, + {'name': 'InsertUnorderedList', 'title': 'Unordered_List', 'css': 'wym_tools_unordered_list'}, + {'name': 'Indent', 'title': 'Indent', 'css': 'wym_tools_indent'}, + {'name': 'Outdent', 'title': 'Outdent', 'css': 'wym_tools_outdent'}, + {'name': 'Undo', 'title': 'Undo', 'css': 'wym_tools_undo'}, + {'name': 'Redo', 'title': 'Redo', 'css': 'wym_tools_redo'}, + {'name': 'CreateLink', 'title': 'Link', 'css': 'wym_tools_link'}, + {'name': 'Unlink', 'title': 'Unlink', 'css': 'wym_tools_unlink'}, + {'name': 'InsertImage', 'title': 'Image', 'css': 'wym_tools_image'}, + {'name': 'InsertTable', 'title': 'Table', 'css': 'wym_tools_table'}, + {'name': 'Paste', 'title': 'Paste_From_Word', 'css': 'wym_tools_paste'}, + {'name': 'ToggleHtml', 'title': 'HTML', 'css': 'wym_tools_html'}, + {'name': 'Preview', 'title': 'Preview', 'css': 'wym_tools_preview'} + ] + }; + + + $(event.target).find('textarea').orAutoheight(); + + + + + + // ACE-Editor anzeigen + $(event.target).find("textarea.editor__code-editor").each( function() { + var textareaEl = $(this); + var aceEl = $("<div class=\"editor__code-editor\" />").insertAfter(textareaEl); + var editor = ace.edit( aceEl.get(0) ); + var mode = textareaEl.data('mode'); + + editor.renderer.setShowGutter(true); + editor.setTheme("ace/theme/github"); + +// editor.setReadOnly(true); + editor.getSession().setTabSize(4); + editor.getSession().setUseWrapMode(true); + editor.setHighlightActiveLine(true); + editor.getSession().setValue( textareaEl.val() ); + editor.getSession().setMode("ace/mode/" + mode); + editor.getSession().on('change', function(e) { + textareaEl.val(editor.getSession().getValue()); + } ); + + // copy back to textarea on form submit... + textareaEl.closest('form').submit(function() { + textareaEl.val( editor.getSession().getValue() ); + }) + } ); + + +});+ \ No newline at end of file diff --git a/modules/template-engine/components/html/editor/editor.less b/modules/template-engine/components/html/editor/editor.less @@ -0,0 +1,45 @@ + +.editor__text-editor { + width:100%; + height:300px; +} + +/* ACE-Editor */ +textarea.editor__code-editor { + display:none; /* Textarea nicht anzeigen, da durch Editor im DIV ersetzt */ +} + + +div.editor__code-editor +{ + position: absolute; + height: 500px; + width: 100%; + font-size:14px; + z-index: 256; +} + + + +textarea.editor__text-editor, +textarea.editor__wiki-editor, +textarea.editor__html-editor, +{ + width:100%; +} + + +a.editorlink:active, +a.editorlink:hover +{ + font-weight:normal; + text-decoration:none; +} + +a.editorlink:link, +a.editorlink:visited +{ + font-weight:normal; + text-decoration:none; +} + diff --git a/modules/template-engine/components/html/editor/editor.min.css b/modules/template-engine/components/html/editor/editor.min.css @@ -0,0 +1 @@ +.editor__text-editor {width:100%;height:300px;}textarea.editor__code-editor {display:none;}div.editor__code-editor {position:absolute;height:500px;width:100%;font-size:14px;z-index:256;}textarea.editor__text-editor,textarea.editor__wiki-editor,textarea.editor__html-editor {width:100%;}a.editorlink:active,a.editorlink:hover {font-weight:normal;text-decoration:none;}a.editorlink:link,a.editorlink:visited {font-weight:normal;text-decoration:none;}+ \ No newline at end of file diff --git a/modules/template-engine/components/html/editor/editor.min.js b/modules/template-engine/components/html/editor/editor.min.js @@ -0,0 +1,87 @@ +$(document).on('orViewLoaded',function(event, data) { + + if ( $(event.target).find('textarea#pageelement_edit_editor').size() > 0 ) + { + var instance = CKEDITOR.instances['pageelement_edit_editor']; + if(instance) + { + CKEDITOR.remove(instance); + } + CKEDITOR.replace( 'pageelement_edit_editor',{customConfig:'config-openrat.js'} ); + } + + // Wiki-Editor + var markitupSettings = { markupSet: [ + {name:'Bold', key:'B', openWith:'*', closeWith:'*' }, + {name:'Italic', key:'I', openWith:'_', closeWith:'_' }, + {name:'Stroke through', key:'S', openWith:'--', closeWith:'--' }, + {separator:'-----------------' }, + {name:'Bulleted List', openWith:'*', closeWith:'', multiline:true, openBlockWith:'\n', closeBlockWith:'\n'}, + {name:'Numeric List', openWith:'#', closeWith:'', multiline:true, openBlockWith:'\n', closeBlockWith:'\n'}, + {separator:'---------------' }, + {name:'Picture', key:'P', replaceWith:'{[![Source:!:http://]!]" alt="[![Alternative text]!]" }' }, + {name:'Link', key:'L', openWith:'""->"[![Link:!:http://]!]"', closeWith:'"', placeHolder:'Your text to link...' }, + {separator:'---------------' }, + {name:'Clean', className:'clean', replaceWith:function(markitup) { return markitup.selection.replace(/<(.*?)>/g, "") } }, + {name:'Preview', className:'preview', call:'preview'} + ]}; + $(event.target).find('.wikieditor').markItUp(markitupSettings); + + // HTML-Editor + var wymSettings = {lang: 'de',basePath: OR_THEMES_EXT_DIR+'../editor/wymeditor/wymeditor/', + toolsItems: [ + {'name': 'Bold', 'title': 'Strong', 'css': 'wym_tools_strong'}, + {'name': 'Italic', 'title': 'Emphasis', 'css': 'wym_tools_emphasis'}, + {'name': 'Superscript', 'title': 'Superscript', 'css': 'wym_tools_superscript'}, + {'name': 'Subscript', 'title': 'Subscript', 'css': 'wym_tools_subscript'}, + {'name': 'InsertOrderedList', 'title': 'Ordered_List', 'css': 'wym_tools_ordered_list'}, + {'name': 'InsertUnorderedList', 'title': 'Unordered_List', 'css': 'wym_tools_unordered_list'}, + {'name': 'Indent', 'title': 'Indent', 'css': 'wym_tools_indent'}, + {'name': 'Outdent', 'title': 'Outdent', 'css': 'wym_tools_outdent'}, + {'name': 'Undo', 'title': 'Undo', 'css': 'wym_tools_undo'}, + {'name': 'Redo', 'title': 'Redo', 'css': 'wym_tools_redo'}, + {'name': 'CreateLink', 'title': 'Link', 'css': 'wym_tools_link'}, + {'name': 'Unlink', 'title': 'Unlink', 'css': 'wym_tools_unlink'}, + {'name': 'InsertImage', 'title': 'Image', 'css': 'wym_tools_image'}, + {'name': 'InsertTable', 'title': 'Table', 'css': 'wym_tools_table'}, + {'name': 'Paste', 'title': 'Paste_From_Word', 'css': 'wym_tools_paste'}, + {'name': 'ToggleHtml', 'title': 'HTML', 'css': 'wym_tools_html'}, + {'name': 'Preview', 'title': 'Preview', 'css': 'wym_tools_preview'} + ] + }; + + + $(event.target).find('textarea').orAutoheight(); + + + + + + // ACE-Editor anzeigen + $(event.target).find("textarea.editor__code-editor").each( function() { + var textareaEl = $(this); + var aceEl = $("<div class=\"editor__code-editor\" />").insertAfter(textareaEl); + var editor = ace.edit( aceEl.get(0) ); + var mode = textareaEl.data('mode'); + + editor.renderer.setShowGutter(true); + editor.setTheme("ace/theme/github"); + +// editor.setReadOnly(true); + editor.getSession().setTabSize(4); + editor.getSession().setUseWrapMode(true); + editor.setHighlightActiveLine(true); + editor.getSession().setValue( textareaEl.val() ); + editor.getSession().setMode("ace/mode/" + mode); + editor.getSession().on('change', function(e) { + textareaEl.val(editor.getSession().getValue()); + } ); + + // copy back to textarea on form submit... + textareaEl.closest('form').submit(function() { + textareaEl.val( editor.getSession().getValue() ); + }) + } ); + + +});+ \ No newline at end of file diff --git a/modules/template-engine/components/html/else/Else.class.php b/modules/template-engine/components/html/else/Else.class.php @@ -0,0 +1,17 @@ +<?php + +class ElseComponent extends Component +{ + + public function begin() + { + echo '<?php if(!$if'.$this->getDepth().'){?>'; + } + + + public function end() { + echo '<?php } ?>'; + } +} + +?>+ \ No newline at end of file diff --git a/modules/template-engine/components/html/focus/Focus.class.php b/modules/template-engine/components/html/focus/Focus.class.php @@ -0,0 +1,25 @@ +<?php + +class FocusComponent extends Component +{ + + public function begin() + { + /* + echo <<<'HTML' +<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> +HTML; + */ + } + + + public function end() { + } +} + +?>+ \ No newline at end of file diff --git a/modules/template-engine/components/html/form/Form.class.php b/modules/template-engine/components/html/form/Form.class.php @@ -0,0 +1,93 @@ +<?php + +class FormComponent extends Component +{ + + public $method = 'POST'; + + public $name = ''; + + public $action = '<?php echo OR_ACTION ?>'; + + public $subaction = '<?php echo OR_METHOD ?>'; + + public $id = '<?php echo OR_ID ?>'; + + public $label; + + public $cancel = false; + + public $visible = false; + + public $target = '_self'; + + public $enctype = 'application/x-www-form-urlencoded'; + + public $async = false; + + public $autosave = false; + + public $type = ''; + + private $submitFunction = 'formSubmit( $(this) ); return false;'; + + protected function begin() + { + if (empty($this->label)) + $this->label = lang('BUTTON_OK'); + + if ($this->type == 'upload') + $this->submitFunction = ''; + + echo '<form'; + echo ' name="' . $this->htmlvalue($this->name) . '"'; + + echo ' target="' . $this->htmlvalue($this->target) . '"'; + echo ' action="' . $this->htmlvalue($this->action) . '"'; + echo ' data-method="' . $this->htmlvalue($this->subaction) . '"'; + echo ' data-action="' . $this->htmlvalue($this->action) . '"'; + echo ' data-id="' . $this->htmlvalue($this->id) . '"'; + echo ' method="' . $this->htmlvalue($this->subaction) . '"'; + echo ' enctype="' . $this->htmlvalue($this->enctype) . '"'; + echo ' class="' . $this->htmlvalue($this->action) . '"'; + echo ' data-async="' . $this->htmlvalue($this->async) . '"'; + echo ' data-autosave="' . $this->htmlvalue($this->autosave) . '"'; + echo ' onSubmit="' . $this->htmlvalue($this->submitFunction) . '">'; + + echo '<input type="submit" class="invisible" />'; // why this? + + echo '<input type="hidden" name="<?php echo REQ_PARAM_TOKEN ?>" value="<?php echo token() ?>" />'; + echo '<input type="hidden" name="<?php echo REQ_PARAM_ACTION ?>" value="' . $this->htmlvalue($this->action) . '" />'; + echo '<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="' . $this->htmlvalue($this->subaction) . '" />'; + echo '<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="' . $this->htmlvalue($this->id) . '" />'; + } + + protected function end() + { + $label = $this->htmlvalue($this->label); + + // Fällt demnächst weg: + echo <<<HTML + +<div class="bottom"> + <div class="command {$this->visible}"> + + <input type="button" class="submit ok" value="{$label}" onclick="$(this).closest('div.sheet').find('form').submit(); " /> + + <!-- Cancel-Button nicht anzeigen, wenn cancel==false. --> +HTML; + if ($this->cancel) + { + echo '<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();" . '" />'; + } + echo <<<HTML + </div> +</div> + +</form> + +HTML; + } +} + +?>+ \ No newline at end of file diff --git a/modules/template-engine/components/html/form/form.js b/modules/template-engine/components/html/form/form.js @@ -0,0 +1,221 @@ +// +$(document).on('orViewLoaded',function(event, data) { + + if ( $('div.panel form input[type=password]').length>0 && $('#uname').attr('value')!='' ) + { + $('div.panel form input[name=login_name] ').attr('value',$('#uname' ).attr('value')); + $('div.panel form input[name=login_password]').attr('value',$('#upassword').attr('value')); + } + + + // Autosave in Formularen. Bei Veränderungen wird das Formular sofort abgeschickt. + $(event.target).find('form[data-autosave="true"] input[type="checkbox"]').click( function() { + formSubmit( $(this).closest('form') ); + }); + +} ); + + + + +function formSubmit(form) +{ + // Login-Hack + if ( $('div.panel form input[type=password]').length>0 ) + { + $('#uname' ).attr('value',$('div.panel form input[name=login_name]' ).attr('value')); + $('#upassword').attr('value',$('div.panel form input[name=login_password]').attr('value')); + + $('#uname' ).closest('form').submit(); + } + + if ( $('#pageelement_edit_editor').length>0 ) + { + var instance = CKEDITOR.instances['pageelement_edit_editor']; + if(instance) + { + var value = instance.getData(); + $('#pageelement_edit_editor').html( value ); + } + } + + + var status = $('<div class="notice info"><div class="text loader"></div></div>'); + $('#noticebar').prepend(status); // Notice anhängen. + $(status).show(); + + // Alle vorhandenen Error-Marker entfernen. + // Falls wieder ein Fehler auftritt, werden diese erneut gesetzt. + $(form).find('.error').removeClass('error'); + + var params = $(form).serializeArray(); + var url = './dispatcher.php'; // Alle Parameter befinden sich im Formular + + var formMethod = $(form).attr('method').toUpperCase(); + + if ( formMethod == 'GET' ) + { + // GET-Request + var action = $(form).data('action'); + var method = $(form).data('method'); + var id = $(form).data('id' ); + + loadView( $(form).closest('div.content'),action,method,id,params); + } + else + { + // POST-Request + $(form).closest('div.content').addClass('loader'); + url += '?output=json'; + params['output'] = 'json';// Irgendwie geht das nicht. + + if ( $(form).data('async') || $(form).data('async')=='true') + { + // Verarbeitung erfolgt asynchron, das heißt, dass der evtl. geöffnete Dialog + // beendet wird. + $('div#dialog').html('').hide(); // Dialog beenden + + //$('div.modaldialog').fadeOut(500); + //$('div#workbench').removeClass('modal'); // Modalen Dialog beenden. + $('div#filler').fadeOut(500); // Filler beenden + } + + $.ajax( { 'type':'POST',url:url, data:params, success:function(data, textStatus, jqXHR) + { + $(form).closest('div.content').removeClass('loader'); + $(status).remove(); + + doResponse(data,textStatus,form); + }, + error:function(jqXHR, textStatus, errorThrown) { + $(form).closest('div.content').removeClass('loader'); + $(status).remove(); + + var msg; + try + { + var error = jQuery.parseJSON( jqXHR.responseText ); + msg = error.error + '/' + error.description + ': ' + error.reason; + } + catch( e ) + { + msg = jqXHR.responseText; + } + + notify('error',msg); + + } + + } ); + $(form).fadeIn(); + } +} + + + + + +/** + * HTTP-Antwort auf einen POST-Request auswerten. + * + * @param data Formulardaten + * @param status Status + * @param element + */ +function doResponse(data,status,element) +{ + if ( status != 'success' ) + { + alert('Server error: ' + status); + return; + } + + // Hinweismeldungen in Statuszeile anzeigen + $.each(data['notices'], function(idx,value) { + + // Notice-Bar mit dieser Meldung erweitern. + var notice = $('<div class="notice '+value.status+'"><div class="text">'+value.text+'</div></div>'); + notifyBrowser(value.text); + $.each(value.log, function(name,value) { + $(notice).append('<div class="log">'+value+'</div>'); + }); + $('#noticebar').prepend(notice); // Notice anhängen. + + // Per Klick wird die Notice entfernt. + $(notice).fadeIn().click( function() + { + $(this).fadeOut('fast',function() { $(this).remove(); } ); + } ); + + var timeoutSeconds; + if ( value.status == 'ok' ) // Kein Fehler? + { + // Kein Fehler + timeoutSeconds = 3; + + // Nur bei synchronen Prozessen soll nach Verarbeitung der Dialog + // geschlossen werden. + if ( $(element).data('async') != 'true' ) + { + // Verarbeitung erfolgt asynchron, das heißt, dass der evtl. geöffnete Dialog + // beendet wird. + $('div#dialog').html('').hide(); // Dialog beenden + + //$('div.modaldialog').fadeOut(500); + //$('div#workbench').removeClass('modal'); // Modalen Dialog beenden. + $('div#filler').fadeOut(500); // Filler beenden + + // Da gespeichert wurde, jetzt das 'dirty'-flag zurücksetzen. + $(element).closest('div.panel').find('div.header ul.views li.action.active').removeClass('dirty'); + } + } + else + // Server liefert Fehler zurück. + { + timeoutSeconds = 8; + } + + // Und nach einem Timeout entfernt sich die Notice von alleine. + setTimeout( function() { $(notice).fadeOut('slow').remove(); },timeoutSeconds*1000 ); + }); + + // Felder mit Fehleingaben markieren, ggf. das übergeordnete Fieldset aktivieren. + $.each(data['errors'], function(idx,value) { + $('input[name='+value+']').addClass('error').parent().addClass('error').parents('fieldset').addClass('show').addClass('open'); + }); + + // Jetzt das erhaltene Dokument auswerten. + + // Hinweismeldungen in Statuszeile anzeigen + if ( ! data.control ) { + /* + $('div.panel div.status').html('<div />'); + $('div.panel div.status div').append( data ); + $('div.panel div.status div').delay(3000).fadeOut(2500); + */ + //alert( value.text ); + }; + + + if ( data.control.redirect ) + // Redirect + window.location.href = data.control.redirect; + + if ( data.control.new_style ) + // CSS-Datei setzen + setUserStyle( data.control.new_style ); + + if ( data.control.refresh ) + // Views aktualisieren + refreshAll(); + + else if ( data.control.next_view ) + // Nächste View aufrufen + startView( $(element).closest('div.content'),data.control.next_view ); + + else if ( data.errors.length==0 ) + // Aktuelle View neu laden + $(element).closest('div.panel').find('li.action.active').orLoadView(); + +} + diff --git a/modules/template-engine/components/html/form/form.min.js b/modules/template-engine/components/html/form/form.min.js @@ -0,0 +1,3 @@ +;$(document).on('orViewLoaded',function(e,t){if($('div.panel form input[type=password]').length>0&&$('#uname').attr('value')!=''){$('div.panel form input[name=login_name] ').attr('value',$('#uname').attr('value'));$('div.panel form input[name=login_password]').attr('value',$('#upassword').attr('value'))};$(e.target).find('form[data-autosave="true"] input[type="checkbox"]').click(function(){formSubmit($(this).closest('form'))})});function formSubmit(e){if($('div.panel form input[type=password]').length>0){$('#uname').attr('value',$('div.panel form input[name=login_name]').attr('value'));$('#upassword').attr('value',$('div.panel form input[name=login_password]').attr('value'));$('#uname').closest('form').submit()};if($('#pageelement_edit_editor').length>0){var r=CKEDITOR.instances['pageelement_edit_editor'];if(r){var l=r.getData();$('#pageelement_edit_editor').html(l)}};var t=$('<div class="notice info"><div class="text loader"></div></div>');$('#noticebar').prepend(t);$(t).show();$(e).find('.error').removeClass('error');var a=$(e).serializeArray(),o='./dispatcher.php',d=$(e).attr('method').toUpperCase();if(d=='GET'){var i=$(e).data('action'),n=$(e).data('method'),s=$(e).data('id');loadView($(e).closest('div.content'),i,n,s,a)} +else{$(e).closest('div.content').addClass('loader');o+='?output=json';a['output']='json';if($(e).data('async')||$(e).data('async')=='true'){$('div#dialog').html('').hide();$('div#filler').fadeOut(500)};$.ajax({'type':'POST',url:o,data:a,success:function(a,o,r){$(e).closest('div.content').removeClass('loader');$(t).remove();doResponse(a,o,e)},error:function(a,o,n){$(e).closest('div.content').removeClass('loader');$(t).remove();var i;try{var r=jQuery.parseJSON(a.responseText);i=r.error+'/'+r.description+': '+r.reason}catch(s){i=a.responseText};notify('error',i)}});$(e).fadeIn()}};function doResponse(e,t,a){if(t!='success'){alert('Server error: '+t);return};$.each(e['notices'],function(t,e){var o=$('<div class="notice '+e.status+'"><div class="text">'+e.text+'</div></div>');notifyBrowser(e.text);$.each(e.log,function(e,t){$(o).append('<div class="log">'+t+'</div>')});$('#noticebar').prepend(o);$(o).fadeIn().click(function(){$(this).fadeOut('fast',function(){$(this).remove()})});var r;if(e.status=='ok'){r=3;if($(a).data('async')!='true'){$('div#dialog').html('').hide();$('div#filler').fadeOut(500);$(a).closest('div.panel').find('div.header ul.views li.action.active').removeClass('dirty')}} +else{r=8};setTimeout(function(){$(o).fadeOut('slow').remove()},r*1000)});$.each(e['errors'],function(e,t){$('input[name='+t+']').addClass('error').parent().addClass('error').parents('fieldset').addClass('show').addClass('open')});if(!e.control){};if(e.control.redirect)window.location.href=e.control.redirect;if(e.control.new_style)setUserStyle(e.control.new_style);if(e.control.refresh)refreshAll();else if(e.control.next_view)startView($(a).closest('div.content'),e.control.next_view);else if(e.errors.length==0)$(a).closest('div.panel').find('li.action.active').orLoadView()};+ \ No newline at end of file diff --git a/modules/template-engine/components/html/group/Group.class.php b/modules/template-engine/components/html/group/Group.class.php @@ -0,0 +1,38 @@ +<?php + +class GroupComponent extends Component +{ + + public $open = true; + public $show = true; + public $title; + public $icon; + + public function begin() + { + echo '<fieldset'; + echo ' class="'; + echo '<?php echo '.$this->value($this->open).'?" open":"" ?>'; + echo '<?php echo '.$this->value($this->show).'?" show":"" ?>'; + echo '">'; + + if ( !empty($this->title)) + { + echo '<legend>'; + if ( !empty($this->icon)) + echo '<img src="/themes/default/images/icon/method/'.$this->htmlvalue($this->icon).'.svg" />'; + + echo '<div class="arrow-right closed" /><div class="arrow-down open" />'; + echo $this->htmlvalue($this->title); + echo '</legend>'; + } + echo '<div>'; + } + + + public function end() { + echo '</div></fieldset>'; + } +} + +?>+ \ No newline at end of file diff --git a/modules/template-engine/components/html/group/group.css b/modules/template-engine/components/html/group/group.css @@ -0,0 +1,45 @@ +fieldset.open > legend { + cursor: pointer; +} +fieldset { + border: 1px solid; + border-bottom: 0px; + border-left: 0px; + border-right: 0px; + margin-top: 20px; + margin-bottom: 20px; + margin-left: 0px; + margin-right: 0px; + padding: 10px; + display: none; +} +fieldset.show { + display: block; +} +fieldset > legend { + margin-left: 30px; + font-weight: normal; +} +fieldset > div { + display: none; +} +fieldset.open > div { + display: block; +} +/* Geschlossene Fieldsets */ +div#workbench div.panel fieldset > legend > div.closed, +div#dialog div.panel fieldset > legend > div.closed { + display: inline; +} +div#workbench div.panel fieldset > legend > div.open { + display: none; +} +/* Offene Fieldsets */ +div#workbench div.panel fieldset.open > legend > div.closed { + display: none; +} +div#workbench div.panel fieldset.open > legend > div.open, +div#dialog div.panel fieldset.open > legend > div.open { + display: inline; +} +/*# sourceMappingURL=data:application/json,%7B%22version%22%3A3%2C%22sources%22%3A%5B%22group.less%22%5D%2C%22names%22%3A%5B%5D%2C%22mappings%22%3A%22AAAA%2CQAAQ%2CKAAQ%3BCAEf%3B%3BAAKD%3BCAEC%2CiBAAA%3BCAEA%3BCACA%3BCACA%3BCAEA%3BCACA%3BCACA%3BCACA%3BCACA%3BCACA%3B%3BAAGD%2CQAAQ%3BCACP%3B%3BAAID%2CQAAW%3BCAEV%3BCACA%3B%3BAAID%2CQAAW%3BCAEV%3B%3BAAED%2CQAAQ%2CKAAQ%3BCAEf%3B%3B%3BAAID%2CGAAG%2CUAAW%2CIAAG%2CMAAO%2CSAAW%2CSAAS%2CMAAG%3BAAC%5C%2FC%2CGAAG%2COAAW%2CIAAG%2CMAAO%2CSAAW%2CSAAS%2CMAAG%3BCAG9C%3B%3BAAED%2CGAAG%2CUAAW%2CIAAG%2CMAAO%2CSAAW%2CSAAS%2CMAAG%3BCAE9C%3B%3B%3BAAID%2CGAAG%2CUAAW%2CIAAG%2CMAAO%2CSAAQ%2CKAAQ%2CSAAS%2CMAAG%3BCAEnD%3B%3BAAED%2CGAAG%2CUAAW%2CIAAG%2CMAAO%2CSAAQ%2CKAAQ%2CSAAS%2CMAAG%3BAACpD%2CGAAG%2COAAW%2CIAAG%2CMAAO%2CSAAQ%2CKAAQ%2CSAAS%2CMAAG%3BCAEnD%22%7D */+ \ No newline at end of file diff --git a/modules/template-engine/components/html/group/group.js b/modules/template-engine/components/html/group/group.js @@ -0,0 +1,6 @@ +$(document).on('orViewLoaded',function(event, data) { + + $(event.target).find('fieldset > legend').click( function() { + $(this).parent().toggleClass('open'); + }); +});+ \ No newline at end of file diff --git a/modules/template-engine/components/html/group/group.less b/modules/template-engine/components/html/group/group.less @@ -0,0 +1,66 @@ +fieldset.open > legend +{ + cursor:pointer; +} + + + +fieldset +{ + border:1px solid; + + border-bottom:0px; + border-left:0px; + border-right:0px; + + margin-top:20px; + margin-bottom:20px; + margin-left:0px; + margin-right:0px; + padding:10px; + display: none; +} + +fieldset.show { + display: block; +} + + +fieldset > legend +{ + margin-left:30px; + font-weight:normal; +} + + +fieldset > div +{ + display:none; +} +fieldset.open > div +{ + display:block; +} + +/* Geschlossene Fieldsets */ +div#workbench div.panel fieldset > legend > div.closed, +div#dialog div.panel fieldset > legend > div.closed + +{ + display:inline; +} +div#workbench div.panel fieldset > legend > div.open +{ + display:none; +} + +/* Offene Fieldsets */ +div#workbench div.panel fieldset.open > legend > div.closed +{ + display:none; +} +div#workbench div.panel fieldset.open > legend > div.open, +div#dialog div.panel fieldset.open > legend > div.open +{ + display:inline; +} diff --git a/modules/template-engine/components/html/group/group.min.css b/modules/template-engine/components/html/group/group.min.css @@ -0,0 +1 @@ +fieldset.open > legend{cursor: pointer}fieldset{border: 1px solid;border-bottom: 0px;border-left: 0px;border-right: 0px;margin-top: 20px;margin-bottom: 20px;margin-left: 0px;margin-right: 0px;padding: 10px;display: none}fieldset.show{display: block}fieldset > legend{margin-left: 30px;font-weight: normal}fieldset > div{display: none}fieldset.open > div{display: block}div#workbench div.panel fieldset > legend > div.closed,div#dialog div.panel fieldset > legend > div.closed{display: inline}div#workbench div.panel fieldset > legend > div.open{display: none}div#workbench div.panel fieldset.open > legend > div.closed{display: none}div#workbench div.panel fieldset.open > legend > div.open,div#dialog div.panel fieldset.open > legend > div.open{display: inline}+ \ No newline at end of file diff --git a/modules/template-engine/components/html/group/group.min.js b/modules/template-engine/components/html/group/group.min.js @@ -0,0 +1,6 @@ +$(document).on('orViewLoaded',function(event, data) { + + $(event.target).find('fieldset > legend').click( function() { + $(this).parent().toggleClass('open'); + }); +});+ \ No newline at end of file diff --git a/modules/template-engine/components/html/header/Header.class.php b/modules/template-engine/components/html/header/Header.class.php @@ -0,0 +1,25 @@ +<?php + +class HeaderComponent extends Component +{ + public function begin() + { + /* +<?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 } ?> + */ + + } +} + + +?>+ \ No newline at end of file diff --git a/modules/template-engine/components/html/hidden/Hidden.class.php b/modules/template-engine/components/html/hidden/Hidden.class.php @@ -0,0 +1,27 @@ +<?php + +class HiddenComponent extends Component +{ + + public $name; + + public $default; + + public function begin() + { + echo '<input'; + echo ' type="hidden"'; + echo ' name="' . $this->htmlvalue($this->name) . '"'; + echo ' value="'; + + if (isset($this->default)) + echo $this->htmlvalue($this->default); + else + echo '<?php echo $' . $this->varname($this->name) . ' ?>'; + + echo '"'; + echo '/>'; + } +} + +?>+ \ No newline at end of file diff --git a/modules/template-engine/components/html/if/If.class.php b/modules/template-engine/components/html/if/If.class.php @@ -0,0 +1,49 @@ +<?php + +class IfComponent extends Component +{ + public $true; + public $false; + public $contains; + public $value; + public $empty; + public $lessthan; + public $greaterthan; + public $present; + public $not; + + + public function begin() + { + echo <<<'HTML' +HTML; + + echo '<?php $if'.$this->getDepth().'='.(empty($this->not)?'':'!').'('; + if ( !empty($this->true )) + echo $this->value($this->true); + elseif (! empty($this->false)) + echo '!' . $this->value($this->false); + elseif (! empty($this->contains)) + echo 'in_array('.$this->value($this->value).',explode(",",'.$this->value($this->contains).')'; + elseif (! empty($this->equals)) + echo '' . $this->value($this->value).'=='.$this->value($this->equals); + elseif (strlen($this->lessthan)>0) + echo 'intval(' . $this->value($this->lessthan).')>intval('.$this->value($this->value).')'; + elseif (strlen($this->greaterthan)>0) + echo 'intval(' . $this->value($this->greaterthan).')<intval('.$this->value($this->value).')'; + elseif (! empty($this->present)) + echo '!empty(' . $this->textasvarname($this->present).')'; + elseif (! empty($this->empty)) + echo 'empty(' . $this->textasvarname($this->empty).')'; + else + throw new LogicException("Element 'if' has not enough parameters."); + + echo '); if($if'.$this->getDepth().'){?>'; + } + + public function end() { + echo '<?php } ?>'; + } +} + +?>+ \ No newline at end of file diff --git a/modules/template-engine/components/html/image/Image.class.php b/modules/template-engine/components/html/image/Image.class.php @@ -0,0 +1,82 @@ +<?php + +class ImageComponent extends Component +{ + + public $action; + public $method; + public $config; + public $file; + public $url; + public $icon; + public $align='left'; + public $type; + public $elementtype; + public $fileext; + public $tree; + public $notice; + public $size; + public $title; + + protected function begin() + { + if ( !empty($this->elementtype) ) + { + $file = OR_THEMES_DIR.'default/images/icon/element/'.$this->htmlvalue($this->elementtype).'.svg'; + $styleClass = 'image-icon image-icon--element'; + } + elseif ( !empty($this->action) ) + { + $file = OR_THEMES_DIR.'default/images/icon/action/'.$this->htmlvalue($this->action).'.svg'; + $styleClass = 'image-icon image-icon--action'; + } + elseif ( !empty($this->method) ) + { + $file = OR_THEMES_DIR.'default/images/icon/method/'.$this->htmlvalue($this->method).'.svg'; + $styleClass = 'image-icon image-icon--method'; + } + elseif ( !empty($this->type) ) + { + $file = OR_THEMES_DIR.'default/images/icon_'.$this->htmlvalue($this->type).IMG_ICON_EXT; + $styleClass = ''; + } + elseif ( !empty($this->icon) ) + { + $file = OR_THEMES_DIR.'default/images/icon/'.$this->htmlvalue($this->icon).IMG_ICON_EXT; + $styleClass = ''; + } + elseif ( !empty($this->notice) ) + { + $file = OR_THEMES_DIR.'default/images/notice_'.$this->htmlvalue($this->notice).IMG_ICON_EXT; + $styleClass = ''; + } + elseif ( !empty($this->tree) ) + { + $file = OR_THEMES_DIR.'default/images/tree_'.$this->htmlvalue($this->tree).IMG_EXT; + $styleClass = ''; + } + elseif ( !empty($this->url) ) + { + $file = $this->htmlvalue($this->url); + $styleClass = ''; + } + elseif ( !empty($this->fileext) ) + { + $file = OR_THEMES_DIR.'default/images/icon/'.$this->htmlvalue($this->fileext); + $styleClass = ''; + } + elseif ( !empty($this->file) ) + { + $file = OR_THEMES_DIR.'default/images/icon/'.$this->htmlvalue($this->file).IMG_ICON_EXT; + $styleClass = ''; + } + + echo '<img class="'.$styleClass.'" title="'.$this->htmlvalue($this->title).'" src="'.$file.'" />'; + } + + protected function end() + { + } +} + +?>+ \ No newline at end of file diff --git a/modules/template-engine/components/html/image/image.css b/modules/template-engine/components/html/image/image.css @@ -0,0 +1,2 @@ + +/*# sourceMappingURL=data:application/json,%7B%22version%22%3A3%2C%22sources%22%3A%5B%5D%2C%22names%22%3A%5B%5D%2C%22mappings%22%3A%22%22%7D */+ \ No newline at end of file diff --git a/modules/template-engine/components/html/image/image.js b/modules/template-engine/components/html/image/image.js @@ -0,0 +1,5 @@ +$(document).on('orViewLoaded orHeaderLoaded',function(event, data) { + + // Convert linked SVG to an inline SVG, because we want to style it... + $(event.target).find('img.image-icon').svgToInline(); +}); + \ No newline at end of file diff --git a/modules/template-engine/components/html/image/image.less b/modules/template-engine/components/html/image/image.less @@ -0,0 +1,3 @@ +img.image-icon { + +} + \ No newline at end of file diff --git a/modules/template-engine/components/html/image/image.min.css b/modules/template-engine/components/html/image/image.min.css diff --git a/modules/template-engine/components/html/image/image.min.js b/modules/template-engine/components/html/image/image.min.js @@ -0,0 +1 @@ +;$(document).on('orViewLoaded orHeaderLoaded',function(e,o){$(e.target).find('img.image-icon').svgToInline()});+ \ No newline at end of file diff --git a/modules/template-engine/components/html/input/Input.class.php b/modules/template-engine/components/html/input/Input.class.php @@ -0,0 +1,106 @@ +<?php + +class InputComponent extends Component +{ + + public $class = 'text'; + + public $default; + + public $type = 'text'; + + public $index; + + public $name; + + public $prefix; + + public $value; + + public $size; + + public $maxlength = 256; + + public $onchange; + + public $readonly = false; + + public $hint; + + public $icon; + + public function begin() + { + if(!$this->type == 'hidden') + { + // Verstecktes Feld. + $this->outputHiddenField(); + } + else + { + echo '<div class="inputholder">'; + echo '<input'; + if(isset($this->readonly)) + echo '<?php if ('.$this->value($this->readonly).') '."echo ' disabled=\"true\"' ?>"; + if (isset($this->hint)) + echo ' data-hint="'.$this->htmlvalue($this->hint).'"'; + + echo ' id="'.'<?php echo REQUEST_ID ?>_'.$this->htmlvalue($this->name).'"'; + + // Attribute name="..." + echo ' name="'; + echo $this->htmlvalue($this->name); + if(isset($this->readonly)) + echo '<?php if ('.$this->value($this->readonly).') '."echo '_disabled' ?>"; + echo '"'; + + echo ' type="'.$this->htmlvalue($this->type).'"'; + echo ' maxlength="'.$this->htmlvalue($this->maxlength).'"'; + echo ' class="'.$this->htmlvalue($this->class).'"'; + + echo ' value="<?php echo Text::encodeHtml('; + if (isset($this->default)) + echo $this->value($this->default); + else + echo '@$'.$this->varname($this->name); + echo ') ?>"'; + + echo ' />'; + + if(isset($this->readonly)) + { + + echo '<?php if ('.$this->value($this->readonly).') { ?>'; + $this->outputHiddenField(); + echo '<?php } ?>'; + } + + + if(isset($this->icon)) + echo '<img src="/themes/default/images/icon_'.$this->htmlvalue($this->icon).'<?php echo IMG_ICON_EXT ?>" width="16" height="16" />'; + + echo '</div>'; + + } + } + + private function outputHiddenField() + { + echo '<input'; + echo ' type="hidden"'; + echo ' name="'.$this->htmlvalue($this->name).'"'; + + echo ' value="<?php '; + + if(isset($this->default)) + echo $this->value($this->default); + else + echo '$'.$this->varname($this->name); + + echo ' ?>"'; + echo '/>'; + + } +} + +?>+ \ No newline at end of file diff --git a/modules/template-engine/components/html/inputarea/Inputarea.class.php b/modules/template-engine/components/html/inputarea/Inputarea.class.php @@ -0,0 +1,42 @@ +<?php + +class InputareaComponent extends Component +{ + + public $name; + + public $rows = 10; + + public $cols = 40; + + public $value; + + public $index; + + public $onchange; + + public $prefix; + + public $class = 'inputarea'; + + public $default; + + public function begin() + { + echo '<div class="inputholder">'; + echo '<textarea'; + echo ' class="'.$this->htmlvalue($this->class).'"'; + echo ' name="'.$this->htmlvalue($this->name).'"'; + echo '>'; + echo '<?php echo Text::encodeHtml('; + if (isset($this->default)) + echo $this->value($this->default); + else + echo '$'.$this->varname($this->name).''; + echo ') ?>'; + echo '</textarea>'; + echo '</div>'; + } +} + +?>+ \ No newline at end of file diff --git a/modules/template-engine/components/html/insert/Insert.class.php b/modules/template-engine/components/html/insert/Insert.class.php @@ -0,0 +1,34 @@ +<?php + +class InsertComponent extends Component +{ + public $name= ''; + public $url; + public $function; + + public function begin() + { + if ( !empty($this->function)) + { + // JS-Function einbinden + echo '<script type="text/javascript" name="JavaScript">'.$this->htmlvalue($this->function).'();</script>'; + } + elseif ( !empty($this->url)) + { + // IFrame + echo '<iframe'; + if ( !empty($this->name)) + echo ' name="'.$this->htmlvalue($this->name).'"'; + if ( !empty($this->url)) + echo ' src="'.$this->htmlvalue($this->url).'"'; + echo '></iframe>'; + } + } + + public function end() + { + } +} + + +?>+ \ No newline at end of file diff --git a/modules/template-engine/components/html/label/Label.class.php b/modules/template-engine/components/html/label/Label.class.php @@ -0,0 +1,43 @@ +<?php + +class LabelComponent extends Component +{ + + public $for; + + public $value; + + public $key; + + public $text; + + public function begin() + { + echo '<label'; + + if (! empty($this->for)) + { + + echo ' for="<?php echo REQUEST_ID ?>_' . $this->htmlvalue($this->for); + if (isset($this->value)) + echo '_' . $this->htmlvalue($this->value); + echo '"'; + } + + echo ' class="label"'; + echo '>'; + + if ( !empty($this->key)) + echo '<?php echo lang(' . $this->value($this->key) . ') ?>'; + + if (isset($this->text)) + echo $this->htmlvalue($this->text); + } + + public function end() + { + echo '</label>'; + } +} + +?>+ \ No newline at end of file diff --git a/modules/template-engine/components/html/link/Link.class.php b/modules/template-engine/components/html/link/Link.class.php @@ -0,0 +1,169 @@ +<?php + +/** + * Erzeugt einen HTML-Link. + * + * @author dankert + * + */ +class LinkComponent extends Component +{ + + public $var1; + + public $var2; + + public $var3; + + public $var4; + + public $var5; + + public $value1; + + public $value2; + + public $value3; + + public $value4; + + public $value5; + + public $target; + + public $type; + + public $action; + + public $subaction; + + public $title; + + public $class; + + public $url; + + public $config; + + public $id; + + public $accesskey; + + public $name; + + public $anchor; + + public $frame = '_self'; + + public $modal = false; + + /** + * Link-Beginn + * {@inheritDoc} + * @see Component::begin() + */ + public function begin() + { + echo '<a'; + + if (! empty($this->class)) + echo ' class="' . $this->htmlvalue($this->class) . '"'; + + if (! empty($this->title)) + echo ' title="' . $this->htmlvalue($this->title) . '"'; + + if (! empty($this->accesskey)) + echo ' accesskey="' . $this->htmlvalue($this->accesskey) . '"'; + + if (! empty($this->frame)) + echo ' target="' . $this->htmlvalue($this->frame) . '"'; + + if (! empty($this->name)) + echo ' date-name="' . $this->htmlvalue($this->name) . '" name="' . $this->htmlvalue($this->name) . '"'; + + if (! empty($this->url)) + echo ' data-url="' . $this->htmlvalue($this->url) . '"'; + + if (! empty($this->type)) + echo ' data-type="' . $this->htmlvalue($this->type) . '"'; + + if (! empty($this->action)) + echo ' data-action="' . $this->htmlvalue($this->action) . '"'; + else + echo ' data-action="<?php echo OR_ACTION ?>"'; + + if (! empty($this->subaction)) + echo ' data-method="' . $this->htmlvalue($this->subaction) . '"'; + else + echo ' data-method="<?php echo OR_METHOD ?>"'; + + if (! empty($this->id)) + echo ' data-id="' . $this->htmlvalue($this->id) . '"'; + else + echo ' data-id="<?php echo OR_ID ?>"'; + + switch ($this->type) + { + case 'post': + + // Zusammenbau eines einzeligen JSON-Strings. + // Aufpassen: Keine doppelten Hochkommas, keine Zeilenumbrüche. + echo ' data-data="{'; + + echo ""action":""; + if (! empty($this->action)) + echo $this->htmlvalue($this->action); + else + echo "<?php echo OR_ACTION ?>"; + echo "","; + + echo ""subaction":""; + if (! empty($this->subaction)) + echo $this->htmlvalue($this->subaction); + else + echo "<?php echo OR_METHOD ?>"; + echo "","; + + echo ""id":""; + if (! empty($this->id)) + echo $this->htmlvalue($this->id); + else + echo "<?php echo OR_ID ?>"; + echo "","; + + echo '"'.REQ_PARAM_TOKEN . "":"" . '<?php echo token() ?>' . "","; + + if (! empty($this->var1)) + echo ""var1":"" . $this->htmlvalue($this->value1) . "","; + if (! empty($this->var2)) + echo ""var2":"" . $this->htmlvalue($this->value2) . "","; + if (! empty($this->var3)) + echo ""var3":"" . $this->htmlvalue($this->value3) . "","; + if (! empty($this->var4)) + echo ""var4":"" . $this->htmlvalue($this->value4) . "","; + if (! empty($this->var5)) + echo ""var5":"" . $this->htmlvalue($this->value5) . "","; + + echo ""none":"0"}\""; + + break; + + case 'html': + + echo ' href="' . $this->htmlvalue($this->url) . '"'; + break; + + default: + echo ' href="' . 'javascript:void(0);' . '"'; + } + + echo '>'; + } + + public function end() + { + echo '</a> +'; + } +} +?> diff --git a/modules/template-engine/components/html/link/link.js b/modules/template-engine/components/html/link/link.js @@ -0,0 +1,36 @@ +$(document).on('orViewLoaded',function(event, data) { + + // Links aktivieren... + $(event.target).closest('div.panel').find('.clickable').orLinkify(); + +}); + + +$(document).on('orHeaderLoaded',function(event, data) { + + // Links aktivieren... + $('div#header .clickable').orLinkify(); + +}); + + + +/** + * Wird aus dem Plugin 'orLinkify' aufgerufen, wenn auf einen Link mit type='post' geklickt wird. + * + * @param element + * @param data + * @returns + */ +function submitLink(element,data) +{ + var params = jQuery.parseJSON( data ); + var url = './dispatcher.php'; + params.output = 'json'; + $.ajax( { 'type':'POST',url:url, data:params, success:function(data, textStatus, jqXHR) + { + $('div.panel div.status div.loader').html(' '); + doResponse(data,textStatus,element); + } } ); + +} diff --git a/modules/template-engine/components/html/link/link.min.js b/modules/template-engine/components/html/link/link.min.js @@ -0,0 +1 @@ +;$(document).on('orViewLoaded',function(e,n){$(e.target).closest('div.panel').find('.clickable').orLinkify()});$(document).on('orHeaderLoaded',function(e,n){$('div#header .clickable').orLinkify()});function submitLink(e,n){var i=jQuery.parseJSON(n),o='./dispatcher.php';i.output='json';$.ajax({'type':'POST',url:o,data:i,success:function(n,i,o){$('div.panel div.status div.loader').html(' ');doResponse(n,i,e)}})};+ \ No newline at end of file diff --git a/modules/template-engine/components/html/list/List.class.php b/modules/template-engine/components/html/list/List.class.php @@ -0,0 +1,28 @@ +<?php + +class ListComponent extends Component +{ + + public $list; + + public $extract = false; + + public $key = 'list_key'; + + public $value = 'list_value'; + + public function begin() + { + echo '<?php foreach($' . $this->varname($this->list) . ' as $' . $this->varname($this->key) . '=>$' . $this->varname($this->value) . '){ ?>'; + + if ($this->extract) + echo '<?php extract($' . $this->varname($this->value) . ') ?>'; + } + + public function end() + { + echo '<?php } ?>'; + } +} + +?>+ \ No newline at end of file diff --git a/modules/template-engine/components/html/logo/Logo.class.php b/modules/template-engine/components/html/logo/Logo.class.php @@ -0,0 +1,38 @@ +<?php + +class LogoComponent extends Component +{ + public $name; + + public function begin() + { + echo <<<HTML +<div class="line logo"> + <div class="label"> + <img src="themes/default/images/logo_{$this->name}.png ?>" + border="0" /> + </div> + <div class="input"> + <h2> + <?php echo langHtml('logo_{$this->name}') ?> + </h2> + <p> + <?php echo langHtml('logo_{$this->name}_text') ?> + </p> + + </div> +</div> +HTML; + } + + public function end() + { + echo '</div>'; + } + + + +} + + +?>+ \ No newline at end of file diff --git a/modules/template-engine/components/html/newline/Newline.class.php b/modules/template-engine/components/html/newline/Newline.class.php @@ -0,0 +1,12 @@ +<?php + +class NewlineComponent extends Component +{ + + public function begin() + { + echo '<br/>'; + } +} + +?>+ \ No newline at end of file diff --git a/modules/template-engine/components/html/output/Output.class.php b/modules/template-engine/components/html/output/Output.class.php @@ -0,0 +1,8 @@ +<?php + +class OutputComponent extends Component +{ +} + + +?>+ \ No newline at end of file diff --git a/modules/template-engine/components/html/page/Window.class.php b/modules/template-engine/components/html/page/Window.class.php @@ -0,0 +1,8 @@ +<?php + +class WindowComponent extends Component +{ +} + + +?>+ \ No newline at end of file diff --git a/modules/template-engine/components/html/part/Part.class.php b/modules/template-engine/components/html/part/Part.class.php @@ -0,0 +1,28 @@ +<?php + +class PartComponent extends Component +{ + public $class = ''; + public $id; + + public function begin() + { + echo '<div'; + + if ( !empty($this->class)) + echo ' class="'.$this->htmlvalue($this->class).'"'; + + if ( !empty($this->id)) + echo ' id="'.$this->htmlvalue($this->id).'"'; + + echo '>'; + } + + public function end() + { + echo '</div>'; + } +} + + +?>+ \ No newline at end of file diff --git a/modules/template-engine/components/html/password/Password.class.php b/modules/template-engine/components/html/password/Password.class.php @@ -0,0 +1,40 @@ +<?php + +class PasswordComponent extends Component +{ + + public $name; + + public $default; + + public $class; + + public $size = 40; + + public $maxlength = 256; + + public function begin() + { + echo '<div class="inputholder">'; + + echo '<input type="password"'; + echo ' name="' . $this->htmlvalue($this->name) . '"'; + echo ' id="<?php echo REQUEST_ID ?>_' . $this->htmlvalue($this->name) . '"'; + + echo ' size="' . $this->htmlvalue($this->size) . '"'; + echo ' maxlength="' . $this->htmlvalue($this->maxlength) . '"'; + echo ' class="' . $this->htmlvalue($this->class) . '"'; + + echo ' value="'; + if (isset($this->default)) + echo $this->htmlvalue($this->default); + else + echo '<?php echo @$' . $this->varname($this->name) . '?>'; + + echo '" />'; + + echo '</div>'; + } +} + +?>+ \ No newline at end of file diff --git a/modules/template-engine/components/html/qrcode/Qrcode.class.php b/modules/template-engine/components/html/qrcode/Qrcode.class.php @@ -0,0 +1,20 @@ +<?php + +class QrcodeComponent extends Component +{ + + public $title; + + + + protected function begin() + { + $value = $this->htmlvalue($this->value); + echo <<<HTML +<div class="qrcode" data-qrcode="{$value}" title="{$value}"></div> +HTML; + } + +} + +?>+ \ No newline at end of file diff --git a/modules/template-engine/components/html/qrcode/qrcode.js b/modules/template-engine/components/html/qrcode/qrcode.js @@ -0,0 +1,14 @@ + +$(document).on('orViewLoaded',function(event, data) { + + // QR-Code anzeigen. + $(event.target).find('[data-qrcode]').each( function() { + + var qrcodetext = $(this).attr('data-qrcode'); + $(this).removeAttr('data-qrcode'); + + $(this).qrcode( { render : 'div', + text : qrcodetext, + fill : 'currentColor' } ); + } ); +} );+ \ No newline at end of file diff --git a/modules/template-engine/components/html/qrcode/qrcode.min.js b/modules/template-engine/components/html/qrcode/qrcode.min.js @@ -0,0 +1,14 @@ + +$(document).on('orViewLoaded',function(event, data) { + + // QR-Code anzeigen. + $(event.target).find('[data-qrcode]').each( function() { + + var qrcodetext = $(this).attr('data-qrcode'); + $(this).removeAttr('data-qrcode'); + + $(this).qrcode( { render : 'div', + text : qrcodetext, + fill : 'currentColor' } ); + } ); +} );+ \ No newline at end of file diff --git a/modules/template-engine/components/html/radio/Radio.class.php b/modules/template-engine/components/html/radio/Radio.class.php @@ -0,0 +1,44 @@ +<?php + +class RadioComponent extends Component +{ + + // Bisher nicht in Benutzung. + public $readonly = false; + + public $name; + + public $value; + + public $prefix=''; + + public $suffix=''; + + public $class; + + public $onchange; + + public $children; + + public $checked; + + public function begin() + { + echo '<input '; + echo ' class="radio"'; + echo ' type="radio"'; + echo ' id="<?php echo REQUEST_ID ?>_'.$this->htmlvalue($this->name).'_'.$this->htmlvalue($this->value).'"'; + echo ' name="'.$this->htmlvalue($this->prefix).$this->htmlvalue($this->name).'"'; + //"<? php if ( $attr_readonly ) echo ' disabled="disabled"' ? > + echo ' value="'.$this->htmlvalue($this->value).'"'; + echo '<?php if('; + echo ''.''.$this->value($this->value).'==@$'.$this->varname($this->name); + if(isset($this->checked)) + echo '||'.$this->value($this->checked); + echo ")echo ' checked=\"checked\"'".' ?>'; + + echo ' />'; + } +} + +?>+ \ No newline at end of file diff --git a/modules/template-engine/components/html/radiobox/Radiobox.class.php b/modules/template-engine/components/html/radiobox/Radiobox.class.php @@ -0,0 +1,31 @@ +<?php + +class RadioboxComponent extends Component +{ + + public $list; + + public $name; + + public $default; + + public $onchange; + + public $title; + + public $class; + + public function begin() + { + $this->include( 'radiobox/component-radio-box.php'); + + if ( isset($this->default)) + $value = $this->value($this->default); + else + $value = '$'.$this->varname($this->name); + + echo '<?php component_radio_box('.$this->value($this->name).',$'.$this->varname($this->list).','.$value.') ?>'; + } +} + +?>+ \ No newline at end of file diff --git a/modules/template-engine/components/html/radiobox/component-radio-box.php b/modules/template-engine/components/html/radiobox/component-radio-box.php @@ -0,0 +1,39 @@ +<?php + +/** + * + * @param unknown $name + * @param unknown $values + * @param unknown $value + */ +function component_radio_box($name, $values, $value) +{ + foreach ($values 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 ($valuesAreLanguageKeys) +// { +// $box_title = lang($box_value . '_DESC'); +// $box_value = lang($box_value); +// } + else + { + $box_title = ''; + } + + $id = REQUEST_ID.'_'.$name.'_'.$box_key; + echo '<input type="radio" id="'.$id.'" name="'.$name.'" value="' . $box_key . '" title="' . $box_title . '"'; + + if ((string) $box_key == $value) + echo ' checked="checked"'; + + echo ' /> <label for="'.$id.'">'.$box_value.'</label><br />'; + } +} + +?>+ \ No newline at end of file diff --git a/modules/template-engine/components/html/row/Row.class.php b/modules/template-engine/components/html/row/Row.class.php @@ -0,0 +1,27 @@ +<?php + +class RowComponent extends Component +{ + + public $class = ''; + + public $id = ''; + + public function begin() + { + echo '<tr'; + + if (! empty($this->class)) + echo ' class="' . $this->htmlvalue($this->class) . '"'; + + if (! empty($this->id)) + echo ' data-id="' . $this->htmlvalue($this->id) . '"'; + echo '>'; + } + + public function end() + { + echo '</tr>'; + } +} +?> diff --git a/modules/template-engine/components/html/selectbox/Selectbox.class.php b/modules/template-engine/components/html/selectbox/Selectbox.class.php @@ -0,0 +1,88 @@ +<?php + +class SelectboxComponent extends Component +{ + + public $list; + + public $name; + + public $default; + + /** + * Titel + * @var unknown + */ + public $title; + + /** + * Style-Klasse + */ + public $class; + + /** + * Leere Auswahlmöglichkeit hinzufügen. + * @var string + */ + public $addempty = false; + + /** + * Mehrfachauswahl möglich? + * @var string + */ + public $multiple = false; + + /** + * Größe des Eingabefeldes + * @var integer + */ + public $size = 1; + + /** + * Ob es sich bei den Option-Werten um Sprachschlüssel handelt. + * @var string + */ + public $lang = false; + + + public function begin() + { + + echo '<div class="inputholder">'; + echo '<select '; + echo ' id="'.'<?php echo REQUEST_ID ?>_'.$this->htmlvalue($this->name).'"'; + echo ' name="'.$this->htmlvalue($this->name).($this->multiple?'[]':'').'"'; + echo ' title="'.$this->htmlvalue($this->title).'"'; + echo ' class="'.$this->htmlvalue($this->class).'"'; + + echo '<?php if (count($'.$this->varname($this->list).')<=1)'." echo ' disabled=\"disabled\"'; ?>"; + + + if($this->multiple) + echo ' multiple="multiple"'; + + echo ' size='.$this->htmlvalue($this->size).'"'; + echo '>'; + + if ( isset($this->default)) + $value = $this->value($this->default); + else + $value = '$'.$this->varname($this->name); + + $this->include( 'selectbox/component-select-box.php'); + echo '<?php component_select_option_list($'.$this->varname($this->list).','.$value.','.intval(boolval($this->addempty)).','.intval(boolval($this->lang)).') ?>'; + + // Keine Einträge in der Liste, wir benötigen ein verstecktes Feld. + echo '<?php if (count($'.$this->varname($this->list).')==0) { ?>'.'<input type="hidden" name="'.$this->htmlvalue($this->name).'" value="" />'.'<?php } ?>'; + // Nur 1 Eintrag in Liste, da die Selectbox 'disabled' ist, muss ein hidden-Feld her. + echo '<?php if (count($'.$this->varname($this->list).')==1) { ?>'.'<input type="hidden" name="'.$this->htmlvalue($this->name).'" value="'.'<?php echo array_keys($'.$this->varname($this->list).')[0] ?>'.'" />'.'<?php } ?>'; + } + + public function end() + { + echo '</select>'; + echo '</div>'; + } +} + +?>+ \ No newline at end of file diff --git a/modules/template-engine/components/html/selectbox/component-select-box.php b/modules/template-engine/components/html/selectbox/component-select-box.php @@ -0,0 +1,43 @@ +<?php + +/** + * Create Option List for a HTML select box. + * @param unknown $values + * @param unknown $value + * @param unknown $addEmptyOption + * @param unknown $valuesAreLanguageKeys + */ +function component_select_option_list($values, $value, $addEmptyOption, $valuesAreLanguageKeys) +{ + if ($addEmptyOption) + $values = array( + '' => lang('LIST_ENTRY_EMPTY') + ) + $values; + + foreach ($values 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 ($valuesAreLanguageKeys) + { + $box_title = lang($box_value . '_DESC'); + $box_value = lang($box_value); + } + else + { + $box_title = ''; + } + echo '<option value="' . $box_key . '" title="' . $box_title . '"'; + + if ((string) $box_key == $value) + echo ' selected="selected"'; + + echo '>' . $box_value . '</option>'; + } +} + +?>+ \ No newline at end of file diff --git a/modules/template-engine/components/html/selector/Selector.class.php b/modules/template-engine/components/html/selector/Selector.class.php @@ -0,0 +1,35 @@ +<?php + +class SelectorComponent extends Component +{ + + public $types; + + public $name; + + public $id; + + public $folderid; + + public $param; + + public function begin() + { + $types = $this->htmlvalue($this->types); + $name = $this->htmlvalue($this->name); + $id = $this->htmlvalue($this->id); + $folderid = $this->htmlvalue($this->folderid); + $param = $this->htmlvalue($this->param); + + echo <<<HTML +<div class="selector"> +<div class="inputholder"> +<input type="hidden" name="{$param}" value="{id}" /> +<input type="text" disabled="disabled" value="{name}" /> +</div> +<div class="tree selector" data-types="{types}" data-init-id="{$id}" data-init-folderid="{$folderid}"> +HTML; + } +} + +?>+ \ No newline at end of file diff --git a/modules/template-engine/components/html/set/Set.class.php b/modules/template-engine/components/html/set/Set.class.php @@ -0,0 +1,26 @@ +<?php + +class SetComponent extends Component +{ + public $var; + public $value; + public $key; + + protected function begin() + { + if (!empty($this->value)) + { + if (!empty($this->key)) + echo '<?php $'.$this->varname($this->var).'= '.$this->value($this->value).'['.$this->value($this->key).']; ?>'; + else + echo '<?php $'.$this->varname($this->var).'= '.$this->value($this->value).'; ?>'; + } + else { + // Unset + echo '<?php unset($'.$this->varname($this->var).') ?>'; + } + } +} + + +?>+ \ No newline at end of file diff --git a/modules/template-engine/components/html/table/Table.class.php b/modules/template-engine/components/html/table/Table.class.php @@ -0,0 +1,28 @@ +<?php + +class TableComponent extends Component +{ + + public $class = ''; + public $width = '100%'; + + public function begin() + { + echo '<table'; + + if ( !empty($this->class)) + echo ' class="'.$this->htmlvalue($this->class).'"'; + + if ( !empty($this->width)) + echo ' width="'.$this->htmlvalue($this->width).'"'; + + echo '>'; + } + + public function end() + { + echo '</table>'; + } +} + +?>+ \ No newline at end of file diff --git a/modules/template-engine/components/html/table/table.js b/modules/template-engine/components/html/table/table.js @@ -0,0 +1,40 @@ +$(document).on('orViewLoaded',function(event, data) { + +// Sortieren von Tabellen + $(event.target).find('table.sortable > tbody').sortable({ + update: function(event, ui) + { + $(ui).addClass('loader'); + var order = []; + $(ui.item).closest('table.sortable').find('tbody > tr.data').each( function() { + var objectid = $(this).data('id'); + order.push( objectid ); + }); + var url = './dispatcher.php'; + var params = {}; + params.action = 'folder'; + params.subaction = 'order'; + params.token = $('div.action-folder.method-order input[name=token]').attr('value'); + params.order = order.join(','); + params.id = $('div#dialog').data('id'); + params.output = 'json'; + + $.ajax( { 'type':'POST',url:url, data:params, success:function(data, textStatus, jqXHR) + { + $(ui).removeClass('loader'); + doResponse(data,textStatus,ui); + }, + error:function(jqXHR, textStatus, errorThrown) { + alert( errorThrown ); + } + + } ); + } + }); + + // Alle Checkboxen setzen oder nicht setzen. + $(event.target).find('tr.headline > td > input.checkbox').click( function() { + $(this).closest('table').find('tr.data > td > input.checkbox').attr('checked',Boolean( $(this).attr('checked') ) ); + }); + +});+ \ No newline at end of file diff --git a/modules/template-engine/components/html/table/table.min.js b/modules/template-engine/components/html/table/table.min.js @@ -0,0 +1,40 @@ +$(document).on('orViewLoaded',function(event, data) { + +// Sortieren von Tabellen + $(event.target).find('table.sortable > tbody').sortable({ + update: function(event, ui) + { + $(ui).addClass('loader'); + var order = []; + $(ui.item).closest('table.sortable').find('tbody > tr.data').each( function() { + var objectid = $(this).data('id'); + order.push( objectid ); + }); + var url = './dispatcher.php'; + var params = {}; + params.action = 'folder'; + params.subaction = 'order'; + params.token = $('div.action-folder.method-order input[name=token]').attr('value'); + params.order = order.join(','); + params.id = $('div#dialog').data('id'); + params.output = 'json'; + + $.ajax( { 'type':'POST',url:url, data:params, success:function(data, textStatus, jqXHR) + { + $(ui).removeClass('loader'); + doResponse(data,textStatus,ui); + }, + error:function(jqXHR, textStatus, errorThrown) { + alert( errorThrown ); + } + + } ); + } + }); + + // Alle Checkboxen setzen oder nicht setzen. + $(event.target).find('tr.headline > td > input.checkbox').click( function() { + $(this).closest('table').find('tr.data > td > input.checkbox').attr('checked',Boolean( $(this).attr('checked') ) ); + }); + +});+ \ No newline at end of file diff --git a/modules/template-engine/components/html/text/Text.class.php b/modules/template-engine/components/html/text/Text.class.php @@ -0,0 +1,122 @@ +<?php + +class TextComponent extends Component +{ + public $prefix = ''; + public $suffix = ''; + public $title; + public $type; + public $class = 'text'; + public $escape = true; + public $var; + public $text; + public $key; + public $raw; + public $value; + public $maxlength; + public $accesskey; + public $cut = 'both'; + + public function begin() + { + if ( $this->raw ) + $this->escape = false; + + switch( $this->type ) + { + case 'emphatic': + $tag = 'em'; + break; + case 'italic': + $tag = 'em'; + break; + case 'strong': + $tag = 'strong'; + break; + case 'bold': + $tag = 'strong'; + break; + case 'tt': + $tag = 'tt'; + break; + case 'teletype': + $tag = 'tt'; + break; + case 'preformatted': + $tag = 'pre'; + break; + case 'code': + $tag = 'code'; + break; + default: + $tag = 'span'; + } + + echo '<'.$tag; + + if ( !empty($this->class)) + echo ' class="'.$this->htmlvalue($this->class).'"'; + + if ( !empty($this->title)) + echo ' title="'.$this->htmlvalue($this->title).'"'; + + echo '><?php '; + + + $functions = array(); // Funktionen, durch die der Text gefiltert wird. + + $functions[] = 'nl2br(@)'; + + + if ( $this->escape ) + { + // When using UTF-8 as a charset, htmlentities will only convert 1-byte and 2-byte characters. + // Use this function if you also want to convert 3-byte and 4-byte characters: + // converts a UTF8-string into HTML entities + $functions[] = 'encodeHtml(@)'; + $functions[] = 'htmlentities(@)'; + } + + if ( !empty($this->maxlength) ) + $functions[] = 'Text::maxLength( @,'.intval($this->maxlength).",'..',constant('STR_PAD_".strtoupper($this->cut)."') )"; + + if ( !empty($this->accesskey) ) + $functions[] = "Text::accessKey('".$this->accesskey."',@)"; + + + + + $value =''; + + if ( isset($this->key)) + { + $value = "'".$this->prefix."'.".$this->value($this->key).".'".$this->suffix."'"; + $functions[] = "lang(@)"; + } + elseif ( isset($this->text)) + { + $value = $this->value($this->text); + $functions[] = "lang(@)"; + } + elseif ( isset($this->var)) + $value = '$'.$this->varname($this->var); + + elseif ( isset($this->raw)) + $value = "'".str_replace('_',' ',$this->raw)."'"; + + elseif ( isset($this->value)) + $value = $this->value($this->value); + + foreach( array_reverse($functions) as $f ) + { + list($before,$after) = explode('@',$f); + $value = $before.$value.$after; + } + echo "echo $value;"; + + echo ' ?></'.$tag.'>'; // Tag schliessen. + } +} + + +?>+ \ No newline at end of file diff --git a/modules/template-engine/components/html/tree/Tree.class.php b/modules/template-engine/components/html/tree/Tree.class.php @@ -0,0 +1,16 @@ +<?php + +class TreeComponent extends Component +{ + public $tree; + + public function begin() + { + parent::include('tree/component-tree.php'); + echo '<?php component_tree('.$this->value($this->tree).') ?>'; + + } +} + + +?>+ \ No newline at end of file diff --git a/modules/template-engine/components/html/tree/component-tree.php b/modules/template-engine/components/html/tree/component-tree.php @@ -0,0 +1,29 @@ +<?php + +function component_tree( $contents ) +{ + echo '<ul class="tree">'; + foreach( $contents as $key=>$el) { + + $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 );">'; + echo '<img src="'.OR_THEMES_EXT_DIR.'default/images/icon_'.$el['type'].'.png" />'; + echo $el['name']; + echo '</div>'; + + if ( isset($el['children']) ) + { + component_tree($el['children'] ); + } + + echo '</li>'; + } + echo '</ul>'; +} +?>+ \ No newline at end of file diff --git a/modules/template-engine/components/html/upload/Upload.class.php b/modules/template-engine/components/html/upload/Upload.class.php @@ -0,0 +1,35 @@ +<?php + +class UploadComponent extends Component +{ + public $size = 40; + public $name; + public $multiple = false; + public $class = 'upload'; + public $maxlength = ''; + + public function begin() + { + $class = $this->htmlvalue($this->class); + $name = $this->htmlvalue($this->name); + $size = $this->htmlvalue($this->size); + $request_id = REQUEST_ID; + + if ( !empty($this->maxlength)) + $maxlength = ' maxlength="'.$this->htmlvalue($this->maxlength).'"'; + else + $maxlength = ''; + + if ( $this->multiple ) + $multiple = ' multiple="multiple"'; + else + $multiple = ''; + + echo <<<HTML +<input size="$size" id="{$request_id}_{$name}" type="file"$maxlength name="$name" class="$class" $multiple /> +HTML; + } +} + + +?>+ \ No newline at end of file diff --git a/modules/template-engine/components/html/upload/upload.css b/modules/template-engine/components/html/upload/upload.css @@ -0,0 +1,5 @@ +div.line.filedropzone > div.input { + width: 100%; + height: 100px; + border: 1px dotted; +} diff --git a/modules/template-engine/components/html/upload/upload.js b/modules/template-engine/components/html/upload/upload.js @@ -0,0 +1,85 @@ +$(document).on('orViewLoaded',function(event, data) { + + var form = $(event.target).find('form'); + + // Dateiupload über Drag and Drop + var dropzone = $(event.target).find('div.filedropzone > div.input'); + dropzone.on('dragenter', function (e) + { + e.stopPropagation(); + e.preventDefault(); + $(this).css('border', '1px dotted gray'); + }); + dropzone.on('dragover', function (e) + { + e.stopPropagation(); + e.preventDefault(); + }); + dropzone.on('drop', function (e) + { + $(this).css('border','1px dotted red'); + e.preventDefault(); + var files = e.originalEvent.dataTransfer.files; + + //We need to send dropped files to Server + handleFileUpload(form,files); + }); + + + // Dateiupload über File-Input-Button + $(event.target).find('input[type=file]').change( function() { + + var files = $(this).prop('files'); + + handleFileUpload(form,files); + }); + +}); + + + + + + +function handleFileUpload(form,files) +{ + for (var i = 0, f; f = files[i]; i++) + { + var form_data = new FormData(); + form_data.append('file' , f); + form_data.append('action' ,'folder'); + form_data.append('subaction','createfile'); + form_data.append('output' ,'json'); + form_data.append('token' ,$(form).find('input[name=token]').val() ); + form_data.append('id' ,$(form).find('input[name=id]' ).val() ); + + var status = $('<div class="notice info"><div class="text loader"></div></div>'); + $('#noticebar').prepend(status); // Notice anhängen. + $(status).show(); + + $.ajax( { 'type':'POST',url:'dispatcher.php', cache:false,contentType: false, processData: false, data:form_data, success:function(data, textStatus, jqXHR) + { + $(status).remove(); + doResponse(data,textStatus,form); + }, + error:function(jqXHR, textStatus, errorThrown) { + $(form).closest('div.content').removeClass('loader'); + $(status).remove(); + + var msg; + try + { + var error = jQuery.parseJSON( jqXHR.responseText ); + msg = error.error + '/' + error.description + ': ' + error.reason; + } + catch( e ) + { + msg = jqXHR.responseText; + } + + notify('error',msg); + } + + } ); + } +} diff --git a/modules/template-engine/components/html/upload/upload.less b/modules/template-engine/components/html/upload/upload.less @@ -0,0 +1,7 @@ +div.line.filedropzone > div.input +{ + width: 100%; + height: 100px; + + border:1px dotted; +} diff --git a/modules/template-engine/components/html/upload/upload.min.css b/modules/template-engine/components/html/upload/upload.min.css @@ -0,0 +1 @@ +div.line.filedropzone > div.input {width:100%;height:100px;border:1px dotted;}+ \ No newline at end of file diff --git a/modules/template-engine/components/html/upload/upload.min.js b/modules/template-engine/components/html/upload/upload.min.js @@ -0,0 +1,85 @@ +$(document).on('orViewLoaded',function(event, data) { + + var form = $(event.target).find('form'); + + // Dateiupload über Drag and Drop + var dropzone = $(event.target).find('div.filedropzone > div.input'); + dropzone.on('dragenter', function (e) + { + e.stopPropagation(); + e.preventDefault(); + $(this).css('border', '1px dotted gray'); + }); + dropzone.on('dragover', function (e) + { + e.stopPropagation(); + e.preventDefault(); + }); + dropzone.on('drop', function (e) + { + $(this).css('border','1px dotted red'); + e.preventDefault(); + var files = e.originalEvent.dataTransfer.files; + + //We need to send dropped files to Server + handleFileUpload(form,files); + }); + + + // Dateiupload über File-Input-Button + $(event.target).find('input[type=file]').change( function() { + + var files = $(this).prop('files'); + + handleFileUpload(form,files); + }); + +}); + + + + + + +function handleFileUpload(form,files) +{ + for (var i = 0, f; f = files[i]; i++) + { + var form_data = new FormData(); + form_data.append('file' , f); + form_data.append('action' ,'folder'); + form_data.append('subaction','createfile'); + form_data.append('output' ,'json'); + form_data.append('token' ,$(form).find('input[name=token]').val() ); + form_data.append('id' ,$(form).find('input[name=id]' ).val() ); + + var status = $('<div class="notice info"><div class="text loader"></div></div>'); + $('#noticebar').prepend(status); // Notice anhängen. + $(status).show(); + + $.ajax( { 'type':'POST',url:'dispatcher.php', cache:false,contentType: false, processData: false, data:form_data, success:function(data, textStatus, jqXHR) + { + $(status).remove(); + doResponse(data,textStatus,form); + }, + error:function(jqXHR, textStatus, errorThrown) { + $(form).closest('div.content').removeClass('loader'); + $(status).remove(); + + var msg; + try + { + var error = jQuery.parseJSON( jqXHR.responseText ); + msg = error.error + '/' + error.description + ': ' + error.reason; + } + catch( e ) + { + msg = jqXHR.responseText; + } + + notify('error',msg); + } + + } ); + } +} diff --git a/modules/template-engine/components/html/user/User.class.php b/modules/template-engine/components/html/user/User.class.php @@ -0,0 +1,17 @@ +<?php + +class UserComponent extends Component +{ + public $user; + public $id; + + protected function begin() + { + parent::include('user/component-user.php'); + + echo '<?php component_user('.$this->value($this->user).') ?>'; + } +} + + +?>+ \ No newline at end of file diff --git a/modules/template-engine/components/html/user/component-user.php b/modules/template-engine/components/html/user/component-user.php @@ -0,0 +1,16 @@ +<?php +function component_user( $user ) +{ + extract( $user ); + + if ( empty($name) ) + $name = lang('GLOBAL_UNKNOWN'); + if ( empty($fullname) ) + $fullname = lang('GLOBAL_NO_DESCRIPTION_AVAILABLE'); + + if ( !empty($mail) && config('security','user','show_mail' ) ) + echo "<a href=\"mailto:$mail\" title=\"$fullname\">$name</a>"; + else + echo "<span title=\"$fullname\">$name</span>"; +} +?>+ \ No newline at end of file diff --git a/modules/template-engine/components/html/window/Window.class.php b/modules/template-engine/components/html/window/Window.class.php @@ -0,0 +1,8 @@ +<?php + +class WindowComponent extends Component +{ +} + + +?>+ \ No newline at end of file diff --git a/modules/template-engine/engine/TemplateEngine.class.php b/modules/template-engine/engine/TemplateEngine.class.php @@ -0,0 +1,185 @@ +<?php +// OpenRat Content Management System +// Copyright (C) 2002-2009 Jan Dankert, jandankert@jandankert.de +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License +// as published by the Free Software Foundation; either version 2 +// of the License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +/** + * Wandelt eine Vorlage in ein PHP-Skript um. + * + * Die Vorlage wird gesparst, Elemente werden geladen und in die Zieldatei kopiert. + * + * @author Jan Dankert + * @package openrat.services + */ +class TemplateEngine +{ + public $renderType = 'html'; + + public $config = array(); + + /** + * Name Template. + * + * @var String + */ + private $tplFileName; + + /** + * Erzeugt einen Templateparser. + * + * @param String $tplName Name des Templates, das umgewandelt werden soll. + */ + public function TemplateEngine( $tplFileName='' ) + { + $this->tplFileName = $tplFileName; + } + + /** + * Wandelt eine Vorlage um + * + * @param + * filename Dateiname der Datei, die erstellt werden soll. + */ + public function compile($srcXmlFilename = '',$tplOutName = '') + { + require_once (dirname(__FILE__).'/../components/'.$this->renderType.'/Component.class.' . PHP_EXT); + + try + { + if (empty($srcFilename)) + $srcFilename = $this->tplFileName; + + $confCompiler = $this->config; + + if (is_file($srcXmlFilename)) + $srcFilename = $srcXmlFilename; + else + // Wenn Vorlage (noch) nicht existiert + throw new LogicException("Template not found: $srcXmlFilename"); + + $filename = $tplOutName; + + // Wenn Vorlage gaendert wurde, dann Umwandlung erneut ausf�hren. + if (false && is_file($filename) && filemtime($srcFilename) <= filemtime($filename)) + return; + + if (is_file($filename) && ! is_writable($filename)) + throw new LogicException("File is read-only: $filename"); + + Logger::debug("Compile template: " . $srcFilename . ' to ' . $filename); + + // Vorlage und Zieldatei oeffnen + $document = $this->loadDocument($srcFilename); + + $outFile = @fopen($filename, 'w'); + + if (! is_resource($outFile)) + throw new LogicException("Template '$srcXmlFilename': Unable to open file for writing: '$filename'"); + + $openCmd = array(); + $depth = 0; + $components = array(); + + foreach ($document as $line) + { + // Initialisieren der m�glichen Element-Inhalte + $type = ''; + $attributes = array(); + $value = ''; + $tag = ''; + + // Setzt: $tag, $attributes, $value, $type + extract($line); + + if ($type == 'open' || $type == 'complete') + { + $depth ++; + + $className = ucfirst($tag); + $classFilename = dirname(__FILE__).'/../components/'.$this->renderType."/$tag/$className.class." . PHP_EXT; + + if (!is_file($classFilename)) + throw new LogicException("Component Class File '$classFilename' does not exist." ); + + require_once ($classFilename); + + $className .= 'Component'; + $component = new $className(); + $component->setDepth($depth); + + foreach ($attributes as $prop => $value) + { + $component->$prop = $value; + } + // $component->depth = $depth; + + $components[$depth] = $component; + fwrite($outFile, "\n".str_repeat("\t",$depth)); + fwrite($outFile, $component->getBegin()); + } + + if ($type == 'close' || $type == 'complete') + { + $component = $components[$depth]; + fwrite($outFile, "\n".str_repeat("\t",$depth)); + fwrite($outFile, $component->getEnd()); + unset($components[$depth]); // Cleanup + + $depth --; + } + } + + fclose($outFile); + + // CHMOD ausfuehren. + if (! empty($confCompiler['chmod'])) + if (! @chmod($filename, octdec($confCompiler['chmod']))) + throw new InvalidArgumentException("Template {$this->tplName} failed to compile: CHMOD '{$confCompiler['chmod']}' failed on file {$filename}."); + } + catch (Exception $e) + { + throw new LogicException("Template '$srcXmlFilename' failed to compile", 0, $e); + } + } + + + /** + * Diese Funktion lädt die Vorlagedatei. + */ + private function loadDocument( $filename ) + { + return $this->loadXmlDocument( $filename ); + } + + + /** + * Laden und Parsen eines XML-Dokumentes. + */ + private function loadXmlDocument( $filename ) + { + $index = array(); + $vals = array(); + $p = xml_parser_create(); + xml_parser_set_option ( $p, XML_OPTION_CASE_FOLDING,false ); + xml_parser_set_option ( $p, XML_OPTION_SKIP_WHITE,false ); + xml_parse_into_struct($p, implode('',file($filename)), $vals, $index); + xml_parser_free($p); + + return $vals; + } +} + +?>+ \ No newline at end of file diff --git a/modules/template-engine/require.php b/modules/template-engine/require.php @@ -0,0 +1,5 @@ +<?php + +include( dirname(__FILE__) . '/engine/TemplateEngine.class.php'); + +?>+ \ No newline at end of file diff --git a/themes/default/include/html/Component.class.php b/themes/default/include/html/Component.class.php @@ -1,221 +0,0 @@ -<?php - -abstract class Component -{ - - private $depth; - - public function getDepth() - { - return $this->depth; - } - - public function setDepth($depth) - { - $this->depth = $depth; - } - - /** - * Gets the beginning of this component. - * @return string - */ - public function getBegin() - { - ob_start(); - $this->begin(); - $src = ob_get_contents(); - ob_end_clean(); - return $src; - } - - public function getEnd() - { - ob_start(); - $this->end(); - $src = ob_get_contents(); - ob_end_clean(); - return $src; - } - - /** - * Outputs the beginning of this component. - */ - protected function begin() - {} - - protected function end() - {} - - - protected function textasvarname($value) - { - $expr = new Expression($value); - return $expr->getTextAsVarName(); - - } - - - protected function varname($value) - { - $expr = new Expression($value); - return $expr->getVarName(); - } - - - - protected function htmlvalue($value) - { - $expr = new Expression($value); - return $expr->getHTMLValue(); - } - - - - protected function value( $value ) - { - $expr = new Expression($value); - return $expr->getPHPValue(); - } - - - protected function include( $file ) - { - echo "<?php include_once( OR_THEMES_DIR.'default/include/html/".$file."') ?>"; - } - -} - - - -class Expression -{ - public $type; - public $value; - public $invert = false; - - public function __construct( $value ) - { - // Falls der Wert 'true' oder 'false' ist. - if ( is_bool($value)) - $value = strval($value); - - // Negierung berücksichtigen. - if ( substr($value,0,4)=='not:' ) - { - $value = substr($value,4); - $this->invert = true; - } - - // Trennung 'type:value' - $parts = explode( ':', $value, 2 ); - - if ( count($parts) < 2 ) - $parts = array('',$value); - - list( $this->type,$this->value ) = $parts; - - // Fallback: Typ = 'text'. - if ( empty($this->type)) - $this->type = 'text'; - - } - - - - public function getHTMLValue() - { - switch( $this->type ) - { - case 'text': - return $this->value; - - default: - return '<'.'?php echo '.$this->getPHPValue().' ?>'; - } - } - - - public function getVarName() - { - switch( $this->type ) - { - case 'var': - return '$'.$this->value; - case 'text': - return $this->value; - default: - throw new LogicException("Invalid expression type '$type' in attribute value. Allowed: text|var"); - } - } - - - public function getTextAsVarName() - { - switch( $this->type ) - { - case 'var': - return '$$'.$this->value; - case 'text': - return '$'.$this->value; - default: - return $this->getPHPValue(); - } - } - - - public function getPHPValue() - { - $value = $this->value; - - $invert = $this->invert?'!':''; - - switch( $this->type ) - { - case 'text': - // Sonderf�lle f�r die Attributwerte "true" und "false". - // Hinweis: Die Zeichenkette "false" entspricht in PHP true. - // Siehe http://de.php.net/manual/de/language.types.boolean.php - if ( $value == 'true' || $value == 'false' ) - return $value; - else - return "'".$value."'"; - case 'tpl': - // macht aus "text1{var}text2" => "text1".$var."text2" - $value = preg_replace('/{(\w+)\}/','\'.$\\1.\'',$value); - return "'".$value."'"; - case 'var': - return $invert.'$'.$value; - case 'function': - return $invert.$value.'()'; - case 'method': - return $invert.'$this->'.$value.'()'; - case 'size': - return '@count($'.$value.')'; - case 'property': - return $invert.'$this->'.$value; - case 'message': - // macht aus "text1{var}text2" => "text1".$var."text2" - $value = preg_replace('/{(\w+)\}/','\'.$\\1.\'',$value); - return 'lang('."'".$value."'".')'; - case 'messagevar': - return 'lang($'.$value.')'; - case 'mode': - return $invert.'$mode=="'.$value.'"'; - case 'arrayvar': - list($arr,$key) = explode(':',$value.':none'); - return $invert.'@$'.$arr.'['.$key.']'; - case 'config': - $config_parts = explode('/',$value); - return $invert.'@$conf['."'".implode("'".']'.'['."'",$config_parts)."'".']'; - - default: - throw new LogicException("Unknown expression type '{$this->type}' in attribute value. Allowed: var|function|method|text|size|property|message|messagevar|arrayvar|config or none"); - } - } - - -} - - - -?>- \ No newline at end of file diff --git a/themes/default/include/html/button/Button.class.php b/themes/default/include/html/button/Button.class.php @@ -1,52 +0,0 @@ -<?php - -class ButtonComponent extends Component -{ - - public $type = 'submit'; - public $class = 'ok'; - public $src; - public $text = 'button_ok'; - public $value = 'ok'; - - private $tmp_src; - - protected function begin() - { - echo <<<'HTML' - <div class="invisible"> -HTML; - - if ($this->type == 'ok') - $this->type = 'submit'; - - if (! empty($this->src)) - { - $this->type = 'image'; - $this->tmp_src = $image_dir . 'icon_' . $this->src . IMG_ICON_EXT; - } - else - { - $this->tmp_src = ''; - } - - if (! empty($this->type)) - { - ?> -<input type="<?php echo $this->type ?>" <?php if(isset($this->src)) { ?> - src="<?php $this->tmp_src ?>" <?php } ?> - name="<?php echo $this->value ?>" class="%class%" - title="<?php echo lang($this->text.'_DESC') ?>" - value=" <?php echo langHtml($this->text) ?> " /><?php unset($this->src); ?> - <?php - -} - } - - protected function end() - { - echo "</div>"; - } -} - -?>- \ No newline at end of file diff --git a/themes/default/include/html/checkbox/Checkbox.class.php b/themes/default/include/html/checkbox/Checkbox.class.php @@ -1,36 +0,0 @@ -<?php - -class CheckboxComponent extends Component -{ - - public $default = false; - public $name; - public $readonly = false; - - protected function begin(){ - - echo '<?php { '; - echo '$tmpname = '.$this->value($this->name).';'; - echo '$default = '.$this->value($this->default).';'; - echo '$readonly = '.$this->value($this->readonly).';'; - - echo <<<'HTML' - - if ( isset($$tmpname) ) - $checked = $$tmpname; - else - $checked = $default; - - ?><input class="checkbox" type="checkbox" id="<?php echo REQUEST_ID ?>_<?php echo $tmpname ?>" name="<?php echo $tmpname ?>" <?php if ($readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?> /><?php - - if ( $readonly && $checked ) - { - ?><input type="hidden" name="<?php echo $tmpname ?>" value="1" /><?php - } - } ?> -HTML; - } -} - - -?>- \ No newline at end of file diff --git a/themes/default/include/html/column/Column.class.php b/themes/default/include/html/column/Column.class.php @@ -1,48 +0,0 @@ -<?php - -class ColumnComponent extends Component -{ - public $width; - public $style; - public $class; - public $colspan; - public $rowspan; - public $header = false; - public $title; - public $url; - public $action; - public $id; - public $name; - - protected function begin() - { - echo '<td'; - if ( ! empty($this->width)) - echo ' width="'.$this->htmlvalue($this->width).'"'; - if ( ! empty($this->style)) - echo ' style="'.$this->htmlvalue($this->style).'"'; - if ( ! empty($this->class)) - echo ' class="'.$this->htmlvalue($this->class).'"'; - if ( ! empty($this->colspan)) - echo ' colspan="'.$this->htmlvalue($this->colspan).'"'; - if ( ! empty($this->rowspan)) - echo ' rowspan="'.$this->htmlvalue($this->rowspan).'"'; - if ( ! empty($this->rowspan)) - echo ' rowspan="'.$this->htmlvalue($this->rowspan).'"'; - if ( ! empty($this->title)) - echo ' title="'.$this->htmlvalue($this->title).'"'; - if ( ! empty($this->id)) - echo ' onclick="javascript:openNewAction('."'".$this->htmlvalue($this->name)."','".$this->htmlvalue($this->action)."','".$this->htmlvalue($this->id)."');".'"'; - echo '>'; - } - - - protected function end() - { - echo '</td>'; - } - -} - - -?>- \ No newline at end of file diff --git a/themes/default/include/html/date/Date.class.php b/themes/default/include/html/date/Date.class.php @@ -1,17 +0,0 @@ -<?php - -class DateComponent extends Component -{ - public $date; - - protected function begin() - { - $date = $this->date; - - $this->include( 'date/component-date.php'); - echo '<?php component_date('.$this->value($this->date).') ?>'; - } -} - - -?>- \ No newline at end of file diff --git a/themes/default/include/html/date/component-date.php b/themes/default/include/html/date/component-date.php @@ -1,72 +0,0 @@ -<?php -function component_date( $time ) -{ - 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(' ',' ',$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/Dummy.class.php b/themes/default/include/html/dummy/Dummy.class.php @@ -1,8 +0,0 @@ -<?php - -class DummyComponent extends Component -{ -} - - -?>- \ No newline at end of file diff --git a/themes/default/include/html/editor/Editor.class.php b/themes/default/include/html/editor/Editor.class.php @@ -1,56 +0,0 @@ -<?php - -class EditorComponent extends Component -{ - public $type; - public $name; - public $mode='html'; - - protected function begin() - { - switch( $this->type ) - { - case 'fckeditor': - case 'html': - echo '<textarea name="'.$this->htmlvalue($this->name).'" class="editor__html-editor" id="pageelement_edit_editor"><?php echo ${'.$this->value($this->name).'} ?></textarea>'; - - break; - - case 'wiki': - echo '<textarea name="'.$this->htmlvalue($this->name).'" class="editor__wiki-editor"><?php echo ${'.$this->value($this->name).'} ?></textarea>'; - break; - - case 'text': - case 'raw': - echo '<textarea name="'.$this->htmlvalue($this->name).'" class="editor__text-editor"><?php echo ${'.$this->value($this->name).'} ?></textarea>'; - break; - - case 'ace': - case 'code': - echo '<textarea name="'.$this->htmlvalue($this->name).'" data-mode="'.$this->htmlvalue($this->mode).'" class="editor__code-editor"><?php echo ${'.$this->value($this->name).'} ?></textarea>'; - break; - - - case 'dom': - case 'tree': - echo <<<HTML - <?php - $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'); - ?> -HTML; - break; - - default: - throw new LogicException("Unknown editor type: ".$this->type); - } - } -} - - -?>- \ No newline at end of file diff --git a/themes/default/include/html/editor/editor.css b/themes/default/include/html/editor/editor.css @@ -1,31 +0,0 @@ -.editor__text-editor { - width: 100%; - height: 300px; -} -/* ACE-Editor */ -textarea.editor__code-editor { - display: none; - /* Textarea nicht anzeigen, da durch Editor im DIV ersetzt */ -} -div.editor__code-editor { - position: absolute; - height: 500px; - width: 100%; - font-size: 14px; - z-index: 256; -} -textarea.editor__text-editor, -textarea.editor__wiki-editor, -textarea.editor__html-editor { - width: 100%; -} -a.editorlink:active, -a.editorlink:hover { - font-weight: normal; - text-decoration: none; -} -a.editorlink:link, -a.editorlink:visited { - font-weight: normal; - text-decoration: none; -} diff --git a/themes/default/include/html/editor/editor.js b/themes/default/include/html/editor/editor.js @@ -1,87 +0,0 @@ -$(document).on('orViewLoaded',function(event, data) { - - if ( $(event.target).find('textarea#pageelement_edit_editor').size() > 0 ) - { - var instance = CKEDITOR.instances['pageelement_edit_editor']; - if(instance) - { - CKEDITOR.remove(instance); - } - CKEDITOR.replace( 'pageelement_edit_editor',{customConfig:'config-openrat.js'} ); - } - - // Wiki-Editor - var markitupSettings = { markupSet: [ - {name:'Bold', key:'B', openWith:'*', closeWith:'*' }, - {name:'Italic', key:'I', openWith:'_', closeWith:'_' }, - {name:'Stroke through', key:'S', openWith:'--', closeWith:'--' }, - {separator:'-----------------' }, - {name:'Bulleted List', openWith:'*', closeWith:'', multiline:true, openBlockWith:'\n', closeBlockWith:'\n'}, - {name:'Numeric List', openWith:'#', closeWith:'', multiline:true, openBlockWith:'\n', closeBlockWith:'\n'}, - {separator:'---------------' }, - {name:'Picture', key:'P', replaceWith:'{[![Source:!:http://]!]" alt="[![Alternative text]!]" }' }, - {name:'Link', key:'L', openWith:'""->"[![Link:!:http://]!]"', closeWith:'"', placeHolder:'Your text to link...' }, - {separator:'---------------' }, - {name:'Clean', className:'clean', replaceWith:function(markitup) { return markitup.selection.replace(/<(.*?)>/g, "") } }, - {name:'Preview', className:'preview', call:'preview'} - ]}; - $(event.target).find('.wikieditor').markItUp(markitupSettings); - - // HTML-Editor - var wymSettings = {lang: 'de',basePath: OR_THEMES_EXT_DIR+'../editor/wymeditor/wymeditor/', - toolsItems: [ - {'name': 'Bold', 'title': 'Strong', 'css': 'wym_tools_strong'}, - {'name': 'Italic', 'title': 'Emphasis', 'css': 'wym_tools_emphasis'}, - {'name': 'Superscript', 'title': 'Superscript', 'css': 'wym_tools_superscript'}, - {'name': 'Subscript', 'title': 'Subscript', 'css': 'wym_tools_subscript'}, - {'name': 'InsertOrderedList', 'title': 'Ordered_List', 'css': 'wym_tools_ordered_list'}, - {'name': 'InsertUnorderedList', 'title': 'Unordered_List', 'css': 'wym_tools_unordered_list'}, - {'name': 'Indent', 'title': 'Indent', 'css': 'wym_tools_indent'}, - {'name': 'Outdent', 'title': 'Outdent', 'css': 'wym_tools_outdent'}, - {'name': 'Undo', 'title': 'Undo', 'css': 'wym_tools_undo'}, - {'name': 'Redo', 'title': 'Redo', 'css': 'wym_tools_redo'}, - {'name': 'CreateLink', 'title': 'Link', 'css': 'wym_tools_link'}, - {'name': 'Unlink', 'title': 'Unlink', 'css': 'wym_tools_unlink'}, - {'name': 'InsertImage', 'title': 'Image', 'css': 'wym_tools_image'}, - {'name': 'InsertTable', 'title': 'Table', 'css': 'wym_tools_table'}, - {'name': 'Paste', 'title': 'Paste_From_Word', 'css': 'wym_tools_paste'}, - {'name': 'ToggleHtml', 'title': 'HTML', 'css': 'wym_tools_html'}, - {'name': 'Preview', 'title': 'Preview', 'css': 'wym_tools_preview'} - ] - }; - - - $(event.target).find('textarea').orAutoheight(); - - - - - - // ACE-Editor anzeigen - $(event.target).find("textarea.editor__code-editor").each( function() { - var textareaEl = $(this); - var aceEl = $("<div class=\"editor__code-editor\" />").insertAfter(textareaEl); - var editor = ace.edit( aceEl.get(0) ); - var mode = textareaEl.data('mode'); - - editor.renderer.setShowGutter(true); - editor.setTheme("ace/theme/github"); - -// editor.setReadOnly(true); - editor.getSession().setTabSize(4); - editor.getSession().setUseWrapMode(true); - editor.setHighlightActiveLine(true); - editor.getSession().setValue( textareaEl.val() ); - editor.getSession().setMode("ace/mode/" + mode); - editor.getSession().on('change', function(e) { - textareaEl.val(editor.getSession().getValue()); - } ); - - // copy back to textarea on form submit... - textareaEl.closest('form').submit(function() { - textareaEl.val( editor.getSession().getValue() ); - }) - } ); - - -});- \ No newline at end of file diff --git a/themes/default/include/html/editor/editor.less b/themes/default/include/html/editor/editor.less @@ -1,45 +0,0 @@ - -.editor__text-editor { - width:100%; - height:300px; -} - -/* ACE-Editor */ -textarea.editor__code-editor { - display:none; /* Textarea nicht anzeigen, da durch Editor im DIV ersetzt */ -} - - -div.editor__code-editor -{ - position: absolute; - height: 500px; - width: 100%; - font-size:14px; - z-index: 256; -} - - - -textarea.editor__text-editor, -textarea.editor__wiki-editor, -textarea.editor__html-editor, -{ - width:100%; -} - - -a.editorlink:active, -a.editorlink:hover -{ - font-weight:normal; - text-decoration:none; -} - -a.editorlink:link, -a.editorlink:visited -{ - font-weight:normal; - text-decoration:none; -} - diff --git a/themes/default/include/html/editor/editor.min.css b/themes/default/include/html/editor/editor.min.css @@ -1 +0,0 @@ -.editor__text-editor {width:100%;height:300px;}textarea.editor__code-editor {display:none;}div.editor__code-editor {position:absolute;height:500px;width:100%;font-size:14px;z-index:256;}textarea.editor__text-editor,textarea.editor__wiki-editor,textarea.editor__html-editor {width:100%;}a.editorlink:active,a.editorlink:hover {font-weight:normal;text-decoration:none;}a.editorlink:link,a.editorlink:visited {font-weight:normal;text-decoration:none;}- \ No newline at end of file diff --git a/themes/default/include/html/editor/editor.min.js b/themes/default/include/html/editor/editor.min.js @@ -1,87 +0,0 @@ -$(document).on('orViewLoaded',function(event, data) { - - if ( $(event.target).find('textarea#pageelement_edit_editor').size() > 0 ) - { - var instance = CKEDITOR.instances['pageelement_edit_editor']; - if(instance) - { - CKEDITOR.remove(instance); - } - CKEDITOR.replace( 'pageelement_edit_editor',{customConfig:'config-openrat.js'} ); - } - - // Wiki-Editor - var markitupSettings = { markupSet: [ - {name:'Bold', key:'B', openWith:'*', closeWith:'*' }, - {name:'Italic', key:'I', openWith:'_', closeWith:'_' }, - {name:'Stroke through', key:'S', openWith:'--', closeWith:'--' }, - {separator:'-----------------' }, - {name:'Bulleted List', openWith:'*', closeWith:'', multiline:true, openBlockWith:'\n', closeBlockWith:'\n'}, - {name:'Numeric List', openWith:'#', closeWith:'', multiline:true, openBlockWith:'\n', closeBlockWith:'\n'}, - {separator:'---------------' }, - {name:'Picture', key:'P', replaceWith:'{[![Source:!:http://]!]" alt="[![Alternative text]!]" }' }, - {name:'Link', key:'L', openWith:'""->"[![Link:!:http://]!]"', closeWith:'"', placeHolder:'Your text to link...' }, - {separator:'---------------' }, - {name:'Clean', className:'clean', replaceWith:function(markitup) { return markitup.selection.replace(/<(.*?)>/g, "") } }, - {name:'Preview', className:'preview', call:'preview'} - ]}; - $(event.target).find('.wikieditor').markItUp(markitupSettings); - - // HTML-Editor - var wymSettings = {lang: 'de',basePath: OR_THEMES_EXT_DIR+'../editor/wymeditor/wymeditor/', - toolsItems: [ - {'name': 'Bold', 'title': 'Strong', 'css': 'wym_tools_strong'}, - {'name': 'Italic', 'title': 'Emphasis', 'css': 'wym_tools_emphasis'}, - {'name': 'Superscript', 'title': 'Superscript', 'css': 'wym_tools_superscript'}, - {'name': 'Subscript', 'title': 'Subscript', 'css': 'wym_tools_subscript'}, - {'name': 'InsertOrderedList', 'title': 'Ordered_List', 'css': 'wym_tools_ordered_list'}, - {'name': 'InsertUnorderedList', 'title': 'Unordered_List', 'css': 'wym_tools_unordered_list'}, - {'name': 'Indent', 'title': 'Indent', 'css': 'wym_tools_indent'}, - {'name': 'Outdent', 'title': 'Outdent', 'css': 'wym_tools_outdent'}, - {'name': 'Undo', 'title': 'Undo', 'css': 'wym_tools_undo'}, - {'name': 'Redo', 'title': 'Redo', 'css': 'wym_tools_redo'}, - {'name': 'CreateLink', 'title': 'Link', 'css': 'wym_tools_link'}, - {'name': 'Unlink', 'title': 'Unlink', 'css': 'wym_tools_unlink'}, - {'name': 'InsertImage', 'title': 'Image', 'css': 'wym_tools_image'}, - {'name': 'InsertTable', 'title': 'Table', 'css': 'wym_tools_table'}, - {'name': 'Paste', 'title': 'Paste_From_Word', 'css': 'wym_tools_paste'}, - {'name': 'ToggleHtml', 'title': 'HTML', 'css': 'wym_tools_html'}, - {'name': 'Preview', 'title': 'Preview', 'css': 'wym_tools_preview'} - ] - }; - - - $(event.target).find('textarea').orAutoheight(); - - - - - - // ACE-Editor anzeigen - $(event.target).find("textarea.editor__code-editor").each( function() { - var textareaEl = $(this); - var aceEl = $("<div class=\"editor__code-editor\" />").insertAfter(textareaEl); - var editor = ace.edit( aceEl.get(0) ); - var mode = textareaEl.data('mode'); - - editor.renderer.setShowGutter(true); - editor.setTheme("ace/theme/github"); - -// editor.setReadOnly(true); - editor.getSession().setTabSize(4); - editor.getSession().setUseWrapMode(true); - editor.setHighlightActiveLine(true); - editor.getSession().setValue( textareaEl.val() ); - editor.getSession().setMode("ace/mode/" + mode); - editor.getSession().on('change', function(e) { - textareaEl.val(editor.getSession().getValue()); - } ); - - // copy back to textarea on form submit... - textareaEl.closest('form').submit(function() { - textareaEl.val( editor.getSession().getValue() ); - }) - } ); - - -});- \ No newline at end of file diff --git a/themes/default/include/html/else/Else.class.php b/themes/default/include/html/else/Else.class.php @@ -1,17 +0,0 @@ -<?php - -class ElseComponent extends Component -{ - - public function begin() - { - echo '<?php if(!$if'.$this->getDepth().'){?>'; - } - - - public function end() { - echo '<?php } ?>'; - } -} - -?>- \ No newline at end of file diff --git a/themes/default/include/html/focus/Focus.class.php b/themes/default/include/html/focus/Focus.class.php @@ -1,25 +0,0 @@ -<?php - -class FocusComponent extends Component -{ - - public function begin() - { - /* - echo <<<'HTML' -<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> -HTML; - */ - } - - - public function end() { - } -} - -?>- \ No newline at end of file diff --git a/themes/default/include/html/form/Form.class.php b/themes/default/include/html/form/Form.class.php @@ -1,93 +0,0 @@ -<?php - -class FormComponent extends Component -{ - - public $method = 'POST'; - - public $name = ''; - - public $action = '<?php echo OR_ACTION ?>'; - - public $subaction = '<?php echo OR_METHOD ?>'; - - public $id = '<?php echo OR_ID ?>'; - - public $label; - - public $cancel = false; - - public $visible = false; - - public $target = '_self'; - - public $enctype = 'application/x-www-form-urlencoded'; - - public $async = false; - - public $autosave = false; - - public $type = ''; - - private $submitFunction = 'formSubmit( $(this) ); return false;'; - - protected function begin() - { - if (empty($this->label)) - $this->label = lang('BUTTON_OK'); - - if ($this->type == 'upload') - $this->submitFunction = ''; - - echo '<form'; - echo ' name="' . $this->htmlvalue($this->name) . '"'; - - echo ' target="' . $this->htmlvalue($this->target) . '"'; - echo ' action="' . $this->htmlvalue($this->action) . '"'; - echo ' data-method="' . $this->htmlvalue($this->subaction) . '"'; - echo ' data-action="' . $this->htmlvalue($this->action) . '"'; - echo ' data-id="' . $this->htmlvalue($this->id) . '"'; - echo ' method="' . $this->htmlvalue($this->subaction) . '"'; - echo ' enctype="' . $this->htmlvalue($this->enctype) . '"'; - echo ' class="' . $this->htmlvalue($this->action) . '"'; - echo ' data-async="' . $this->htmlvalue($this->async) . '"'; - echo ' data-autosave="' . $this->htmlvalue($this->autosave) . '"'; - echo ' onSubmit="' . $this->htmlvalue($this->submitFunction) . '">'; - - echo '<input type="submit" class="invisible" />'; // why this? - - echo '<input type="hidden" name="<?php echo REQ_PARAM_TOKEN ?>" value="<?php echo token() ?>" />'; - echo '<input type="hidden" name="<?php echo REQ_PARAM_ACTION ?>" value="' . $this->htmlvalue($this->action) . '" />'; - echo '<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="' . $this->htmlvalue($this->subaction) . '" />'; - echo '<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="' . $this->htmlvalue($this->id) . '" />'; - } - - protected function end() - { - $label = $this->htmlvalue($this->label); - - // Fällt demnächst weg: - echo <<<HTML - -<div class="bottom"> - <div class="command {$this->visible}"> - - <input type="button" class="submit ok" value="{$label}" onclick="$(this).closest('div.sheet').find('form').submit(); " /> - - <!-- Cancel-Button nicht anzeigen, wenn cancel==false. --> -HTML; - if ($this->cancel) - { - echo '<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();" . '" />'; - } - echo <<<HTML - </div> -</div> - -</form> - -HTML; - } -} - -?>- \ No newline at end of file diff --git a/themes/default/include/html/form/form.js b/themes/default/include/html/form/form.js @@ -1,221 +0,0 @@ -// -$(document).on('orViewLoaded',function(event, data) { - - if ( $('div.panel form input[type=password]').length>0 && $('#uname').attr('value')!='' ) - { - $('div.panel form input[name=login_name] ').attr('value',$('#uname' ).attr('value')); - $('div.panel form input[name=login_password]').attr('value',$('#upassword').attr('value')); - } - - - // Autosave in Formularen. Bei Veränderungen wird das Formular sofort abgeschickt. - $(event.target).find('form[data-autosave="true"] input[type="checkbox"]').click( function() { - formSubmit( $(this).closest('form') ); - }); - -} ); - - - - -function formSubmit(form) -{ - // Login-Hack - if ( $('div.panel form input[type=password]').length>0 ) - { - $('#uname' ).attr('value',$('div.panel form input[name=login_name]' ).attr('value')); - $('#upassword').attr('value',$('div.panel form input[name=login_password]').attr('value')); - - $('#uname' ).closest('form').submit(); - } - - if ( $('#pageelement_edit_editor').length>0 ) - { - var instance = CKEDITOR.instances['pageelement_edit_editor']; - if(instance) - { - var value = instance.getData(); - $('#pageelement_edit_editor').html( value ); - } - } - - - var status = $('<div class="notice info"><div class="text loader"></div></div>'); - $('#noticebar').prepend(status); // Notice anhängen. - $(status).show(); - - // Alle vorhandenen Error-Marker entfernen. - // Falls wieder ein Fehler auftritt, werden diese erneut gesetzt. - $(form).find('.error').removeClass('error'); - - var params = $(form).serializeArray(); - var url = './dispatcher.php'; // Alle Parameter befinden sich im Formular - - var formMethod = $(form).attr('method').toUpperCase(); - - if ( formMethod == 'GET' ) - { - // GET-Request - var action = $(form).data('action'); - var method = $(form).data('method'); - var id = $(form).data('id' ); - - loadView( $(form).closest('div.content'),action,method,id,params); - } - else - { - // POST-Request - $(form).closest('div.content').addClass('loader'); - url += '?output=json'; - params['output'] = 'json';// Irgendwie geht das nicht. - - if ( $(form).data('async') || $(form).data('async')=='true') - { - // Verarbeitung erfolgt asynchron, das heißt, dass der evtl. geöffnete Dialog - // beendet wird. - $('div#dialog').html('').hide(); // Dialog beenden - - //$('div.modaldialog').fadeOut(500); - //$('div#workbench').removeClass('modal'); // Modalen Dialog beenden. - $('div#filler').fadeOut(500); // Filler beenden - } - - $.ajax( { 'type':'POST',url:url, data:params, success:function(data, textStatus, jqXHR) - { - $(form).closest('div.content').removeClass('loader'); - $(status).remove(); - - doResponse(data,textStatus,form); - }, - error:function(jqXHR, textStatus, errorThrown) { - $(form).closest('div.content').removeClass('loader'); - $(status).remove(); - - var msg; - try - { - var error = jQuery.parseJSON( jqXHR.responseText ); - msg = error.error + '/' + error.description + ': ' + error.reason; - } - catch( e ) - { - msg = jqXHR.responseText; - } - - notify('error',msg); - - } - - } ); - $(form).fadeIn(); - } -} - - - - - -/** - * HTTP-Antwort auf einen POST-Request auswerten. - * - * @param data Formulardaten - * @param status Status - * @param element - */ -function doResponse(data,status,element) -{ - if ( status != 'success' ) - { - alert('Server error: ' + status); - return; - } - - // Hinweismeldungen in Statuszeile anzeigen - $.each(data['notices'], function(idx,value) { - - // Notice-Bar mit dieser Meldung erweitern. - var notice = $('<div class="notice '+value.status+'"><div class="text">'+value.text+'</div></div>'); - notifyBrowser(value.text); - $.each(value.log, function(name,value) { - $(notice).append('<div class="log">'+value+'</div>'); - }); - $('#noticebar').prepend(notice); // Notice anhängen. - - // Per Klick wird die Notice entfernt. - $(notice).fadeIn().click( function() - { - $(this).fadeOut('fast',function() { $(this).remove(); } ); - } ); - - var timeoutSeconds; - if ( value.status == 'ok' ) // Kein Fehler? - { - // Kein Fehler - timeoutSeconds = 3; - - // Nur bei synchronen Prozessen soll nach Verarbeitung der Dialog - // geschlossen werden. - if ( $(element).data('async') != 'true' ) - { - // Verarbeitung erfolgt asynchron, das heißt, dass der evtl. geöffnete Dialog - // beendet wird. - $('div#dialog').html('').hide(); // Dialog beenden - - //$('div.modaldialog').fadeOut(500); - //$('div#workbench').removeClass('modal'); // Modalen Dialog beenden. - $('div#filler').fadeOut(500); // Filler beenden - - // Da gespeichert wurde, jetzt das 'dirty'-flag zurücksetzen. - $(element).closest('div.panel').find('div.header ul.views li.action.active').removeClass('dirty'); - } - } - else - // Server liefert Fehler zurück. - { - timeoutSeconds = 8; - } - - // Und nach einem Timeout entfernt sich die Notice von alleine. - setTimeout( function() { $(notice).fadeOut('slow').remove(); },timeoutSeconds*1000 ); - }); - - // Felder mit Fehleingaben markieren, ggf. das übergeordnete Fieldset aktivieren. - $.each(data['errors'], function(idx,value) { - $('input[name='+value+']').addClass('error').parent().addClass('error').parents('fieldset').addClass('show').addClass('open'); - }); - - // Jetzt das erhaltene Dokument auswerten. - - // Hinweismeldungen in Statuszeile anzeigen - if ( ! data.control ) { - /* - $('div.panel div.status').html('<div />'); - $('div.panel div.status div').append( data ); - $('div.panel div.status div').delay(3000).fadeOut(2500); - */ - //alert( value.text ); - }; - - - if ( data.control.redirect ) - // Redirect - window.location.href = data.control.redirect; - - if ( data.control.new_style ) - // CSS-Datei setzen - setUserStyle( data.control.new_style ); - - if ( data.control.refresh ) - // Views aktualisieren - refreshAll(); - - else if ( data.control.next_view ) - // Nächste View aufrufen - startView( $(element).closest('div.content'),data.control.next_view ); - - else if ( data.errors.length==0 ) - // Aktuelle View neu laden - $(element).closest('div.panel').find('li.action.active').orLoadView(); - -} - diff --git a/themes/default/include/html/form/form.min.js b/themes/default/include/html/form/form.min.js @@ -1,3 +0,0 @@ -;$(document).on('orViewLoaded',function(e,t){if($('div.panel form input[type=password]').length>0&&$('#uname').attr('value')!=''){$('div.panel form input[name=login_name] ').attr('value',$('#uname').attr('value'));$('div.panel form input[name=login_password]').attr('value',$('#upassword').attr('value'))};$(e.target).find('form[data-autosave="true"] input[type="checkbox"]').click(function(){formSubmit($(this).closest('form'))})});function formSubmit(e){if($('div.panel form input[type=password]').length>0){$('#uname').attr('value',$('div.panel form input[name=login_name]').attr('value'));$('#upassword').attr('value',$('div.panel form input[name=login_password]').attr('value'));$('#uname').closest('form').submit()};if($('#pageelement_edit_editor').length>0){var r=CKEDITOR.instances['pageelement_edit_editor'];if(r){var l=r.getData();$('#pageelement_edit_editor').html(l)}};var t=$('<div class="notice info"><div class="text loader"></div></div>');$('#noticebar').prepend(t);$(t).show();$(e).find('.error').removeClass('error');var a=$(e).serializeArray(),o='./dispatcher.php',d=$(e).attr('method').toUpperCase();if(d=='GET'){var i=$(e).data('action'),n=$(e).data('method'),s=$(e).data('id');loadView($(e).closest('div.content'),i,n,s,a)} -else{$(e).closest('div.content').addClass('loader');o+='?output=json';a['output']='json';if($(e).data('async')||$(e).data('async')=='true'){$('div#dialog').html('').hide();$('div#filler').fadeOut(500)};$.ajax({'type':'POST',url:o,data:a,success:function(a,o,r){$(e).closest('div.content').removeClass('loader');$(t).remove();doResponse(a,o,e)},error:function(a,o,n){$(e).closest('div.content').removeClass('loader');$(t).remove();var i;try{var r=jQuery.parseJSON(a.responseText);i=r.error+'/'+r.description+': '+r.reason}catch(s){i=a.responseText};notify('error',i)}});$(e).fadeIn()}};function doResponse(e,t,a){if(t!='success'){alert('Server error: '+t);return};$.each(e['notices'],function(t,e){var o=$('<div class="notice '+e.status+'"><div class="text">'+e.text+'</div></div>');notifyBrowser(e.text);$.each(e.log,function(e,t){$(o).append('<div class="log">'+t+'</div>')});$('#noticebar').prepend(o);$(o).fadeIn().click(function(){$(this).fadeOut('fast',function(){$(this).remove()})});var r;if(e.status=='ok'){r=3;if($(a).data('async')!='true'){$('div#dialog').html('').hide();$('div#filler').fadeOut(500);$(a).closest('div.panel').find('div.header ul.views li.action.active').removeClass('dirty')}} -else{r=8};setTimeout(function(){$(o).fadeOut('slow').remove()},r*1000)});$.each(e['errors'],function(e,t){$('input[name='+t+']').addClass('error').parent().addClass('error').parents('fieldset').addClass('show').addClass('open')});if(!e.control){};if(e.control.redirect)window.location.href=e.control.redirect;if(e.control.new_style)setUserStyle(e.control.new_style);if(e.control.refresh)refreshAll();else if(e.control.next_view)startView($(a).closest('div.content'),e.control.next_view);else if(e.errors.length==0)$(a).closest('div.panel').find('li.action.active').orLoadView()};- \ No newline at end of file diff --git a/themes/default/include/html/group/Group.class.php b/themes/default/include/html/group/Group.class.php @@ -1,38 +0,0 @@ -<?php - -class GroupComponent extends Component -{ - - public $open = true; - public $show = true; - public $title; - public $icon; - - public function begin() - { - echo '<fieldset'; - echo ' class="'; - echo '<?php echo '.$this->value($this->open).'?" open":"" ?>'; - echo '<?php echo '.$this->value($this->show).'?" show":"" ?>'; - echo '">'; - - if ( !empty($this->title)) - { - echo '<legend>'; - if ( !empty($this->icon)) - echo '<img src="/themes/default/images/icon/method/'.$this->htmlvalue($this->icon).'.svg" />'; - - echo '<div class="arrow-right closed" /><div class="arrow-down open" />'; - echo $this->htmlvalue($this->title); - echo '</legend>'; - } - echo '<div>'; - } - - - public function end() { - echo '</div></fieldset>'; - } -} - -?>- \ No newline at end of file diff --git a/themes/default/include/html/group/group.css b/themes/default/include/html/group/group.css @@ -1,45 +0,0 @@ -fieldset.open > legend { - cursor: pointer; -} -fieldset { - border: 1px solid; - border-bottom: 0px; - border-left: 0px; - border-right: 0px; - margin-top: 20px; - margin-bottom: 20px; - margin-left: 0px; - margin-right: 0px; - padding: 10px; - display: none; -} -fieldset.show { - display: block; -} -fieldset > legend { - margin-left: 30px; - font-weight: normal; -} -fieldset > div { - display: none; -} -fieldset.open > div { - display: block; -} -/* Geschlossene Fieldsets */ -div#workbench div.panel fieldset > legend > div.closed, -div#dialog div.panel fieldset > legend > div.closed { - display: inline; -} -div#workbench div.panel fieldset > legend > div.open { - display: none; -} -/* Offene Fieldsets */ -div#workbench div.panel fieldset.open > legend > div.closed { - display: none; -} -div#workbench div.panel fieldset.open > legend > div.open, -div#dialog div.panel fieldset.open > legend > div.open { - display: inline; -} -/*# sourceMappingURL=data:application/json,%7B%22version%22%3A3%2C%22sources%22%3A%5B%22group.less%22%5D%2C%22names%22%3A%5B%5D%2C%22mappings%22%3A%22AAAA%2CQAAQ%2CKAAQ%3BCAEf%3B%3BAAKD%3BCAEC%2CiBAAA%3BCAEA%3BCACA%3BCACA%3BCAEA%3BCACA%3BCACA%3BCACA%3BCACA%3BCACA%3B%3BAAGD%2CQAAQ%3BCACP%3B%3BAAID%2CQAAW%3BCAEV%3BCACA%3B%3BAAID%2CQAAW%3BCAEV%3B%3BAAED%2CQAAQ%2CKAAQ%3BCAEf%3B%3B%3BAAID%2CGAAG%2CUAAW%2CIAAG%2CMAAO%2CSAAW%2CSAAS%2CMAAG%3BAAC%5C%2FC%2CGAAG%2COAAW%2CIAAG%2CMAAO%2CSAAW%2CSAAS%2CMAAG%3BCAG9C%3B%3BAAED%2CGAAG%2CUAAW%2CIAAG%2CMAAO%2CSAAW%2CSAAS%2CMAAG%3BCAE9C%3B%3B%3BAAID%2CGAAG%2CUAAW%2CIAAG%2CMAAO%2CSAAQ%2CKAAQ%2CSAAS%2CMAAG%3BCAEnD%3B%3BAAED%2CGAAG%2CUAAW%2CIAAG%2CMAAO%2CSAAQ%2CKAAQ%2CSAAS%2CMAAG%3BAACpD%2CGAAG%2COAAW%2CIAAG%2CMAAO%2CSAAQ%2CKAAQ%2CSAAS%2CMAAG%3BCAEnD%22%7D */- \ No newline at end of file diff --git a/themes/default/include/html/group/group.js b/themes/default/include/html/group/group.js @@ -1,6 +0,0 @@ -$(document).on('orViewLoaded',function(event, data) { - - $(event.target).find('fieldset > legend').click( function() { - $(this).parent().toggleClass('open'); - }); -});- \ No newline at end of file diff --git a/themes/default/include/html/group/group.less b/themes/default/include/html/group/group.less @@ -1,66 +0,0 @@ -fieldset.open > legend -{ - cursor:pointer; -} - - - -fieldset -{ - border:1px solid; - - border-bottom:0px; - border-left:0px; - border-right:0px; - - margin-top:20px; - margin-bottom:20px; - margin-left:0px; - margin-right:0px; - padding:10px; - display: none; -} - -fieldset.show { - display: block; -} - - -fieldset > legend -{ - margin-left:30px; - font-weight:normal; -} - - -fieldset > div -{ - display:none; -} -fieldset.open > div -{ - display:block; -} - -/* Geschlossene Fieldsets */ -div#workbench div.panel fieldset > legend > div.closed, -div#dialog div.panel fieldset > legend > div.closed - -{ - display:inline; -} -div#workbench div.panel fieldset > legend > div.open -{ - display:none; -} - -/* Offene Fieldsets */ -div#workbench div.panel fieldset.open > legend > div.closed -{ - display:none; -} -div#workbench div.panel fieldset.open > legend > div.open, -div#dialog div.panel fieldset.open > legend > div.open -{ - display:inline; -} diff --git a/themes/default/include/html/group/group.min.css b/themes/default/include/html/group/group.min.css @@ -1 +0,0 @@ -fieldset.open > legend{cursor: pointer}fieldset{border: 1px solid;border-bottom: 0px;border-left: 0px;border-right: 0px;margin-top: 20px;margin-bottom: 20px;margin-left: 0px;margin-right: 0px;padding: 10px;display: none}fieldset.show{display: block}fieldset > legend{margin-left: 30px;font-weight: normal}fieldset > div{display: none}fieldset.open > div{display: block}div#workbench div.panel fieldset > legend > div.closed,div#dialog div.panel fieldset > legend > div.closed{display: inline}div#workbench div.panel fieldset > legend > div.open{display: none}div#workbench div.panel fieldset.open > legend > div.closed{display: none}div#workbench div.panel fieldset.open > legend > div.open,div#dialog div.panel fieldset.open > legend > div.open{display: inline}- \ No newline at end of file diff --git a/themes/default/include/html/group/group.min.js b/themes/default/include/html/group/group.min.js @@ -1,6 +0,0 @@ -$(document).on('orViewLoaded',function(event, data) { - - $(event.target).find('fieldset > legend').click( function() { - $(this).parent().toggleClass('open'); - }); -});- \ No newline at end of file diff --git a/themes/default/include/html/header/Header.class.php b/themes/default/include/html/header/Header.class.php @@ -1,25 +0,0 @@ -<?php - -class HeaderComponent extends Component -{ - public function begin() - { - /* -<?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 } ?> - */ - - } -} - - -?>- \ No newline at end of file diff --git a/themes/default/include/html/hidden/Hidden.class.php b/themes/default/include/html/hidden/Hidden.class.php @@ -1,27 +0,0 @@ -<?php - -class HiddenComponent extends Component -{ - - public $name; - - public $default; - - public function begin() - { - echo '<input'; - echo ' type="hidden"'; - echo ' name="' . $this->htmlvalue($this->name) . '"'; - echo ' value="'; - - if (isset($this->default)) - echo $this->htmlvalue($this->default); - else - echo '<?php echo $' . $this->varname($this->name) . ' ?>'; - - echo '"'; - echo '/>'; - } -} - -?>- \ No newline at end of file diff --git a/themes/default/include/html/if/If.class.php b/themes/default/include/html/if/If.class.php @@ -1,49 +0,0 @@ -<?php - -class IfComponent extends Component -{ - public $true; - public $false; - public $contains; - public $value; - public $empty; - public $lessthan; - public $greaterthan; - public $present; - public $not; - - - public function begin() - { - echo <<<'HTML' -HTML; - - echo '<?php $if'.$this->getDepth().'='.(empty($this->not)?'':'!').'('; - if ( !empty($this->true )) - echo $this->value($this->true); - elseif (! empty($this->false)) - echo '!' . $this->value($this->false); - elseif (! empty($this->contains)) - echo 'in_array('.$this->value($this->value).',explode(",",'.$this->value($this->contains).')'; - elseif (! empty($this->equals)) - echo '' . $this->value($this->value).'=='.$this->value($this->equals); - elseif (strlen($this->lessthan)>0) - echo 'intval(' . $this->value($this->lessthan).')>intval('.$this->value($this->value).')'; - elseif (strlen($this->greaterthan)>0) - echo 'intval(' . $this->value($this->greaterthan).')<intval('.$this->value($this->value).')'; - elseif (! empty($this->present)) - echo '!empty(' . $this->textasvarname($this->present).')'; - elseif (! empty($this->empty)) - echo 'empty(' . $this->textasvarname($this->empty).')'; - else - throw new LogicException("Element 'if' has not enough parameters."); - - echo '); if($if'.$this->getDepth().'){?>'; - } - - public function end() { - echo '<?php } ?>'; - } -} - -?>- \ No newline at end of file diff --git a/themes/default/include/html/image/Image.class.php b/themes/default/include/html/image/Image.class.php @@ -1,82 +0,0 @@ -<?php - -class ImageComponent extends Component -{ - - public $action; - public $method; - public $config; - public $file; - public $url; - public $icon; - public $align='left'; - public $type; - public $elementtype; - public $fileext; - public $tree; - public $notice; - public $size; - public $title; - - protected function begin() - { - if ( !empty($this->elementtype) ) - { - $file = OR_THEMES_DIR.'default/images/icon/element/'.$this->htmlvalue($this->elementtype).'.svg'; - $styleClass = 'image-icon image-icon--element'; - } - elseif ( !empty($this->action) ) - { - $file = OR_THEMES_DIR.'default/images/icon/action/'.$this->htmlvalue($this->action).'.svg'; - $styleClass = 'image-icon image-icon--action'; - } - elseif ( !empty($this->method) ) - { - $file = OR_THEMES_DIR.'default/images/icon/method/'.$this->htmlvalue($this->method).'.svg'; - $styleClass = 'image-icon image-icon--method'; - } - elseif ( !empty($this->type) ) - { - $file = OR_THEMES_DIR.'default/images/icon_'.$this->htmlvalue($this->type).IMG_ICON_EXT; - $styleClass = ''; - } - elseif ( !empty($this->icon) ) - { - $file = OR_THEMES_DIR.'default/images/icon/'.$this->htmlvalue($this->icon).IMG_ICON_EXT; - $styleClass = ''; - } - elseif ( !empty($this->notice) ) - { - $file = OR_THEMES_DIR.'default/images/notice_'.$this->htmlvalue($this->notice).IMG_ICON_EXT; - $styleClass = ''; - } - elseif ( !empty($this->tree) ) - { - $file = OR_THEMES_DIR.'default/images/tree_'.$this->htmlvalue($this->tree).IMG_EXT; - $styleClass = ''; - } - elseif ( !empty($this->url) ) - { - $file = $this->htmlvalue($this->url); - $styleClass = ''; - } - elseif ( !empty($this->fileext) ) - { - $file = OR_THEMES_DIR.'default/images/icon/'.$this->htmlvalue($this->fileext); - $styleClass = ''; - } - elseif ( !empty($this->file) ) - { - $file = OR_THEMES_DIR.'default/images/icon/'.$this->htmlvalue($this->file).IMG_ICON_EXT; - $styleClass = ''; - } - - echo '<img class="'.$styleClass.'" title="'.$this->htmlvalue($this->title).'" src="'.$file.'" />'; - } - - protected function end() - { - } -} - -?>- \ No newline at end of file diff --git a/themes/default/include/html/image/image.css b/themes/default/include/html/image/image.css @@ -1,2 +0,0 @@ - -/*# sourceMappingURL=data:application/json,%7B%22version%22%3A3%2C%22sources%22%3A%5B%5D%2C%22names%22%3A%5B%5D%2C%22mappings%22%3A%22%22%7D */- \ No newline at end of file diff --git a/themes/default/include/html/image/image.js b/themes/default/include/html/image/image.js @@ -1,5 +0,0 @@ -$(document).on('orViewLoaded orHeaderLoaded',function(event, data) { - - // Convert linked SVG to an inline SVG, because we want to style it... - $(event.target).find('img.image-icon').svgToInline(); -}); - \ No newline at end of file diff --git a/themes/default/include/html/image/image.less b/themes/default/include/html/image/image.less @@ -1,3 +0,0 @@ -img.image-icon { - -} - \ No newline at end of file diff --git a/themes/default/include/html/image/image.min.css b/themes/default/include/html/image/image.min.css diff --git a/themes/default/include/html/image/image.min.js b/themes/default/include/html/image/image.min.js @@ -1 +0,0 @@ -;$(document).on('orViewLoaded orHeaderLoaded',function(e,o){$(e.target).find('img.image-icon').svgToInline()});- \ No newline at end of file diff --git a/themes/default/include/html/input/Input.class.php b/themes/default/include/html/input/Input.class.php @@ -1,106 +0,0 @@ -<?php - -class InputComponent extends Component -{ - - public $class = 'text'; - - public $default; - - public $type = 'text'; - - public $index; - - public $name; - - public $prefix; - - public $value; - - public $size; - - public $maxlength = 256; - - public $onchange; - - public $readonly = false; - - public $hint; - - public $icon; - - public function begin() - { - if(!$this->type == 'hidden') - { - // Verstecktes Feld. - $this->outputHiddenField(); - } - else - { - echo '<div class="inputholder">'; - echo '<input'; - if(isset($this->readonly)) - echo '<?php if ('.$this->value($this->readonly).') '."echo ' disabled=\"true\"' ?>"; - if (isset($this->hint)) - echo ' data-hint="'.$this->htmlvalue($this->hint).'"'; - - echo ' id="'.'<?php echo REQUEST_ID ?>_'.$this->htmlvalue($this->name).'"'; - - // Attribute name="..." - echo ' name="'; - echo $this->htmlvalue($this->name); - if(isset($this->readonly)) - echo '<?php if ('.$this->value($this->readonly).') '."echo '_disabled' ?>"; - echo '"'; - - echo ' type="'.$this->htmlvalue($this->type).'"'; - echo ' maxlength="'.$this->htmlvalue($this->maxlength).'"'; - echo ' class="'.$this->htmlvalue($this->class).'"'; - - echo ' value="<?php echo Text::encodeHtml('; - if (isset($this->default)) - echo $this->value($this->default); - else - echo '@$'.$this->varname($this->name); - echo ') ?>"'; - - echo ' />'; - - if(isset($this->readonly)) - { - - echo '<?php if ('.$this->value($this->readonly).') { ?>'; - $this->outputHiddenField(); - echo '<?php } ?>'; - } - - - if(isset($this->icon)) - echo '<img src="/themes/default/images/icon_'.$this->htmlvalue($this->icon).'<?php echo IMG_ICON_EXT ?>" width="16" height="16" />'; - - echo '</div>'; - - } - } - - private function outputHiddenField() - { - echo '<input'; - echo ' type="hidden"'; - echo ' name="'.$this->htmlvalue($this->name).'"'; - - echo ' value="<?php '; - - if(isset($this->default)) - echo $this->value($this->default); - else - echo '$'.$this->varname($this->name); - - echo ' ?>"'; - echo '/>'; - - } -} - -?>- \ No newline at end of file diff --git a/themes/default/include/html/inputarea/Inputarea.class.php b/themes/default/include/html/inputarea/Inputarea.class.php @@ -1,42 +0,0 @@ -<?php - -class InputareaComponent extends Component -{ - - public $name; - - public $rows = 10; - - public $cols = 40; - - public $value; - - public $index; - - public $onchange; - - public $prefix; - - public $class = 'inputarea'; - - public $default; - - public function begin() - { - echo '<div class="inputholder">'; - echo '<textarea'; - echo ' class="'.$this->htmlvalue($this->class).'"'; - echo ' name="'.$this->htmlvalue($this->name).'"'; - echo '>'; - echo '<?php echo Text::encodeHtml('; - if (isset($this->default)) - echo $this->value($this->default); - else - echo '$'.$this->varname($this->name).''; - echo ') ?>'; - echo '</textarea>'; - echo '</div>'; - } -} - -?>- \ No newline at end of file diff --git a/themes/default/include/html/insert/Insert.class.php b/themes/default/include/html/insert/Insert.class.php @@ -1,34 +0,0 @@ -<?php - -class InsertComponent extends Component -{ - public $name= ''; - public $url; - public $function; - - public function begin() - { - if ( !empty($this->function)) - { - // JS-Function einbinden - echo '<script type="text/javascript" name="JavaScript">'.$this->htmlvalue($this->function).'();</script>'; - } - elseif ( !empty($this->url)) - { - // IFrame - echo '<iframe'; - if ( !empty($this->name)) - echo ' name="'.$this->htmlvalue($this->name).'"'; - if ( !empty($this->url)) - echo ' src="'.$this->htmlvalue($this->url).'"'; - echo '></iframe>'; - } - } - - public function end() - { - } -} - - -?>- \ No newline at end of file diff --git a/themes/default/include/html/label/Label.class.php b/themes/default/include/html/label/Label.class.php @@ -1,43 +0,0 @@ -<?php - -class LabelComponent extends Component -{ - - public $for; - - public $value; - - public $key; - - public $text; - - public function begin() - { - echo '<label'; - - if (! empty($this->for)) - { - - echo ' for="<?php echo REQUEST_ID ?>_' . $this->htmlvalue($this->for); - if (isset($this->value)) - echo '_' . $this->htmlvalue($this->value); - echo '"'; - } - - echo ' class="label"'; - echo '>'; - - if ( !empty($this->key)) - echo '<?php echo lang(' . $this->value($this->key) . ') ?>'; - - if (isset($this->text)) - echo $this->htmlvalue($this->text); - } - - public function end() - { - echo '</label>'; - } -} - -?>- \ No newline at end of file diff --git a/themes/default/include/html/link/Link.class.php b/themes/default/include/html/link/Link.class.php @@ -1,169 +0,0 @@ -<?php - -/** - * Erzeugt einen HTML-Link. - * - * @author dankert - * - */ -class LinkComponent extends Component -{ - - public $var1; - - public $var2; - - public $var3; - - public $var4; - - public $var5; - - public $value1; - - public $value2; - - public $value3; - - public $value4; - - public $value5; - - public $target; - - public $type; - - public $action; - - public $subaction; - - public $title; - - public $class; - - public $url; - - public $config; - - public $id; - - public $accesskey; - - public $name; - - public $anchor; - - public $frame = '_self'; - - public $modal = false; - - /** - * Link-Beginn - * {@inheritDoc} - * @see Component::begin() - */ - public function begin() - { - echo '<a'; - - if (! empty($this->class)) - echo ' class="' . $this->htmlvalue($this->class) . '"'; - - if (! empty($this->title)) - echo ' title="' . $this->htmlvalue($this->title) . '"'; - - if (! empty($this->accesskey)) - echo ' accesskey="' . $this->htmlvalue($this->accesskey) . '"'; - - if (! empty($this->frame)) - echo ' target="' . $this->htmlvalue($this->frame) . '"'; - - if (! empty($this->name)) - echo ' date-name="' . $this->htmlvalue($this->name) . '" name="' . $this->htmlvalue($this->name) . '"'; - - if (! empty($this->url)) - echo ' data-url="' . $this->htmlvalue($this->url) . '"'; - - if (! empty($this->type)) - echo ' data-type="' . $this->htmlvalue($this->type) . '"'; - - if (! empty($this->action)) - echo ' data-action="' . $this->htmlvalue($this->action) . '"'; - else - echo ' data-action="<?php echo OR_ACTION ?>"'; - - if (! empty($this->subaction)) - echo ' data-method="' . $this->htmlvalue($this->subaction) . '"'; - else - echo ' data-method="<?php echo OR_METHOD ?>"'; - - if (! empty($this->id)) - echo ' data-id="' . $this->htmlvalue($this->id) . '"'; - else - echo ' data-id="<?php echo OR_ID ?>"'; - - switch ($this->type) - { - case 'post': - - // Zusammenbau eines einzeligen JSON-Strings. - // Aufpassen: Keine doppelten Hochkommas, keine Zeilenumbrüche. - echo ' data-data="{'; - - echo ""action":""; - if (! empty($this->action)) - echo $this->htmlvalue($this->action); - else - echo "<?php echo OR_ACTION ?>"; - echo "","; - - echo ""subaction":""; - if (! empty($this->subaction)) - echo $this->htmlvalue($this->subaction); - else - echo "<?php echo OR_METHOD ?>"; - echo "","; - - echo ""id":""; - if (! empty($this->id)) - echo $this->htmlvalue($this->id); - else - echo "<?php echo OR_ID ?>"; - echo "","; - - echo '"'.REQ_PARAM_TOKEN . "":"" . '<?php echo token() ?>' . "","; - - if (! empty($this->var1)) - echo ""var1":"" . $this->htmlvalue($this->value1) . "","; - if (! empty($this->var2)) - echo ""var2":"" . $this->htmlvalue($this->value2) . "","; - if (! empty($this->var3)) - echo ""var3":"" . $this->htmlvalue($this->value3) . "","; - if (! empty($this->var4)) - echo ""var4":"" . $this->htmlvalue($this->value4) . "","; - if (! empty($this->var5)) - echo ""var5":"" . $this->htmlvalue($this->value5) . "","; - - echo ""none":"0"}\""; - - break; - - case 'html': - - echo ' href="' . $this->htmlvalue($this->url) . '"'; - break; - - default: - echo ' href="' . 'javascript:void(0);' . '"'; - } - - echo '>'; - } - - public function end() - { - echo '</a> -'; - } -} -?> diff --git a/themes/default/include/html/link/link.js b/themes/default/include/html/link/link.js @@ -1,36 +0,0 @@ -$(document).on('orViewLoaded',function(event, data) { - - // Links aktivieren... - $(event.target).closest('div.panel').find('.clickable').orLinkify(); - -}); - - -$(document).on('orHeaderLoaded',function(event, data) { - - // Links aktivieren... - $('div#header .clickable').orLinkify(); - -}); - - - -/** - * Wird aus dem Plugin 'orLinkify' aufgerufen, wenn auf einen Link mit type='post' geklickt wird. - * - * @param element - * @param data - * @returns - */ -function submitLink(element,data) -{ - var params = jQuery.parseJSON( data ); - var url = './dispatcher.php'; - params.output = 'json'; - $.ajax( { 'type':'POST',url:url, data:params, success:function(data, textStatus, jqXHR) - { - $('div.panel div.status div.loader').html(' '); - doResponse(data,textStatus,element); - } } ); - -} diff --git a/themes/default/include/html/list/List.class.php b/themes/default/include/html/list/List.class.php @@ -1,28 +0,0 @@ -<?php - -class ListComponent extends Component -{ - - public $list; - - public $extract = false; - - public $key = 'list_key'; - - public $value = 'list_value'; - - public function begin() - { - echo '<?php foreach($' . $this->varname($this->list) . ' as $' . $this->varname($this->key) . '=>$' . $this->varname($this->value) . '){ ?>'; - - if ($this->extract) - echo '<?php extract($' . $this->varname($this->value) . ') ?>'; - } - - public function end() - { - echo '<?php } ?>'; - } -} - -?>- \ No newline at end of file diff --git a/themes/default/include/html/logo/Logo.class.php b/themes/default/include/html/logo/Logo.class.php @@ -1,38 +0,0 @@ -<?php - -class LogoComponent extends Component -{ - public $name; - - public function begin() - { - echo <<<HTML -<div class="line logo"> - <div class="label"> - <img src="themes/default/images/logo_{$this->name}.png ?>" - border="0" /> - </div> - <div class="input"> - <h2> - <?php echo langHtml('logo_{$this->name}') ?> - </h2> - <p> - <?php echo langHtml('logo_{$this->name}_text') ?> - </p> - - </div> -</div> -HTML; - } - - public function end() - { - echo '</div>'; - } - - - -} - - -?>- \ No newline at end of file diff --git a/themes/default/include/html/newline/Newline.class.php b/themes/default/include/html/newline/Newline.class.php @@ -1,12 +0,0 @@ -<?php - -class NewlineComponent extends Component -{ - - public function begin() - { - echo '<br/>'; - } -} - -?>- \ No newline at end of file diff --git a/themes/default/include/html/output/Output.class.php b/themes/default/include/html/output/Output.class.php @@ -1,8 +0,0 @@ -<?php - -class OutputComponent extends Component -{ -} - - -?>- \ No newline at end of file diff --git a/themes/default/include/html/page/Window.class.php b/themes/default/include/html/page/Window.class.php @@ -1,8 +0,0 @@ -<?php - -class WindowComponent extends Component -{ -} - - -?>- \ No newline at end of file diff --git a/themes/default/include/html/part/Part.class.php b/themes/default/include/html/part/Part.class.php @@ -1,28 +0,0 @@ -<?php - -class PartComponent extends Component -{ - public $class = ''; - public $id; - - public function begin() - { - echo '<div'; - - if ( !empty($this->class)) - echo ' class="'.$this->htmlvalue($this->class).'"'; - - if ( !empty($this->id)) - echo ' id="'.$this->htmlvalue($this->id).'"'; - - echo '>'; - } - - public function end() - { - echo '</div>'; - } -} - - -?>- \ No newline at end of file diff --git a/themes/default/include/html/password/Password.class.php b/themes/default/include/html/password/Password.class.php @@ -1,40 +0,0 @@ -<?php - -class PasswordComponent extends Component -{ - - public $name; - - public $default; - - public $class; - - public $size = 40; - - public $maxlength = 256; - - public function begin() - { - echo '<div class="inputholder">'; - - echo '<input type="password"'; - echo ' name="' . $this->htmlvalue($this->name) . '"'; - echo ' id="<?php echo REQUEST_ID ?>_' . $this->htmlvalue($this->name) . '"'; - - echo ' size="' . $this->htmlvalue($this->size) . '"'; - echo ' maxlength="' . $this->htmlvalue($this->maxlength) . '"'; - echo ' class="' . $this->htmlvalue($this->class) . '"'; - - echo ' value="'; - if (isset($this->default)) - echo $this->htmlvalue($this->default); - else - echo '<?php echo @$' . $this->varname($this->name) . '?>'; - - echo '" />'; - - echo '</div>'; - } -} - -?>- \ No newline at end of file diff --git a/themes/default/include/html/qrcode/Qrcode.class.php b/themes/default/include/html/qrcode/Qrcode.class.php @@ -1,20 +0,0 @@ -<?php - -class QrcodeComponent extends Component -{ - - public $title; - - - - protected function begin() - { - $value = $this->htmlvalue($this->value); - echo <<<HTML -<div class="qrcode" data-qrcode="{$value}" title="{$value}"></div> -HTML; - } - -} - -?>- \ No newline at end of file diff --git a/themes/default/include/html/qrcode/qrcode.js b/themes/default/include/html/qrcode/qrcode.js @@ -1,14 +0,0 @@ - -$(document).on('orViewLoaded',function(event, data) { - - // QR-Code anzeigen. - $(event.target).find('[data-qrcode]').each( function() { - - var qrcodetext = $(this).attr('data-qrcode'); - $(this).removeAttr('data-qrcode'); - - $(this).qrcode( { render : 'div', - text : qrcodetext, - fill : 'currentColor' } ); - } ); -} );- \ No newline at end of file diff --git a/themes/default/include/html/qrcode/qrcode.min.js b/themes/default/include/html/qrcode/qrcode.min.js @@ -1,14 +0,0 @@ - -$(document).on('orViewLoaded',function(event, data) { - - // QR-Code anzeigen. - $(event.target).find('[data-qrcode]').each( function() { - - var qrcodetext = $(this).attr('data-qrcode'); - $(this).removeAttr('data-qrcode'); - - $(this).qrcode( { render : 'div', - text : qrcodetext, - fill : 'currentColor' } ); - } ); -} );- \ No newline at end of file diff --git a/themes/default/include/html/radio/Radio.class.php b/themes/default/include/html/radio/Radio.class.php @@ -1,44 +0,0 @@ -<?php - -class RadioComponent extends Component -{ - - // Bisher nicht in Benutzung. - public $readonly = false; - - public $name; - - public $value; - - public $prefix=''; - - public $suffix=''; - - public $class; - - public $onchange; - - public $children; - - public $checked; - - public function begin() - { - echo '<input '; - echo ' class="radio"'; - echo ' type="radio"'; - echo ' id="<?php echo REQUEST_ID ?>_'.$this->htmlvalue($this->name).'_'.$this->htmlvalue($this->value).'"'; - echo ' name="'.$this->htmlvalue($this->prefix).$this->htmlvalue($this->name).'"'; - //"<? php if ( $attr_readonly ) echo ' disabled="disabled"' ? > - echo ' value="'.$this->htmlvalue($this->value).'"'; - echo '<?php if('; - echo ''.''.$this->value($this->value).'==@$'.$this->varname($this->name); - if(isset($this->checked)) - echo '||'.$this->value($this->checked); - echo ")echo ' checked=\"checked\"'".' ?>'; - - echo ' />'; - } -} - -?>- \ No newline at end of file diff --git a/themes/default/include/html/radiobox/Radiobox.class.php b/themes/default/include/html/radiobox/Radiobox.class.php @@ -1,31 +0,0 @@ -<?php - -class RadioboxComponent extends Component -{ - - public $list; - - public $name; - - public $default; - - public $onchange; - - public $title; - - public $class; - - public function begin() - { - $this->include( 'radiobox/component-radio-box.php'); - - if ( isset($this->default)) - $value = $this->value($this->default); - else - $value = '$'.$this->varname($this->name); - - echo '<?php component_radio_box('.$this->value($this->name).',$'.$this->varname($this->list).','.$value.') ?>'; - } -} - -?>- \ No newline at end of file diff --git a/themes/default/include/html/radiobox/component-radio-box.php b/themes/default/include/html/radiobox/component-radio-box.php @@ -1,39 +0,0 @@ -<?php - -/** - * - * @param unknown $name - * @param unknown $values - * @param unknown $value - */ -function component_radio_box($name, $values, $value) -{ - foreach ($values 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 ($valuesAreLanguageKeys) -// { -// $box_title = lang($box_value . '_DESC'); -// $box_value = lang($box_value); -// } - else - { - $box_title = ''; - } - - $id = REQUEST_ID.'_'.$name.'_'.$box_key; - echo '<input type="radio" id="'.$id.'" name="'.$name.'" value="' . $box_key . '" title="' . $box_title . '"'; - - if ((string) $box_key == $value) - echo ' checked="checked"'; - - echo ' /> <label for="'.$id.'">'.$box_value.'</label><br />'; - } -} - -?>- \ No newline at end of file diff --git a/themes/default/include/html/row/Row.class.php b/themes/default/include/html/row/Row.class.php @@ -1,27 +0,0 @@ -<?php - -class RowComponent extends Component -{ - - public $class = ''; - - public $id = ''; - - public function begin() - { - echo '<tr'; - - if (! empty($this->class)) - echo ' class="' . $this->htmlvalue($this->class) . '"'; - - if (! empty($this->id)) - echo ' data-id="' . $this->htmlvalue($this->id) . '"'; - echo '>'; - } - - public function end() - { - echo '</tr>'; - } -} -?> diff --git a/themes/default/include/html/selectbox/Selectbox.class.php b/themes/default/include/html/selectbox/Selectbox.class.php @@ -1,88 +0,0 @@ -<?php - -class SelectboxComponent extends Component -{ - - public $list; - - public $name; - - public $default; - - /** - * Titel - * @var unknown - */ - public $title; - - /** - * Style-Klasse - */ - public $class; - - /** - * Leere Auswahlmöglichkeit hinzufügen. - * @var string - */ - public $addempty = false; - - /** - * Mehrfachauswahl möglich? - * @var string - */ - public $multiple = false; - - /** - * Größe des Eingabefeldes - * @var integer - */ - public $size = 1; - - /** - * Ob es sich bei den Option-Werten um Sprachschlüssel handelt. - * @var string - */ - public $lang = false; - - - public function begin() - { - - echo '<div class="inputholder">'; - echo '<select '; - echo ' id="'.'<?php echo REQUEST_ID ?>_'.$this->htmlvalue($this->name).'"'; - echo ' name="'.$this->htmlvalue($this->name).($this->multiple?'[]':'').'"'; - echo ' title="'.$this->htmlvalue($this->title).'"'; - echo ' class="'.$this->htmlvalue($this->class).'"'; - - echo '<?php if (count($'.$this->varname($this->list).')<=1)'." echo ' disabled=\"disabled\"'; ?>"; - - - if($this->multiple) - echo ' multiple="multiple"'; - - echo ' size='.$this->htmlvalue($this->size).'"'; - echo '>'; - - if ( isset($this->default)) - $value = $this->value($this->default); - else - $value = '$'.$this->varname($this->name); - - $this->include( 'selectbox/component-select-box.php'); - echo '<?php component_select_option_list($'.$this->varname($this->list).','.$value.','.intval(boolval($this->addempty)).','.intval(boolval($this->lang)).') ?>'; - - // Keine Einträge in der Liste, wir benötigen ein verstecktes Feld. - echo '<?php if (count($'.$this->varname($this->list).')==0) { ?>'.'<input type="hidden" name="'.$this->htmlvalue($this->name).'" value="" />'.'<?php } ?>'; - // Nur 1 Eintrag in Liste, da die Selectbox 'disabled' ist, muss ein hidden-Feld her. - echo '<?php if (count($'.$this->varname($this->list).')==1) { ?>'.'<input type="hidden" name="'.$this->htmlvalue($this->name).'" value="'.'<?php echo array_keys($'.$this->varname($this->list).')[0] ?>'.'" />'.'<?php } ?>'; - } - - public function end() - { - echo '</select>'; - echo '</div>'; - } -} - -?>- \ No newline at end of file diff --git a/themes/default/include/html/selectbox/component-select-box.php b/themes/default/include/html/selectbox/component-select-box.php @@ -1,43 +0,0 @@ -<?php - -/** - * Create Option List for a HTML select box. - * @param unknown $values - * @param unknown $value - * @param unknown $addEmptyOption - * @param unknown $valuesAreLanguageKeys - */ -function component_select_option_list($values, $value, $addEmptyOption, $valuesAreLanguageKeys) -{ - if ($addEmptyOption) - $values = array( - '' => lang('LIST_ENTRY_EMPTY') - ) + $values; - - foreach ($values 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 ($valuesAreLanguageKeys) - { - $box_title = lang($box_value . '_DESC'); - $box_value = lang($box_value); - } - else - { - $box_title = ''; - } - echo '<option value="' . $box_key . '" title="' . $box_title . '"'; - - if ((string) $box_key == $value) - echo ' selected="selected"'; - - echo '>' . $box_value . '</option>'; - } -} - -?>- \ No newline at end of file diff --git a/themes/default/include/html/selector/Selector.class.php b/themes/default/include/html/selector/Selector.class.php @@ -1,35 +0,0 @@ -<?php - -class SelectorComponent extends Component -{ - - public $types; - - public $name; - - public $id; - - public $folderid; - - public $param; - - public function begin() - { - $types = $this->htmlvalue($this->types); - $name = $this->htmlvalue($this->name); - $id = $this->htmlvalue($this->id); - $folderid = $this->htmlvalue($this->folderid); - $param = $this->htmlvalue($this->param); - - echo <<<HTML -<div class="selector"> -<div class="inputholder"> -<input type="hidden" name="{$param}" value="{id}" /> -<input type="text" disabled="disabled" value="{name}" /> -</div> -<div class="tree selector" data-types="{types}" data-init-id="{$id}" data-init-folderid="{$folderid}"> -HTML; - } -} - -?>- \ No newline at end of file diff --git a/themes/default/include/html/set/Set.class.php b/themes/default/include/html/set/Set.class.php @@ -1,26 +0,0 @@ -<?php - -class SetComponent extends Component -{ - public $var; - public $value; - public $key; - - protected function begin() - { - if (!empty($this->value)) - { - if (!empty($this->key)) - echo '<?php $'.$this->varname($this->var).'= '.$this->value($this->value).'['.$this->value($this->key).']; ?>'; - else - echo '<?php $'.$this->varname($this->var).'= '.$this->value($this->value).'; ?>'; - } - else { - // Unset - echo '<?php unset($'.$this->varname($this->var).') ?>'; - } - } -} - - -?>- \ No newline at end of file diff --git a/themes/default/include/html/table/Table.class.php b/themes/default/include/html/table/Table.class.php @@ -1,28 +0,0 @@ -<?php - -class TableComponent extends Component -{ - - public $class = ''; - public $width = '100%'; - - public function begin() - { - echo '<table'; - - if ( !empty($this->class)) - echo ' class="'.$this->htmlvalue($this->class).'"'; - - if ( !empty($this->width)) - echo ' width="'.$this->htmlvalue($this->width).'"'; - - echo '>'; - } - - public function end() - { - echo '</table>'; - } -} - -?>- \ No newline at end of file diff --git a/themes/default/include/html/table/table.js b/themes/default/include/html/table/table.js @@ -1,40 +0,0 @@ -$(document).on('orViewLoaded',function(event, data) { - -// Sortieren von Tabellen - $(event.target).find('table.sortable > tbody').sortable({ - update: function(event, ui) - { - $(ui).addClass('loader'); - var order = []; - $(ui.item).closest('table.sortable').find('tbody > tr.data').each( function() { - var objectid = $(this).data('id'); - order.push( objectid ); - }); - var url = './dispatcher.php'; - var params = {}; - params.action = 'folder'; - params.subaction = 'order'; - params.token = $('div.action-folder.method-order input[name=token]').attr('value'); - params.order = order.join(','); - params.id = $('div#dialog').data('id'); - params.output = 'json'; - - $.ajax( { 'type':'POST',url:url, data:params, success:function(data, textStatus, jqXHR) - { - $(ui).removeClass('loader'); - doResponse(data,textStatus,ui); - }, - error:function(jqXHR, textStatus, errorThrown) { - alert( errorThrown ); - } - - } ); - } - }); - - // Alle Checkboxen setzen oder nicht setzen. - $(event.target).find('tr.headline > td > input.checkbox').click( function() { - $(this).closest('table').find('tr.data > td > input.checkbox').attr('checked',Boolean( $(this).attr('checked') ) ); - }); - -});- \ No newline at end of file diff --git a/themes/default/include/html/table/table.min.js b/themes/default/include/html/table/table.min.js @@ -1,40 +0,0 @@ -$(document).on('orViewLoaded',function(event, data) { - -// Sortieren von Tabellen - $(event.target).find('table.sortable > tbody').sortable({ - update: function(event, ui) - { - $(ui).addClass('loader'); - var order = []; - $(ui.item).closest('table.sortable').find('tbody > tr.data').each( function() { - var objectid = $(this).data('id'); - order.push( objectid ); - }); - var url = './dispatcher.php'; - var params = {}; - params.action = 'folder'; - params.subaction = 'order'; - params.token = $('div.action-folder.method-order input[name=token]').attr('value'); - params.order = order.join(','); - params.id = $('div#dialog').data('id'); - params.output = 'json'; - - $.ajax( { 'type':'POST',url:url, data:params, success:function(data, textStatus, jqXHR) - { - $(ui).removeClass('loader'); - doResponse(data,textStatus,ui); - }, - error:function(jqXHR, textStatus, errorThrown) { - alert( errorThrown ); - } - - } ); - } - }); - - // Alle Checkboxen setzen oder nicht setzen. - $(event.target).find('tr.headline > td > input.checkbox').click( function() { - $(this).closest('table').find('tr.data > td > input.checkbox').attr('checked',Boolean( $(this).attr('checked') ) ); - }); - -});- \ No newline at end of file diff --git a/themes/default/include/html/text/Text.class.php b/themes/default/include/html/text/Text.class.php @@ -1,122 +0,0 @@ -<?php - -class TextComponent extends Component -{ - public $prefix = ''; - public $suffix = ''; - public $title; - public $type; - public $class = 'text'; - public $escape = true; - public $var; - public $text; - public $key; - public $raw; - public $value; - public $maxlength; - public $accesskey; - public $cut = 'both'; - - public function begin() - { - if ( $this->raw ) - $this->escape = false; - - switch( $this->type ) - { - case 'emphatic': - $tag = 'em'; - break; - case 'italic': - $tag = 'em'; - break; - case 'strong': - $tag = 'strong'; - break; - case 'bold': - $tag = 'strong'; - break; - case 'tt': - $tag = 'tt'; - break; - case 'teletype': - $tag = 'tt'; - break; - case 'preformatted': - $tag = 'pre'; - break; - case 'code': - $tag = 'code'; - break; - default: - $tag = 'span'; - } - - echo '<'.$tag; - - if ( !empty($this->class)) - echo ' class="'.$this->htmlvalue($this->class).'"'; - - if ( !empty($this->title)) - echo ' title="'.$this->htmlvalue($this->title).'"'; - - echo '><?php '; - - - $functions = array(); // Funktionen, durch die der Text gefiltert wird. - - $functions[] = 'nl2br(@)'; - - - if ( $this->escape ) - { - // When using UTF-8 as a charset, htmlentities will only convert 1-byte and 2-byte characters. - // Use this function if you also want to convert 3-byte and 4-byte characters: - // converts a UTF8-string into HTML entities - $functions[] = 'encodeHtml(@)'; - $functions[] = 'htmlentities(@)'; - } - - if ( !empty($this->maxlength) ) - $functions[] = 'Text::maxLength( @,'.intval($this->maxlength).",'..',constant('STR_PAD_".strtoupper($this->cut)."') )"; - - if ( !empty($this->accesskey) ) - $functions[] = "Text::accessKey('".$this->accesskey."',@)"; - - - - - $value =''; - - if ( isset($this->key)) - { - $value = "'".$this->prefix."'.".$this->value($this->key).".'".$this->suffix."'"; - $functions[] = "lang(@)"; - } - elseif ( isset($this->text)) - { - $value = $this->value($this->text); - $functions[] = "lang(@)"; - } - elseif ( isset($this->var)) - $value = '$'.$this->varname($this->var); - - elseif ( isset($this->raw)) - $value = "'".str_replace('_',' ',$this->raw)."'"; - - elseif ( isset($this->value)) - $value = $this->value($this->value); - - foreach( array_reverse($functions) as $f ) - { - list($before,$after) = explode('@',$f); - $value = $before.$value.$after; - } - echo "echo $value;"; - - echo ' ?></'.$tag.'>'; // Tag schliessen. - } -} - - -?>- \ No newline at end of file diff --git a/themes/default/include/html/tree/Tree.class.php b/themes/default/include/html/tree/Tree.class.php @@ -1,16 +0,0 @@ -<?php - -class TreeComponent extends Component -{ - public $tree; - - public function begin() - { - parent::include('tree/component-tree.php'); - echo '<?php component_tree('.$this->value($this->tree).') ?>'; - - } -} - - -?>- \ No newline at end of file diff --git a/themes/default/include/html/tree/component-tree.php b/themes/default/include/html/tree/component-tree.php @@ -1,29 +0,0 @@ -<?php - -function component_tree( $contents ) -{ - echo '<ul class="tree">'; - foreach( $contents as $key=>$el) { - - $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 );">'; - echo '<img src="'.OR_THEMES_EXT_DIR.'default/images/icon_'.$el['type'].'.png" />'; - echo $el['name']; - echo '</div>'; - - if ( isset($el['children']) ) - { - component_tree($el['children'] ); - } - - echo '</li>'; - } - echo '</ul>'; -} -?>- \ No newline at end of file diff --git a/themes/default/include/html/upload/Upload.class.php b/themes/default/include/html/upload/Upload.class.php @@ -1,35 +0,0 @@ -<?php - -class UploadComponent extends Component -{ - public $size = 40; - public $name; - public $multiple = false; - public $class = 'upload'; - public $maxlength = ''; - - public function begin() - { - $class = $this->htmlvalue($this->class); - $name = $this->htmlvalue($this->name); - $size = $this->htmlvalue($this->size); - $request_id = REQUEST_ID; - - if ( !empty($this->maxlength)) - $maxlength = ' maxlength="'.$this->htmlvalue($this->maxlength).'"'; - else - $maxlength = ''; - - if ( $this->multiple ) - $multiple = ' multiple="multiple"'; - else - $multiple = ''; - - echo <<<HTML -<input size="$size" id="{$request_id}_{$name}" type="file"$maxlength name="$name" class="$class" $multiple /> -HTML; - } -} - - -?>- \ No newline at end of file diff --git a/themes/default/include/html/upload/upload.css b/themes/default/include/html/upload/upload.css @@ -1,5 +0,0 @@ -div.line.filedropzone > div.input { - width: 100%; - height: 100px; - border: 1px dotted; -} diff --git a/themes/default/include/html/upload/upload.js b/themes/default/include/html/upload/upload.js @@ -1,85 +0,0 @@ -$(document).on('orViewLoaded',function(event, data) { - - var form = $(event.target).find('form'); - - // Dateiupload über Drag and Drop - var dropzone = $(event.target).find('div.filedropzone > div.input'); - dropzone.on('dragenter', function (e) - { - e.stopPropagation(); - e.preventDefault(); - $(this).css('border', '1px dotted gray'); - }); - dropzone.on('dragover', function (e) - { - e.stopPropagation(); - e.preventDefault(); - }); - dropzone.on('drop', function (e) - { - $(this).css('border','1px dotted red'); - e.preventDefault(); - var files = e.originalEvent.dataTransfer.files; - - //We need to send dropped files to Server - handleFileUpload(form,files); - }); - - - // Dateiupload über File-Input-Button - $(event.target).find('input[type=file]').change( function() { - - var files = $(this).prop('files'); - - handleFileUpload(form,files); - }); - -}); - - - - - - -function handleFileUpload(form,files) -{ - for (var i = 0, f; f = files[i]; i++) - { - var form_data = new FormData(); - form_data.append('file' , f); - form_data.append('action' ,'folder'); - form_data.append('subaction','createfile'); - form_data.append('output' ,'json'); - form_data.append('token' ,$(form).find('input[name=token]').val() ); - form_data.append('id' ,$(form).find('input[name=id]' ).val() ); - - var status = $('<div class="notice info"><div class="text loader"></div></div>'); - $('#noticebar').prepend(status); // Notice anhängen. - $(status).show(); - - $.ajax( { 'type':'POST',url:'dispatcher.php', cache:false,contentType: false, processData: false, data:form_data, success:function(data, textStatus, jqXHR) - { - $(status).remove(); - doResponse(data,textStatus,form); - }, - error:function(jqXHR, textStatus, errorThrown) { - $(form).closest('div.content').removeClass('loader'); - $(status).remove(); - - var msg; - try - { - var error = jQuery.parseJSON( jqXHR.responseText ); - msg = error.error + '/' + error.description + ': ' + error.reason; - } - catch( e ) - { - msg = jqXHR.responseText; - } - - notify('error',msg); - } - - } ); - } -} diff --git a/themes/default/include/html/upload/upload.less b/themes/default/include/html/upload/upload.less @@ -1,7 +0,0 @@ -div.line.filedropzone > div.input -{ - width: 100%; - height: 100px; - - border:1px dotted; -} diff --git a/themes/default/include/html/upload/upload.min.css b/themes/default/include/html/upload/upload.min.css @@ -1 +0,0 @@ -div.line.filedropzone > div.input {width:100%;height:100px;border:1px dotted;}- \ No newline at end of file diff --git a/themes/default/include/html/upload/upload.min.js b/themes/default/include/html/upload/upload.min.js @@ -1,85 +0,0 @@ -$(document).on('orViewLoaded',function(event, data) { - - var form = $(event.target).find('form'); - - // Dateiupload über Drag and Drop - var dropzone = $(event.target).find('div.filedropzone > div.input'); - dropzone.on('dragenter', function (e) - { - e.stopPropagation(); - e.preventDefault(); - $(this).css('border', '1px dotted gray'); - }); - dropzone.on('dragover', function (e) - { - e.stopPropagation(); - e.preventDefault(); - }); - dropzone.on('drop', function (e) - { - $(this).css('border','1px dotted red'); - e.preventDefault(); - var files = e.originalEvent.dataTransfer.files; - - //We need to send dropped files to Server - handleFileUpload(form,files); - }); - - - // Dateiupload über File-Input-Button - $(event.target).find('input[type=file]').change( function() { - - var files = $(this).prop('files'); - - handleFileUpload(form,files); - }); - -}); - - - - - - -function handleFileUpload(form,files) -{ - for (var i = 0, f; f = files[i]; i++) - { - var form_data = new FormData(); - form_data.append('file' , f); - form_data.append('action' ,'folder'); - form_data.append('subaction','createfile'); - form_data.append('output' ,'json'); - form_data.append('token' ,$(form).find('input[name=token]').val() ); - form_data.append('id' ,$(form).find('input[name=id]' ).val() ); - - var status = $('<div class="notice info"><div class="text loader"></div></div>'); - $('#noticebar').prepend(status); // Notice anhängen. - $(status).show(); - - $.ajax( { 'type':'POST',url:'dispatcher.php', cache:false,contentType: false, processData: false, data:form_data, success:function(data, textStatus, jqXHR) - { - $(status).remove(); - doResponse(data,textStatus,form); - }, - error:function(jqXHR, textStatus, errorThrown) { - $(form).closest('div.content').removeClass('loader'); - $(status).remove(); - - var msg; - try - { - var error = jQuery.parseJSON( jqXHR.responseText ); - msg = error.error + '/' + error.description + ': ' + error.reason; - } - catch( e ) - { - msg = jqXHR.responseText; - } - - notify('error',msg); - } - - } ); - } -} diff --git a/themes/default/include/html/user/User.class.php b/themes/default/include/html/user/User.class.php @@ -1,17 +0,0 @@ -<?php - -class UserComponent extends Component -{ - public $user; - public $id; - - protected function begin() - { - parent::include('user/component-user.php'); - - echo '<?php component_user('.$this->value($this->user).') ?>'; - } -} - - -?>- \ No newline at end of file diff --git a/themes/default/include/html/user/component-user.php b/themes/default/include/html/user/component-user.php @@ -1,16 +0,0 @@ -<?php -function component_user( $user ) -{ - extract( $user ); - - if ( empty($name) ) - $name = lang('GLOBAL_UNKNOWN'); - if ( empty($fullname) ) - $fullname = lang('GLOBAL_NO_DESCRIPTION_AVAILABLE'); - - if ( !empty($mail) && config('security','user','show_mail' ) ) - echo "<a href=\"mailto:$mail\" title=\"$fullname\">$name</a>"; - else - echo "<span title=\"$fullname\">$name</span>"; -} -?>- \ No newline at end of file diff --git a/themes/default/include/html/window/Window.class.php b/themes/default/include/html/window/Window.class.php @@ -1,8 +0,0 @@ -<?php - -class WindowComponent extends Component -{ -} - - -?>- \ No newline at end of file diff --git a/themes/default/templates/element/delete.tpl.src.xml b/themes/default/templates/element/delete.tpl.src.xml @@ -30,7 +30,7 @@ </part> <part class="input"> <text raw="_____"></text> - <radio name="type" value="value" default="value"></radio> + <radio name="type" value="value"></radio> <label for="type_value"> <text text="ELEMENT_DELETE_VALUES"></text> </label> diff --git a/themes/default/templates/element/edit.tpl.out.php b/themes/default/templates/element/edit.tpl.out.php @@ -0,0 +1,59 @@ +<!-- Compiling output/output-begin --> + + + <form name="" + target="_self" + action="<?php echo OR_ACTION ?>" + data-method="<?php echo OR_METHOD ?>" + data-action="<?php echo OR_ACTION ?>" + data-id="<?php echo OR_ID ?>" + method="<?php echo OR_METHOD ?>" + enctype="application/x-www-form-urlencoded" + class="<?php echo OR_ACTION ?>" + data-async="" + data-autosave="" + onSubmit="formSubmit( $(this) ); return false;"><input type="submit" class="invisible" /> + +<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 OR_ACTION ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo OR_METHOD ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo OR_ID ?>" /> +<?php + if ( $conf['interface']['url_sessionid'] ) + echo '<input type="hidden" name="'.session_name().'" value="'.session_id().'" />'."\n"; +?> + + <div class="line"> + <div class="label"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('ELEMENT_NAME')))); ?></span> + + </div> + <div class="input"><!-- Compiling input/input-begin --><?php $a5_class='focus';$a5_default='';$a5_type='text';$a5_name='name';$a5_size='';$a5_maxlength='256';$a5_onchange='';$a5_readonly=false;$a5_hint='';$a5_icon=''; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a5_readonly=true; + if ($a5_readonly && empty($$a5_name)) $$a5_name = '- '.lang('EMPTY').' -'; + if(!isset($a5_default)) $a5_default=''; + $tmp_value = Text::encodeHtml(isset($$a5_name)?$$a5_name:$a5_default); +?><?php if (!$a5_readonly || $a5_type=='hidden') { +?><div class="<?php echo $a5_type!='hidden'?'inputholder':'inputhidden' ?>"><input<?php if ($a5_readonly) echo ' disabled="true"' ?><?php if ($a5_hint) echo ' data-hint="'.$a5_hint.'"'; ?> id="<?php echo REQUEST_ID ?>_<?php echo $a5_name ?><?php if ($a5_readonly) echo '_disabled' ?>" name="<?php echo $a5_name ?><?php if ($a5_readonly) echo '_disabled' ?>" type="<?php echo $a5_type ?>" maxlength="<?php echo $a5_maxlength ?>" class="<?php echo str_replace(',',' ',$a5_class) ?>" value="<?php echo $tmp_value ?>" /><?php if ($a5_icon) echo '<img src="'.$image_dir.'icon_'.$a5_icon.IMG_ICON_EXT.'" width="16" height="16" />'; ?></div><?php +if ($a5_readonly) { +?><input type="hidden" id="<?php echo REQUEST_ID ?>_<?php echo $a5_name ?>" name="<?php echo $a5_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 $a5_class ?>"><?php echo $tmp_value ?></span></a><?php } ?><?php unset($a5_class,$a5_default,$a5_type,$a5_name,$a5_size,$a5_maxlength,$a5_onchange,$a5_readonly,$a5_hint,$a5_icon) ?> + </div> + </div> + <div class="line"> + <div class="label"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('GLOBAL_DESCRIPTION')))); ?></span> + + </div> + <div class="input"><!-- Compiling inputarea/inputarea-begin --><?php $a5_name='description';$a5_rows='5';$a5_cols='40';$a5_class='inputarea';$a5_default=''; ?><div class="inputholder"><textarea class="<?php echo $a5_class ?>" name="<?php echo $a5_name ?>" ><?php echo Text::encodeHtml(isset($$a5_name)?$$a5_name:$a5_default) ?></textarea></div><?php unset($a5_name,$a5_rows,$a5_cols,$a5_class,$a5_default) ?> + </div> + </div> + +<div class="bottom"> + <div class="command "> + + <input type="button" class="submit ok" value="OK" onclick="$(this).closest('div.sheet').find('form').submit(); " /> + + <!-- Cancel-Button nicht anzeigen, wenn cancel==false. --> </div> +</div> + +</form> diff --git a/themes/default/templates/element/prop.tpl.out.php b/themes/default/templates/element/prop.tpl.out.php @@ -0,0 +1,719 @@ +<!-- Compiling output/output-begin --> + + + <?php $if2=(@$conf['security']['disable_dynamic_code']); if($if2){?> + <?php $if3=(!true); if($if3){?> + <div class="message warn"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'NOTICE_CODE_DISABLED'.'')))); ?></span> + + </div> + <?php } ?> + <?php } ?> + <form name="" + target="_self" + action="<?php echo OR_ACTION ?>" + data-method="<?php echo OR_METHOD ?>" + data-action="<?php echo OR_ACTION ?>" + data-id="<?php echo OR_ID ?>" + method="<?php echo OR_METHOD ?>" + enctype="application/x-www-form-urlencoded" + class="<?php echo OR_ACTION ?>" + data-async="" + data-autosave="" + onSubmit="formSubmit( $(this) ); return false;"><input type="submit" class="invisible" /> + +<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 OR_ACTION ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo OR_METHOD ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo OR_ID ?>" /> +<?php + if ( $conf['interface']['url_sessionid'] ) + echo '<input type="hidden" name="'.session_name().'" value="'.session_id().'" />'."\n"; +?> + + <fieldset class="<?php echo '1'?" open":"" ?><?php echo '1'?" show":"" ?>"><div> + <?php $if4=(!empty($subtype)); if($if4){?> + <div class="line"> + <div class="label"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('ELEMENT_SUBTYPE')))); ?></span> + + </div> + <div class="input"> + <?php $if7=(!empty($subtypes)); if($if7){?><!-- Compiling selectbox/selectbox-begin --><?php $a8_list='subtypes';$a8_name='subtype';$a8_onchange='';$a8_title='';$a8_class='';$a8_addempty=true;$a8_multiple=false;$a8_size='1';$a8_lang=false; ?><?php +$a8_readonly=false; +$a8_tmp_list = $$a8_list; +if ($this->isEditable() && !$this->isEditMode()) +{ + echo empty($$a8_name)?'- '.lang('EMPTY').' -':$a8_tmp_list[$$a8_name]; +} +else +{ +if ( $a8_addempty!==FALSE ) +{ + if ($a8_addempty===TRUE) + $a8_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a8_tmp_list; + else + $a8_tmp_list = array(''=>'- '.lang($a8_addempty).' -')+$a8_tmp_list; +} +?><div class="inputholder"><select<?php if ($a8_readonly) echo ' disabled="disabled"' ?> id="<?php echo REQUEST_ID ?>_<?php echo $a8_name ?>" name="<?php echo $a8_name; if ($a8_multiple) echo '[]'; ?>" onchange="<?php echo $a8_onchange ?>" title="<?php echo $a8_title ?>" class="<?php echo $a8_class ?>"<?php +if (count($$a8_list)<=1) echo ' disabled="disabled"'; +if ($a8_multiple) echo ' multiple="multiple"'; +echo ' size="'.intval($a8_size).'"'; +?>><?php + if ( isset($$a8_name) && isset($a8_tmp_list[$$a8_name]) ) + $a8_tmp_default = $$a8_name; + elseif ( isset($a8_default) ) + $a8_tmp_default = $a8_default; + else + $a8_tmp_default = ''; + foreach( $a8_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( $a8_lang ) + { + $box_title = lang( $box_value.'_DESC'); + $box_value = lang( $box_value ); + } + else + { + $box_title = ''; + } + echo '<option class="'.$a8_class.'" value="'.$box_key.'" title="'.$box_title.'"'; + if ((string)$box_key==$a8_tmp_default) + echo ' selected="selected"'; + echo '>'.$box_value.'</option>'; + } +?></select></div><?php +if (count($$a8_list)==0) echo '<input type="hidden" name="'.$a8_name.'" value="" />'; +if (count($$a8_list)==1) echo '<input type="hidden" name="'.$a8_name.'" value="'.$box_key.'" />'; +} +?><?php unset($a8_list,$a8_name,$a8_onchange,$a8_title,$a8_class,$a8_addempty,$a8_multiple,$a8_size,$a8_lang) ?> + <?php } ?> + <?php $if7=!(!empty($subtypes)); if($if7){?><!-- Compiling input/input-begin --><?php $a8_class='text';$a8_default='';$a8_type='text';$a8_name='subtype';$a8_size='';$a8_maxlength='256';$a8_onchange='';$a8_readonly=false;$a8_hint='';$a8_icon=''; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a8_readonly=true; + if ($a8_readonly && empty($$a8_name)) $$a8_name = '- '.lang('EMPTY').' -'; + if(!isset($a8_default)) $a8_default=''; + $tmp_value = Text::encodeHtml(isset($$a8_name)?$$a8_name:$a8_default); +?><?php if (!$a8_readonly || $a8_type=='hidden') { +?><div class="<?php echo $a8_type!='hidden'?'inputholder':'inputhidden' ?>"><input<?php if ($a8_readonly) echo ' disabled="true"' ?><?php if ($a8_hint) echo ' data-hint="'.$a8_hint.'"'; ?> id="<?php echo REQUEST_ID ?>_<?php echo $a8_name ?><?php if ($a8_readonly) echo '_disabled' ?>" name="<?php echo $a8_name ?><?php if ($a8_readonly) echo '_disabled' ?>" type="<?php echo $a8_type ?>" maxlength="<?php echo $a8_maxlength ?>" class="<?php echo str_replace(',',' ',$a8_class) ?>" value="<?php echo $tmp_value ?>" /><?php if ($a8_icon) echo '<img src="'.$image_dir.'icon_'.$a8_icon.IMG_ICON_EXT.'" width="16" height="16" />'; ?></div><?php +if ($a8_readonly) { +?><input type="hidden" id="<?php echo REQUEST_ID ?>_<?php echo $a8_name ?>" name="<?php echo $a8_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 $a8_class ?>"><?php echo $tmp_value ?></span></a><?php } ?><?php unset($a8_class,$a8_default,$a8_type,$a8_name,$a8_size,$a8_maxlength,$a8_onchange,$a8_readonly,$a8_hint,$a8_icon) ?> + <?php } ?> + </div> + </div> + <?php } ?> + <?php $if4=(!empty($with_icon)); if($if4){?> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <?php { $tmpname = 'with_icon';$default = '';$readonly = ''; + if ( isset($$tmpname) ) + $checked = $$tmpname; + else + $checked = $default; + + ?><input class="checkbox" type="checkbox" id="<?php echo REQUEST_ID ?>_<?php echo $tmpname ?>" name="<?php echo $tmpname ?>" <?php if ($readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?> /><?php + + if ( $readonly && $checked ) + { + ?><input type="hidden" name="<?php echo $tmpname ?>" value="1" /><?php + } + } ?> + <!-- Compiling label/label-begin --><?php $a7_for='with_icon'; ?><label<?php if (isset($a7_for)) { ?> for="<?php echo REQUEST_ID ?>_<?php echo $a7_for ?><?php if (!empty($a7_value)) echo '_'.$a7_value ?>" <?php if(hasLang(@$a7_key.'_desc')) { ?> title="<?php echo lang(@$a7_key.'_desc')?>"<?php } ?> class="label"<?php } ?>> +<?php if (isset($a7_key)) { echo lang($a7_key); ?><?php if (isset($a7_text)) { echo $a7_text; } ?><?php } ?><?php unset($a7_for) ?> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('EL_PROP_WITH_ICON')))); ?></span> + <!-- Compiling label/label-end --></label> + </div> + </div> + <?php } ?> + <?php $if4=(!empty($all_languages)); if($if4){?> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <?php { $tmpname = 'all_languages';$default = '';$readonly = ''; + if ( isset($$tmpname) ) + $checked = $$tmpname; + else + $checked = $default; + + ?><input class="checkbox" type="checkbox" id="<?php echo REQUEST_ID ?>_<?php echo $tmpname ?>" name="<?php echo $tmpname ?>" <?php if ($readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?> /><?php + + if ( $readonly && $checked ) + { + ?><input type="hidden" name="<?php echo $tmpname ?>" value="1" /><?php + } + } ?> + <!-- Compiling label/label-begin --><?php $a7_for='all_languages'; ?><label<?php if (isset($a7_for)) { ?> for="<?php echo REQUEST_ID ?>_<?php echo $a7_for ?><?php if (!empty($a7_value)) echo '_'.$a7_value ?>" <?php if(hasLang(@$a7_key.'_desc')) { ?> title="<?php echo lang(@$a7_key.'_desc')?>"<?php } ?> class="label"<?php } ?>> +<?php if (isset($a7_key)) { echo lang($a7_key); ?><?php if (isset($a7_text)) { echo $a7_text; } ?><?php } ?><?php unset($a7_for) ?> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('EL_PROP_ALL_LANGUAGES')))); ?></span> + <!-- Compiling label/label-end --></label> + </div> + </div> + <?php } ?> + <?php $if4=(!empty($writable)); if($if4){?> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <?php { $tmpname = 'writable';$default = '';$readonly = ''; + if ( isset($$tmpname) ) + $checked = $$tmpname; + else + $checked = $default; + + ?><input class="checkbox" type="checkbox" id="<?php echo REQUEST_ID ?>_<?php echo $tmpname ?>" name="<?php echo $tmpname ?>" <?php if ($readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?> /><?php + + if ( $readonly && $checked ) + { + ?><input type="hidden" name="<?php echo $tmpname ?>" value="1" /><?php + } + } ?> + <!-- Compiling label/label-begin --><?php $a7_for='writable'; ?><label<?php if (isset($a7_for)) { ?> for="<?php echo REQUEST_ID ?>_<?php echo $a7_for ?><?php if (!empty($a7_value)) echo '_'.$a7_value ?>" <?php if(hasLang(@$a7_key.'_desc')) { ?> title="<?php echo lang(@$a7_key.'_desc')?>"<?php } ?> class="label"<?php } ?>> +<?php if (isset($a7_key)) { echo lang($a7_key); ?><?php if (isset($a7_text)) { echo $a7_text; } ?><?php } ?><?php unset($a7_for) ?> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('EL_PROP_writable')))); ?></span> + <!-- Compiling label/label-end --></label> + </div> + </div> + <?php } ?> + <?php $if4=(!empty($width)); if($if4){?> + <div class="line"> + <div class="label"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('width')))); ?></span> + + </div> + <div class="input"><!-- Compiling input/input-begin --><?php $a7_class='text';$a7_default='';$a7_type='text';$a7_name='width';$a7_size='10';$a7_maxlength='256';$a7_onchange='';$a7_readonly=false;$a7_hint='';$a7_icon=''; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a7_readonly=true; + if ($a7_readonly && empty($$a7_name)) $$a7_name = '- '.lang('EMPTY').' -'; + if(!isset($a7_default)) $a7_default=''; + $tmp_value = Text::encodeHtml(isset($$a7_name)?$$a7_name:$a7_default); +?><?php if (!$a7_readonly || $a7_type=='hidden') { +?><div class="<?php echo $a7_type!='hidden'?'inputholder':'inputhidden' ?>"><input<?php if ($a7_readonly) echo ' disabled="true"' ?><?php if ($a7_hint) echo ' data-hint="'.$a7_hint.'"'; ?> id="<?php echo REQUEST_ID ?>_<?php echo $a7_name ?><?php if ($a7_readonly) echo '_disabled' ?>" name="<?php echo $a7_name ?><?php if ($a7_readonly) echo '_disabled' ?>" type="<?php echo $a7_type ?>" maxlength="<?php echo $a7_maxlength ?>" class="<?php echo str_replace(',',' ',$a7_class) ?>" value="<?php echo $tmp_value ?>" /><?php if ($a7_icon) echo '<img src="'.$image_dir.'icon_'.$a7_icon.IMG_ICON_EXT.'" width="16" height="16" />'; ?></div><?php +if ($a7_readonly) { +?><input type="hidden" id="<?php echo REQUEST_ID ?>_<?php echo $a7_name ?>" name="<?php echo $a7_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 $a7_class ?>"><?php echo $tmp_value ?></span></a><?php } ?><?php unset($a7_class,$a7_default,$a7_type,$a7_name,$a7_size,$a7_maxlength,$a7_onchange,$a7_readonly,$a7_hint,$a7_icon) ?> + </div> + </div> + <?php } ?> + <?php $if4=(!empty($height)); if($if4){?> + <div class="line"> + <div class="label"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('height')))); ?></span> + + </div> + <div class="input"><!-- Compiling input/input-begin --><?php $a7_class='text';$a7_default='';$a7_type='text';$a7_name='height';$a7_size='10';$a7_maxlength='256';$a7_onchange='';$a7_readonly=false;$a7_hint='';$a7_icon=''; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a7_readonly=true; + if ($a7_readonly && empty($$a7_name)) $$a7_name = '- '.lang('EMPTY').' -'; + if(!isset($a7_default)) $a7_default=''; + $tmp_value = Text::encodeHtml(isset($$a7_name)?$$a7_name:$a7_default); +?><?php if (!$a7_readonly || $a7_type=='hidden') { +?><div class="<?php echo $a7_type!='hidden'?'inputholder':'inputhidden' ?>"><input<?php if ($a7_readonly) echo ' disabled="true"' ?><?php if ($a7_hint) echo ' data-hint="'.$a7_hint.'"'; ?> id="<?php echo REQUEST_ID ?>_<?php echo $a7_name ?><?php if ($a7_readonly) echo '_disabled' ?>" name="<?php echo $a7_name ?><?php if ($a7_readonly) echo '_disabled' ?>" type="<?php echo $a7_type ?>" maxlength="<?php echo $a7_maxlength ?>" class="<?php echo str_replace(',',' ',$a7_class) ?>" value="<?php echo $tmp_value ?>" /><?php if ($a7_icon) echo '<img src="'.$image_dir.'icon_'.$a7_icon.IMG_ICON_EXT.'" width="16" height="16" />'; ?></div><?php +if ($a7_readonly) { +?><input type="hidden" id="<?php echo REQUEST_ID ?>_<?php echo $a7_name ?>" name="<?php echo $a7_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 $a7_class ?>"><?php echo $tmp_value ?></span></a><?php } ?><?php unset($a7_class,$a7_default,$a7_type,$a7_name,$a7_size,$a7_maxlength,$a7_onchange,$a7_readonly,$a7_hint,$a7_icon) ?> + </div> + </div> + <?php } ?> + <?php $if4=(!empty($dateformat)); if($if4){?> + <div class="line"> + <div class="label"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('EL_PROP_DATEFORMAT')))); ?></span> + + </div> + <div class="input"><!-- Compiling selectbox/selectbox-begin --><?php $a7_list='dateformats';$a7_name='dateformat';$a7_onchange='';$a7_title='';$a7_class='';$a7_addempty=false;$a7_multiple=false;$a7_size='1';$a7_lang=false; ?><?php +$a7_readonly=false; +$a7_tmp_list = $$a7_list; +if ($this->isEditable() && !$this->isEditMode()) +{ + echo empty($$a7_name)?'- '.lang('EMPTY').' -':$a7_tmp_list[$$a7_name]; +} +else +{ +if ( $a7_addempty!==FALSE ) +{ + if ($a7_addempty===TRUE) + $a7_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a7_tmp_list; + else + $a7_tmp_list = array(''=>'- '.lang($a7_addempty).' -')+$a7_tmp_list; +} +?><div class="inputholder"><select<?php if ($a7_readonly) echo ' disabled="disabled"' ?> id="<?php echo REQUEST_ID ?>_<?php echo $a7_name ?>" name="<?php echo $a7_name; if ($a7_multiple) echo '[]'; ?>" onchange="<?php echo $a7_onchange ?>" title="<?php echo $a7_title ?>" class="<?php echo $a7_class ?>"<?php +if (count($$a7_list)<=1) echo ' disabled="disabled"'; +if ($a7_multiple) echo ' multiple="multiple"'; +echo ' size="'.intval($a7_size).'"'; +?>><?php + if ( isset($$a7_name) && isset($a7_tmp_list[$$a7_name]) ) + $a7_tmp_default = $$a7_name; + elseif ( isset($a7_default) ) + $a7_tmp_default = $a7_default; + else + $a7_tmp_default = ''; + foreach( $a7_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( $a7_lang ) + { + $box_title = lang( $box_value.'_DESC'); + $box_value = lang( $box_value ); + } + else + { + $box_title = ''; + } + echo '<option class="'.$a7_class.'" value="'.$box_key.'" title="'.$box_title.'"'; + if ((string)$box_key==$a7_tmp_default) + echo ' selected="selected"'; + echo '>'.$box_value.'</option>'; + } +?></select></div><?php +if (count($$a7_list)==0) echo '<input type="hidden" name="'.$a7_name.'" value="" />'; +if (count($$a7_list)==1) echo '<input type="hidden" name="'.$a7_name.'" value="'.$box_key.'" />'; +} +?><?php unset($a7_list,$a7_name,$a7_onchange,$a7_title,$a7_class,$a7_addempty,$a7_multiple,$a7_size,$a7_lang) ?> + </div> + </div> + <?php } ?> + <?php $if4=(!empty($format)); if($if4){?> + <div class="line"> + <div class="label"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('EL_PROP_FORMAT')))); ?></span> + + </div> + <div class="input"><!-- Compiling radiobox/radiobox-begin --><?php $a7_list='formatlist';$a7_name='format';$a7_onchange='';$a7_title='';$a7_class=''; ?><?php $a7_tmp_list = $$a7_list; + if ( isset($$a7_name) && isset($a7_tmp_list[$$a7_name]) ) + $a7_tmp_default = $$a7_name; + elseif ( isset($a7_default) ) + $a7_tmp_default = $a7_default; + else + $a7_tmp_default = ''; + foreach( $a7_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.'_'.$a7_name.'_'.$box_key; + echo '<input id="'.$id.'" name="'.$a7_name.'" type="radio" class="'.$a7_class.'" value="'.$box_key.'"'; + if ($box_key==$a7_tmp_default) + echo ' checked="checked"'; + echo ' /> <label for="'.$id.'">'.$box_value.'</label><br />'; + } +?><?php unset($a7_list,$a7_name,$a7_onchange,$a7_title,$a7_class) ?> + </div> + </div> + <?php } ?> + <?php $if4=(!empty($decimals)); if($if4){?> + <div class="line"> + <div class="label"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('EL_PROP_DECIMALS')))); ?></span> + + </div> + <div class="input"><!-- Compiling input/input-begin --><?php $a7_class='text';$a7_default='';$a7_type='text';$a7_name='decimals';$a7_size='10';$a7_maxlength='2';$a7_onchange='';$a7_readonly=false;$a7_hint='';$a7_icon=''; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a7_readonly=true; + if ($a7_readonly && empty($$a7_name)) $$a7_name = '- '.lang('EMPTY').' -'; + if(!isset($a7_default)) $a7_default=''; + $tmp_value = Text::encodeHtml(isset($$a7_name)?$$a7_name:$a7_default); +?><?php if (!$a7_readonly || $a7_type=='hidden') { +?><div class="<?php echo $a7_type!='hidden'?'inputholder':'inputhidden' ?>"><input<?php if ($a7_readonly) echo ' disabled="true"' ?><?php if ($a7_hint) echo ' data-hint="'.$a7_hint.'"'; ?> id="<?php echo REQUEST_ID ?>_<?php echo $a7_name ?><?php if ($a7_readonly) echo '_disabled' ?>" name="<?php echo $a7_name ?><?php if ($a7_readonly) echo '_disabled' ?>" type="<?php echo $a7_type ?>" maxlength="<?php echo $a7_maxlength ?>" class="<?php echo str_replace(',',' ',$a7_class) ?>" value="<?php echo $tmp_value ?>" /><?php if ($a7_icon) echo '<img src="'.$image_dir.'icon_'.$a7_icon.IMG_ICON_EXT.'" width="16" height="16" />'; ?></div><?php +if ($a7_readonly) { +?><input type="hidden" id="<?php echo REQUEST_ID ?>_<?php echo $a7_name ?>" name="<?php echo $a7_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 $a7_class ?>"><?php echo $tmp_value ?></span></a><?php } ?><?php unset($a7_class,$a7_default,$a7_type,$a7_name,$a7_size,$a7_maxlength,$a7_onchange,$a7_readonly,$a7_hint,$a7_icon) ?> + </div> + </div> + <?php } ?> + <?php $if4=(!empty($dec_point)); if($if4){?> + <div class="line"> + <div class="label"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('EL_PROP_DEC_POINT')))); ?></span> + + </div> + <div class="input"><!-- Compiling input/input-begin --><?php $a7_class='text';$a7_default='';$a7_type='text';$a7_name='dec_point';$a7_size='10';$a7_maxlength='5';$a7_onchange='';$a7_readonly=false;$a7_hint='';$a7_icon=''; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a7_readonly=true; + if ($a7_readonly && empty($$a7_name)) $$a7_name = '- '.lang('EMPTY').' -'; + if(!isset($a7_default)) $a7_default=''; + $tmp_value = Text::encodeHtml(isset($$a7_name)?$$a7_name:$a7_default); +?><?php if (!$a7_readonly || $a7_type=='hidden') { +?><div class="<?php echo $a7_type!='hidden'?'inputholder':'inputhidden' ?>"><input<?php if ($a7_readonly) echo ' disabled="true"' ?><?php if ($a7_hint) echo ' data-hint="'.$a7_hint.'"'; ?> id="<?php echo REQUEST_ID ?>_<?php echo $a7_name ?><?php if ($a7_readonly) echo '_disabled' ?>" name="<?php echo $a7_name ?><?php if ($a7_readonly) echo '_disabled' ?>" type="<?php echo $a7_type ?>" maxlength="<?php echo $a7_maxlength ?>" class="<?php echo str_replace(',',' ',$a7_class) ?>" value="<?php echo $tmp_value ?>" /><?php if ($a7_icon) echo '<img src="'.$image_dir.'icon_'.$a7_icon.IMG_ICON_EXT.'" width="16" height="16" />'; ?></div><?php +if ($a7_readonly) { +?><input type="hidden" id="<?php echo REQUEST_ID ?>_<?php echo $a7_name ?>" name="<?php echo $a7_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 $a7_class ?>"><?php echo $tmp_value ?></span></a><?php } ?><?php unset($a7_class,$a7_default,$a7_type,$a7_name,$a7_size,$a7_maxlength,$a7_onchange,$a7_readonly,$a7_hint,$a7_icon) ?> + </div> + </div> + <?php } ?> + <?php $if4=(!empty($thousand_sep)); if($if4){?> + <div class="line"> + <div class="label"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('EL_PROP_thousand_sep')))); ?></span> + + </div> + <div class="input"><!-- Compiling input/input-begin --><?php $a7_class='text';$a7_default='';$a7_type='text';$a7_name='thousand_sep';$a7_size='10';$a7_maxlength='1';$a7_onchange='';$a7_readonly=false;$a7_hint='';$a7_icon=''; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a7_readonly=true; + if ($a7_readonly && empty($$a7_name)) $$a7_name = '- '.lang('EMPTY').' -'; + if(!isset($a7_default)) $a7_default=''; + $tmp_value = Text::encodeHtml(isset($$a7_name)?$$a7_name:$a7_default); +?><?php if (!$a7_readonly || $a7_type=='hidden') { +?><div class="<?php echo $a7_type!='hidden'?'inputholder':'inputhidden' ?>"><input<?php if ($a7_readonly) echo ' disabled="true"' ?><?php if ($a7_hint) echo ' data-hint="'.$a7_hint.'"'; ?> id="<?php echo REQUEST_ID ?>_<?php echo $a7_name ?><?php if ($a7_readonly) echo '_disabled' ?>" name="<?php echo $a7_name ?><?php if ($a7_readonly) echo '_disabled' ?>" type="<?php echo $a7_type ?>" maxlength="<?php echo $a7_maxlength ?>" class="<?php echo str_replace(',',' ',$a7_class) ?>" value="<?php echo $tmp_value ?>" /><?php if ($a7_icon) echo '<img src="'.$image_dir.'icon_'.$a7_icon.IMG_ICON_EXT.'" width="16" height="16" />'; ?></div><?php +if ($a7_readonly) { +?><input type="hidden" id="<?php echo REQUEST_ID ?>_<?php echo $a7_name ?>" name="<?php echo $a7_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 $a7_class ?>"><?php echo $tmp_value ?></span></a><?php } ?><?php unset($a7_class,$a7_default,$a7_type,$a7_name,$a7_size,$a7_maxlength,$a7_onchange,$a7_readonly,$a7_hint,$a7_icon) ?> + </div> + </div> + <?php } ?> + <?php $if4=(!empty($default_text)); if($if4){?> + <div class="line"> + <div class="label"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('EL_PROP_default_text')))); ?></span> + + </div> + <div class="input"><!-- Compiling input/input-begin --><?php $a7_class='text';$a7_default='';$a7_type='text';$a7_name='default_text';$a7_size='40';$a7_maxlength='255';$a7_onchange='';$a7_readonly=false;$a7_hint='';$a7_icon=''; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a7_readonly=true; + if ($a7_readonly && empty($$a7_name)) $$a7_name = '- '.lang('EMPTY').' -'; + if(!isset($a7_default)) $a7_default=''; + $tmp_value = Text::encodeHtml(isset($$a7_name)?$$a7_name:$a7_default); +?><?php if (!$a7_readonly || $a7_type=='hidden') { +?><div class="<?php echo $a7_type!='hidden'?'inputholder':'inputhidden' ?>"><input<?php if ($a7_readonly) echo ' disabled="true"' ?><?php if ($a7_hint) echo ' data-hint="'.$a7_hint.'"'; ?> id="<?php echo REQUEST_ID ?>_<?php echo $a7_name ?><?php if ($a7_readonly) echo '_disabled' ?>" name="<?php echo $a7_name ?><?php if ($a7_readonly) echo '_disabled' ?>" type="<?php echo $a7_type ?>" maxlength="<?php echo $a7_maxlength ?>" class="<?php echo str_replace(',',' ',$a7_class) ?>" value="<?php echo $tmp_value ?>" /><?php if ($a7_icon) echo '<img src="'.$image_dir.'icon_'.$a7_icon.IMG_ICON_EXT.'" width="16" height="16" />'; ?></div><?php +if ($a7_readonly) { +?><input type="hidden" id="<?php echo REQUEST_ID ?>_<?php echo $a7_name ?>" name="<?php echo $a7_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 $a7_class ?>"><?php echo $tmp_value ?></span></a><?php } ?><?php unset($a7_class,$a7_default,$a7_type,$a7_name,$a7_size,$a7_maxlength,$a7_onchange,$a7_readonly,$a7_hint,$a7_icon) ?> + </div> + </div> + <?php } ?> + <?php $if4=(!empty($default_longtext)); if($if4){?> + <div class="line"> + <div class="label"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('EL_PROP_default_longtext')))); ?></span> + + </div> + <div class="input"><!-- Compiling inputarea/inputarea-begin --><?php $a7_name='default_longtext';$a7_rows='10';$a7_cols='40';$a7_class='inputarea';$a7_default=''; ?><div class="inputholder"><textarea class="<?php echo $a7_class ?>" name="<?php echo $a7_name ?>" ><?php echo Text::encodeHtml(isset($$a7_name)?$$a7_name:$a7_default) ?></textarea></div><?php unset($a7_name,$a7_rows,$a7_cols,$a7_class,$a7_default) ?> + </div> + </div> + <?php } ?> + <?php $if4=(!empty($parameters)); if($if4){?> + <div class="line"> + <div class="label"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('EL_PROP_DYNAMIC_PARAMETERS')))); ?></span> + + </div> + <div class="input"><!-- Compiling inputarea/inputarea-begin --><?php $a7_name='parameters';$a7_rows='15';$a7_cols='40';$a7_class='inputarea';$a7_default=''; ?><div class="inputholder"><textarea class="<?php echo $a7_class ?>" name="<?php echo $a7_name ?>" ><?php echo Text::encodeHtml(isset($$a7_name)?$$a7_name:$a7_default) ?></textarea></div><?php unset($a7_name,$a7_rows,$a7_cols,$a7_class,$a7_default) ?> + </div> + </div> + <div class="line"> + <div class="label"> + </div> + <div class="input"><!-- Compiling list/list-begin --><?php $a7_list='dynamic_class_parameters';$a7_extract=false;$a7_key='paramName';$a7_value='defaultValue'; ?><?php + $a7_list_tmp_key = $a7_key; + $a7_list_tmp_value = $a7_value; + $a7_list_extract = $a7_extract; + unset($a7_key); + unset($a7_value); + if ( !isset($$a7_list) || !is_array($$a7_list) ) + $$a7_list = array(); + foreach( $$a7_list as $$a7_list_tmp_key => $$a7_list_tmp_value ) + { + if ( $a7_list_extract ) + { + if ( !is_array($$a7_list_tmp_value) ) + { + print_r($$a7_list_tmp_value); + die( 'not an array at key: '.$$a7_list_tmp_key ); + } + extract($$a7_list_tmp_value); + } +?><?php unset($a7_list,$a7_extract,$a7_key,$a7_value) ?> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities($paramName))); ?></span> + + <span class="text"><?php echo nl2br(' ('); ?></span> + + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('GLOBAL_DEFAULT')))); ?></span> + + <span class="text"><?php echo nl2br(') = '); ?></span> + + <span class="text"><?php echo nl2br(encodeHtml(htmlentities($defaultValue))); ?></span> + <!-- Compiling newline/newline-begin --><br/><!-- Compiling list/list-end --><?php } ?> + </div> + </div> + <?php } ?> + <?php $if4=(!empty($select_items)); if($if4){?> + <div class="line"> + <div class="label"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('EL_PROP_select_items')))); ?></span> + + </div> + <div class="input"><!-- Compiling inputarea/inputarea-begin --><?php $a7_name='select_items';$a7_rows='15';$a7_cols='40';$a7_class='inputarea';$a7_default=''; ?><div class="inputholder"><textarea class="<?php echo $a7_class ?>" name="<?php echo $a7_name ?>" ><?php echo Text::encodeHtml(isset($$a7_name)?$$a7_name:$a7_default) ?></textarea></div><?php unset($a7_name,$a7_rows,$a7_cols,$a7_class,$a7_default) ?> + </div> + </div> + <?php } ?> + <?php $if4=(!empty($linkelement)); if($if4){?> + <div class="line"> + <div class="label"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('EL_LINK')))); ?></span> + + </div> + <div class="input"><!-- Compiling selectbox/selectbox-begin --><?php $a7_list='linkelements';$a7_name='linkelement';$a7_onchange='';$a7_title='';$a7_class='';$a7_addempty=false;$a7_multiple=false;$a7_size='1';$a7_lang=false; ?><?php +$a7_readonly=false; +$a7_tmp_list = $$a7_list; +if ($this->isEditable() && !$this->isEditMode()) +{ + echo empty($$a7_name)?'- '.lang('EMPTY').' -':$a7_tmp_list[$$a7_name]; +} +else +{ +if ( $a7_addempty!==FALSE ) +{ + if ($a7_addempty===TRUE) + $a7_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a7_tmp_list; + else + $a7_tmp_list = array(''=>'- '.lang($a7_addempty).' -')+$a7_tmp_list; +} +?><div class="inputholder"><select<?php if ($a7_readonly) echo ' disabled="disabled"' ?> id="<?php echo REQUEST_ID ?>_<?php echo $a7_name ?>" name="<?php echo $a7_name; if ($a7_multiple) echo '[]'; ?>" onchange="<?php echo $a7_onchange ?>" title="<?php echo $a7_title ?>" class="<?php echo $a7_class ?>"<?php +if (count($$a7_list)<=1) echo ' disabled="disabled"'; +if ($a7_multiple) echo ' multiple="multiple"'; +echo ' size="'.intval($a7_size).'"'; +?>><?php + if ( isset($$a7_name) && isset($a7_tmp_list[$$a7_name]) ) + $a7_tmp_default = $$a7_name; + elseif ( isset($a7_default) ) + $a7_tmp_default = $a7_default; + else + $a7_tmp_default = ''; + foreach( $a7_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( $a7_lang ) + { + $box_title = lang( $box_value.'_DESC'); + $box_value = lang( $box_value ); + } + else + { + $box_title = ''; + } + echo '<option class="'.$a7_class.'" value="'.$box_key.'" title="'.$box_title.'"'; + if ((string)$box_key==$a7_tmp_default) + echo ' selected="selected"'; + echo '>'.$box_value.'</option>'; + } +?></select></div><?php +if (count($$a7_list)==0) echo '<input type="hidden" name="'.$a7_name.'" value="" />'; +if (count($$a7_list)==1) echo '<input type="hidden" name="'.$a7_name.'" value="'.$box_key.'" />'; +} +?><?php unset($a7_list,$a7_name,$a7_onchange,$a7_title,$a7_class,$a7_addempty,$a7_multiple,$a7_size,$a7_lang) ?> + </div> + </div> + <?php } ?> + <?php $if4=(!empty($name)); if($if4){?> + <div class="line"> + <div class="label"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('ELEMENT_NAME')))); ?></span> + + </div> + <div class="input"><!-- Compiling selectbox/selectbox-begin --><?php $a7_list='names';$a7_name='name';$a7_onchange='';$a7_title='';$a7_class='';$a7_addempty=false;$a7_multiple=false;$a7_size='1';$a7_lang=false; ?><?php +$a7_readonly=false; +$a7_tmp_list = $$a7_list; +if ($this->isEditable() && !$this->isEditMode()) +{ + echo empty($$a7_name)?'- '.lang('EMPTY').' -':$a7_tmp_list[$$a7_name]; +} +else +{ +if ( $a7_addempty!==FALSE ) +{ + if ($a7_addempty===TRUE) + $a7_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a7_tmp_list; + else + $a7_tmp_list = array(''=>'- '.lang($a7_addempty).' -')+$a7_tmp_list; +} +?><div class="inputholder"><select<?php if ($a7_readonly) echo ' disabled="disabled"' ?> id="<?php echo REQUEST_ID ?>_<?php echo $a7_name ?>" name="<?php echo $a7_name; if ($a7_multiple) echo '[]'; ?>" onchange="<?php echo $a7_onchange ?>" title="<?php echo $a7_title ?>" class="<?php echo $a7_class ?>"<?php +if (count($$a7_list)<=1) echo ' disabled="disabled"'; +if ($a7_multiple) echo ' multiple="multiple"'; +echo ' size="'.intval($a7_size).'"'; +?>><?php + if ( isset($$a7_name) && isset($a7_tmp_list[$$a7_name]) ) + $a7_tmp_default = $$a7_name; + elseif ( isset($a7_default) ) + $a7_tmp_default = $a7_default; + else + $a7_tmp_default = ''; + foreach( $a7_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( $a7_lang ) + { + $box_title = lang( $box_value.'_DESC'); + $box_value = lang( $box_value ); + } + else + { + $box_title = ''; + } + echo '<option class="'.$a7_class.'" value="'.$box_key.'" title="'.$box_title.'"'; + if ((string)$box_key==$a7_tmp_default) + echo ' selected="selected"'; + echo '>'.$box_value.'</option>'; + } +?></select></div><?php +if (count($$a7_list)==0) echo '<input type="hidden" name="'.$a7_name.'" value="" />'; +if (count($$a7_list)==1) echo '<input type="hidden" name="'.$a7_name.'" value="'.$box_key.'" />'; +} +?><?php unset($a7_list,$a7_name,$a7_onchange,$a7_title,$a7_class,$a7_addempty,$a7_multiple,$a7_size,$a7_lang) ?> + </div> + </div> + <?php } ?> + <?php $if4=(!empty($folderobjectid)); if($if4){?> + <div class="line"> + <div class="label"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('EL_PROP_DEFAULT_FOLDEROBJECT')))); ?></span> + + </div> + <div class="input"><!-- Compiling selectbox/selectbox-begin --><?php $a7_list='folders';$a7_name='folderobjectid';$a7_onchange='';$a7_title='';$a7_class='';$a7_addempty=false;$a7_multiple=false;$a7_size='1';$a7_lang=false; ?><?php +$a7_readonly=false; +$a7_tmp_list = $$a7_list; +if ($this->isEditable() && !$this->isEditMode()) +{ + echo empty($$a7_name)?'- '.lang('EMPTY').' -':$a7_tmp_list[$$a7_name]; +} +else +{ +if ( $a7_addempty!==FALSE ) +{ + if ($a7_addempty===TRUE) + $a7_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a7_tmp_list; + else + $a7_tmp_list = array(''=>'- '.lang($a7_addempty).' -')+$a7_tmp_list; +} +?><div class="inputholder"><select<?php if ($a7_readonly) echo ' disabled="disabled"' ?> id="<?php echo REQUEST_ID ?>_<?php echo $a7_name ?>" name="<?php echo $a7_name; if ($a7_multiple) echo '[]'; ?>" onchange="<?php echo $a7_onchange ?>" title="<?php echo $a7_title ?>" class="<?php echo $a7_class ?>"<?php +if (count($$a7_list)<=1) echo ' disabled="disabled"'; +if ($a7_multiple) echo ' multiple="multiple"'; +echo ' size="'.intval($a7_size).'"'; +?>><?php + if ( isset($$a7_name) && isset($a7_tmp_list[$$a7_name]) ) + $a7_tmp_default = $$a7_name; + elseif ( isset($a7_default) ) + $a7_tmp_default = $a7_default; + else + $a7_tmp_default = ''; + foreach( $a7_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( $a7_lang ) + { + $box_title = lang( $box_value.'_DESC'); + $box_value = lang( $box_value ); + } + else + { + $box_title = ''; + } + echo '<option class="'.$a7_class.'" value="'.$box_key.'" title="'.$box_title.'"'; + if ((string)$box_key==$a7_tmp_default) + echo ' selected="selected"'; + echo '>'.$box_value.'</option>'; + } +?></select></div><?php +if (count($$a7_list)==0) echo '<input type="hidden" name="'.$a7_name.'" value="" />'; +if (count($$a7_list)==1) echo '<input type="hidden" name="'.$a7_name.'" value="'.$box_key.'" />'; +} +?><?php unset($a7_list,$a7_name,$a7_onchange,$a7_title,$a7_class,$a7_addempty,$a7_multiple,$a7_size,$a7_lang) ?> + </div> + </div> + <?php } ?> + <?php $if4=(!empty($default_objectid)); if($if4){?> + <div class="line"> + <div class="label"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('EL_PROP_DEFAULT_OBJECT')))); ?></span> + + </div> + <div class="input"><!-- Compiling selectbox/selectbox-begin --><?php $a7_list='objects';$a7_name='default_objectid';$a7_onchange='';$a7_title='';$a7_class='';$a7_addempty=true;$a7_multiple=false;$a7_size='1';$a7_lang=false; ?><?php +$a7_readonly=false; +$a7_tmp_list = $$a7_list; +if ($this->isEditable() && !$this->isEditMode()) +{ + echo empty($$a7_name)?'- '.lang('EMPTY').' -':$a7_tmp_list[$$a7_name]; +} +else +{ +if ( $a7_addempty!==FALSE ) +{ + if ($a7_addempty===TRUE) + $a7_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a7_tmp_list; + else + $a7_tmp_list = array(''=>'- '.lang($a7_addempty).' -')+$a7_tmp_list; +} +?><div class="inputholder"><select<?php if ($a7_readonly) echo ' disabled="disabled"' ?> id="<?php echo REQUEST_ID ?>_<?php echo $a7_name ?>" name="<?php echo $a7_name; if ($a7_multiple) echo '[]'; ?>" onchange="<?php echo $a7_onchange ?>" title="<?php echo $a7_title ?>" class="<?php echo $a7_class ?>"<?php +if (count($$a7_list)<=1) echo ' disabled="disabled"'; +if ($a7_multiple) echo ' multiple="multiple"'; +echo ' size="'.intval($a7_size).'"'; +?>><?php + if ( isset($$a7_name) && isset($a7_tmp_list[$$a7_name]) ) + $a7_tmp_default = $$a7_name; + elseif ( isset($a7_default) ) + $a7_tmp_default = $a7_default; + else + $a7_tmp_default = ''; + foreach( $a7_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( $a7_lang ) + { + $box_title = lang( $box_value.'_DESC'); + $box_value = lang( $box_value ); + } + else + { + $box_title = ''; + } + echo '<option class="'.$a7_class.'" value="'.$box_key.'" title="'.$box_title.'"'; + if ((string)$box_key==$a7_tmp_default) + echo ' selected="selected"'; + echo '>'.$box_value.'</option>'; + } +?></select></div><?php +if (count($$a7_list)==0) echo '<input type="hidden" name="'.$a7_name.'" value="" />'; +if (count($$a7_list)==1) echo '<input type="hidden" name="'.$a7_name.'" value="'.$box_key.'" />'; +} +?><?php unset($a7_list,$a7_name,$a7_onchange,$a7_title,$a7_class,$a7_addempty,$a7_multiple,$a7_size,$a7_lang) ?> + </div> + </div> + <?php } ?> + <?php $if4=(!empty($code)); if($if4){?> + <div class="line"> + <div class="label"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('EL_PROP_code')))); ?></span> + + </div> + <div class="input"><!-- Compiling inputarea/inputarea-begin --><?php $a7_name='code';$a7_rows='35';$a7_cols='40';$a7_class='inputarea';$a7_default=''; ?><div class="inputholder"><textarea class="<?php echo $a7_class ?>" name="<?php echo $a7_name ?>" ><?php echo Text::encodeHtml(isset($$a7_name)?$$a7_name:$a7_default) ?></textarea></div><?php unset($a7_name,$a7_rows,$a7_cols,$a7_class,$a7_default) ?> + </div> + </div> + <?php } ?> + </div></fieldset> + +<div class="bottom"> + <div class="command "> + + <input type="button" class="submit ok" value="OK" onclick="$(this).closest('div.sheet').find('form').submit(); " /> + + <!-- Cancel-Button nicht anzeigen, wenn cancel==false. --> </div> +</div> + +</form> diff --git a/themes/default/templates/file/edit.tpl.out.php b/themes/default/templates/file/edit.tpl.out.php @@ -20,18 +20,17 @@ if ( $conf['interface']['url_sessionid'] ) echo '<input type="hidden" name="'.session_name().'" value="'.session_id().'" />'."\n"; ?> -<!-- Compiling header/header-begin --><?php $a3_name='';$a3_views='value';$a3_back=false; ?><?php if(!empty($a3_views)) { ?> - <div class="headermenu"> - <?php foreach( explode(',',$a3_views) as $a3_tmp_view ) { ?> - <div class="toolbar-icon clickable"> - <a href="javascript:void(0);" data-type="dialog" data-name="<?php echo lang('MENU_'.$a3_tmp_view) ?>" data-method="<?php echo $a3_tmp_view ?>"> - <img src="<?php echo $image_dir ?>icon/<?php echo $a3_tmp_view ?>.png" title="<?php echo lang('MENU_'.$a3_tmp_view.'_DESC') ?>" /> <?php echo lang('MENU_'.$a3_tmp_view) ?> - </a> - </div> - <?php } ?> - </div> -<?php } ?> -<?php unset($a3_name,$a3_views,$a3_back) ?><!-- Compiling part/part-begin --><?php $a3_class='label'; ?><div class="<?php echo $a3_class ?>"><?php unset($a3_class) ?><!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a3_class='line'; ?><div class="<?php echo $a3_class ?>"><?php unset($a3_class) ?><!-- Compiling part/part-begin --><?php $a4_class='input'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling newline/newline-begin --><br/><!-- Compiling upload/upload-begin --><?php $a5_name='file';$a5_class='upload';$a5_size='40';$a5_multiple=false; ?><input size="<?php echo $a5_size ?>" id="<?php echo REQUEST_ID ?>_<?php echo $a5_name ?>" type="file" <?php if (isset($a5_maxlength))echo ' maxlength="'.$a5_maxlength.'"' ?> name="<?php echo $a5_name ?>" class="<?php echo $a5_class ?>" <?php echo ($a5_multiple=='true'?' multiple':'') ?> /><?php unset($a5_name,$a5_class,$a5_size,$a5_multiple) ?><!-- Compiling newline/newline-begin --><br/><!-- Compiling newline/newline-begin --><br/><!-- Compiling part/part-end --></div><!-- Compiling part/part-end --></div> + + + + <div class="label"> + </div> + <div class="line"> + <div class="input"><!-- Compiling newline/newline-begin --><br/> + <input size="40" id="req1512166052993637_file" type="file" name="file" class="upload" /> + <!-- Compiling newline/newline-begin --><br/><!-- Compiling newline/newline-begin --><br/> + </div> + </div> <div class="bottom"> <div class="command "> diff --git a/themes/default/templates/file/prop.tpl.out.php b/themes/default/templates/file/prop.tpl.out.php @@ -1,15 +1,6 @@ -<!-- Compiling output/output-begin --><!-- Compiling header/header-begin --><?php $a2_name='';$a2_views='size,compress,uncompress,extract';$a2_back=false; ?><?php if(!empty($a2_views)) { ?> - <div class="headermenu"> - <?php foreach( explode(',',$a2_views) as $a2_tmp_view ) { ?> - <div class="toolbar-icon clickable"> - <a href="javascript:void(0);" data-type="dialog" data-name="<?php echo lang('MENU_'.$a2_tmp_view) ?>" data-method="<?php echo $a2_tmp_view ?>"> - <img src="<?php echo $image_dir ?>icon/<?php echo $a2_tmp_view ?>.png" title="<?php echo lang('MENU_'.$a2_tmp_view.'_DESC') ?>" /> <?php echo lang('MENU_'.$a2_tmp_view) ?> - </a> - </div> - <?php } ?> - </div> -<?php } ?> -<?php unset($a2_name,$a2_views,$a2_back) ?> +<!-- Compiling output/output-begin --> + + <form name="" target="_self" action="<?php echo OR_ACTION ?>" @@ -31,17 +22,14 @@ if ( $conf['interface']['url_sessionid'] ) echo '<input type="hidden" name="'.session_name().'" value="'.session_id().'" />'."\n"; ?> -<!-- Compiling part/part-begin --><?php $a3_class='line'; ?><div class="<?php echo $a3_class ?>"><?php unset($a3_class) ?><!-- Compiling part/part-begin --><?php $a4_class='label'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling label/label-begin --><?php $a5_for='name'; ?><label<?php if (isset($a5_for)) { ?> for="<?php echo REQUEST_ID ?>_<?php echo $a5_for ?><?php if (!empty($a5_value)) echo '_'.$a5_value ?>" <?php if(hasLang(@$a5_key.'_desc')) { ?> title="<?php echo lang(@$a5_key.'_desc')?>"<?php } ?> class="label"<?php } ?>> -<?php if (isset($a5_key)) { echo lang($a5_key); ?><?php if (isset($a5_text)) { echo $a5_text; } ?><?php } ?><?php unset($a5_for) ?><!-- Compiling text/text-begin --><?php $a6_class='text';$a6_text='global_name';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php - $langF = $a6_escape?'langHtml':'lang'; - $tmp_text = $langF($a6_text); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_text,$a6_escape,$a6_cut) ?><!-- Compiling label/label-end --></label><!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a4_class='input'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling input/input-begin --><?php $a5_class='name';$a5_default='';$a5_type='text';$a5_name='name';$a5_size='50';$a5_maxlength='256';$a5_onchange='';$a5_readonly=false;$a5_hint='';$a5_icon=''; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a5_readonly=true; + + <div class="line"> + <div class="label"><!-- Compiling label/label-begin --><?php $a5_for='name'; ?><label<?php if (isset($a5_for)) { ?> for="<?php echo REQUEST_ID ?>_<?php echo $a5_for ?><?php if (!empty($a5_value)) echo '_'.$a5_value ?>" <?php if(hasLang(@$a5_key.'_desc')) { ?> title="<?php echo lang(@$a5_key.'_desc')?>"<?php } ?> class="label"<?php } ?>> +<?php if (isset($a5_key)) { echo lang($a5_key); ?><?php if (isset($a5_text)) { echo $a5_text; } ?><?php } ?><?php unset($a5_for) ?> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('global_name')))); ?></span> + <!-- Compiling label/label-end --></label> + </div> + <div class="input"><!-- Compiling input/input-begin --><?php $a5_class='name';$a5_default='';$a5_type='text';$a5_name='name';$a5_size='50';$a5_maxlength='256';$a5_onchange='';$a5_readonly=false;$a5_hint='';$a5_icon=''; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a5_readonly=true; if ($a5_readonly && empty($$a5_name)) $$a5_name = '- '.lang('EMPTY').' -'; if(!isset($a5_default)) $a5_default=''; $tmp_value = Text::encodeHtml(isset($$a5_name)?$$a5_name:$a5_default); @@ -49,17 +37,16 @@ ?><div class="<?php echo $a5_type!='hidden'?'inputholder':'inputhidden' ?>"><input<?php if ($a5_readonly) echo ' disabled="true"' ?><?php if ($a5_hint) echo ' data-hint="'.$a5_hint.'"'; ?> id="<?php echo REQUEST_ID ?>_<?php echo $a5_name ?><?php if ($a5_readonly) echo '_disabled' ?>" name="<?php echo $a5_name ?><?php if ($a5_readonly) echo '_disabled' ?>" type="<?php echo $a5_type ?>" maxlength="<?php echo $a5_maxlength ?>" class="<?php echo str_replace(',',' ',$a5_class) ?>" value="<?php echo $tmp_value ?>" /><?php if ($a5_icon) echo '<img src="'.$image_dir.'icon_'.$a5_icon.IMG_ICON_EXT.'" width="16" height="16" />'; ?></div><?php if ($a5_readonly) { ?><input type="hidden" id="<?php echo REQUEST_ID ?>_<?php echo $a5_name ?>" name="<?php echo $a5_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 $a5_class ?>"><?php echo $tmp_value ?></span></a><?php } ?><?php unset($a5_class,$a5_default,$a5_type,$a5_name,$a5_size,$a5_maxlength,$a5_onchange,$a5_readonly,$a5_hint,$a5_icon) ?><!-- Compiling part/part-end --></div><!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a3_class='line'; ?><div class="<?php echo $a3_class ?>"><?php unset($a3_class) ?><!-- Compiling part/part-begin --><?php $a4_class='label'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling label/label-begin --><?php $a5_for='filename'; ?><label<?php if (isset($a5_for)) { ?> for="<?php echo REQUEST_ID ?>_<?php echo $a5_for ?><?php if (!empty($a5_value)) echo '_'.$a5_value ?>" <?php if(hasLang(@$a5_key.'_desc')) { ?> title="<?php echo lang(@$a5_key.'_desc')?>"<?php } ?> class="label"<?php } ?>> -<?php if (isset($a5_key)) { echo lang($a5_key); ?><?php if (isset($a5_text)) { echo $a5_text; } ?><?php } ?><?php unset($a5_for) ?><!-- Compiling text/text-begin --><?php $a6_class='text';$a6_text='global_filename';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php - $langF = $a6_escape?'langHtml':'lang'; - $tmp_text = $langF($a6_text); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_text,$a6_escape,$a6_cut) ?><!-- Compiling label/label-end --></label><!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a4_class='input'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling input/input-begin --><?php $a5_class='filename';$a5_default='';$a5_type='text';$a5_name='filename';$a5_size='';$a5_maxlength='256';$a5_onchange='';$a5_readonly=false;$a5_hint='';$a5_icon=''; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a5_readonly=true; + } } else { ?><a title="<?php echo langHtml('EDIT') ?>" href="<?php echo Html::url($actionName,$subActionName,0,array('mode'=>'edit')) ?>"><span class="<?php echo $a5_class ?>"><?php echo $tmp_value ?></span></a><?php } ?><?php unset($a5_class,$a5_default,$a5_type,$a5_name,$a5_size,$a5_maxlength,$a5_onchange,$a5_readonly,$a5_hint,$a5_icon) ?> + </div> + </div> + <div class="line"> + <div class="label"><!-- Compiling label/label-begin --><?php $a5_for='filename'; ?><label<?php if (isset($a5_for)) { ?> for="<?php echo REQUEST_ID ?>_<?php echo $a5_for ?><?php if (!empty($a5_value)) echo '_'.$a5_value ?>" <?php if(hasLang(@$a5_key.'_desc')) { ?> title="<?php echo lang(@$a5_key.'_desc')?>"<?php } ?> class="label"<?php } ?>> +<?php if (isset($a5_key)) { echo lang($a5_key); ?><?php if (isset($a5_text)) { echo $a5_text; } ?><?php } ?><?php unset($a5_for) ?> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('global_filename')))); ?></span> + <!-- Compiling label/label-end --></label> + </div> + <div class="input"><!-- Compiling input/input-begin --><?php $a5_class='filename';$a5_default='';$a5_type='text';$a5_name='filename';$a5_size='';$a5_maxlength='256';$a5_onchange='';$a5_readonly=false;$a5_hint='';$a5_icon=''; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a5_readonly=true; if ($a5_readonly && empty($$a5_name)) $$a5_name = '- '.lang('EMPTY').' -'; if(!isset($a5_default)) $a5_default=''; $tmp_value = Text::encodeHtml(isset($$a5_name)?$$a5_name:$a5_default); @@ -67,17 +54,16 @@ if ($a5_readonly) { ?><div class="<?php echo $a5_type!='hidden'?'inputholder':'inputhidden' ?>"><input<?php if ($a5_readonly) echo ' disabled="true"' ?><?php if ($a5_hint) echo ' data-hint="'.$a5_hint.'"'; ?> id="<?php echo REQUEST_ID ?>_<?php echo $a5_name ?><?php if ($a5_readonly) echo '_disabled' ?>" name="<?php echo $a5_name ?><?php if ($a5_readonly) echo '_disabled' ?>" type="<?php echo $a5_type ?>" maxlength="<?php echo $a5_maxlength ?>" class="<?php echo str_replace(',',' ',$a5_class) ?>" value="<?php echo $tmp_value ?>" /><?php if ($a5_icon) echo '<img src="'.$image_dir.'icon_'.$a5_icon.IMG_ICON_EXT.'" width="16" height="16" />'; ?></div><?php if ($a5_readonly) { ?><input type="hidden" id="<?php echo REQUEST_ID ?>_<?php echo $a5_name ?>" name="<?php echo $a5_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 $a5_class ?>"><?php echo $tmp_value ?></span></a><?php } ?><?php unset($a5_class,$a5_default,$a5_type,$a5_name,$a5_size,$a5_maxlength,$a5_onchange,$a5_readonly,$a5_hint,$a5_icon) ?><!-- Compiling part/part-end --></div><!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a3_class='line'; ?><div class="<?php echo $a3_class ?>"><?php unset($a3_class) ?><!-- Compiling part/part-begin --><?php $a4_class='label'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling label/label-begin --><?php $a5_for='extension'; ?><label<?php if (isset($a5_for)) { ?> for="<?php echo REQUEST_ID ?>_<?php echo $a5_for ?><?php if (!empty($a5_value)) echo '_'.$a5_value ?>" <?php if(hasLang(@$a5_key.'_desc')) { ?> title="<?php echo lang(@$a5_key.'_desc')?>"<?php } ?> class="label"<?php } ?>> -<?php if (isset($a5_key)) { echo lang($a5_key); ?><?php if (isset($a5_text)) { echo $a5_text; } ?><?php } ?><?php unset($a5_for) ?><!-- Compiling text/text-begin --><?php $a6_class='text';$a6_text='file_extension';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php - $langF = $a6_escape?'langHtml':'lang'; - $tmp_text = $langF($a6_text); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_text,$a6_escape,$a6_cut) ?><!-- Compiling label/label-end --></label><!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a4_class='input'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling input/input-begin --><?php $a5_class='extension';$a5_default='';$a5_type='text';$a5_name='extension';$a5_size='10';$a5_maxlength='256';$a5_onchange='';$a5_readonly=false;$a5_hint='';$a5_icon=''; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a5_readonly=true; + } } else { ?><a title="<?php echo langHtml('EDIT') ?>" href="<?php echo Html::url($actionName,$subActionName,0,array('mode'=>'edit')) ?>"><span class="<?php echo $a5_class ?>"><?php echo $tmp_value ?></span></a><?php } ?><?php unset($a5_class,$a5_default,$a5_type,$a5_name,$a5_size,$a5_maxlength,$a5_onchange,$a5_readonly,$a5_hint,$a5_icon) ?> + </div> + </div> + <div class="line"> + <div class="label"><!-- Compiling label/label-begin --><?php $a5_for='extension'; ?><label<?php if (isset($a5_for)) { ?> for="<?php echo REQUEST_ID ?>_<?php echo $a5_for ?><?php if (!empty($a5_value)) echo '_'.$a5_value ?>" <?php if(hasLang(@$a5_key.'_desc')) { ?> title="<?php echo lang(@$a5_key.'_desc')?>"<?php } ?> class="label"<?php } ?>> +<?php if (isset($a5_key)) { echo lang($a5_key); ?><?php if (isset($a5_text)) { echo $a5_text; } ?><?php } ?><?php unset($a5_for) ?> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('file_extension')))); ?></span> + <!-- Compiling label/label-end --></label> + </div> + <div class="input"><!-- Compiling input/input-begin --><?php $a5_class='extension';$a5_default='';$a5_type='text';$a5_name='extension';$a5_size='10';$a5_maxlength='256';$a5_onchange='';$a5_readonly=false;$a5_hint='';$a5_icon=''; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a5_readonly=true; if ($a5_readonly && empty($$a5_name)) $$a5_name = '- '.lang('EMPTY').' -'; if(!isset($a5_default)) $a5_default=''; $tmp_value = Text::encodeHtml(isset($$a5_name)?$$a5_name:$a5_default); @@ -85,17 +71,18 @@ if ($a5_readonly) { ?><div class="<?php echo $a5_type!='hidden'?'inputholder':'inputhidden' ?>"><input<?php if ($a5_readonly) echo ' disabled="true"' ?><?php if ($a5_hint) echo ' data-hint="'.$a5_hint.'"'; ?> id="<?php echo REQUEST_ID ?>_<?php echo $a5_name ?><?php if ($a5_readonly) echo '_disabled' ?>" name="<?php echo $a5_name ?><?php if ($a5_readonly) echo '_disabled' ?>" type="<?php echo $a5_type ?>" maxlength="<?php echo $a5_maxlength ?>" class="<?php echo str_replace(',',' ',$a5_class) ?>" value="<?php echo $tmp_value ?>" /><?php if ($a5_icon) echo '<img src="'.$image_dir.'icon_'.$a5_icon.IMG_ICON_EXT.'" width="16" height="16" />'; ?></div><?php if ($a5_readonly) { ?><input type="hidden" id="<?php echo REQUEST_ID ?>_<?php echo $a5_name ?>" name="<?php echo $a5_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 $a5_class ?>"><?php echo $tmp_value ?></span></a><?php } ?><?php unset($a5_class,$a5_default,$a5_type,$a5_name,$a5_size,$a5_maxlength,$a5_onchange,$a5_readonly,$a5_hint,$a5_icon) ?><!-- Compiling part/part-end --></div><!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a3_class='line'; ?><div class="<?php echo $a3_class ?>"><?php unset($a3_class) ?><!-- Compiling part/part-begin --><?php $a4_class='label'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling label/label-begin --><?php $a5_for='description'; ?><label<?php if (isset($a5_for)) { ?> for="<?php echo REQUEST_ID ?>_<?php echo $a5_for ?><?php if (!empty($a5_value)) echo '_'.$a5_value ?>" <?php if(hasLang(@$a5_key.'_desc')) { ?> title="<?php echo lang(@$a5_key.'_desc')?>"<?php } ?> class="label"<?php } ?>> -<?php if (isset($a5_key)) { echo lang($a5_key); ?><?php if (isset($a5_text)) { echo $a5_text; } ?><?php } ?><?php unset($a5_for) ?><!-- Compiling text/text-begin --><?php $a6_class='text';$a6_text='global_description';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php - $langF = $a6_escape?'langHtml':'lang'; - $tmp_text = $langF($a6_text); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_text,$a6_escape,$a6_cut) ?><!-- Compiling label/label-end --></label><!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a4_class='input'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling inputarea/inputarea-begin --><?php $a5_name='description';$a5_rows='10';$a5_cols='40';$a5_class='description';$a5_default=''; ?><div class="inputholder"><textarea class="<?php echo $a5_class ?>" name="<?php echo $a5_name ?>" ><?php echo Text::encodeHtml(isset($$a5_name)?$$a5_name:$a5_default) ?></textarea></div><?php unset($a5_name,$a5_rows,$a5_cols,$a5_class,$a5_default) ?><!-- Compiling part/part-end --></div><!-- Compiling part/part-end --></div> + } } else { ?><a title="<?php echo langHtml('EDIT') ?>" href="<?php echo Html::url($actionName,$subActionName,0,array('mode'=>'edit')) ?>"><span class="<?php echo $a5_class ?>"><?php echo $tmp_value ?></span></a><?php } ?><?php unset($a5_class,$a5_default,$a5_type,$a5_name,$a5_size,$a5_maxlength,$a5_onchange,$a5_readonly,$a5_hint,$a5_icon) ?> + </div> + </div> + <div class="line"> + <div class="label"><!-- Compiling label/label-begin --><?php $a5_for='description'; ?><label<?php if (isset($a5_for)) { ?> for="<?php echo REQUEST_ID ?>_<?php echo $a5_for ?><?php if (!empty($a5_value)) echo '_'.$a5_value ?>" <?php if(hasLang(@$a5_key.'_desc')) { ?> title="<?php echo lang(@$a5_key.'_desc')?>"<?php } ?> class="label"<?php } ?>> +<?php if (isset($a5_key)) { echo lang($a5_key); ?><?php if (isset($a5_text)) { echo $a5_text; } ?><?php } ?><?php unset($a5_for) ?> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('global_description')))); ?></span> + <!-- Compiling label/label-end --></label> + </div> + <div class="input"><!-- Compiling inputarea/inputarea-begin --><?php $a5_name='description';$a5_rows='10';$a5_cols='40';$a5_class='description';$a5_default=''; ?><div class="inputholder"><textarea class="<?php echo $a5_class ?>" name="<?php echo $a5_name ?>" ><?php echo Text::encodeHtml(isset($$a5_name)?$$a5_name:$a5_default) ?></textarea></div><?php unset($a5_name,$a5_rows,$a5_cols,$a5_class,$a5_default) ?> + </div> + </div> <div class="bottom"> <div class="command "> diff --git a/themes/default/templates/file/structure.tpl.out.php b/themes/default/templates/file/structure.tpl.out.php @@ -0,0 +1,5 @@ +<!-- Compiling output/output-begin --> + <div class="structure tree"> + <?php include_once( OR_THEMES_DIR.'default/include/html/tree/component-tree.php') ?><?php component_tree($outline) ?> + + </div>+ \ No newline at end of file diff --git a/themes/default/templates/folder/edit.tpl.out.php b/themes/default/templates/folder/edit.tpl.out.php @@ -1,44 +1,10 @@ -<!-- Compiling output/output-begin --><!-- Compiling header/header-begin --><?php $a2_name='';$a2_views='order';$a2_back=false; ?><?php if(!empty($a2_views)) { ?> - <div class="headermenu"> - <?php foreach( explode(',',$a2_views) as $a2_tmp_view ) { ?> - <div class="toolbar-icon clickable"> - <a href="javascript:void(0);" data-type="dialog" data-name="<?php echo lang('MENU_'.$a2_tmp_view) ?>" data-method="<?php echo $a2_tmp_view ?>"> - <img src="<?php echo $image_dir ?>icon/<?php echo $a2_tmp_view ?>.png" title="<?php echo lang('MENU_'.$a2_tmp_view.'_DESC') ?>" /> <?php echo lang('MENU_'.$a2_tmp_view) ?> - </a> - </div> - <?php } ?> - </div> -<?php } ?> -<?php unset($a2_name,$a2_views,$a2_back) ?> - <form name="" - target="_self" - action="folder" - data-method="edit" - data-action="folder" - data-id="<?php echo OR_ID ?>" - method="edit" - enctype="application/x-www-form-urlencoded" - class="folder" - data-async="" - data-autosave="" - onSubmit="formSubmit( $(this) ); return false;"><input type="submit" class="invisible" /> - -<input type="hidden" name="<?php echo REQ_PARAM_TOKEN ?>" value="<?php echo token() ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_ACTION ?>" value="folder" /> -<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="edit" /> -<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo OR_ID ?>" /> -<?php - if ( $conf['interface']['url_sessionid'] ) - echo '<input type="hidden" name="'.session_name().'" value="'.session_id().'" />'."\n"; -?> - <table width="100%'><!-- Compiling row/row-begin --><?php $a4_class='headline'; ?><?php - $column_idx = 0; -?> -<tr - class="headline" -> -<?php unset($a4_class) ?> + + + + <form name="" target="_self" action="folder" data-method="edit" data-action="folder" data-id="<?php echo OR_ID ?>" method="edit" enctype="application/x-www-form-urlencoded" class="folder" data-async="" data-autosave="" onSubmit="formSubmit( $(this) ); return false;"><input type="submit" class="invisible" /><input type="hidden" name="<?php echo REQ_PARAM_TOKEN ?>" value="<?php echo token() ?>" /><input type="hidden" name="<?php echo REQ_PARAM_ACTION ?>" value="folder" /><input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="edit" /><input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo OR_ID ?>" /> + <table width="100%"> + <tr class="headline"> <td class="help"> <?php { $tmpname = 'checkall';$default = '';$readonly = ''; if ( isset($$tmpname) ) @@ -62,34 +28,12 @@ <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'GLOBAL_NAME'.'')))); ?></span> - </td><!-- Compiling row/row-end --></tr><!-- Compiling list/list-begin --><?php $a4_list='object';$a4_extract=true;$a4_key='list_key';$a4_value='list_value'; ?><?php - $a4_list_tmp_key = $a4_key; - $a4_list_tmp_value = $a4_value; - $a4_list_extract = $a4_extract; - unset($a4_key); - unset($a4_value); - if ( !isset($$a4_list) || !is_array($$a4_list) ) - $$a4_list = array(); - foreach( $$a4_list as $$a4_list_tmp_key => $$a4_list_tmp_value ) - { - if ( $a4_list_extract ) - { - if ( !is_array($$a4_list_tmp_value) ) - { - print_r($$a4_list_tmp_value); - die( 'not an array at key: '.$$a4_list_tmp_key ); - } - extract($$a4_list_tmp_value); - } -?><?php unset($a4_list,$a4_extract,$a4_key,$a4_value) ?><!-- Compiling row/row-begin --><?php $a5_class='data'; ?><?php - $column_idx = 0; -?> -<tr - class="data" -> -<?php unset($a5_class) ?> + </td> + </tr> + <?php foreach($object as $list_key=>$list_value){ ?><?php extract($list_value) ?> + <tr class="data"> <td width="1%"> - <?php $if7=('writable'); if($if7){?> + <?php $if7=($writable); if($if7){?> <?php { $tmpname = $id;$default = '';$readonly = ''; if ( isset($$tmpname) ) $checked = $$tmpname; @@ -110,218 +54,99 @@ <?php } ?> </td> - <td class="clickable"><!-- Compiling label/label-begin --><?php $a7_for=$id; ?><label<?php if (isset($a7_for)) { ?> for="<?php echo REQUEST_ID ?>_<?php echo $a7_for ?><?php if (!empty($a7_value)) echo '_'.$a7_value ?>" <?php if(hasLang(@$a7_key.'_desc')) { ?> title="<?php echo lang(@$a7_key.'_desc')?>"<?php } ?> class="label"<?php } ?>> -<?php if (isset($a7_key)) { echo lang($a7_key); ?><?php if (isset($a7_text)) { echo $a7_text; } ?><?php } ?><?php unset($a7_for) ?><!-- Compiling link/link-begin --><?php $a8_title='';$a8_type='open';$a8_class='';$a8_action=$type;$a8_id=$objectid;$a8_name=$name;$a8_frame='_self';$a8_modal=false; ?><?php - $params = array(); - $a8_url=''; - $tmp_url = ''; - $a8_target = $view; - $tmp_href = 'javascript:void(0);'; - switch( $a8_type ) - { - case 'post': - $json = new JSON(); - $tmp_data = $json->encode( array('action'=>!empty($a8_action)?$a8_action:$this->actionName,'subaction'=>!empty($a8_subaction)?$a8_subaction:$this->subActionName,'id'=>!empty($a8_id)?$a8_id:$this->getRequestId()) - +array(REQ_PARAM_TOKEN=>token()) - +$params ); - $tmp_data = str_replace("\n",'',str_replace('"','"',$tmp_data)); - break; - case 'html'; - $tmp_href = $a8_url; - default: - $tmp_data = ''; - } -?><a data-url="<?php echo $a8_url ?>" target="<?php echo $a8_frame ?>"<?php if (isset($a8_name)) { ?> data-name="<?php echo $a8_name ?>" name="<?php echo $a8_name ?>"<?php }else{ ?> href="<?php echo $tmp_href ?>" <?php } ?> class="<?php echo $a8_class ?>" data-id="<?php echo @$a8_id ?>" data-type="<?php echo $a8_type ?>" data-action="<?php echo @$a8_action ?>" data-method="<?php echo @$a8_subaction ?>" data-data="<?php echo $tmp_data ?>" <?php if (isset($a8_accesskey)) echo ' accesskey="'.$a8_accesskey.'"' ?> title="<?php echo encodeHtml($a8_title) ?>"><?php unset($a8_title,$a8_type,$a8_class,$a8_action,$a8_id,$a8_name,$a8_frame,$a8_modal) ?> + <td class="clickable"> + <label for="<?php echo REQUEST_ID ?>_<?php echo $id ?>" class="label"> + <a target="_self" date-name="<?php echo $name ?>" name="<?php echo $name ?>" data-type="open" data-action="<?php echo $type ?>" data-method="<?php echo OR_METHOD ?>" data-id="<?php echo $objectid ?>" href="javascript:void(0);"> <img class="" title="" src="./themes/default/images/icon_<?php echo $icon ?>.png" /> <span class="text"><?php echo nl2br(encodeHtml(htmlentities(Text::maxLength( $name,40,'..',constant('STR_PAD_BOTH') )))); ?></span> <span class="text"><?php echo nl2br(' '); ?></span> - <!-- Compiling link/link-end --></a><!-- Compiling label/label-end --></label> - </td><!-- Compiling row/row-end --></tr><!-- Compiling list/list-end --><?php } ?> - <?php $if4=(empty($object)); if($if4){?><!-- Compiling row/row-begin --><?php - $column_idx = 0; -?> -<tr -> + + </a> + </label> + </td> + </tr> + <?php } ?> + <?php $if4=(empty($object)); if($if4){?> + <tr> <td colspan="2"> <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('GLOBAL_NOT_FOUND')))); ?></span> - </td><!-- Compiling row/row-end --></tr> - <?php } ?><!-- Compiling row/row-begin --><?php $a4_class='data'; ?><?php - $column_idx = 0; -?> -<tr - class="data" -> -<?php unset($a4_class) ?> + </td> + </tr> + <?php } ?> + <tr class="data"> <td> <span class="text"><?php echo nl2br(' '); ?></span> </td> - <td class="clickable" colspan="2"><!-- Compiling link/link-begin --><?php $a6_title='';$a6_type='view';$a6_class='';$a6_action='folder';$a6_subaction='createfolder';$a6_frame='_self';$a6_modal=false; ?><?php - $params = array(); - $a6_url=''; - $tmp_url = ''; - $a6_target = $view; - $tmp_href = 'javascript:void(0);'; - switch( $a6_type ) - { - case 'post': - $json = new JSON(); - $tmp_data = $json->encode( array('action'=>!empty($a6_action)?$a6_action:$this->actionName,'subaction'=>!empty($a6_subaction)?$a6_subaction:$this->subActionName,'id'=>!empty($a6_id)?$a6_id:$this->getRequestId()) - +array(REQ_PARAM_TOKEN=>token()) - +$params ); - $tmp_data = str_replace("\n",'',str_replace('"','"',$tmp_data)); - break; - case 'html'; - $tmp_href = $a6_url; - default: - $tmp_data = ''; - } -?><a data-url="<?php echo $a6_url ?>" target="<?php echo $a6_frame ?>"<?php if (isset($a6_name)) { ?> data-name="<?php echo $a6_name ?>" name="<?php echo $a6_name ?>"<?php }else{ ?> href="<?php echo $tmp_href ?>" <?php } ?> class="<?php echo $a6_class ?>" data-id="<?php echo @$a6_id ?>" data-type="<?php echo $a6_type ?>" data-action="<?php echo @$a6_action ?>" data-method="<?php echo @$a6_subaction ?>" data-data="<?php echo $tmp_data ?>" <?php if (isset($a6_accesskey)) echo ' accesskey="'.$a6_accesskey.'"' ?> title="<?php echo encodeHtml($a6_title) ?>"><?php unset($a6_title,$a6_type,$a6_class,$a6_action,$a6_subaction,$a6_frame,$a6_modal) ?> + <td class="clickable" colspan="2"> + <a target="_self" data-type="view" data-action="folder" data-method="createfolder" data-id="<?php echo OR_ID ?>" href="javascript:void(0);"> <img class="" title="" src="./themes/default/images/icon/icon/create.png" /> <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'menu_folder_createfolder'.'')))); ?></span> - <!-- Compiling link/link-end --></a> - </td><!-- Compiling row/row-end --></tr><!-- Compiling row/row-begin --><?php $a4_class='data'; ?><?php - $column_idx = 0; -?> -<tr - class="data" -> -<?php unset($a4_class) ?> + + </a> + + </td> + </tr> + <tr class="data"> <td> <span class="text"><?php echo nl2br(' '); ?></span> </td> - <td class="clickable" colspan="2"><!-- Compiling link/link-begin --><?php $a6_title='';$a6_type='view';$a6_class='';$a6_action='folder';$a6_subaction='createpage';$a6_frame='_self';$a6_modal=false; ?><?php - $params = array(); - $a6_url=''; - $tmp_url = ''; - $a6_target = $view; - $tmp_href = 'javascript:void(0);'; - switch( $a6_type ) - { - case 'post': - $json = new JSON(); - $tmp_data = $json->encode( array('action'=>!empty($a6_action)?$a6_action:$this->actionName,'subaction'=>!empty($a6_subaction)?$a6_subaction:$this->subActionName,'id'=>!empty($a6_id)?$a6_id:$this->getRequestId()) - +array(REQ_PARAM_TOKEN=>token()) - +$params ); - $tmp_data = str_replace("\n",'',str_replace('"','"',$tmp_data)); - break; - case 'html'; - $tmp_href = $a6_url; - default: - $tmp_data = ''; - } -?><a data-url="<?php echo $a6_url ?>" target="<?php echo $a6_frame ?>"<?php if (isset($a6_name)) { ?> data-name="<?php echo $a6_name ?>" name="<?php echo $a6_name ?>"<?php }else{ ?> href="<?php echo $tmp_href ?>" <?php } ?> class="<?php echo $a6_class ?>" data-id="<?php echo @$a6_id ?>" data-type="<?php echo $a6_type ?>" data-action="<?php echo @$a6_action ?>" data-method="<?php echo @$a6_subaction ?>" data-data="<?php echo $tmp_data ?>" <?php if (isset($a6_accesskey)) echo ' accesskey="'.$a6_accesskey.'"' ?> title="<?php echo encodeHtml($a6_title) ?>"><?php unset($a6_title,$a6_type,$a6_class,$a6_action,$a6_subaction,$a6_frame,$a6_modal) ?> + <td class="clickable" colspan="2"> + <a target="_self" data-type="view" data-action="folder" data-method="createpage" data-id="<?php echo OR_ID ?>" href="javascript:void(0);"> <img class="" title="" src="./themes/default/images/icon/icon/create.png" /> <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'menu_folder_createpage'.'')))); ?></span> - <!-- Compiling link/link-end --></a> - </td><!-- Compiling row/row-end --></tr><!-- Compiling row/row-begin --><?php $a4_class='data'; ?><?php - $column_idx = 0; -?> -<tr - class="data" -> -<?php unset($a4_class) ?> + + </a> + + </td> + </tr> + <tr class="data"> <td> <span class="text"><?php echo nl2br(' '); ?></span> </td> - <td class="clickable" colspan="2"><!-- Compiling link/link-begin --><?php $a6_title='';$a6_type='view';$a6_class='';$a6_action='folder';$a6_subaction='createfile';$a6_frame='_self';$a6_modal=false; ?><?php - $params = array(); - $a6_url=''; - $tmp_url = ''; - $a6_target = $view; - $tmp_href = 'javascript:void(0);'; - switch( $a6_type ) - { - case 'post': - $json = new JSON(); - $tmp_data = $json->encode( array('action'=>!empty($a6_action)?$a6_action:$this->actionName,'subaction'=>!empty($a6_subaction)?$a6_subaction:$this->subActionName,'id'=>!empty($a6_id)?$a6_id:$this->getRequestId()) - +array(REQ_PARAM_TOKEN=>token()) - +$params ); - $tmp_data = str_replace("\n",'',str_replace('"','"',$tmp_data)); - break; - case 'html'; - $tmp_href = $a6_url; - default: - $tmp_data = ''; - } -?><a data-url="<?php echo $a6_url ?>" target="<?php echo $a6_frame ?>"<?php if (isset($a6_name)) { ?> data-name="<?php echo $a6_name ?>" name="<?php echo $a6_name ?>"<?php }else{ ?> href="<?php echo $tmp_href ?>" <?php } ?> class="<?php echo $a6_class ?>" data-id="<?php echo @$a6_id ?>" data-type="<?php echo $a6_type ?>" data-action="<?php echo @$a6_action ?>" data-method="<?php echo @$a6_subaction ?>" data-data="<?php echo $tmp_data ?>" <?php if (isset($a6_accesskey)) echo ' accesskey="'.$a6_accesskey.'"' ?> title="<?php echo encodeHtml($a6_title) ?>"><?php unset($a6_title,$a6_type,$a6_class,$a6_action,$a6_subaction,$a6_frame,$a6_modal) ?> + <td class="clickable" colspan="2"> + <a target="_self" data-type="view" data-action="folder" data-method="createfile" data-id="<?php echo OR_ID ?>" href="javascript:void(0);"> <img class="" title="" src="./themes/default/images/icon/icon/create.png" /> <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'menu_folder_createfile'.'')))); ?></span> - <!-- Compiling link/link-end --></a> - </td><!-- Compiling row/row-end --></tr><!-- Compiling row/row-begin --><?php $a4_class='data'; ?><?php - $column_idx = 0; -?> -<tr - class="data" -> -<?php unset($a4_class) ?> + + </a> + + </td> + </tr> + <tr class="data"> <td> <span class="text"><?php echo nl2br(' '); ?></span> </td> - <td class="clickable" colspan="2"><!-- Compiling link/link-begin --><?php $a6_title='';$a6_type='view';$a6_class='';$a6_action='folder';$a6_subaction='createlink';$a6_frame='_self';$a6_modal=false; ?><?php - $params = array(); - $a6_url=''; - $tmp_url = ''; - $a6_target = $view; - $tmp_href = 'javascript:void(0);'; - switch( $a6_type ) - { - case 'post': - $json = new JSON(); - $tmp_data = $json->encode( array('action'=>!empty($a6_action)?$a6_action:$this->actionName,'subaction'=>!empty($a6_subaction)?$a6_subaction:$this->subActionName,'id'=>!empty($a6_id)?$a6_id:$this->getRequestId()) - +array(REQ_PARAM_TOKEN=>token()) - +$params ); - $tmp_data = str_replace("\n",'',str_replace('"','"',$tmp_data)); - break; - case 'html'; - $tmp_href = $a6_url; - default: - $tmp_data = ''; - } -?><a data-url="<?php echo $a6_url ?>" target="<?php echo $a6_frame ?>"<?php if (isset($a6_name)) { ?> data-name="<?php echo $a6_name ?>" name="<?php echo $a6_name ?>"<?php }else{ ?> href="<?php echo $tmp_href ?>" <?php } ?> class="<?php echo $a6_class ?>" data-id="<?php echo @$a6_id ?>" data-type="<?php echo $a6_type ?>" data-action="<?php echo @$a6_action ?>" data-method="<?php echo @$a6_subaction ?>" data-data="<?php echo $tmp_data ?>" <?php if (isset($a6_accesskey)) echo ' accesskey="'.$a6_accesskey.'"' ?> title="<?php echo encodeHtml($a6_title) ?>"><?php unset($a6_title,$a6_type,$a6_class,$a6_action,$a6_subaction,$a6_frame,$a6_modal) ?> + <td class="clickable" colspan="2"> + <a target="_self" data-type="view" data-action="folder" data-method="createlink" data-id="<?php echo OR_ID ?>" href="javascript:void(0);"> <img class="" title="" src="./themes/default/images/icon/icon/create.png" /> <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'menu_folder_createlink'.'')))); ?></span> - <!-- Compiling link/link-end --></a> - </td><!-- Compiling row/row-end --></tr><!-- Compiling row/row-begin --><?php - $column_idx = 0; -?> -<tr -> + + </a> + </td> + </tr> + <tr> <td colspan="2"> <fieldset class="<?php echo '1'?" open":"" ?><?php echo '1'?" show":"" ?>"><legend><div class="arrow-right closed" /><div class="arrow-down open" /><?php echo lang('options') ?></legend><div> <?php $type= $defaulttype; ?> - <!-- Compiling list/list-begin --><?php $a7_list='actionlist';$a7_extract=false;$a7_key='list_key';$a7_value='actiontype'; ?><?php - $a7_list_tmp_key = $a7_key; - $a7_list_tmp_value = $a7_value; - $a7_list_extract = $a7_extract; - unset($a7_key); - unset($a7_value); - if ( !isset($$a7_list) || !is_array($$a7_list) ) - $$a7_list = array(); - foreach( $$a7_list as $$a7_list_tmp_key => $$a7_list_tmp_value ) - { - if ( $a7_list_extract ) - { - if ( !is_array($$a7_list_tmp_value) ) - { - print_r($$a7_list_tmp_value); - die( 'not an array at key: '.$$a7_list_tmp_key ); - } - extract($$a7_list_tmp_value); - } -?><?php unset($a7_list,$a7_extract,$a7_key,$a7_value) ?><!-- Compiling part/part-begin --><?php $a8_class='line'; ?><div class="<?php echo $a8_class ?>"><?php unset($a8_class) ?><!-- Compiling part/part-begin --><?php $a9_class='label'; ?><div class="<?php echo $a9_class ?>"><?php unset($a9_class) ?><!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a9_class='input'; ?><div class="<?php echo $a9_class ?>"><?php unset($a9_class) ?><!-- Compiling radio/radio-begin --><?php $a10_readonly=false;$a10_name='type';$a10_value=$actiontype;$a10_default=false;$a10_prefix='';$a10_suffix='';$a10_class='';$a10_onchange=''; ?><?php + + <?php foreach($actionlist as $list_key=>$actiontype){ ?> + <div class="line"> + <div class="label"> + </div> + <div class="input"><!-- Compiling radio/radio-begin --><?php $a10_readonly=false;$a10_name='type';$a10_value=$actiontype;$a10_default=false;$a10_prefix='';$a10_suffix='';$a10_class='';$a10_onchange=''; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a10_readonly=true; if ( isset($$a10_name) ) $a10_tmp_default = $$a10_name; @@ -330,12 +155,20 @@ else $a10_tmp_default = ''; ?><input onclick="" class="radio" type="radio" id="<?php echo REQUEST_ID ?>_<?php echo $a10_name.'_'.$a10_value ?>" name="<?php echo $a10_prefix.$a10_name ?>"<?php if ( $a10_readonly ) echo ' disabled="disabled"' ?> value="<?php echo $a10_value ?>"<?php if($a10_value==$a10_tmp_default||@$a10_checked) echo ' checked="checked"' ?> /> -<?php /* #END-IF# */ ?><?php unset($a10_readonly,$a10_name,$a10_value,$a10_default,$a10_prefix,$a10_suffix,$a10_class,$a10_onchange) ?><!-- Compiling label/label-begin --><?php $a10_for='type';$a10_value=$actiontype; ?><label<?php if (isset($a10_for)) { ?> for="<?php echo REQUEST_ID ?>_<?php echo $a10_for ?><?php if (!empty($a10_value)) echo '_'.$a10_value ?>" <?php if(hasLang(@$a10_key.'_desc')) { ?> title="<?php echo lang(@$a10_key.'_desc')?>"<?php } ?> class="label"<?php } ?>> -<?php if (isset($a10_key)) { echo lang($a10_key); ?><?php if (isset($a10_text)) { echo $a10_text; } ?><?php } ?><?php unset($a10_for,$a10_value) ?> +<?php /* #END-IF# */ ?><?php unset($a10_readonly,$a10_name,$a10_value,$a10_default,$a10_prefix,$a10_suffix,$a10_class,$a10_onchange) ?> + <label for="<?php echo REQUEST_ID ?>_type_<?php echo $actiontype ?>" class="label"> <span class="text"><?php echo nl2br(' '); ?></span> <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('FOLDER_SELECT_'.$actiontype.'')))); ?></span> - <!-- Compiling label/label-end --></label><!-- Compiling part/part-end --></div><!-- Compiling part/part-end --></div><!-- Compiling list/list-end --><?php } ?><!-- Compiling part/part-begin --><?php $a7_class='line'; ?><div class="<?php echo $a7_class ?>"><?php unset($a7_class) ?><!-- Compiling part/part-begin --><?php $a8_class='label'; ?><div class="<?php echo $a8_class ?>"><?php unset($a8_class) ?><!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a8_class='input'; ?><div class="<?php echo $a8_class ?>"><?php unset($a8_class) ?> + + </label> + </div> + </div> + <?php } ?> + <div class="line"> + <div class="label"> + </div> + <div class="input"> <span class="text"><?php echo nl2br(' '); ?></span> <?php { $tmpname = 'confirm';$default = '';$readonly = ''; @@ -351,21 +184,31 @@ ?><input type="hidden" name="<?php echo $tmpname ?>" value="1" /><?php } } ?> - <!-- Compiling label/label-begin --><?php $a9_for='confirm'; ?><label<?php if (isset($a9_for)) { ?> for="<?php echo REQUEST_ID ?>_<?php echo $a9_for ?><?php if (!empty($a9_value)) echo '_'.$a9_value ?>" <?php if(hasLang(@$a9_key.'_desc')) { ?> title="<?php echo lang(@$a9_key.'_desc')?>"<?php } ?> class="label"<?php } ?>> -<?php if (isset($a9_key)) { echo lang($a9_key); ?><?php if (isset($a9_text)) { echo $a9_text; } ?><?php } ?><?php unset($a9_for) ?> + + <label for="<?php echo REQUEST_ID ?>_confirm" class="label"> <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'CONFIRM_DELETE'.'')))); ?></span> - <!-- Compiling label/label-end --></label><!-- Compiling part/part-end --></div><!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a7_class='line'; ?><div class="<?php echo $a7_class ?>"><?php unset($a7_class) ?><!-- Compiling part/part-begin --><?php $a8_class='label'; ?><div class="<?php echo $a8_class ?>"><?php unset($a8_class) ?> + + </label> + </div> + </div> + <div class="line"> + <div class="label"> <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'FOLDER_SELECT_TARGET_FOLDER'.'')))); ?></span> - <!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a8_class='input'; ?><div class="<?php echo $a8_class ?>"><?php unset($a8_class) ?> + + </div> + <div class="input"> <div class="selector"> <div class="inputholder"> <input type="hidden" name="targetobjectid" value="{id}" /> <input type="text" disabled="disabled" value="{name}" /> </div> <div class="tree selector" data-types="{types}" data-init-id="<?php echo $rootfolderid ?>" data-init-folderid="<?php echo $rootfolderid ?>"> - <!-- Compiling part/part-end --></div><!-- Compiling part/part-end --></div> + + </div> + </div> </div></fieldset> - </td><!-- Compiling row/row-end --></tr> + </td> + </tr> </table> <div class="bottom"> @@ -377,19 +220,7 @@ </div> </form> -<!-- Compiling insert/insert-begin --><?php $a2_script='mark';$a2_inline=true; ?><?php -$a2_tmp_file = $tpl_dir.'../../js/'.basename($a2_script).'.js'; -if (!$a2_inline) -{ - ?><script src="<?php echo $a2_tmp_file ?>" type="text/javascript"></script><?php -} -else -{ - echo '<script type="text/javascript">'; - echo str_replace(' ',' ',str_replace('~','',strtr(implode('',file($a2_tmp_file)),"\t\n\b",'~~~'))); - echo '</script>'; -} -?> -<iframe -></iframe> -<?php unset($a2_script,$a2_inline) ?>- \ No newline at end of file + + + + + \ No newline at end of file diff --git a/themes/default/templates/folder/info.tpl.out.php b/themes/default/templates/folder/info.tpl.out.php @@ -21,27 +21,61 @@ echo '<input type="hidden" name="'.session_name().'" value="'.session_id().'" />'."\n"; ?> - <fieldset class="<?php echo 1?" open":"" ?><?php echo 1?" show":"" ?>"><legend><div class="arrow-right closed" /><div class="arrow-down open" /><?php echo lang('GLOBAL_PROP') ?></legend><div><!-- Compiling part/part-begin --><?php $a4_class='line'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling part/part-begin --><?php $a5_class='label'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><!-- Compiling label/label-begin --><?php $a6_for='name';$a6_key='global_name'; ?><label<?php if (isset($a6_for)) { ?> for="<?php echo REQUEST_ID ?>_<?php echo $a6_for ?><?php if (!empty($a6_value)) echo '_'.$a6_value ?>" <?php if(hasLang(@$a6_key.'_desc')) { ?> title="<?php echo lang(@$a6_key.'_desc')?>"<?php } ?> class="label"<?php } ?>> -<?php if (isset($a6_key)) { echo lang($a6_key); ?><?php if (isset($a6_text)) { echo $a6_text; } ?><?php } ?><?php unset($a6_for,$a6_key) ?><!-- Compiling label/label-end --></label><!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?> + <fieldset class="<?php echo '1'?" open":"" ?><?php echo '1'?" show":"" ?>"><legend><div class="arrow-right closed" /><div class="arrow-down open" /><?php echo lang('GLOBAL_PROP') ?></legend><div> + <div class="line"> + <div class="label"><!-- Compiling label/label-begin --><?php $a6_for='name';$a6_key='global_name'; ?><label<?php if (isset($a6_for)) { ?> for="<?php echo REQUEST_ID ?>_<?php echo $a6_for ?><?php if (!empty($a6_value)) echo '_'.$a6_value ?>" <?php if(hasLang(@$a6_key.'_desc')) { ?> title="<?php echo lang(@$a6_key.'_desc')?>"<?php } ?> class="label"<?php } ?>> +<?php if (isset($a6_key)) { echo lang($a6_key); ?><?php if (isset($a6_text)) { echo $a6_text; } ?><?php } ?><?php unset($a6_for,$a6_key) ?><!-- Compiling label/label-end --></label> + </div> + <div class="input"> <span class="name,focus"><?php echo nl2br(encodeHtml(htmlentities($name))); ?></span> - <!-- Compiling part/part-end --></div><!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a4_class='line'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling part/part-begin --><?php $a5_class='label'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><!-- Compiling label/label-begin --><?php $a6_for='filename';$a6_key='global_filename'; ?><label<?php if (isset($a6_for)) { ?> for="<?php echo REQUEST_ID ?>_<?php echo $a6_for ?><?php if (!empty($a6_value)) echo '_'.$a6_value ?>" <?php if(hasLang(@$a6_key.'_desc')) { ?> title="<?php echo lang(@$a6_key.'_desc')?>"<?php } ?> class="label"<?php } ?>> -<?php if (isset($a6_key)) { echo lang($a6_key); ?><?php if (isset($a6_text)) { echo $a6_text; } ?><?php } ?><?php unset($a6_for,$a6_key) ?><!-- Compiling label/label-end --></label><!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?> + + </div> + </div> + <div class="line"> + <div class="label"><!-- Compiling label/label-begin --><?php $a6_for='filename';$a6_key='global_filename'; ?><label<?php if (isset($a6_for)) { ?> for="<?php echo REQUEST_ID ?>_<?php echo $a6_for ?><?php if (!empty($a6_value)) echo '_'.$a6_value ?>" <?php if(hasLang(@$a6_key.'_desc')) { ?> title="<?php echo lang(@$a6_key.'_desc')?>"<?php } ?> class="label"<?php } ?>> +<?php if (isset($a6_key)) { echo lang($a6_key); ?><?php if (isset($a6_text)) { echo $a6_text; } ?><?php } ?><?php unset($a6_for,$a6_key) ?><!-- Compiling label/label-end --></label> + </div> + <div class="input"> <span class="text"><?php echo nl2br(encodeHtml(htmlentities($filename))); ?></span> - <!-- Compiling part/part-end --></div><!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a4_class='line'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling part/part-begin --><?php $a5_class='label'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><!-- Compiling label/label-begin --><?php $a6_for='description';$a6_key='global_description'; ?><label<?php if (isset($a6_for)) { ?> for="<?php echo REQUEST_ID ?>_<?php echo $a6_for ?><?php if (!empty($a6_value)) echo '_'.$a6_value ?>" <?php if(hasLang(@$a6_key.'_desc')) { ?> title="<?php echo lang(@$a6_key.'_desc')?>"<?php } ?> class="label"<?php } ?>> -<?php if (isset($a6_key)) { echo lang($a6_key); ?><?php if (isset($a6_text)) { echo $a6_text; } ?><?php } ?><?php unset($a6_for,$a6_key) ?><!-- Compiling label/label-end --></label><!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?> + + </div> + </div> + <div class="line"> + <div class="label"><!-- Compiling label/label-begin --><?php $a6_for='description';$a6_key='global_description'; ?><label<?php if (isset($a6_for)) { ?> for="<?php echo REQUEST_ID ?>_<?php echo $a6_for ?><?php if (!empty($a6_value)) echo '_'.$a6_value ?>" <?php if(hasLang(@$a6_key.'_desc')) { ?> title="<?php echo lang(@$a6_key.'_desc')?>"<?php } ?> class="label"<?php } ?>> +<?php if (isset($a6_key)) { echo lang($a6_key); ?><?php if (isset($a6_text)) { echo $a6_text; } ?><?php } ?><?php unset($a6_for,$a6_key) ?><!-- Compiling label/label-end --></label> + </div> + <div class="input"> <span class="description"><?php echo nl2br(encodeHtml(htmlentities($description))); ?></span> - <!-- Compiling part/part-end --></div><!-- Compiling part/part-end --></div> + + </div> + </div> </div></fieldset> - <fieldset class="<?php echo 1?" open":"" ?><?php echo 1?" show":"" ?>"><legend><div class="arrow-right closed" /><div class="arrow-down open" /><?php echo lang('additional_info') ?></legend><div><!-- Compiling part/part-begin --><?php $a4_class='line'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling part/part-begin --><?php $a5_class='label'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><!-- Compiling label/label-begin --><?php $a6_for='full_filename';$a6_key='FULL_FILENAME'; ?><label<?php if (isset($a6_for)) { ?> for="<?php echo REQUEST_ID ?>_<?php echo $a6_for ?><?php if (!empty($a6_value)) echo '_'.$a6_value ?>" <?php if(hasLang(@$a6_key.'_desc')) { ?> title="<?php echo lang(@$a6_key.'_desc')?>"<?php } ?> class="label"<?php } ?>> -<?php if (isset($a6_key)) { echo lang($a6_key); ?><?php if (isset($a6_text)) { echo $a6_text; } ?><?php } ?><?php unset($a6_for,$a6_key) ?><!-- Compiling label/label-end --></label><!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?> + <fieldset class="<?php echo '1'?" open":"" ?><?php echo '1'?" show":"" ?>"><legend><div class="arrow-right closed" /><div class="arrow-down open" /><?php echo lang('additional_info') ?></legend><div> + <div class="line"> + <div class="label"><!-- Compiling label/label-begin --><?php $a6_for='full_filename';$a6_key='FULL_FILENAME'; ?><label<?php if (isset($a6_for)) { ?> for="<?php echo REQUEST_ID ?>_<?php echo $a6_for ?><?php if (!empty($a6_value)) echo '_'.$a6_value ?>" <?php if(hasLang(@$a6_key.'_desc')) { ?> title="<?php echo lang(@$a6_key.'_desc')?>"<?php } ?> class="label"<?php } ?>> +<?php if (isset($a6_key)) { echo lang($a6_key); ?><?php if (isset($a6_text)) { echo $a6_text; } ?><?php } ?><?php unset($a6_for,$a6_key) ?><!-- Compiling label/label-end --></label> + </div> + <div class="input"> <span class="text"><?php echo nl2br(encodeHtml(htmlentities($full_filename))); ?></span> - <!-- Compiling part/part-end --></div><!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a4_class='line'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling part/part-begin --><?php $a5_class='label'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><!-- Compiling label/label-begin --><?php $a6_for='objectid';$a6_key='id'; ?><label<?php if (isset($a6_for)) { ?> for="<?php echo REQUEST_ID ?>_<?php echo $a6_for ?><?php if (!empty($a6_value)) echo '_'.$a6_value ?>" <?php if(hasLang(@$a6_key.'_desc')) { ?> title="<?php echo lang(@$a6_key.'_desc')?>"<?php } ?> class="label"<?php } ?>> -<?php if (isset($a6_key)) { echo lang($a6_key); ?><?php if (isset($a6_text)) { echo $a6_text; } ?><?php } ?><?php unset($a6_for,$a6_key) ?><!-- Compiling label/label-end --></label><!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?> + + </div> + </div> + <div class="line"> + <div class="label"><!-- Compiling label/label-begin --><?php $a6_for='objectid';$a6_key='id'; ?><label<?php if (isset($a6_for)) { ?> for="<?php echo REQUEST_ID ?>_<?php echo $a6_for ?><?php if (!empty($a6_value)) echo '_'.$a6_value ?>" <?php if(hasLang(@$a6_key.'_desc')) { ?> title="<?php echo lang(@$a6_key.'_desc')?>"<?php } ?> class="label"<?php } ?>> +<?php if (isset($a6_key)) { echo lang($a6_key); ?><?php if (isset($a6_text)) { echo $a6_text; } ?><?php } ?><?php unset($a6_for,$a6_key) ?><!-- Compiling label/label-end --></label> + </div> + <div class="input"> <span class="text"><?php echo nl2br(encodeHtml(htmlentities($objectid))); ?></span> - <!-- Compiling part/part-end --></div><!-- Compiling part/part-end --></div> + + </div> + </div> </div></fieldset> - <fieldset class="<?php echo 1?" open":"" ?><?php echo 1?" show":"" ?>"><legend><div class="arrow-right closed" /><div class="arrow-down open" /><?php echo lang('PROP_USERINFO') ?></legend><div><!-- Compiling part/part-begin --><?php $a4_class='line'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling part/part-begin --><?php $a5_class='label'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><!-- Compiling label/label-begin --><?php $a6_for='create_user';$a6_key='global_created'; ?><label<?php if (isset($a6_for)) { ?> for="<?php echo REQUEST_ID ?>_<?php echo $a6_for ?><?php if (!empty($a6_value)) echo '_'.$a6_value ?>" <?php if(hasLang(@$a6_key.'_desc')) { ?> title="<?php echo lang(@$a6_key.'_desc')?>"<?php } ?> class="label"<?php } ?>> -<?php if (isset($a6_key)) { echo lang($a6_key); ?><?php if (isset($a6_text)) { echo $a6_text; } ?><?php } ?><?php unset($a6_for,$a6_key) ?><!-- Compiling label/label-end --></label><!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?> + <fieldset class="<?php echo '1'?" open":"" ?><?php echo '1'?" show":"" ?>"><legend><div class="arrow-right closed" /><div class="arrow-down open" /><?php echo lang('PROP_USERINFO') ?></legend><div> + <div class="line"> + <div class="label"><!-- Compiling label/label-begin --><?php $a6_for='create_user';$a6_key='global_created'; ?><label<?php if (isset($a6_for)) { ?> for="<?php echo REQUEST_ID ?>_<?php echo $a6_for ?><?php if (!empty($a6_value)) echo '_'.$a6_value ?>" <?php if(hasLang(@$a6_key.'_desc')) { ?> title="<?php echo lang(@$a6_key.'_desc')?>"<?php } ?> class="label"<?php } ?>> +<?php if (isset($a6_key)) { echo lang($a6_key); ?><?php if (isset($a6_text)) { echo $a6_text; } ?><?php } ?><?php unset($a6_for,$a6_key) ?><!-- Compiling label/label-end --></label> + </div> + <div class="input"> <img class="image-icon image-icon--element" title="" src="./themes/default/images/icon/element/date.svg" /> <?php include_once( OR_THEMES_DIR.'default/include/html/date/component-date.php') ?><?php component_date($create_date) ?> @@ -49,8 +83,14 @@ <img class="image-icon image-icon--action" title="" src="./themes/default/images/icon/action/user.svg" /> <?php include_once( OR_THEMES_DIR.'default/include/html/user/component-user.php') ?><?php component_user($create_user) ?> - <!-- Compiling part/part-end --></div><!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a4_class='line'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling part/part-begin --><?php $a5_class='label'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><!-- Compiling label/label-begin --><?php $a6_for='lastchange_user';$a6_key='global_lastchange'; ?><label<?php if (isset($a6_for)) { ?> for="<?php echo REQUEST_ID ?>_<?php echo $a6_for ?><?php if (!empty($a6_value)) echo '_'.$a6_value ?>" <?php if(hasLang(@$a6_key.'_desc')) { ?> title="<?php echo lang(@$a6_key.'_desc')?>"<?php } ?> class="label"<?php } ?>> -<?php if (isset($a6_key)) { echo lang($a6_key); ?><?php if (isset($a6_text)) { echo $a6_text; } ?><?php } ?><?php unset($a6_for,$a6_key) ?><!-- Compiling label/label-end --></label><!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?> + + </div> + </div> + <div class="line"> + <div class="label"><!-- Compiling label/label-begin --><?php $a6_for='lastchange_user';$a6_key='global_lastchange'; ?><label<?php if (isset($a6_for)) { ?> for="<?php echo REQUEST_ID ?>_<?php echo $a6_for ?><?php if (!empty($a6_value)) echo '_'.$a6_value ?>" <?php if(hasLang(@$a6_key.'_desc')) { ?> title="<?php echo lang(@$a6_key.'_desc')?>"<?php } ?> class="label"<?php } ?>> +<?php if (isset($a6_key)) { echo lang($a6_key); ?><?php if (isset($a6_text)) { echo $a6_text; } ?><?php } ?><?php unset($a6_for,$a6_key) ?><!-- Compiling label/label-end --></label> + </div> + <div class="input"> <img class="image-icon image-icon--element" title="" src="./themes/default/images/icon/element/date.svg" /> <?php include_once( OR_THEMES_DIR.'default/include/html/date/component-date.php') ?><?php component_date($lastchange_date) ?> @@ -58,7 +98,9 @@ <img class="image-icon image-icon--action" title="" src="./themes/default/images/icon/action/user.svg" /> <?php include_once( OR_THEMES_DIR.'default/include/html/user/component-user.php') ?><?php component_user($lastchange_user) ?> - <!-- Compiling part/part-end --></div><!-- Compiling part/part-end --></div> + + </div> + </div> </div></fieldset> <div class="bottom"> diff --git a/themes/default/templates/folder/prop.tpl.out.php b/themes/default/templates/folder/prop.tpl.out.php @@ -1,56 +1,38 @@ -<!-- Compiling output/output-begin --><!-- Compiling header/header-begin --><?php $a2_name='';$a2_back=false; ?><?php if(!empty($a2_views)) { ?> - <div class="headermenu"> - <?php foreach( explode(',',$a2_views) as $a2_tmp_view ) { ?> - <div class="toolbar-icon clickable"> - <a href="javascript:void(0);" data-type="dialog" data-name="<?php echo lang('MENU_'.$a2_tmp_view) ?>" data-method="<?php echo $a2_tmp_view ?>"> - <img src="<?php echo $image_dir ?>icon/<?php echo $a2_tmp_view ?>.png" title="<?php echo lang('MENU_'.$a2_tmp_view.'_DESC') ?>" /> <?php echo lang('MENU_'.$a2_tmp_view) ?> - </a> - </div> - <?php } ?> - </div> -<?php } ?> -<?php unset($a2_name,$a2_back) ?> - <form name="" - target="_self" - action="<?php echo OR_ACTION ?>" - data-method="<?php echo OR_METHOD ?>" - data-action="<?php echo OR_ACTION ?>" - data-id="<?php echo OR_ID ?>" - method="<?php echo OR_METHOD ?>" - enctype="application/x-www-form-urlencoded" - class="<?php echo OR_ACTION ?>" - data-async="" - data-autosave="" - onSubmit="formSubmit( $(this) ); return false;"><input type="submit" class="invisible" /> - -<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 OR_ACTION ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo OR_METHOD ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo OR_ID ?>" /> -<?php - if ( $conf['interface']['url_sessionid'] ) - echo '<input type="hidden" name="'.session_name().'" value="'.session_id().'" />'."\n"; -?> -<!-- Compiling part/part-begin --><?php $a3_class='line'; ?><div class="<?php echo $a3_class ?>"><?php unset($a3_class) ?><!-- Compiling part/part-begin --><?php $a4_class='label'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling label/label-begin --><?php $a5_for='name';$a5_key='global_name'; ?><label<?php if (isset($a5_for)) { ?> for="<?php echo REQUEST_ID ?>_<?php echo $a5_for ?><?php if (!empty($a5_value)) echo '_'.$a5_value ?>" <?php if(hasLang(@$a5_key.'_desc')) { ?> title="<?php echo lang(@$a5_key.'_desc')?>"<?php } ?> class="label"<?php } ?>> -<?php if (isset($a5_key)) { echo lang($a5_key); ?><?php if (isset($a5_text)) { echo $a5_text; } ?><?php } ?><?php unset($a5_for,$a5_key) ?><!-- Compiling label/label-end --></label><!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a4_class='input'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling input/input-begin --><?php $a5_class='name,focus';$a5_default='';$a5_type='text';$a5_name='name';$a5_size='';$a5_maxlength='256';$a5_onchange='';$a5_readonly=false;$a5_hint='';$a5_icon=''; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a5_readonly=true; - if ($a5_readonly && empty($$a5_name)) $$a5_name = '- '.lang('EMPTY').' -'; - if(!isset($a5_default)) $a5_default=''; - $tmp_value = Text::encodeHtml(isset($$a5_name)?$$a5_name:$a5_default); -?><?php if (!$a5_readonly || $a5_type=='hidden') { -?><div class="<?php echo $a5_type!='hidden'?'inputholder':'inputhidden' ?>"><input<?php if ($a5_readonly) echo ' disabled="true"' ?><?php if ($a5_hint) echo ' data-hint="'.$a5_hint.'"'; ?> id="<?php echo REQUEST_ID ?>_<?php echo $a5_name ?><?php if ($a5_readonly) echo '_disabled' ?>" name="<?php echo $a5_name ?><?php if ($a5_readonly) echo '_disabled' ?>" type="<?php echo $a5_type ?>" maxlength="<?php echo $a5_maxlength ?>" class="<?php echo str_replace(',',' ',$a5_class) ?>" value="<?php echo $tmp_value ?>" /><?php if ($a5_icon) echo '<img src="'.$image_dir.'icon_'.$a5_icon.IMG_ICON_EXT.'" width="16" height="16" />'; ?></div><?php -if ($a5_readonly) { -?><input type="hidden" id="<?php echo REQUEST_ID ?>_<?php echo $a5_name ?>" name="<?php echo $a5_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 $a5_class ?>"><?php echo $tmp_value ?></span></a><?php } ?><?php unset($a5_class,$a5_default,$a5_type,$a5_name,$a5_size,$a5_maxlength,$a5_onchange,$a5_readonly,$a5_hint,$a5_icon) ?><!-- Compiling part/part-end --></div><!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a3_class='line'; ?><div class="<?php echo $a3_class ?>"><?php unset($a3_class) ?><!-- Compiling part/part-begin --><?php $a4_class='label'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling label/label-begin --><?php $a5_for='filename';$a5_key='global_filename'; ?><label<?php if (isset($a5_for)) { ?> for="<?php echo REQUEST_ID ?>_<?php echo $a5_for ?><?php if (!empty($a5_value)) echo '_'.$a5_value ?>" <?php if(hasLang(@$a5_key.'_desc')) { ?> title="<?php echo lang(@$a5_key.'_desc')?>"<?php } ?> class="label"<?php } ?>> -<?php if (isset($a5_key)) { echo lang($a5_key); ?><?php if (isset($a5_text)) { echo $a5_text; } ?><?php } ?><?php unset($a5_for,$a5_key) ?><!-- Compiling label/label-end --></label><!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a4_class='input'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling input/input-begin --><?php $a5_class='filename';$a5_default='';$a5_type='text';$a5_name='filename';$a5_size='';$a5_maxlength='256';$a5_onchange='';$a5_readonly=false;$a5_hint='';$a5_icon=''; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a5_readonly=true; - if ($a5_readonly && empty($$a5_name)) $$a5_name = '- '.lang('EMPTY').' -'; - if(!isset($a5_default)) $a5_default=''; - $tmp_value = Text::encodeHtml(isset($$a5_name)?$$a5_name:$a5_default); -?><?php if (!$a5_readonly || $a5_type=='hidden') { -?><div class="<?php echo $a5_type!='hidden'?'inputholder':'inputhidden' ?>"><input<?php if ($a5_readonly) echo ' disabled="true"' ?><?php if ($a5_hint) echo ' data-hint="'.$a5_hint.'"'; ?> id="<?php echo REQUEST_ID ?>_<?php echo $a5_name ?><?php if ($a5_readonly) echo '_disabled' ?>" name="<?php echo $a5_name ?><?php if ($a5_readonly) echo '_disabled' ?>" type="<?php echo $a5_type ?>" maxlength="<?php echo $a5_maxlength ?>" class="<?php echo str_replace(',',' ',$a5_class) ?>" value="<?php echo $tmp_value ?>" /><?php if ($a5_icon) echo '<img src="'.$image_dir.'icon_'.$a5_icon.IMG_ICON_EXT.'" width="16" height="16" />'; ?></div><?php -if ($a5_readonly) { -?><input type="hidden" id="<?php echo REQUEST_ID ?>_<?php echo $a5_name ?>" name="<?php echo $a5_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 $a5_class ?>"><?php echo $tmp_value ?></span></a><?php } ?><?php unset($a5_class,$a5_default,$a5_type,$a5_name,$a5_size,$a5_maxlength,$a5_onchange,$a5_readonly,$a5_hint,$a5_icon) ?><!-- Compiling part/part-end --></div><!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a3_class='line'; ?><div class="<?php echo $a3_class ?>"><?php unset($a3_class) ?><!-- Compiling part/part-begin --><?php $a4_class='label'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling label/label-begin --><?php $a5_for='description';$a5_key='global_description'; ?><label<?php if (isset($a5_for)) { ?> for="<?php echo REQUEST_ID ?>_<?php echo $a5_for ?><?php if (!empty($a5_value)) echo '_'.$a5_value ?>" <?php if(hasLang(@$a5_key.'_desc')) { ?> title="<?php echo lang(@$a5_key.'_desc')?>"<?php } ?> class="label"<?php } ?>> -<?php if (isset($a5_key)) { echo lang($a5_key); ?><?php if (isset($a5_text)) { echo $a5_text; } ?><?php } ?><?php unset($a5_for,$a5_key) ?><!-- Compiling label/label-end --></label><!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a4_class='input'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling inputarea/inputarea-begin --><?php $a5_name='description';$a5_rows='10';$a5_cols='40';$a5_class='description';$a5_default=''; ?><div class="inputholder"><textarea class="<?php echo $a5_class ?>" name="<?php echo $a5_name ?>" ><?php echo Text::encodeHtml(isset($$a5_name)?$$a5_name:$a5_default) ?></textarea></div><?php unset($a5_name,$a5_rows,$a5_cols,$a5_class,$a5_default) ?><!-- Compiling part/part-end --></div><!-- Compiling part/part-end --></div> + + + + + <form name="" target="_self" action="<?php echo OR_ACTION ?>" data-method="<?php echo OR_METHOD ?>" data-action="<?php echo OR_ACTION ?>" data-id="<?php echo OR_ID ?>" method="<?php echo OR_METHOD ?>" enctype="application/x-www-form-urlencoded" class="<?php echo OR_ACTION ?>" data-async="" data-autosave="" onSubmit="formSubmit( $(this) ); return false;"><input type="submit" class="invisible" /><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 OR_ACTION ?>" /><input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo OR_METHOD ?>" /><input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo OR_ID ?>" /> + <div class="line"> + <div class="label"> + <label for="<?php echo REQUEST_ID ?>_name" class="label"><?php echo lang('global_name') ?> + </label> + </div> + <div class="input"> + <div class="inputholder"><input<?php if ('') echo ' disabled="true"' ?> id="<?php echo REQUEST_ID ?>_name" name="name<?php if ('') echo '_disabled' ?>" type="text" maxlength="256" class="name,focus" value="<?php echo Text::encodeHtml($name) ?>" /><?php if ('') { ?><input type="hidden" name="name" value="<?php $name ?>"/><?php } ?></div> + + </div> + </div> + <div class="line"> + <div class="label"> + <label for="<?php echo REQUEST_ID ?>_filename" class="label"><?php echo lang('global_filename') ?> + </label> + </div> + <div class="input"> + <div class="inputholder"><input<?php if ('') echo ' disabled="true"' ?> id="<?php echo REQUEST_ID ?>_filename" name="filename<?php if ('') echo '_disabled' ?>" type="text" maxlength="256" class="filename" value="<?php echo Text::encodeHtml($filename) ?>" /><?php if ('') { ?><input type="hidden" name="filename" value="<?php $filename ?>"/><?php } ?></div> + + </div> + </div> + <div class="line"> + <div class="label"> + <label for="<?php echo REQUEST_ID ?>_description" class="label"><?php echo lang('global_description') ?> + </label> + </div> + <div class="input"> + <div class="inputholder"><textarea class="description" name="description"><?php echo Text::encodeHtml($description) ?></textarea></div> + + </div> + </div> <div class="bottom"> <div class="command "> @@ -61,3 +43,5 @@ if ($a5_readonly) { </div> </form> + + + \ No newline at end of file diff --git a/themes/default/templates/folder/pub.tpl.out.php b/themes/default/templates/folder/pub.tpl.out.php @@ -1,14 +1,9 @@ -<!-- Compiling output/output-begin @ Wed, 29 Nov 2017 01:10:08 +0100 --> - <?php $if2=(@$conf['security']['nopublish']); if($if2){?><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 01:10:08 +0100 --><?php $a3_class='message warn'; ?><div class="<?php echo $a3_class ?>"><?php unset($a3_class) ?><!-- Compiling text/text-begin @ Wed, 29 Nov 2017 01:10:08 +0100 --><?php $a4_class='help';$a4_key='GLOBAL_NOPUBLISH_DESC';$a4_escape=true;$a4_cut='both'; ?><?php - $a4_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a4_class ?>" title="<?php echo $a4_title ?>"><?php - $langF = $a4_escape?'langHtml':'lang'; - $tmp_text = $langF($a4_key); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a4_class,$a4_key,$a4_escape,$a4_cut) ?><!-- Compiling part/part-end @ Wed, 29 Nov 2017 01:10:08 +0100 --></div> +<!-- Compiling output/output-begin --> + <?php $if2=(@$conf['security']['nopublish']); if($if2){?> + <div class="message warn"> + <span class="help"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'GLOBAL_NOPUBLISH_DESC'.'')))); ?></span> + + </div> <?php } ?> <form name="" target="_self" @@ -32,8 +27,12 @@ echo '<input type="hidden" name="'.session_name().'" value="'.session_id().'" />'."\n"; ?> - <?php $if3=(!empty('pages')); if($if3){?> - <?php $if4=(!empty('subdirs')); if($if4){?><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 01:10:08 +0100 --><?php $a5_class='line'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 01:10:08 +0100 --><?php $a6_class='label'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><!-- Compiling part/part-end @ Wed, 29 Nov 2017 01:10:08 +0100 --></div><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 01:10:08 +0100 --><?php $a6_class='input'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?> + <?php $if3=(!empty($pages)); if($if3){?> + <?php $if4=(!empty($subdirs)); if($if4){?> + <div class="line"> + <div class="label"> + </div> + <div class="input"> <?php { $tmpname = 'pages';$default = '';$readonly = ''; if ( isset($$tmpname) ) $checked = $$tmpname; @@ -47,30 +46,22 @@ ?><input type="hidden" name="<?php echo $tmpname ?>" value="1" /><?php } } ?> - <!-- Compiling label/label-begin @ Wed, 29 Nov 2017 01:10:08 +0100 --><?php $a7_for='pages'; ?><label<?php if (isset($a7_for)) { ?> for="<?php echo REQUEST_ID ?>_<?php echo $a7_for ?><?php if (!empty($a7_value)) echo '_'.$a7_value ?>" <?php if(hasLang(@$a7_key.'_desc')) { ?> title="<?php echo lang(@$a7_key.'_desc')?>"<?php } ?> class="label"<?php } ?>> -<?php if (isset($a7_key)) { echo lang($a7_key); ?><?php if (isset($a7_text)) { echo $a7_text; } ?><?php } ?><?php unset($a7_for) ?><!-- Compiling text/text-begin @ Wed, 29 Nov 2017 01:10:08 +0100 --><?php $a8_class='text';$a8_raw='_';$a8_escape=true;$a8_cut='both'; ?><?php - $a8_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a8_class ?>" title="<?php echo $a8_title ?>"><?php - $langF = $a8_escape?'langHtml':'lang'; - $tmp_text = str_replace('_',' ',$a8_raw); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_raw,$a8_escape,$a8_cut) ?><!-- Compiling text/text-begin @ Wed, 29 Nov 2017 01:10:08 +0100 --><?php $a8_class='text';$a8_text='global_pages';$a8_escape=true;$a8_cut='both'; ?><?php - $a8_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a8_class ?>" title="<?php echo $a8_title ?>"><?php - $langF = $a8_escape?'langHtml':'lang'; - $tmp_text = $langF($a8_text); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_text,$a8_escape,$a8_cut) ?><!-- Compiling label/label-end @ Wed, 29 Nov 2017 01:10:08 +0100 --></label><!-- Compiling part/part-end @ Wed, 29 Nov 2017 01:10:08 +0100 --></div><!-- Compiling part/part-end @ Wed, 29 Nov 2017 01:10:08 +0100 --></div> + <!-- Compiling label/label-begin --><?php $a7_for='pages'; ?><label<?php if (isset($a7_for)) { ?> for="<?php echo REQUEST_ID ?>_<?php echo $a7_for ?><?php if (!empty($a7_value)) echo '_'.$a7_value ?>" <?php if(hasLang(@$a7_key.'_desc')) { ?> title="<?php echo lang(@$a7_key.'_desc')?>"<?php } ?> class="label"<?php } ?>> +<?php if (isset($a7_key)) { echo lang($a7_key); ?><?php if (isset($a7_text)) { echo $a7_text; } ?><?php } ?><?php unset($a7_for) ?> + <span class="text"><?php echo nl2br(' '); ?></span> + + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('global_pages')))); ?></span> + <!-- Compiling label/label-end --></label> + </div> + </div> <?php } ?> <?php } ?> - <?php $if3=(!empty('files')); if($if3){?> - <?php $if4=('subdirs'); if($if4){?><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 01:10:08 +0100 --><?php $a5_class='line'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 01:10:08 +0100 --><?php $a6_class='label'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><!-- Compiling part/part-end @ Wed, 29 Nov 2017 01:10:08 +0100 --></div><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 01:10:08 +0100 --><?php $a6_class='input'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?> + <?php $if3=(!empty($files)); if($if3){?> + <?php $if4=($subdirs); if($if4){?> + <div class="line"> + <div class="label"> + </div> + <div class="input"> <?php { $tmpname = 'files';$default = '';$readonly = ''; if ( isset($$tmpname) ) $checked = $$tmpname; @@ -84,30 +75,22 @@ ?><input type="hidden" name="<?php echo $tmpname ?>" value="1" /><?php } } ?> - <!-- Compiling label/label-begin @ Wed, 29 Nov 2017 01:10:08 +0100 --><?php $a7_for='files'; ?><label<?php if (isset($a7_for)) { ?> for="<?php echo REQUEST_ID ?>_<?php echo $a7_for ?><?php if (!empty($a7_value)) echo '_'.$a7_value ?>" <?php if(hasLang(@$a7_key.'_desc')) { ?> title="<?php echo lang(@$a7_key.'_desc')?>"<?php } ?> class="label"<?php } ?>> -<?php if (isset($a7_key)) { echo lang($a7_key); ?><?php if (isset($a7_text)) { echo $a7_text; } ?><?php } ?><?php unset($a7_for) ?><!-- Compiling text/text-begin @ Wed, 29 Nov 2017 01:10:08 +0100 --><?php $a8_class='text';$a8_raw='_';$a8_escape=true;$a8_cut='both'; ?><?php - $a8_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a8_class ?>" title="<?php echo $a8_title ?>"><?php - $langF = $a8_escape?'langHtml':'lang'; - $tmp_text = str_replace('_',' ',$a8_raw); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_raw,$a8_escape,$a8_cut) ?><!-- Compiling text/text-begin @ Wed, 29 Nov 2017 01:10:08 +0100 --><?php $a8_class='text';$a8_text='global_files';$a8_escape=true;$a8_cut='both'; ?><?php - $a8_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a8_class ?>" title="<?php echo $a8_title ?>"><?php - $langF = $a8_escape?'langHtml':'lang'; - $tmp_text = $langF($a8_text); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_text,$a8_escape,$a8_cut) ?><!-- Compiling label/label-end @ Wed, 29 Nov 2017 01:10:08 +0100 --></label><!-- Compiling part/part-end @ Wed, 29 Nov 2017 01:10:08 +0100 --></div><!-- Compiling part/part-end @ Wed, 29 Nov 2017 01:10:08 +0100 --></div> + <!-- Compiling label/label-begin --><?php $a7_for='files'; ?><label<?php if (isset($a7_for)) { ?> for="<?php echo REQUEST_ID ?>_<?php echo $a7_for ?><?php if (!empty($a7_value)) echo '_'.$a7_value ?>" <?php if(hasLang(@$a7_key.'_desc')) { ?> title="<?php echo lang(@$a7_key.'_desc')?>"<?php } ?> class="label"<?php } ?>> +<?php if (isset($a7_key)) { echo lang($a7_key); ?><?php if (isset($a7_text)) { echo $a7_text; } ?><?php } ?><?php unset($a7_for) ?> + <span class="text"><?php echo nl2br(' '); ?></span> + + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('global_files')))); ?></span> + <!-- Compiling label/label-end --></label> + </div> + </div> <?php } ?> <?php } ?> - <fieldset class="<?php echo 1?" open":"" ?><?php echo 1?" show":"" ?>"><legend><div class="arrow-right closed" /><div class="arrow-down open" /><?php echo lang('options') ?></legend><div> - <?php $if4=(!empty('subdirs')); if($if4){?><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 01:10:08 +0100 --><?php $a5_class='line'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 01:10:08 +0100 --><?php $a6_class='label'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><!-- Compiling part/part-end @ Wed, 29 Nov 2017 01:10:08 +0100 --></div><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 01:10:08 +0100 --><?php $a6_class='input'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?> + <fieldset class="<?php echo '1'?" open":"" ?><?php echo '1'?" show":"" ?>"><legend><div class="arrow-right closed" /><div class="arrow-down open" /><?php echo lang('options') ?></legend><div> + <?php $if4=(!empty($subdirs)); if($if4){?> + <div class="line"> + <div class="label"> + </div> + <div class="input"> <?php { $tmpname = 'subdirs';$default = '';$readonly = ''; if ( isset($$tmpname) ) $checked = $$tmpname; @@ -121,28 +104,20 @@ ?><input type="hidden" name="<?php echo $tmpname ?>" value="1" /><?php } } ?> - <!-- Compiling label/label-begin @ Wed, 29 Nov 2017 01:10:08 +0100 --><?php $a7_for='subdirs'; ?><label<?php if (isset($a7_for)) { ?> for="<?php echo REQUEST_ID ?>_<?php echo $a7_for ?><?php if (!empty($a7_value)) echo '_'.$a7_value ?>" <?php if(hasLang(@$a7_key.'_desc')) { ?> title="<?php echo lang(@$a7_key.'_desc')?>"<?php } ?> class="label"<?php } ?>> -<?php if (isset($a7_key)) { echo lang($a7_key); ?><?php if (isset($a7_text)) { echo $a7_text; } ?><?php } ?><?php unset($a7_for) ?><!-- Compiling text/text-begin @ Wed, 29 Nov 2017 01:10:08 +0100 --><?php $a8_class='text';$a8_raw='_';$a8_escape=true;$a8_cut='both'; ?><?php - $a8_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a8_class ?>" title="<?php echo $a8_title ?>"><?php - $langF = $a8_escape?'langHtml':'lang'; - $tmp_text = str_replace('_',' ',$a8_raw); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_raw,$a8_escape,$a8_cut) ?><!-- Compiling text/text-begin @ Wed, 29 Nov 2017 01:10:08 +0100 --><?php $a8_class='text';$a8_text='GLOBAL_PUBLISH_WITH_SUBDIRS';$a8_escape=true;$a8_cut='both'; ?><?php - $a8_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a8_class ?>" title="<?php echo $a8_title ?>"><?php - $langF = $a8_escape?'langHtml':'lang'; - $tmp_text = $langF($a8_text); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_text,$a8_escape,$a8_cut) ?><!-- Compiling label/label-end @ Wed, 29 Nov 2017 01:10:08 +0100 --></label><!-- Compiling part/part-end @ Wed, 29 Nov 2017 01:10:08 +0100 --></div><!-- Compiling part/part-end @ Wed, 29 Nov 2017 01:10:08 +0100 --></div> + <!-- Compiling label/label-begin --><?php $a7_for='subdirs'; ?><label<?php if (isset($a7_for)) { ?> for="<?php echo REQUEST_ID ?>_<?php echo $a7_for ?><?php if (!empty($a7_value)) echo '_'.$a7_value ?>" <?php if(hasLang(@$a7_key.'_desc')) { ?> title="<?php echo lang(@$a7_key.'_desc')?>"<?php } ?> class="label"<?php } ?>> +<?php if (isset($a7_key)) { echo lang($a7_key); ?><?php if (isset($a7_text)) { echo $a7_text; } ?><?php } ?><?php unset($a7_for) ?> + <span class="text"><?php echo nl2br(' '); ?></span> + + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('GLOBAL_PUBLISH_WITH_SUBDIRS')))); ?></span> + <!-- Compiling label/label-end --></label> + </div> + </div> <?php } ?> - <?php $if4=(!empty('clean')); if($if4){?><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 01:10:08 +0100 --><?php $a5_class='line'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 01:10:08 +0100 --><?php $a6_class='label'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><!-- Compiling part/part-end @ Wed, 29 Nov 2017 01:10:08 +0100 --></div><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 01:10:08 +0100 --><?php $a6_class='input'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?> + <?php $if4=(!empty($clean)); if($if4){?> + <div class="line"> + <div class="label"> + </div> + <div class="input"> <?php { $tmpname = 'clean';$default = '';$readonly = ''; if ( isset($$tmpname) ) $checked = $$tmpname; @@ -156,26 +131,14 @@ ?><input type="hidden" name="<?php echo $tmpname ?>" value="1" /><?php } } ?> - <!-- Compiling label/label-begin @ Wed, 29 Nov 2017 01:10:08 +0100 --><?php $a7_for='clean'; ?><label<?php if (isset($a7_for)) { ?> for="<?php echo REQUEST_ID ?>_<?php echo $a7_for ?><?php if (!empty($a7_value)) echo '_'.$a7_value ?>" <?php if(hasLang(@$a7_key.'_desc')) { ?> title="<?php echo lang(@$a7_key.'_desc')?>"<?php } ?> class="label"<?php } ?>> -<?php if (isset($a7_key)) { echo lang($a7_key); ?><?php if (isset($a7_text)) { echo $a7_text; } ?><?php } ?><?php unset($a7_for) ?><!-- Compiling text/text-begin @ Wed, 29 Nov 2017 01:10:08 +0100 --><?php $a8_class='text';$a8_raw='_';$a8_escape=true;$a8_cut='both'; ?><?php - $a8_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a8_class ?>" title="<?php echo $a8_title ?>"><?php - $langF = $a8_escape?'langHtml':'lang'; - $tmp_text = str_replace('_',' ',$a8_raw); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_raw,$a8_escape,$a8_cut) ?><!-- Compiling text/text-begin @ Wed, 29 Nov 2017 01:10:08 +0100 --><?php $a8_class='text';$a8_text='global_CLEAN_AFTER_PUBLISH';$a8_escape=true;$a8_cut='both'; ?><?php - $a8_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a8_class ?>" title="<?php echo $a8_title ?>"><?php - $langF = $a8_escape?'langHtml':'lang'; - $tmp_text = $langF($a8_text); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_text,$a8_escape,$a8_cut) ?><!-- Compiling label/label-end @ Wed, 29 Nov 2017 01:10:08 +0100 --></label><!-- Compiling part/part-end @ Wed, 29 Nov 2017 01:10:08 +0100 --></div><!-- Compiling part/part-end @ Wed, 29 Nov 2017 01:10:08 +0100 --></div> + <!-- Compiling label/label-begin --><?php $a7_for='clean'; ?><label<?php if (isset($a7_for)) { ?> for="<?php echo REQUEST_ID ?>_<?php echo $a7_for ?><?php if (!empty($a7_value)) echo '_'.$a7_value ?>" <?php if(hasLang(@$a7_key.'_desc')) { ?> title="<?php echo lang(@$a7_key.'_desc')?>"<?php } ?> class="label"<?php } ?>> +<?php if (isset($a7_key)) { echo lang($a7_key); ?><?php if (isset($a7_text)) { echo $a7_text; } ?><?php } ?><?php unset($a7_for) ?> + <span class="text"><?php echo nl2br(' '); ?></span> + + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('global_CLEAN_AFTER_PUBLISH')))); ?></span> + <!-- Compiling label/label-end --></label> + </div> + </div> <?php } ?> </div></fieldset> diff --git a/themes/default/templates/folder/structure.tpl.out.php b/themes/default/templates/folder/structure.tpl.out.php @@ -1,3 +1,7 @@ -<!-- Compiling output/output-begin --><!-- Compiling part/part-begin --><?php $a2_class='structure tree'; ?><div class="<?php echo $a2_class ?>"><?php unset($a2_class) ?> + + + <div class="structure tree"> <?php include_once( OR_THEMES_DIR.'default/include/html/tree/component-tree.php') ?><?php component_tree($outline) ?> - <!-- Compiling part/part-end --></div>- \ No newline at end of file + + </div> + + \ No newline at end of file diff --git a/themes/default/templates/group/edit.tpl.out.php b/themes/default/templates/group/edit.tpl.out.php @@ -1,15 +1,6 @@ -<!-- Compiling output/output-begin --><!-- Compiling header/header-begin --><?php $a2_name='';$a2_views='remove';$a2_back=false; ?><?php if(!empty($a2_views)) { ?> - <div class="headermenu"> - <?php foreach( explode(',',$a2_views) as $a2_tmp_view ) { ?> - <div class="toolbar-icon clickable"> - <a href="javascript:void(0);" data-type="dialog" data-name="<?php echo lang('MENU_'.$a2_tmp_view) ?>" data-method="<?php echo $a2_tmp_view ?>"> - <img src="<?php echo $image_dir ?>icon/<?php echo $a2_tmp_view ?>.png" title="<?php echo lang('MENU_'.$a2_tmp_view.'_DESC') ?>" /> <?php echo lang('MENU_'.$a2_tmp_view) ?> - </a> - </div> - <?php } ?> - </div> -<?php } ?> -<?php unset($a2_name,$a2_views,$a2_back) ?> +<!-- Compiling output/output-begin --> + + <form name="" target="_self" action="<?php echo OR_ACTION ?>" @@ -31,17 +22,14 @@ if ( $conf['interface']['url_sessionid'] ) echo '<input type="hidden" name="'.session_name().'" value="'.session_id().'" />'."\n"; ?> -<!-- Compiling part/part-begin --><?php $a3_class='line'; ?><div class="<?php echo $a3_class ?>"><?php unset($a3_class) ?><!-- Compiling part/part-begin --><?php $a4_class='label'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling label/label-begin --><?php $a5_for='name'; ?><label<?php if (isset($a5_for)) { ?> for="<?php echo REQUEST_ID ?>_<?php echo $a5_for ?><?php if (!empty($a5_value)) echo '_'.$a5_value ?>" <?php if(hasLang(@$a5_key.'_desc')) { ?> title="<?php echo lang(@$a5_key.'_desc')?>"<?php } ?> class="label"<?php } ?>> -<?php if (isset($a5_key)) { echo lang($a5_key); ?><?php if (isset($a5_text)) { echo $a5_text; } ?><?php } ?><?php unset($a5_for) ?><!-- Compiling text/text-begin --><?php $a6_class='text';$a6_text='GLOBAL_NAME';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php - $langF = $a6_escape?'langHtml':'lang'; - $tmp_text = $langF($a6_text); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_text,$a6_escape,$a6_cut) ?><!-- Compiling label/label-end --></label><!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a4_class='input'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling input/input-begin --><?php $a5_class='focus';$a5_default='';$a5_type='text';$a5_name='name';$a5_size='';$a5_maxlength='256';$a5_onchange='';$a5_readonly=false;$a5_hint='';$a5_icon=''; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a5_readonly=true; + + <div class="line"> + <div class="label"><!-- Compiling label/label-begin --><?php $a5_for='name'; ?><label<?php if (isset($a5_for)) { ?> for="<?php echo REQUEST_ID ?>_<?php echo $a5_for ?><?php if (!empty($a5_value)) echo '_'.$a5_value ?>" <?php if(hasLang(@$a5_key.'_desc')) { ?> title="<?php echo lang(@$a5_key.'_desc')?>"<?php } ?> class="label"<?php } ?>> +<?php if (isset($a5_key)) { echo lang($a5_key); ?><?php if (isset($a5_text)) { echo $a5_text; } ?><?php } ?><?php unset($a5_for) ?> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('GLOBAL_NAME')))); ?></span> + <!-- Compiling label/label-end --></label> + </div> + <div class="input"><!-- Compiling input/input-begin --><?php $a5_class='focus';$a5_default='';$a5_type='text';$a5_name='name';$a5_size='';$a5_maxlength='256';$a5_onchange='';$a5_readonly=false;$a5_hint='';$a5_icon=''; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a5_readonly=true; if ($a5_readonly && empty($$a5_name)) $$a5_name = '- '.lang('EMPTY').' -'; if(!isset($a5_default)) $a5_default=''; $tmp_value = Text::encodeHtml(isset($$a5_name)?$$a5_name:$a5_default); @@ -49,7 +37,9 @@ ?><div class="<?php echo $a5_type!='hidden'?'inputholder':'inputhidden' ?>"><input<?php if ($a5_readonly) echo ' disabled="true"' ?><?php if ($a5_hint) echo ' data-hint="'.$a5_hint.'"'; ?> id="<?php echo REQUEST_ID ?>_<?php echo $a5_name ?><?php if ($a5_readonly) echo '_disabled' ?>" name="<?php echo $a5_name ?><?php if ($a5_readonly) echo '_disabled' ?>" type="<?php echo $a5_type ?>" maxlength="<?php echo $a5_maxlength ?>" class="<?php echo str_replace(',',' ',$a5_class) ?>" value="<?php echo $tmp_value ?>" /><?php if ($a5_icon) echo '<img src="'.$image_dir.'icon_'.$a5_icon.IMG_ICON_EXT.'" width="16" height="16" />'; ?></div><?php if ($a5_readonly) { ?><input type="hidden" id="<?php echo REQUEST_ID ?>_<?php echo $a5_name ?>" name="<?php echo $a5_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 $a5_class ?>"><?php echo $tmp_value ?></span></a><?php } ?><?php unset($a5_class,$a5_default,$a5_type,$a5_name,$a5_size,$a5_maxlength,$a5_onchange,$a5_readonly,$a5_hint,$a5_icon) ?><!-- Compiling part/part-end --></div><!-- Compiling part/part-end --></div> + } } else { ?><a title="<?php echo langHtml('EDIT') ?>" href="<?php echo Html::url($actionName,$subActionName,0,array('mode'=>'edit')) ?>"><span class="<?php echo $a5_class ?>"><?php echo $tmp_value ?></span></a><?php } ?><?php unset($a5_class,$a5_default,$a5_type,$a5_name,$a5_size,$a5_maxlength,$a5_onchange,$a5_readonly,$a5_hint,$a5_icon) ?> + </div> + </div> <div class="bottom"> <div class="command "> diff --git a/themes/default/templates/group/memberships.tpl.out.php b/themes/default/templates/group/memberships.tpl.out.php @@ -20,58 +20,18 @@ if ( $conf['interface']['url_sessionid'] ) echo '<input type="hidden" name="'.session_name().'" value="'.session_id().'" />'."\n"; ?> -<!-- Compiling table/table-begin --><?php $a3_width='100%';$a3_space='0px';$a3_padding='0px'; ?><?php - $last_column_idx = @$column_idx; - $column_idx = 0; - $coloumn_widths = array(); - $row_classes = array(); - $column_classes = array(); -?><table class="%class%" cellspacing="0px" width="100%" cellpadding="0px"> -<?php unset($a3_width,$a3_space,$a3_padding) ?><!-- Compiling row/row-begin --><?php $a4_class='headline'; ?><?php - $column_idx = 0; -?> -<tr - class="headline" -> -<?php unset($a4_class) ?> + + <table width="100%"> + <tr class="headline"> <td width="10%"> </td> - <td><!-- Compiling text/text-begin --><?php $a6_class='text';$a6_key='name';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php - $langF = $a6_escape?'langHtml':'lang'; - $tmp_text = $langF($a6_key); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_key,$a6_escape,$a6_cut) ?> - </td><!-- Compiling row/row-end --></tr><!-- Compiling list/list-begin --><?php $a4_list='memberships';$a4_extract=true;$a4_key='list_key';$a4_value='list_value'; ?><?php - $a4_list_tmp_key = $a4_key; - $a4_list_tmp_value = $a4_value; - $a4_list_extract = $a4_extract; - unset($a4_key); - unset($a4_value); - if ( !isset($$a4_list) || !is_array($$a4_list) ) - $$a4_list = array(); - foreach( $$a4_list as $$a4_list_tmp_key => $$a4_list_tmp_value ) - { - if ( $a4_list_extract ) - { - if ( !is_array($$a4_list_tmp_value) ) - { - print_r($$a4_list_tmp_value); - die( 'not an array at key: '.$$a4_list_tmp_key ); - } - extract($$a4_list_tmp_value); - } -?><?php unset($a4_list,$a4_extract,$a4_key,$a4_value) ?><!-- Compiling row/row-begin --><?php $a5_class='data'; ?><?php - $column_idx = 0; -?> -<tr - class="data" -> -<?php unset($a5_class) ?> + <td> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'name'.'')))); ?></span> + + </td> + </tr> + <?php foreach($memberships as $list_key=>$list_value){ ?><?php extract($list_value) ?> + <tr class="data"> <td> <?php { $tmpname = $var;$default = '';$readonly = ''; if ( isset($$tmpname) ) @@ -91,31 +51,21 @@ <td><!-- Compiling label/label-begin --><?php $a7_for=$var; ?><label<?php if (isset($a7_for)) { ?> for="<?php echo REQUEST_ID ?>_<?php echo $a7_for ?><?php if (!empty($a7_value)) echo '_'.$a7_value ?>" <?php if(hasLang(@$a7_key.'_desc')) { ?> title="<?php echo lang(@$a7_key.'_desc')?>"<?php } ?> class="label"<?php } ?>> <?php if (isset($a7_key)) { echo lang($a7_key); ?><?php if (isset($a7_text)) { echo $a7_text; } ?><?php } ?><?php unset($a7_for) ?> <img class="" title="" src="./themes/default/images/icon/icon_user.png" /> - <!-- Compiling text/text-begin --><?php $a8_class='text';$a8_var='name';$a8_escape=true;$a8_cut='both'; ?><?php - $a8_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a8_class ?>" title="<?php echo $a8_title ?>"><?php - $langF = $a8_escape?'langHtml':'lang'; - $tmp_text = isset($$a8_var)?$$a8_var:$langF('UNKNOWN'); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_var,$a8_escape,$a8_cut) ?><!-- Compiling label/label-end --></label> - </td><!-- Compiling row/row-end --></tr><!-- Compiling list/list-end --><?php } ?><!-- Compiling table/table-end --><?php - $column_idx = $last_column_idx; -?> -</table><!-- Compiling row/row-begin --><?php - $column_idx = 0; -?> -<tr -> - + + <span class="text"><?php echo nl2br(encodeHtml(htmlentities($name))); ?></span> + <!-- Compiling label/label-end --></label> + </td> + </tr> + <?php } ?> + </table> + <tr> <td class="act" colspan="2"> <div class="invisible"><input type="submit" name="ok" class="%class%" title="Bestätigen" value=" OK " /> </div> - </td><!-- Compiling row/row-end --></tr> + </td> + </tr> <div class="bottom"> <div class="command "> diff --git a/themes/default/templates/grouplist/show.tpl.out.php b/themes/default/templates/grouplist/show.tpl.out.php @@ -0,0 +1,32 @@ +<!-- Compiling output/output-begin --> + + + <table width="100%"> + <tr class="headline"> + <td> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'name'.'')))); ?></span> + + </td> + </tr> + <?php foreach($el as $list_key=>$list_value){ ?><?php extract($list_value) ?> + <tr class="data"> + <td onclick="javascript:openNewAction('<?php echo $name ?>','group','<?php echo $id ?>');"> + <img class="" title="" src="./themes/default/images/icon/icon_group.png" /> + + <span class="text"><?php echo nl2br(encodeHtml(htmlentities($name))); ?></span> + + </td> + </tr> + <?php } ?> + <tr class="data"> + <td class="clickable" colspan="2"> + <a target="_self" date-name="<?php echo lang('menu_add') ?>" name="<?php echo lang('menu_add') ?>" data-type="dialog" data-action="<?php echo OR_ACTION ?>" data-method="add" data-id="<?php echo OR_ID ?>" href="javascript:void(0);"> + <img class="" title="" src="./themes/default/images/icon/add.png" /> + + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('new')))); ?></span> + + </a> + + </td> + </tr> + </table>+ \ No newline at end of file diff --git a/themes/default/templates/languagelist/show.tpl.out.php b/themes/default/templates/languagelist/show.tpl.out.php @@ -1,266 +1,85 @@ -<!-- Compiling output/output-begin @ Wed, 29 Nov 2017 00:50:42 +0100 --><!-- Compiling table/table-begin @ Wed, 29 Nov 2017 00:50:42 +0100 --><?php $a2_width='100%';$a2_space='0px';$a2_padding='0px'; ?><?php - $last_column_idx = @$column_idx; - $column_idx = 0; - $coloumn_widths = array(); - $row_classes = array(); - $column_classes = array(); -?><table class="%class%" cellspacing="0px" width="100%" cellpadding="0px"> -<?php unset($a2_width,$a2_space,$a2_padding) ?><!-- Compiling row/row-begin @ Wed, 29 Nov 2017 00:50:42 +0100 --><?php $a3_class='headline'; ?><?php - $column_idx = 0; -?> -<tr - class="headline" -> -<?php unset($a3_class) ?> - <td><!-- Compiling text/text-begin @ Wed, 29 Nov 2017 00:50:42 +0100 --><?php $a5_class='text';$a5_key='NAME';$a5_escape=true;$a5_cut='both'; ?><?php - $a5_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a5_class ?>" title="<?php echo $a5_title ?>"><?php - $langF = $a5_escape?'langHtml':'lang'; - $tmp_text = $langF($a5_key); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a5_class,$a5_key,$a5_escape,$a5_cut) ?> + + + <table width="100%"> + <tr class="headline"> + <td> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'NAME'.'')))); ?></span> + </td> - <td><!-- Compiling text/text-begin @ Wed, 29 Nov 2017 00:50:42 +0100 --><?php $a5_class='text';$a5_key='LANGUAGE_ISOCODE';$a5_escape=true;$a5_cut='both'; ?><?php - $a5_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a5_class ?>" title="<?php echo $a5_title ?>"><?php - $langF = $a5_escape?'langHtml':'lang'; - $tmp_text = $langF($a5_key); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a5_class,$a5_key,$a5_escape,$a5_cut) ?> + <td> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'LANGUAGE_ISOCODE'.'')))); ?></span> + </td> - <td><!-- Compiling text/text-begin @ Wed, 29 Nov 2017 00:50:42 +0100 --><?php $a5_class='text';$a5_raw='';$a5_escape=true;$a5_cut='both'; ?><?php - $a5_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a5_class ?>" title="<?php echo $a5_title ?>"><?php - $langF = $a5_escape?'langHtml':'lang'; - $tmp_text = str_replace('_',' ',$a5_raw); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a5_class,$a5_raw,$a5_escape,$a5_cut) ?> + <td> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(''))); ?></span> + </td> - <td><!-- Compiling text/text-begin @ Wed, 29 Nov 2017 00:50:42 +0100 --><?php $a5_class='text';$a5_raw='';$a5_escape=true;$a5_cut='both'; ?><?php - $a5_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a5_class ?>" title="<?php echo $a5_title ?>"><?php - $langF = $a5_escape?'langHtml':'lang'; - $tmp_text = str_replace('_',' ',$a5_raw); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a5_class,$a5_raw,$a5_escape,$a5_cut) ?> - </td><!-- Compiling row/row-end @ Wed, 29 Nov 2017 00:50:42 +0100 --></tr><!-- Compiling list/list-begin @ Wed, 29 Nov 2017 00:50:42 +0100 --><?php $a3_list='el';$a3_extract=true;$a3_key='list_key';$a3_value='list_value'; ?><?php - $a3_list_tmp_key = $a3_key; - $a3_list_tmp_value = $a3_value; - $a3_list_extract = $a3_extract; - unset($a3_key); - unset($a3_value); - if ( !isset($$a3_list) || !is_array($$a3_list) ) - $$a3_list = array(); - foreach( $$a3_list as $$a3_list_tmp_key => $$a3_list_tmp_value ) - { - if ( $a3_list_extract ) - { - if ( !is_array($$a3_list_tmp_value) ) - { - print_r($$a3_list_tmp_value); - die( 'not an array at key: '.$$a3_list_tmp_key ); - } - extract($$a3_list_tmp_value); - } -?><?php unset($a3_list,$a3_extract,$a3_key,$a3_value) ?><!-- Compiling row/row-begin @ Wed, 29 Nov 2017 00:50:42 +0100 --><?php $a4_class='data'; ?><?php - $column_idx = 0; -?> -<tr - class="data" -> -<?php unset($a4_class) ?> + <td> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(''))); ?></span> + + </td> + </tr> + <?php foreach($el as $list_key=>$list_value){ ?><?php extract($list_value) ?> + <tr class="data"> <td class="clickable"> <img class="" title="" src="./themes/default/images/icon/icon_language.png" /> - <!-- Compiling link/link-begin @ Wed, 29 Nov 2017 00:50:42 +0100 --><?php $a6_title='';$a6_type='open';$a6_class='';$a6_action='language';$a6_id=$id;$a6_name=$name;$a6_frame='_self';$a6_modal=false; ?><?php - $params = array(); - $a6_url=''; - $tmp_url = ''; - $a6_target = $view; - $tmp_href = 'javascript:void(0);'; - switch( $a6_type ) - { - case 'post': - $json = new JSON(); - $tmp_data = $json->encode( array('action'=>!empty($a6_action)?$a6_action:$this->actionName,'subaction'=>!empty($a6_subaction)?$a6_subaction:$this->subActionName,'id'=>!empty($a6_id)?$a6_id:$this->getRequestId()) - +array(REQ_PARAM_TOKEN=>token()) - +$params ); - $tmp_data = str_replace("\n",'',str_replace('"','"',$tmp_data)); - break; - case 'html'; - $tmp_href = $a6_url; - default: - $tmp_data = ''; - } -?><a data-url="<?php echo $a6_url ?>" target="<?php echo $a6_frame ?>"<?php if (isset($a6_name)) { ?> data-name="<?php echo $a6_name ?>" name="<?php echo $a6_name ?>"<?php }else{ ?> href="<?php echo $tmp_href ?>" <?php } ?> class="<?php echo $a6_class ?>" data-id="<?php echo @$a6_id ?>" data-type="<?php echo $a6_type ?>" data-action="<?php echo @$a6_action ?>" data-method="<?php echo @$a6_subaction ?>" data-data="<?php echo $tmp_data ?>" <?php if (isset($a6_accesskey)) echo ' accesskey="'.$a6_accesskey.'"' ?> title="<?php echo encodeHtml($a6_title) ?>"><?php unset($a6_title,$a6_type,$a6_class,$a6_action,$a6_id,$a6_name,$a6_frame,$a6_modal) ?><!-- Compiling text/text-begin @ Wed, 29 Nov 2017 00:50:42 +0100 --><?php $a7_class='text';$a7_var='name';$a7_maxlength='25';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php - $langF = $a7_escape?'langHtml':'lang'; - $tmp_text = isset($$a7_var)?$$a7_var:$langF('UNKNOWN'); - $tmp_text = Text::maxLength( $tmp_text,intval($a7_maxlength),'..',constant('STR_PAD_'.strtoupper($a7_cut)) ); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_var,$a7_maxlength,$a7_escape,$a7_cut) ?><!-- Compiling link/link-end @ Wed, 29 Nov 2017 00:50:42 +0100 --></a> + + <a target="_self" date-name="<?php echo $name ?>" name="<?php echo $name ?>" data-type="open" data-action="language" data-method="<?php echo OR_METHOD ?>" data-id="<?php echo $id ?>" href="javascript:void(0);"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(Text::maxLength( $name,25,'..',constant('STR_PAD_BOTH') )))); ?></span> + + </a> + </td> - <td><!-- Compiling text/text-begin @ Wed, 29 Nov 2017 00:50:42 +0100 --><?php $a6_class='text';$a6_var='isocode';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php - $langF = $a6_escape?'langHtml':'lang'; - $tmp_text = isset($$a6_var)?$$a6_var:$langF('UNKNOWN'); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_var,$a6_escape,$a6_cut) ?> + <td> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities($isocode))); ?></span> + </td> - <?php $if5=(!empty('default_url')); if($if5){?> - <td class="clickable"><!-- Compiling link/link-begin @ Wed, 29 Nov 2017 00:50:42 +0100 --><?php $a7_title='';$a7_type='post';$a7_class='';$a7_action='language';$a7_subaction='setdefault';$a7_id=$id;$a7_frame='_self';$a7_modal=false; ?><?php - $params = array(); - $a7_url=''; - $tmp_url = ''; - $a7_target = $view; - $tmp_href = 'javascript:void(0);'; - switch( $a7_type ) - { - case 'post': - $json = new JSON(); - $tmp_data = $json->encode( array('action'=>!empty($a7_action)?$a7_action:$this->actionName,'subaction'=>!empty($a7_subaction)?$a7_subaction:$this->subActionName,'id'=>!empty($a7_id)?$a7_id:$this->getRequestId()) - +array(REQ_PARAM_TOKEN=>token()) - +$params ); - $tmp_data = str_replace("\n",'',str_replace('"','"',$tmp_data)); - break; - case 'html'; - $tmp_href = $a7_url; - default: - $tmp_data = ''; - } -?><a data-url="<?php echo $a7_url ?>" target="<?php echo $a7_frame ?>"<?php if (isset($a7_name)) { ?> data-name="<?php echo $a7_name ?>" name="<?php echo $a7_name ?>"<?php }else{ ?> href="<?php echo $tmp_href ?>" <?php } ?> class="<?php echo $a7_class ?>" data-id="<?php echo @$a7_id ?>" data-type="<?php echo $a7_type ?>" data-action="<?php echo @$a7_action ?>" data-method="<?php echo @$a7_subaction ?>" data-data="<?php echo $tmp_data ?>" <?php if (isset($a7_accesskey)) echo ' accesskey="'.$a7_accesskey.'"' ?> title="<?php echo encodeHtml($a7_title) ?>"><?php unset($a7_title,$a7_type,$a7_class,$a7_action,$a7_subaction,$a7_id,$a7_frame,$a7_modal) ?><!-- Compiling text/text-begin @ Wed, 29 Nov 2017 00:50:42 +0100 --><?php $a8_class='text';$a8_text='GLOBAL_make_default';$a8_escape=true;$a8_cut='both'; ?><?php - $a8_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a8_class ?>" title="<?php echo $a8_title ?>"><?php - $langF = $a8_escape?'langHtml':'lang'; - $tmp_text = $langF($a8_text); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_text,$a8_escape,$a8_cut) ?><!-- Compiling link/link-end @ Wed, 29 Nov 2017 00:50:42 +0100 --></a> + <?php $if5=(!empty($default_url)); if($if5){?> + <td class="clickable"> + <a target="_self" data-type="post" data-action="language" data-method="setdefault" data-id="<?php echo $id ?>" data-data="{"action":"language","subaction":"setdefault","id":"<?php echo $id ?>","token":"<?php echo token() ?>","none":"0"}"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('GLOBAL_make_default')))); ?></span> + + </a> + </td> <?php } ?> <?php if(!$if5){?> - <td><!-- Compiling text/text-begin @ Wed, 29 Nov 2017 00:50:42 +0100 --><?php $a7_class='text';$a7_text='GLOBAL_is_default';$a7_escape=true;$a7_type='emphatic';$a7_cut='both'; ?><?php - $a7_title = ''; - $tmp_tag = 'em'; -?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php - $langF = $a7_escape?'langHtml':'lang'; - $tmp_text = $langF($a7_text); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_type,$a7_cut) ?> + <td> + <em class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('GLOBAL_is_default')))); ?></em> + </td> <?php } ?> - <?php $if5=(!empty('select_url')); if($if5){?> - <td class="clickable"><!-- Compiling link/link-begin @ Wed, 29 Nov 2017 00:50:42 +0100 --><?php $a7_title='';$a7_type='post';$a7_class='';$a7_action='start';$a7_subaction='language';$a7_id=$id;$a7_frame='_self';$a7_modal=false; ?><?php - $params = array(); - $a7_url=''; - $tmp_url = ''; - $a7_target = $view; - $tmp_href = 'javascript:void(0);'; - switch( $a7_type ) - { - case 'post': - $json = new JSON(); - $tmp_data = $json->encode( array('action'=>!empty($a7_action)?$a7_action:$this->actionName,'subaction'=>!empty($a7_subaction)?$a7_subaction:$this->subActionName,'id'=>!empty($a7_id)?$a7_id:$this->getRequestId()) - +array(REQ_PARAM_TOKEN=>token()) - +$params ); - $tmp_data = str_replace("\n",'',str_replace('"','"',$tmp_data)); - break; - case 'html'; - $tmp_href = $a7_url; - default: - $tmp_data = ''; - } -?><a data-url="<?php echo $a7_url ?>" target="<?php echo $a7_frame ?>"<?php if (isset($a7_name)) { ?> data-name="<?php echo $a7_name ?>" name="<?php echo $a7_name ?>"<?php }else{ ?> href="<?php echo $tmp_href ?>" <?php } ?> class="<?php echo $a7_class ?>" data-id="<?php echo @$a7_id ?>" data-type="<?php echo $a7_type ?>" data-action="<?php echo @$a7_action ?>" data-method="<?php echo @$a7_subaction ?>" data-data="<?php echo $tmp_data ?>" <?php if (isset($a7_accesskey)) echo ' accesskey="'.$a7_accesskey.'"' ?> title="<?php echo encodeHtml($a7_title) ?>"><?php unset($a7_title,$a7_type,$a7_class,$a7_action,$a7_subaction,$a7_id,$a7_frame,$a7_modal) ?><!-- Compiling text/text-begin @ Wed, 29 Nov 2017 00:50:42 +0100 --><?php $a8_class='text';$a8_text='GLOBAL_select';$a8_escape=true;$a8_cut='both'; ?><?php - $a8_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a8_class ?>" title="<?php echo $a8_title ?>"><?php - $langF = $a8_escape?'langHtml':'lang'; - $tmp_text = $langF($a8_text); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_text,$a8_escape,$a8_cut) ?><!-- Compiling link/link-end @ Wed, 29 Nov 2017 00:50:42 +0100 --></a> + <?php $if5=(!empty($select_url)); if($if5){?> + <td class="clickable"> + <a target="_self" data-type="post" data-action="start" data-method="language" data-id="<?php echo $id ?>" data-data="{"action":"start","subaction":"language","id":"<?php echo $id ?>","token":"<?php echo token() ?>","none":"0"}"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('GLOBAL_select')))); ?></span> + + </a> + </td> <?php } ?> <?php if(!$if5){?> - <td><!-- Compiling text/text-begin @ Wed, 29 Nov 2017 00:50:42 +0100 --><?php $a7_class='text';$a7_text='GLOBAL_selected';$a7_escape=true;$a7_type='emphatic';$a7_cut='both'; ?><?php - $a7_title = ''; - $tmp_tag = 'em'; -?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php - $langF = $a7_escape?'langHtml':'lang'; - $tmp_text = $langF($a7_text); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_type,$a7_cut) ?> + <td> + <em class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('GLOBAL_selected')))); ?></em> + </td> - <?php } ?><!-- Compiling row/row-end @ Wed, 29 Nov 2017 00:50:42 +0100 --></tr> + <?php } ?> + </tr> <?php unset($select_url) ?> <?php unset($default_url) ?> - <!-- Compiling list/list-end @ Wed, 29 Nov 2017 00:50:42 +0100 --><?php } ?><!-- Compiling row/row-begin @ Wed, 29 Nov 2017 00:50:42 +0100 --><?php $a3_class='data'; ?><?php - $column_idx = 0; -?> -<tr - class="data" -> -<?php unset($a3_class) ?> - <td class="clickable" colspan="4"><!-- Compiling link/link-begin @ Wed, 29 Nov 2017 00:50:42 +0100 --><?php $a5_title='';$a5_type='view';$a5_class='';$a5_subaction='add';$a5_frame='_self';$a5_modal=false; ?><?php - $params = array(); - $a5_url=''; - $tmp_url = ''; - $a5_target = $view; - $tmp_href = 'javascript:void(0);'; - switch( $a5_type ) - { - case 'post': - $json = new JSON(); - $tmp_data = $json->encode( array('action'=>!empty($a5_action)?$a5_action:$this->actionName,'subaction'=>!empty($a5_subaction)?$a5_subaction:$this->subActionName,'id'=>!empty($a5_id)?$a5_id:$this->getRequestId()) - +array(REQ_PARAM_TOKEN=>token()) - +$params ); - $tmp_data = str_replace("\n",'',str_replace('"','"',$tmp_data)); - break; - case 'html'; - $tmp_href = $a5_url; - default: - $tmp_data = ''; - } -?><a data-url="<?php echo $a5_url ?>" target="<?php echo $a5_frame ?>"<?php if (isset($a5_name)) { ?> data-name="<?php echo $a5_name ?>" name="<?php echo $a5_name ?>"<?php }else{ ?> href="<?php echo $tmp_href ?>" <?php } ?> class="<?php echo $a5_class ?>" data-id="<?php echo @$a5_id ?>" data-type="<?php echo $a5_type ?>" data-action="<?php echo @$a5_action ?>" data-method="<?php echo @$a5_subaction ?>" data-data="<?php echo $tmp_data ?>" <?php if (isset($a5_accesskey)) echo ' accesskey="'.$a5_accesskey.'"' ?> title="<?php echo encodeHtml($a5_title) ?>"><?php unset($a5_title,$a5_type,$a5_class,$a5_subaction,$a5_frame,$a5_modal) ?> + + <?php } ?> + <tr class="data"> + <td class="clickable" colspan="4"> + <a target="_self" data-type="view" data-action="<?php echo OR_ACTION ?>" data-method="add" data-id="<?php echo OR_ID ?>" href="javascript:void(0);"> <img class="" title="" src="./themes/default/images/icon/add.png" /> - <!-- Compiling text/text-begin @ Wed, 29 Nov 2017 00:50:42 +0100 --><?php $a6_class='text';$a6_text='new';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php - $langF = $a6_escape?'langHtml':'lang'; - $tmp_text = $langF($a6_text); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_text,$a6_escape,$a6_cut) ?><!-- Compiling link/link-end @ Wed, 29 Nov 2017 00:50:42 +0100 --></a> - </td><!-- Compiling row/row-end @ Wed, 29 Nov 2017 00:50:42 +0100 --></tr><!-- Compiling table/table-end @ Wed, 29 Nov 2017 00:50:42 +0100 --><?php - $column_idx = $last_column_idx; -?> -</table>- \ No newline at end of file + + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('new')))); ?></span> + + </a> + + </td> + </tr> + </table> + + \ No newline at end of file diff --git a/themes/default/templates/login/license.tpl.out.php b/themes/default/templates/login/license.tpl.out.php @@ -1,11 +1,7 @@ -<!-- Compiling output/output-begin --><!-- Compiling newline/newline-begin --><br/> - <table ><!-- Compiling row/row-begin --><?php $a3_class='headline'; ?><?php - $column_idx = 0; -?> -<tr - class="headline" -> -<?php unset($a3_class) ?> + + <!-- Compiling newline/newline-begin --><br/> + <table width="100%"> + <tr class="headline"> <td> <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'name'.'')))); ?></span> @@ -13,57 +9,22 @@ <td> <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'license'.'')))); ?></span> - </td><!-- Compiling row/row-end --></tr><!-- Compiling list/list-begin --><?php $a3_list='software';$a3_extract=true;$a3_key='list_key';$a3_value='list_value'; ?><?php - $a3_list_tmp_key = $a3_key; - $a3_list_tmp_value = $a3_value; - $a3_list_extract = $a3_extract; - unset($a3_key); - unset($a3_value); - if ( !isset($$a3_list) || !is_array($$a3_list) ) - $$a3_list = array(); - foreach( $$a3_list as $$a3_list_tmp_key => $$a3_list_tmp_value ) - { - if ( $a3_list_extract ) - { - if ( !is_array($$a3_list_tmp_value) ) - { - print_r($$a3_list_tmp_value); - die( 'not an array at key: '.$$a3_list_tmp_key ); - } - extract($$a3_list_tmp_value); - } -?><?php unset($a3_list,$a3_extract,$a3_key,$a3_value) ?><!-- Compiling row/row-begin --><?php $a4_class='data'; ?><?php - $column_idx = 0; -?> -<tr - class="data" -> -<?php unset($a4_class) ?> - <td class="clickable"><!-- Compiling link/link-begin --><?php $a6_title='';$a6_type='external';$a6_url=$url;$a6_class='';$a6_frame='_self';$a6_modal=false; ?><?php - $params = array(); - $tmp_url = ''; - $a6_target = $view; - $tmp_href = 'javascript:void(0);'; - switch( $a6_type ) - { - case 'post': - $json = new JSON(); - $tmp_data = $json->encode( array('action'=>!empty($a6_action)?$a6_action:$this->actionName,'subaction'=>!empty($a6_subaction)?$a6_subaction:$this->subActionName,'id'=>!empty($a6_id)?$a6_id:$this->getRequestId()) - +array(REQ_PARAM_TOKEN=>token()) - +$params ); - $tmp_data = str_replace("\n",'',str_replace('"','"',$tmp_data)); - break; - case 'html'; - $tmp_href = $a6_url; - default: - $tmp_data = ''; - } -?><a data-url="<?php echo $a6_url ?>" target="<?php echo $a6_frame ?>"<?php if (isset($a6_name)) { ?> data-name="<?php echo $a6_name ?>" name="<?php echo $a6_name ?>"<?php }else{ ?> href="<?php echo $tmp_href ?>" <?php } ?> class="<?php echo $a6_class ?>" data-id="<?php echo @$a6_id ?>" data-type="<?php echo $a6_type ?>" data-action="<?php echo @$a6_action ?>" data-method="<?php echo @$a6_subaction ?>" data-data="<?php echo $tmp_data ?>" <?php if (isset($a6_accesskey)) echo ' accesskey="'.$a6_accesskey.'"' ?> title="<?php echo encodeHtml($a6_title) ?>"><?php unset($a6_title,$a6_type,$a6_url,$a6_class,$a6_frame,$a6_modal) ?> + </td> + </tr> + <?php foreach($software as $list_key=>$list_value){ ?><?php extract($list_value) ?> + <tr class="data"> + <td class="clickable"> + <a target="_self" data-url="<?php echo $url ?>" data-type="external" data-action="<?php echo OR_ACTION ?>" data-method="<?php echo OR_METHOD ?>" data-id="<?php echo OR_ID ?>" href="javascript:void(0);"> <span class="text"><?php echo nl2br(encodeHtml(htmlentities($name))); ?></span> - <!-- Compiling link/link-end --></a> + + </a> + </td> <td> <span class="text"><?php echo nl2br(encodeHtml(htmlentities($license))); ?></span> - </td><!-- Compiling row/row-end --></tr><!-- Compiling list/list-end --><?php } ?> - </table>- \ No newline at end of file + </td> + </tr> + <?php } ?> + </table> + + \ No newline at end of file diff --git a/themes/default/templates/login/login.tpl.out.php b/themes/default/templates/login/login.tpl.out.php @@ -1,107 +1,76 @@ -<!-- Compiling output/output-begin --><!-- Compiling header/header-begin --><?php $a2_name='';$a2_views='password,register,license';$a2_back=false; ?><?php if(!empty($a2_views)) { ?> - <div class="headermenu"> - <?php foreach( explode(',',$a2_views) as $a2_tmp_view ) { ?> - <div class="toolbar-icon clickable"> - <a href="javascript:void(0);" data-type="dialog" data-name="<?php echo lang('MENU_'.$a2_tmp_view) ?>" data-method="<?php echo $a2_tmp_view ?>"> - <img src="<?php echo $image_dir ?>icon/<?php echo $a2_tmp_view ?>.png" title="<?php echo lang('MENU_'.$a2_tmp_view.'_DESC') ?>" /> <?php echo lang('MENU_'.$a2_tmp_view) ?> - </a> - </div> - <?php } ?> - </div> -<?php } ?> -<?php unset($a2_name,$a2_views,$a2_back) ?> - <form name="" - target="_self" - action="<?php echo OR_ACTION ?>" - data-method="<?php echo OR_METHOD ?>" - data-action="<?php echo OR_ACTION ?>" - data-id="<?php echo OR_ID ?>" - method="<?php echo OR_METHOD ?>" - enctype="application/x-www-form-urlencoded" - class="<?php echo OR_ACTION ?>" - data-async="" - data-autosave="" - onSubmit="formSubmit( $(this) ); return false;"><input type="submit" class="invisible" /> - -<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 OR_ACTION ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo OR_METHOD ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo OR_ID ?>" /> -<?php - if ( $conf['interface']['url_sessionid'] ) - echo '<input type="hidden" name="'.session_name().'" value="'.session_id().'" />'."\n"; -?> + + + + <form name="" target="_self" action="<?php echo OR_ACTION ?>" data-method="<?php echo OR_METHOD ?>" data-action="<?php echo OR_ACTION ?>" data-id="<?php echo OR_ID ?>" method="<?php echo OR_METHOD ?>" enctype="application/x-www-form-urlencoded" class="<?php echo OR_ACTION ?>" data-async="" data-autosave="" onSubmit="formSubmit( $(this) ); return false;"><input type="submit" class="invisible" /><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 OR_ACTION ?>" /><input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo OR_METHOD ?>" /><input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo OR_ID ?>" /> <?php $if3=(!empty(@$conf['login']['logo']['file'])); if($if3){?> - <?php $if4=(!empty(@$conf['login']['logo']['url'])); if($if4){?><!-- Compiling link/link-begin --><?php $a5_title='';$a5_type='';$a5_target='_top';$a5_url=@$conf['login']['logo']['url'];$a5_class='';$a5_frame='_self';$a5_modal=false; ?><?php - $params = array(); - $tmp_url = ''; - $params[REQ_PARAM_TARGET] = $a5_target; - $tmp_href = 'javascript:void(0);'; - switch( $a5_type ) - { - case 'post': - $json = new JSON(); - $tmp_data = $json->encode( array('action'=>!empty($a5_action)?$a5_action:$this->actionName,'subaction'=>!empty($a5_subaction)?$a5_subaction:$this->subActionName,'id'=>!empty($a5_id)?$a5_id:$this->getRequestId()) - +array(REQ_PARAM_TOKEN=>token()) - +$params ); - $tmp_data = str_replace("\n",'',str_replace('"','"',$tmp_data)); - break; - case 'html'; - $tmp_href = $a5_url; - default: - $tmp_data = ''; - } -?><a data-url="<?php echo $a5_url ?>" target="<?php echo $a5_frame ?>"<?php if (isset($a5_name)) { ?> data-name="<?php echo $a5_name ?>" name="<?php echo $a5_name ?>"<?php }else{ ?> href="<?php echo $tmp_href ?>" <?php } ?> class="<?php echo $a5_class ?>" data-id="<?php echo @$a5_id ?>" data-type="<?php echo $a5_type ?>" data-action="<?php echo @$a5_action ?>" data-method="<?php echo @$a5_subaction ?>" data-data="<?php echo $tmp_data ?>" <?php if (isset($a5_accesskey)) echo ' accesskey="'.$a5_accesskey.'"' ?> title="<?php echo encodeHtml($a5_title) ?>"><?php unset($a5_title,$a5_type,$a5_target,$a5_url,$a5_class,$a5_frame,$a5_modal) ?> + <?php $if4=(!empty(@$conf['login']['logo']['url'])); if($if4){?> + <a target="_self" data-url="<?php echo @$conf['login']['logo']['url'] ?>" data-action="<?php echo OR_ACTION ?>" data-method="<?php echo OR_METHOD ?>" data-id="<?php echo OR_ID ?>" href="javascript:void(0);"> <img class="" title="" src="<?php echo @$conf['login']['logo']['file'] ?>" /> - <!-- Compiling link/link-end --></a> + + </a> + <?php } ?> <?php $if4=(empty(@$conf['login']['logo']['url'])); if($if4){?> <img class="" title="" src="<?php echo @$conf['login']['logo']['file'] ?>" /> <?php } ?> <?php } ?> - <?php $if3=(empty(@$conf['login']['motd'])); if($if3){?><!-- Compiling part/part-begin --><?php $a4_class='message info'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?> + <?php $if3=(empty(@$conf['login']['motd'])); if($if3){?> + <div class="message info"> <span class="text"><?php echo nl2br('config:login/motd'); ?></span> - <!-- Compiling part/part-end --></div> + + </div> <?php } ?> - <?php $if3=(@$conf['login']['nologin']); if($if3){?><!-- Compiling part/part-begin --><?php $a4_class='message error'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?> + <?php $if3=(@$conf['login']['nologin']); if($if3){?> + <div class="message error"> <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'LOGIN_NOLOGIN_DESC'.'')))); ?></span> - <!-- Compiling part/part-end --></div> + + </div> <?php } ?> - <?php $if3=(@$conf['security']['readonly']); if($if3){?><!-- Compiling part/part-begin --><?php $a4_class='message warn'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?> + <?php $if3=(@$conf['security']['readonly']); if($if3){?> + <div class="message warn"> <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'GLOBAL_READONLY_DESC'.'')))); ?></span> - <!-- Compiling part/part-end --></div> + + </div> <?php } ?> - <?php $if3=(!@$conf['login']['nologin']); if($if3){?><!-- Compiling part/part-begin --><?php $a4_class='line'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling part/part-begin --><?php $a5_class='label'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><!-- Compiling label/label-begin --><?php $a6_for='login_name'; ?><label<?php if (isset($a6_for)) { ?> for="<?php echo REQUEST_ID ?>_<?php echo $a6_for ?><?php if (!empty($a6_value)) echo '_'.$a6_value ?>" <?php if(hasLang(@$a6_key.'_desc')) { ?> title="<?php echo lang(@$a6_key.'_desc')?>"<?php } ?> class="label"<?php } ?>> -<?php if (isset($a6_key)) { echo lang($a6_key); ?><?php if (isset($a6_text)) { echo $a6_text; } ?><?php } ?><?php unset($a6_for) ?> + <?php $if3=(!@$conf['login']['nologin']); if($if3){?> + <div class="line"> + <div class="label"> + <label for="<?php echo REQUEST_ID ?>_login_name" class="label"> <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'USER_USERNAME'.'')))); ?></span> - <!-- Compiling label/label-end --></label><!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?> - <?php $if6=!(!empty($force_username)); if($if6){?><!-- Compiling input/input-begin --><?php $a7_class='name';$a7_default='';$a7_type='text';$a7_name='login_name';$a7_value='';$a7_size='20';$a7_maxlength='256';$a7_onchange='';$a7_readonly=false;$a7_hint=lang('USER_USERNAME');$a7_icon=''; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a7_readonly=true; - if ($a7_readonly && empty($$a7_name)) $$a7_name = '- '.lang('EMPTY').' -'; - if(!isset($a7_default)) $a7_default=''; - $tmp_value = Text::encodeHtml(isset($$a7_name)?$$a7_name:$a7_default); -?><?php if (!$a7_readonly || $a7_type=='hidden') { -?><div class="<?php echo $a7_type!='hidden'?'inputholder':'inputhidden' ?>"><input<?php if ($a7_readonly) echo ' disabled="true"' ?><?php if ($a7_hint) echo ' data-hint="'.$a7_hint.'"'; ?> id="<?php echo REQUEST_ID ?>_<?php echo $a7_name ?><?php if ($a7_readonly) echo '_disabled' ?>" name="<?php echo $a7_name ?><?php if ($a7_readonly) echo '_disabled' ?>" type="<?php echo $a7_type ?>" maxlength="<?php echo $a7_maxlength ?>" class="<?php echo str_replace(',',' ',$a7_class) ?>" value="<?php echo $tmp_value ?>" /><?php if ($a7_icon) echo '<img src="'.$image_dir.'icon_'.$a7_icon.IMG_ICON_EXT.'" width="16" height="16" />'; ?></div><?php -if ($a7_readonly) { -?><input type="hidden" id="<?php echo REQUEST_ID ?>_<?php echo $a7_name ?>" name="<?php echo $a7_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 $a7_class ?>"><?php echo $tmp_value ?></span></a><?php } ?><?php unset($a7_class,$a7_default,$a7_type,$a7_name,$a7_value,$a7_size,$a7_maxlength,$a7_onchange,$a7_readonly,$a7_hint,$a7_icon) ?> + + </label> + </div> + <div class="input"> + <?php $if6=!(!empty($$force_username)); if($if6){?> + <div class="inputholder"><input<?php if ('') echo ' disabled="true"' ?> data-hint="<?php echo lang('USER_USERNAME') ?>" id="<?php echo REQUEST_ID ?>_login_name" name="login_name<?php if ('') echo '_disabled' ?>" type="text" maxlength="256" class="name" value="<?php echo Text::encodeHtml($login_name) ?>" /><?php if ('') { ?><input type="hidden" name="login_name" value="<?php $login_name ?>"/><?php } ?></div> + <?php } ?> - <?php if(!$if6){?><!-- Compiling input/input-begin --><?php $a7_class='text';$a7_default='';$a7_type='hidden';$a7_name='login_name';$a7_value=$force_username;$a7_size='';$a7_maxlength='256';$a7_onchange='';$a7_readonly=false;$a7_hint='';$a7_icon=''; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a7_readonly=true; - if ($a7_readonly && empty($$a7_name)) $$a7_name = '- '.lang('EMPTY').' -'; - if(!isset($a7_default)) $a7_default=''; - $tmp_value = Text::encodeHtml(isset($$a7_name)?$$a7_name:$a7_default); -?><?php if (!$a7_readonly || $a7_type=='hidden') { -?><div class="<?php echo $a7_type!='hidden'?'inputholder':'inputhidden' ?>"><input<?php if ($a7_readonly) echo ' disabled="true"' ?><?php if ($a7_hint) echo ' data-hint="'.$a7_hint.'"'; ?> id="<?php echo REQUEST_ID ?>_<?php echo $a7_name ?><?php if ($a7_readonly) echo '_disabled' ?>" name="<?php echo $a7_name ?><?php if ($a7_readonly) echo '_disabled' ?>" type="<?php echo $a7_type ?>" maxlength="<?php echo $a7_maxlength ?>" class="<?php echo str_replace(',',' ',$a7_class) ?>" value="<?php echo $tmp_value ?>" /><?php if ($a7_icon) echo '<img src="'.$image_dir.'icon_'.$a7_icon.IMG_ICON_EXT.'" width="16" height="16" />'; ?></div><?php -if ($a7_readonly) { -?><input type="hidden" id="<?php echo REQUEST_ID ?>_<?php echo $a7_name ?>" name="<?php echo $a7_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 $a7_class ?>"><?php echo $tmp_value ?></span></a><?php } ?><?php unset($a7_class,$a7_default,$a7_type,$a7_name,$a7_value,$a7_size,$a7_maxlength,$a7_onchange,$a7_readonly,$a7_hint,$a7_icon) ?> + <?php if(!$if6){?> + <div class="inputholder"><input<?php if ('') echo ' disabled="true"' ?> id="<?php echo REQUEST_ID ?>_login_name" name="login_name<?php if ('') echo '_disabled' ?>" type="hidden" maxlength="256" class="text" value="<?php echo Text::encodeHtml($login_name) ?>" /><?php if ('') { ?><input type="hidden" name="login_name" value="<?php $login_name ?>"/><?php } ?></div> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities($force_username))); ?></span> - <?php } ?><!-- Compiling part/part-end --></div><!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a4_class='line'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling part/part-begin --><?php $a5_class='label'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><!-- Compiling label/label-begin --><?php $a6_for='login_password'; ?><label<?php if (isset($a6_for)) { ?> for="<?php echo REQUEST_ID ?>_<?php echo $a6_for ?><?php if (!empty($a6_value)) echo '_'.$a6_value ?>" <?php if(hasLang(@$a6_key.'_desc')) { ?> title="<?php echo lang(@$a6_key.'_desc')?>"<?php } ?> class="label"<?php } ?>> -<?php if (isset($a6_key)) { echo lang($a6_key); ?><?php if (isset($a6_text)) { echo $a6_text; } ?><?php } ?><?php unset($a6_for) ?> + <?php } ?> + </div> + </div> + <div class="line"> + <div class="label"> + <label for="<?php echo REQUEST_ID ?>_login_password" class="label"> <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'USER_PASSWORD'.'')))); ?></span> - <!-- Compiling label/label-end --></label><!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><!-- Compiling password/password-begin --><?php $a6_name='login_password';$a6_default='';$a6_class='name';$a6_size='20';$a6_maxlength='256'; ?><div class="inputholder"><input type="password" name="<?php echo $a6_name ?>" id="<?php echo REQUEST_ID ?>_<?php echo $a6_name ?>" size="<?php echo $a6_size ?>" maxlength="<?php echo $a6_maxlength ?>" class="<?php echo $a6_class ?>" value="<?php echo isset($$a6_name)?$$a6_name:$a6_default ?>" /></div><?php unset($a6_name,$a6_default,$a6_class,$a6_size,$a6_maxlength) ?><!-- Compiling part/part-end --></div><!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a4_class='line'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling part/part-begin --><?php $a5_class='label'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?> + + </label> + </div> + <div class="input"> + <div class="inputholder"><input type="password" name="login_password" id="<?php echo REQUEST_ID ?>_login_password" size="20" maxlength="256" class="name" value="" /></div> + + </div> + </div> + <div class="line"> + <div class="label"> + </div> + <div class="input"> <?php { $tmpname = 'remember';$default = false;$readonly = ''; if ( isset($$tmpname) ) $checked = $$tmpname; @@ -115,37 +84,64 @@ if ($a7_readonly) { ?><input type="hidden" name="<?php echo $tmpname ?>" value="1" /><?php } } ?> - <!-- Compiling label/label-begin --><?php $a6_for='remember'; ?><label<?php if (isset($a6_for)) { ?> for="<?php echo REQUEST_ID ?>_<?php echo $a6_for ?><?php if (!empty($a6_value)) echo '_'.$a6_value ?>" <?php if(hasLang(@$a6_key.'_desc')) { ?> title="<?php echo lang(@$a6_key.'_desc')?>"<?php } ?> class="label"<?php } ?>> -<?php if (isset($a6_key)) { echo lang($a6_key); ?><?php if (isset($a6_text)) { echo $a6_text; } ?><?php } ?><?php unset($a6_for) ?> + + <label for="<?php echo REQUEST_ID ?>_remember" class="label"> <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'REMEMBER_ME'.'')))); ?></span> - <!-- Compiling label/label-end --></label><!-- Compiling part/part-end --></div><!-- Compiling part/part-end --></div> + + </label> + </div> + </div> <?php } ?> - <fieldset class="<?php echo false?" open":"" ?><?php echo false?" show":"" ?>"><legend><div class="arrow-right closed" /><div class="arrow-down open" /><?php echo lang('USER_NEW_PASSWORD') ?></legend><div><!-- Compiling part/part-begin --><?php $a4_class='line'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling part/part-begin --><?php $a5_class='label'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><!-- Compiling label/label-begin --><?php $a6_for='password1'; ?><label<?php if (isset($a6_for)) { ?> for="<?php echo REQUEST_ID ?>_<?php echo $a6_for ?><?php if (!empty($a6_value)) echo '_'.$a6_value ?>" <?php if(hasLang(@$a6_key.'_desc')) { ?> title="<?php echo lang(@$a6_key.'_desc')?>"<?php } ?> class="label"<?php } ?>> -<?php if (isset($a6_key)) { echo lang($a6_key); ?><?php if (isset($a6_text)) { echo $a6_text; } ?><?php } ?><?php unset($a6_for) ?> + <fieldset class="<?php echo false?" open":"" ?><?php echo false?" show":"" ?>"><legend><div class="arrow-right closed" /><div class="arrow-down open" /><?php echo lang('USER_NEW_PASSWORD') ?></legend><div> + <div class="line"> + <div class="label"> + <label for="<?php echo REQUEST_ID ?>_password1" class="label"> <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'USER_NEW_PASSWORD'.'')))); ?></span> - <!-- Compiling label/label-end --></label><!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><!-- Compiling password/password-begin --><?php $a6_name='password1';$a6_default='';$a6_class='';$a6_size='25';$a6_maxlength='256'; ?><div class="inputholder"><input type="password" name="<?php echo $a6_name ?>" id="<?php echo REQUEST_ID ?>_<?php echo $a6_name ?>" size="<?php echo $a6_size ?>" maxlength="<?php echo $a6_maxlength ?>" class="<?php echo $a6_class ?>" value="<?php echo isset($$a6_name)?$$a6_name:$a6_default ?>" /></div><?php unset($a6_name,$a6_default,$a6_class,$a6_size,$a6_maxlength) ?><!-- Compiling part/part-end --></div><!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a4_class='line'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling part/part-begin --><?php $a5_class='label'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><!-- Compiling label/label-begin --><?php $a6_for='password2'; ?><label<?php if (isset($a6_for)) { ?> for="<?php echo REQUEST_ID ?>_<?php echo $a6_for ?><?php if (!empty($a6_value)) echo '_'.$a6_value ?>" <?php if(hasLang(@$a6_key.'_desc')) { ?> title="<?php echo lang(@$a6_key.'_desc')?>"<?php } ?> class="label"<?php } ?>> -<?php if (isset($a6_key)) { echo lang($a6_key); ?><?php if (isset($a6_text)) { echo $a6_text; } ?><?php } ?><?php unset($a6_for) ?> + + </label> + </div> + <div class="input"> + <div class="inputholder"><input type="password" name="password1" id="<?php echo REQUEST_ID ?>_password1" size="25" maxlength="256" class="" value="" /></div> + + </div> + </div> + <div class="line"> + <div class="label"> + <label for="<?php echo REQUEST_ID ?>_password2" class="label"> <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'USER_NEW_PASSWORD_REPEAT'.'')))); ?></span> - <!-- Compiling label/label-end --></label><!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><!-- Compiling password/password-begin --><?php $a6_name='password2';$a6_default='';$a6_class='';$a6_size='25';$a6_maxlength='256'; ?><div class="inputholder"><input type="password" name="<?php echo $a6_name ?>" id="<?php echo REQUEST_ID ?>_<?php echo $a6_name ?>" size="<?php echo $a6_size ?>" maxlength="<?php echo $a6_maxlength ?>" class="<?php echo $a6_class ?>" value="<?php echo isset($$a6_name)?$$a6_name:$a6_default ?>" /></div><?php unset($a6_name,$a6_default,$a6_class,$a6_size,$a6_maxlength) ?><!-- Compiling part/part-end --></div><!-- Compiling part/part-end --></div> + + </label> + </div> + <div class="input"> + <div class="inputholder"><input type="password" name="password2" id="<?php echo REQUEST_ID ?>_password2" size="25" maxlength="256" class="" value="" /></div> + + </div> + </div> </div></fieldset> - <fieldset class="<?php echo false?" open":"" ?><?php echo false?" show":"" ?>"><legend><div class="arrow-right closed" /><div class="arrow-down open" /><?php echo lang('USER_TOKEN') ?></legend><div><!-- Compiling part/part-begin --><?php $a4_class='line'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling part/part-begin --><?php $a5_class='label'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><!-- Compiling label/label-begin --><?php $a6_for='user_token'; ?><label<?php if (isset($a6_for)) { ?> for="<?php echo REQUEST_ID ?>_<?php echo $a6_for ?><?php if (!empty($a6_value)) echo '_'.$a6_value ?>" <?php if(hasLang(@$a6_key.'_desc')) { ?> title="<?php echo lang(@$a6_key.'_desc')?>"<?php } ?> class="label"<?php } ?>> -<?php if (isset($a6_key)) { echo lang($a6_key); ?><?php if (isset($a6_text)) { echo $a6_text; } ?><?php } ?><?php unset($a6_for) ?> + <fieldset class="<?php echo false?" open":"" ?><?php echo false?" show":"" ?>"><legend><div class="arrow-right closed" /><div class="arrow-down open" /><?php echo lang('USER_TOKEN') ?></legend><div> + <div class="line"> + <div class="label"> + <label for="<?php echo REQUEST_ID ?>_user_token" class="label"> <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'USER_TOKEN'.'')))); ?></span> - <!-- Compiling label/label-end --></label><!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><!-- Compiling input/input-begin --><?php $a6_class='text';$a6_default='';$a6_type='text';$a6_name='user_token';$a6_size='25';$a6_maxlength='256';$a6_onchange='';$a6_readonly=false;$a6_hint='';$a6_icon=''; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a6_readonly=true; - if ($a6_readonly && empty($$a6_name)) $$a6_name = '- '.lang('EMPTY').' -'; - if(!isset($a6_default)) $a6_default=''; - $tmp_value = Text::encodeHtml(isset($$a6_name)?$$a6_name:$a6_default); -?><?php if (!$a6_readonly || $a6_type=='hidden') { -?><div class="<?php echo $a6_type!='hidden'?'inputholder':'inputhidden' ?>"><input<?php if ($a6_readonly) echo ' disabled="true"' ?><?php if ($a6_hint) echo ' data-hint="'.$a6_hint.'"'; ?> id="<?php echo REQUEST_ID ?>_<?php echo $a6_name ?><?php if ($a6_readonly) echo '_disabled' ?>" name="<?php echo $a6_name ?><?php if ($a6_readonly) echo '_disabled' ?>" type="<?php echo $a6_type ?>" maxlength="<?php echo $a6_maxlength ?>" class="<?php echo str_replace(',',' ',$a6_class) ?>" value="<?php echo $tmp_value ?>" /><?php if ($a6_icon) echo '<img src="'.$image_dir.'icon_'.$a6_icon.IMG_ICON_EXT.'" width="16" height="16" />'; ?></div><?php -if ($a6_readonly) { -?><input type="hidden" id="<?php echo REQUEST_ID ?>_<?php echo $a6_name ?>" name="<?php echo $a6_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 $a6_class ?>"><?php echo $tmp_value ?></span></a><?php } ?><?php unset($a6_class,$a6_default,$a6_type,$a6_name,$a6_size,$a6_maxlength,$a6_onchange,$a6_readonly,$a6_hint,$a6_icon) ?><!-- Compiling part/part-end --></div><!-- Compiling part/part-end --></div> + + </label> + </div> + <div class="input"> + <div class="inputholder"><input<?php if ('') echo ' disabled="true"' ?> id="<?php echo REQUEST_ID ?>_user_token" name="user_token<?php if ('') echo '_disabled' ?>" type="text" maxlength="256" class="text" value="<?php echo Text::encodeHtml('') ?>" /><?php if ('') { ?><input type="hidden" name="user_token" value="<?php '' ?>"/><?php } ?></div> + + </div> + </div> </div></fieldset> <?php $if3=(intval('1')<intval(@count($dbids))); if($if3){?> - <fieldset class="<?php echo true?" open":"" ?><?php echo 1?" show":"" ?>"><legend><img src="/themes/default/images/icon/method/database.svg" /><div class="arrow-right closed" /><div class="arrow-down open" /><?php echo lang('DATABASE') ?></legend><div><!-- Compiling part/part-begin --><?php $a5_class='line'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><!-- Compiling part/part-begin --><?php $a6_class='label'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><!-- Compiling label/label-begin --><?php $a7_for='dbid'; ?><label<?php if (isset($a7_for)) { ?> for="<?php echo REQUEST_ID ?>_<?php echo $a7_for ?><?php if (!empty($a7_value)) echo '_'.$a7_value ?>" <?php if(hasLang(@$a7_key.'_desc')) { ?> title="<?php echo lang(@$a7_key.'_desc')?>"<?php } ?> class="label"<?php } ?>> -<?php if (isset($a7_key)) { echo lang($a7_key); ?><?php if (isset($a7_text)) { echo $a7_text; } ?><?php } ?><?php unset($a7_for) ?> + <fieldset class="<?php echo true?" open":"" ?><?php echo '1'?" show":"" ?>"><legend><img src="/themes/default/images/icon/method/database.svg" /><div class="arrow-right closed" /><div class="arrow-down open" /><?php echo lang('DATABASE') ?></legend><div> + <div class="line"> + <div class="label"> + <label for="<?php echo REQUEST_ID ?>_dbid" class="label"> <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'DATABASE'.'')))); ?></span> - <!-- Compiling label/label-end --></label><!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a6_class='input'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><!-- Compiling selectbox/selectbox-begin --><?php $a7_list='dbids';$a7_name='dbid';$a7_default=$actdbid;$a7_onchange='';$a7_title='';$a7_class='';$a7_addempty=false;$a7_multiple=false;$a7_size='1';$a7_lang=false; ?><?php + + </label> + </div> + <div class="input"><!-- Compiling selectbox/selectbox-begin --><?php $a7_list='dbids';$a7_name='dbid';$a7_default=$actdbid;$a7_onchange='';$a7_title='';$a7_class='';$a7_addempty=false;$a7_multiple=false;$a7_size='1';$a7_lang=false; ?><?php $a7_readonly=false; $a7_tmp_list = $$a7_list; if ($this->isEditable() && !$this->isEditMode()) @@ -198,46 +194,23 @@ echo ' size="'.intval($a7_size).'"'; if (count($$a7_list)==0) echo '<input type="hidden" name="'.$a7_name.'" value="" />'; if (count($$a7_list)==1) echo '<input type="hidden" name="'.$a7_name.'" value="'.$box_key.'" />'; } -?><?php unset($a7_list,$a7_name,$a7_default,$a7_onchange,$a7_title,$a7_class,$a7_addempty,$a7_multiple,$a7_size,$a7_lang) ?><!-- Compiling part/part-end --></div><!-- Compiling part/part-end --></div> +?><?php unset($a7_list,$a7_name,$a7_default,$a7_onchange,$a7_title,$a7_class,$a7_addempty,$a7_multiple,$a7_size,$a7_lang) ?> + </div> + </div> </div></fieldset> <?php } ?> - <?php if(!$if3){?><!-- Compiling hidden/hidden-begin --><?php $a4_name='dbid';$a4_default=$actdbid; ?><?php -if (isset($$a4_name)) - $a4_tmp_value = $$a4_name; -elseif ( isset($a4_default) ) - $a4_tmp_value = $a4_default; -else - $a4_tmp_value = ""; -?><input type="hidden" name="<?php echo $a4_name ?>" value="<?php echo $a4_tmp_value ?>" /><?php unset($a4_name,$a4_default) ?> - <?php } ?><!-- Compiling hidden/hidden-begin --><?php $a3_name='objectid'; ?><?php -if (isset($$a3_name)) - $a3_tmp_value = $$a3_name; -elseif ( isset($a3_default) ) - $a3_tmp_value = $a3_default; -else - $a3_tmp_value = ""; -?><input type="hidden" name="<?php echo $a3_name ?>" value="<?php echo $a3_tmp_value ?>" /><?php unset($a3_name) ?><!-- Compiling hidden/hidden-begin --><?php $a3_name='modelid'; ?><?php -if (isset($$a3_name)) - $a3_tmp_value = $$a3_name; -elseif ( isset($a3_default) ) - $a3_tmp_value = $a3_default; -else - $a3_tmp_value = ""; -?><input type="hidden" name="<?php echo $a3_name ?>" value="<?php echo $a3_tmp_value ?>" /><?php unset($a3_name) ?><!-- Compiling hidden/hidden-begin --><?php $a3_name='projectid'; ?><?php -if (isset($$a3_name)) - $a3_tmp_value = $$a3_name; -elseif ( isset($a3_default) ) - $a3_tmp_value = $a3_default; -else - $a3_tmp_value = ""; -?><input type="hidden" name="<?php echo $a3_name ?>" value="<?php echo $a3_tmp_value ?>" /><?php unset($a3_name) ?><!-- Compiling hidden/hidden-begin --><?php $a3_name='languageid'; ?><?php -if (isset($$a3_name)) - $a3_tmp_value = $$a3_name; -elseif ( isset($a3_default) ) - $a3_tmp_value = $a3_default; -else - $a3_tmp_value = ""; -?><input type="hidden" name="<?php echo $a3_name ?>" value="<?php echo $a3_tmp_value ?>" /><?php unset($a3_name) ?> + <?php if(!$if3){?> + <input type="hidden" name="dbid" value="<?php echo $actdbid ?>"/> + + <?php } ?> + <input type="hidden" name="objectid" value="<?php echo $objectid ?>"/> + + <input type="hidden" name="modelid" value="<?php echo $modelid ?>"/> + + <input type="hidden" name="projectid" value="<?php echo $projectid ?>"/> + + <input type="hidden" name="languageid" value="<?php echo $languageid ?>"/> + <div class="bottom"> <div class="command true"> @@ -248,3 +221,5 @@ else </div> </form> + + + \ No newline at end of file diff --git a/themes/default/templates/login/register.tpl.out.php b/themes/default/templates/login/register.tpl.out.php @@ -1,59 +1,41 @@ -<!-- Compiling output/output-begin @ Tue, 28 Nov 2017 23:59:58 +0100 --> + + <?php $if2=(@$conf['login']['register']); if($if2){?> - <form name="" - target="_self" - action="<?php echo OR_ACTION ?>" - data-method="<?php echo OR_METHOD ?>" - data-action="<?php echo OR_ACTION ?>" - data-id="<?php echo OR_ID ?>" - method="<?php echo OR_METHOD ?>" - enctype="application/x-www-form-urlencoded" - class="<?php echo OR_ACTION ?>" - data-async="" - data-autosave="" - onSubmit="formSubmit( $(this) ); return false;"><input type="submit" class="invisible" /> - -<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 OR_ACTION ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo OR_METHOD ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo OR_ID ?>" /> -<?php - if ( $conf['interface']['url_sessionid'] ) - echo '<input type="hidden" name="'.session_name().'" value="'.session_id().'" />'."\n"; -?> -<!-- Compiling logo/logo-begin @ Tue, 28 Nov 2017 23:59:58 +0100 --><?php $a4_name='register'; ?><div class="line logo"> + <form name="" target="_self" action="<?php echo OR_ACTION ?>" data-method="<?php echo OR_METHOD ?>" data-action="<?php echo OR_ACTION ?>" data-id="<?php echo OR_ID ?>" method="<?php echo OR_METHOD ?>" enctype="application/x-www-form-urlencoded" class="<?php echo OR_ACTION ?>" data-async="" data-autosave="" onSubmit="formSubmit( $(this) ); return false;"><input type="submit" class="invisible" /><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 OR_ACTION ?>" /><input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo OR_METHOD ?>" /><input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo OR_ID ?>" /> + <div class="line logo"> <div class="label"> - <img src="<?php echo $image_dir.'logo_'.$a4_name.IMG_ICON_EXT ?>" - border="0" /> + <img src="themes/default/images/logo_register.png ?>" + border="0" /> </div> <div class="input"> - <h2> - <?php echo langHtml('logo_'.$a4_name) ?> + <h2> + <?php echo langHtml('logo_register') ?> </h2> <p> - <?php echo langHtml('logo_'.$a4_name.'_text') ?> + <?php echo langHtml('logo_register_text') ?> </p> + </div> </div> -<?php unset($a4_name) ?><!-- Compiling part/part-begin @ Tue, 28 Nov 2017 23:59:58 +0100 --><?php $a4_class='line'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling part/part-begin @ Tue, 28 Nov 2017 23:59:58 +0100 --><?php $a5_class='label'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><!-- Compiling label/label-begin @ Tue, 28 Nov 2017 23:59:58 +0100 --><?php $a6_for='mail'; ?><label<?php if (isset($a6_for)) { ?> for="<?php echo REQUEST_ID ?>_<?php echo $a6_for ?><?php if (!empty($a6_value)) echo '_'.$a6_value ?>" <?php if(hasLang(@$a6_key.'_desc')) { ?> title="<?php echo lang(@$a6_key.'_desc')?>"<?php } ?> class="label"<?php } ?>> -<?php if (isset($a6_key)) { echo lang($a6_key); ?><?php if (isset($a6_text)) { echo $a6_text; } ?><?php } ?><?php unset($a6_for) ?><!-- Compiling text/text-begin @ Tue, 28 Nov 2017 23:59:58 +0100 --><?php $a7_class='text';$a7_text='USER_MAIL';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php - $langF = $a7_escape?'langHtml':'lang'; - $tmp_text = $langF($a7_text); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?><!-- Compiling label/label-end @ Tue, 28 Nov 2017 23:59:58 +0100 --></label><!-- Compiling part/part-end @ Tue, 28 Nov 2017 23:59:58 +0100 --></div><!-- Compiling part/part-begin @ Tue, 28 Nov 2017 23:59:58 +0100 --><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><!-- Compiling input/input-begin @ Tue, 28 Nov 2017 23:59:58 +0100 --><?php $a6_class='focus';$a6_default='';$a6_type='text';$a6_name='mail';$a6_size='';$a6_maxlength='256';$a6_onchange='';$a6_readonly=false;$a6_hint='';$a6_icon=''; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a6_readonly=true; - if ($a6_readonly && empty($$a6_name)) $$a6_name = '- '.lang('EMPTY').' -'; - if(!isset($a6_default)) $a6_default=''; - $tmp_value = Text::encodeHtml(isset($$a6_name)?$$a6_name:$a6_default); -?><?php if (!$a6_readonly || $a6_type=='hidden') { -?><div class="<?php echo $a6_type!='hidden'?'inputholder':'inputhidden' ?>"><input<?php if ($a6_readonly) echo ' disabled="true"' ?><?php if ($a6_hint) echo ' data-hint="'.$a6_hint.'"'; ?> id="<?php echo REQUEST_ID ?>_<?php echo $a6_name ?><?php if ($a6_readonly) echo '_disabled' ?>" name="<?php echo $a6_name ?><?php if ($a6_readonly) echo '_disabled' ?>" type="<?php echo $a6_type ?>" maxlength="<?php echo $a6_maxlength ?>" class="<?php echo str_replace(',',' ',$a6_class) ?>" value="<?php echo $tmp_value ?>" /><?php if ($a6_icon) echo '<img src="'.$image_dir.'icon_'.$a6_icon.IMG_ICON_EXT.'" width="16" height="16" />'; ?></div><?php -if ($a6_readonly) { -?><input type="hidden" id="<?php echo REQUEST_ID ?>_<?php echo $a6_name ?>" name="<?php echo $a6_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 $a6_class ?>"><?php echo $tmp_value ?></span></a><?php } ?><?php unset($a6_class,$a6_default,$a6_type,$a6_name,$a6_size,$a6_maxlength,$a6_onchange,$a6_readonly,$a6_hint,$a6_icon) ?><!-- Compiling part/part-end @ Tue, 28 Nov 2017 23:59:58 +0100 --></div><!-- Compiling part/part-end @ Tue, 28 Nov 2017 23:59:58 +0100 --></div><!-- Compiling part/part-begin @ Tue, 28 Nov 2017 23:59:58 +0100 --><?php $a4_class='line'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling part/part-begin @ Tue, 28 Nov 2017 23:59:58 +0100 --><?php $a5_class='label'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><!-- Compiling part/part-end @ Tue, 28 Nov 2017 23:59:58 +0100 --></div><!-- Compiling part/part-begin @ Tue, 28 Nov 2017 23:59:58 +0100 --><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><!-- Compiling part/part-end @ Tue, 28 Nov 2017 23:59:58 +0100 --></div><!-- Compiling part/part-end @ Tue, 28 Nov 2017 23:59:58 +0100 --></div> + </div> + <div class="line"> + <div class="label"> + <label for="<?php echo REQUEST_ID ?>_mail" class="label"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('USER_MAIL')))); ?></span> + + </label> + </div> + <div class="input"> + <div class="inputholder"><input<?php if ('') echo ' disabled="true"' ?> id="<?php echo REQUEST_ID ?>_mail" name="mail<?php if ('') echo '_disabled' ?>" type="text" maxlength="256" class="focus" value="<?php echo Text::encodeHtml('') ?>" /><?php if ('') { ?><input type="hidden" name="mail" value="<?php '' ?>"/><?php } ?></div> + + </div> + </div> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + </div> + </div> <div class="bottom"> <div class="command "> @@ -66,14 +48,10 @@ if ($a6_readonly) { </form> <?php } ?> - <?php if(!$if2){?><!-- Compiling part/part-begin @ Tue, 28 Nov 2017 23:59:58 +0100 --><?php $a3_class='message error'; ?><div class="<?php echo $a3_class ?>"><?php unset($a3_class) ?><!-- Compiling text/text-begin @ Tue, 28 Nov 2017 23:59:58 +0100 --><?php $a4_class='text';$a4_key='REGISTER_NOT_ENABLED';$a4_escape=true;$a4_cut='both'; ?><?php - $a4_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a4_class ?>" title="<?php echo $a4_title ?>"><?php - $langF = $a4_escape?'langHtml':'lang'; - $tmp_text = $langF($a4_key); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a4_class,$a4_key,$a4_escape,$a4_cut) ?><!-- Compiling part/part-end @ Tue, 28 Nov 2017 23:59:58 +0100 --></div> - <?php } ?>- \ No newline at end of file + <?php if(!$if2){?> + <div class="message error"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'REGISTER_NOT_ENABLED'.'')))); ?></span> + + </div> + <?php } ?> + + \ No newline at end of file diff --git a/themes/default/templates/model/edit.tpl.out.php b/themes/default/templates/model/edit.tpl.out.php @@ -0,0 +1,51 @@ +<!-- Compiling output/output-begin --> + + + <form name="" + target="_self" + action="<?php echo OR_ACTION ?>" + data-method="<?php echo OR_METHOD ?>" + data-action="<?php echo OR_ACTION ?>" + data-id="<?php echo OR_ID ?>" + method="<?php echo OR_METHOD ?>" + enctype="application/x-www-form-urlencoded" + class="<?php echo OR_ACTION ?>" + data-async="" + data-autosave="" + onSubmit="formSubmit( $(this) ); return false;"><input type="submit" class="invisible" /> + +<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 OR_ACTION ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo OR_METHOD ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo OR_ID ?>" /> +<?php + if ( $conf['interface']['url_sessionid'] ) + echo '<input type="hidden" name="'.session_name().'" value="'.session_id().'" />'."\n"; +?> + + <div class="line"> + <div class="label"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('GLOBAL_NAME')))); ?></span> + + </div> + <div class="input"><!-- Compiling input/input-begin --><?php $a5_class='text';$a5_default='';$a5_type='text';$a5_name='name';$a5_size='';$a5_maxlength='256';$a5_onchange='';$a5_readonly=false;$a5_hint='';$a5_icon=''; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a5_readonly=true; + if ($a5_readonly && empty($$a5_name)) $$a5_name = '- '.lang('EMPTY').' -'; + if(!isset($a5_default)) $a5_default=''; + $tmp_value = Text::encodeHtml(isset($$a5_name)?$$a5_name:$a5_default); +?><?php if (!$a5_readonly || $a5_type=='hidden') { +?><div class="<?php echo $a5_type!='hidden'?'inputholder':'inputhidden' ?>"><input<?php if ($a5_readonly) echo ' disabled="true"' ?><?php if ($a5_hint) echo ' data-hint="'.$a5_hint.'"'; ?> id="<?php echo REQUEST_ID ?>_<?php echo $a5_name ?><?php if ($a5_readonly) echo '_disabled' ?>" name="<?php echo $a5_name ?><?php if ($a5_readonly) echo '_disabled' ?>" type="<?php echo $a5_type ?>" maxlength="<?php echo $a5_maxlength ?>" class="<?php echo str_replace(',',' ',$a5_class) ?>" value="<?php echo $tmp_value ?>" /><?php if ($a5_icon) echo '<img src="'.$image_dir.'icon_'.$a5_icon.IMG_ICON_EXT.'" width="16" height="16" />'; ?></div><?php +if ($a5_readonly) { +?><input type="hidden" id="<?php echo REQUEST_ID ?>_<?php echo $a5_name ?>" name="<?php echo $a5_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 $a5_class ?>"><?php echo $tmp_value ?></span></a><?php } ?><?php unset($a5_class,$a5_default,$a5_type,$a5_name,$a5_size,$a5_maxlength,$a5_onchange,$a5_readonly,$a5_hint,$a5_icon) ?> + </div> + </div> + +<div class="bottom"> + <div class="command "> + + <input type="button" class="submit ok" value="OK" onclick="$(this).closest('div.sheet').find('form').submit(); " /> + + <!-- Cancel-Button nicht anzeigen, wenn cancel==false. --> </div> +</div> + +</form> diff --git a/themes/default/templates/model/structure.tpl.out.php b/themes/default/templates/model/structure.tpl.out.php @@ -0,0 +1,5 @@ +<!-- Compiling output/output-begin --> + <div class="structure tree"> + <?php include_once( OR_THEMES_DIR.'default/include/html/tree/component-tree.php') ?><?php component_tree($outline) ?> + + </div>+ \ No newline at end of file diff --git a/themes/default/templates/modellist/show.tpl.out.php b/themes/default/templates/modellist/show.tpl.out.php @@ -1,244 +1,75 @@ -<!-- Compiling output/output-begin @ Wed, 29 Nov 2017 00:50:54 +0100 --><!-- Compiling table/table-begin @ Wed, 29 Nov 2017 00:50:54 +0100 --><?php $a2_width='100%';$a2_space='0px';$a2_padding='0px'; ?><?php - $last_column_idx = @$column_idx; - $column_idx = 0; - $coloumn_widths = array(); - $row_classes = array(); - $column_classes = array(); -?><table class="%class%" cellspacing="0px" width="100%" cellpadding="0px"> -<?php unset($a2_width,$a2_space,$a2_padding) ?><!-- Compiling row/row-begin @ Wed, 29 Nov 2017 00:50:54 +0100 --><?php $a3_class='headline'; ?><?php - $column_idx = 0; -?> -<tr - class="headline" -> -<?php unset($a3_class) ?> - <td><!-- Compiling text/text-begin @ Wed, 29 Nov 2017 00:50:54 +0100 --><?php $a5_class='text';$a5_key='name';$a5_escape=true;$a5_cut='both'; ?><?php - $a5_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a5_class ?>" title="<?php echo $a5_title ?>"><?php - $langF = $a5_escape?'langHtml':'lang'; - $tmp_text = $langF($a5_key); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a5_class,$a5_key,$a5_escape,$a5_cut) ?> +<!-- Compiling output/output-begin --> + <table width="100%"> + <tr class="headline"> + <td> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'name'.'')))); ?></span> + </td> - <td><!-- Compiling text/text-begin @ Wed, 29 Nov 2017 00:50:54 +0100 --><?php $a5_class='text';$a5_raw='';$a5_escape=true;$a5_cut='both'; ?><?php - $a5_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a5_class ?>" title="<?php echo $a5_title ?>"><?php - $langF = $a5_escape?'langHtml':'lang'; - $tmp_text = str_replace('_',' ',$a5_raw); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a5_class,$a5_raw,$a5_escape,$a5_cut) ?> + <td> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(''))); ?></span> + </td> - <td><!-- Compiling text/text-begin @ Wed, 29 Nov 2017 00:50:54 +0100 --><?php $a5_class='text';$a5_raw='';$a5_escape=true;$a5_cut='both'; ?><?php - $a5_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a5_class ?>" title="<?php echo $a5_title ?>"><?php - $langF = $a5_escape?'langHtml':'lang'; - $tmp_text = str_replace('_',' ',$a5_raw); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a5_class,$a5_raw,$a5_escape,$a5_cut) ?> - </td><!-- Compiling row/row-end @ Wed, 29 Nov 2017 00:50:54 +0100 --></tr><!-- Compiling list/list-begin @ Wed, 29 Nov 2017 00:50:54 +0100 --><?php $a3_list='el';$a3_extract=true;$a3_key='list_key';$a3_value='list_value'; ?><?php - $a3_list_tmp_key = $a3_key; - $a3_list_tmp_value = $a3_value; - $a3_list_extract = $a3_extract; - unset($a3_key); - unset($a3_value); - if ( !isset($$a3_list) || !is_array($$a3_list) ) - $$a3_list = array(); - foreach( $$a3_list as $$a3_list_tmp_key => $$a3_list_tmp_value ) - { - if ( $a3_list_extract ) - { - if ( !is_array($$a3_list_tmp_value) ) - { - print_r($$a3_list_tmp_value); - die( 'not an array at key: '.$$a3_list_tmp_key ); - } - extract($$a3_list_tmp_value); - } -?><?php unset($a3_list,$a3_extract,$a3_key,$a3_value) ?><!-- Compiling row/row-begin @ Wed, 29 Nov 2017 00:50:54 +0100 --><?php $a4_class='data'; ?><?php - $column_idx = 0; -?> -<tr - class="data" -> -<?php unset($a4_class) ?> + <td> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(''))); ?></span> + + </td> + </tr> + <?php foreach($el as $list_key=>$list_value){ ?><?php extract($list_value) ?> + <tr class="data"> <td class="clickable"> <img class="" title="" src="./themes/default/images/icon/icon_model.png" /> - <!-- Compiling link/link-begin @ Wed, 29 Nov 2017 00:50:54 +0100 --><?php $a6_title='';$a6_type='open';$a6_class='';$a6_action='model';$a6_id=$id;$a6_name=$name;$a6_frame='_self';$a6_modal=false; ?><?php - $params = array(); - $a6_url=''; - $tmp_url = ''; - $a6_target = $view; - $tmp_href = 'javascript:void(0);'; - switch( $a6_type ) - { - case 'post': - $json = new JSON(); - $tmp_data = $json->encode( array('action'=>!empty($a6_action)?$a6_action:$this->actionName,'subaction'=>!empty($a6_subaction)?$a6_subaction:$this->subActionName,'id'=>!empty($a6_id)?$a6_id:$this->getRequestId()) - +array(REQ_PARAM_TOKEN=>token()) - +$params ); - $tmp_data = str_replace("\n",'',str_replace('"','"',$tmp_data)); - break; - case 'html'; - $tmp_href = $a6_url; - default: - $tmp_data = ''; - } -?><a data-url="<?php echo $a6_url ?>" target="<?php echo $a6_frame ?>"<?php if (isset($a6_name)) { ?> data-name="<?php echo $a6_name ?>" name="<?php echo $a6_name ?>"<?php }else{ ?> href="<?php echo $tmp_href ?>" <?php } ?> class="<?php echo $a6_class ?>" data-id="<?php echo @$a6_id ?>" data-type="<?php echo $a6_type ?>" data-action="<?php echo @$a6_action ?>" data-method="<?php echo @$a6_subaction ?>" data-data="<?php echo $tmp_data ?>" <?php if (isset($a6_accesskey)) echo ' accesskey="'.$a6_accesskey.'"' ?> title="<?php echo encodeHtml($a6_title) ?>"><?php unset($a6_title,$a6_type,$a6_class,$a6_action,$a6_id,$a6_name,$a6_frame,$a6_modal) ?><!-- Compiling text/text-begin @ Wed, 29 Nov 2017 00:50:54 +0100 --><?php $a7_class='text';$a7_var='name';$a7_maxlength='25';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php - $langF = $a7_escape?'langHtml':'lang'; - $tmp_text = isset($$a7_var)?$$a7_var:$langF('UNKNOWN'); - $tmp_text = Text::maxLength( $tmp_text,intval($a7_maxlength),'..',constant('STR_PAD_'.strtoupper($a7_cut)) ); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_var,$a7_maxlength,$a7_escape,$a7_cut) ?><!-- Compiling link/link-end @ Wed, 29 Nov 2017 00:50:54 +0100 --></a> + + <a target="_self" date-name="<?php echo $name ?>" name="<?php echo $name ?>" data-type="open" data-action="model" data-method="<?php echo OR_METHOD ?>" data-id="<?php echo $id ?>" href="javascript:void(0);"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(Text::maxLength( $name,25,'..',constant('STR_PAD_BOTH') )))); ?></span> + + </a> + </td> - <?php $if5=(!empty('default_url')); if($if5){?> - <td class="clickable"><!-- Compiling link/link-begin @ Wed, 29 Nov 2017 00:50:54 +0100 --><?php $a7_title='';$a7_type='post';$a7_class='';$a7_action='model';$a7_subaction='setdefault';$a7_id=$id;$a7_frame='_self';$a7_modal=false; ?><?php - $params = array(); - $a7_url=''; - $tmp_url = ''; - $a7_target = $view; - $tmp_href = 'javascript:void(0);'; - switch( $a7_type ) - { - case 'post': - $json = new JSON(); - $tmp_data = $json->encode( array('action'=>!empty($a7_action)?$a7_action:$this->actionName,'subaction'=>!empty($a7_subaction)?$a7_subaction:$this->subActionName,'id'=>!empty($a7_id)?$a7_id:$this->getRequestId()) - +array(REQ_PARAM_TOKEN=>token()) - +$params ); - $tmp_data = str_replace("\n",'',str_replace('"','"',$tmp_data)); - break; - case 'html'; - $tmp_href = $a7_url; - default: - $tmp_data = ''; - } -?><a data-url="<?php echo $a7_url ?>" target="<?php echo $a7_frame ?>"<?php if (isset($a7_name)) { ?> data-name="<?php echo $a7_name ?>" name="<?php echo $a7_name ?>"<?php }else{ ?> href="<?php echo $tmp_href ?>" <?php } ?> class="<?php echo $a7_class ?>" data-id="<?php echo @$a7_id ?>" data-type="<?php echo $a7_type ?>" data-action="<?php echo @$a7_action ?>" data-method="<?php echo @$a7_subaction ?>" data-data="<?php echo $tmp_data ?>" <?php if (isset($a7_accesskey)) echo ' accesskey="'.$a7_accesskey.'"' ?> title="<?php echo encodeHtml($a7_title) ?>"><?php unset($a7_title,$a7_type,$a7_class,$a7_action,$a7_subaction,$a7_id,$a7_frame,$a7_modal) ?><!-- Compiling text/text-begin @ Wed, 29 Nov 2017 00:50:54 +0100 --><?php $a8_class='text';$a8_text='GLOBAL_make_default';$a8_escape=true;$a8_cut='both'; ?><?php - $a8_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a8_class ?>" title="<?php echo $a8_title ?>"><?php - $langF = $a8_escape?'langHtml':'lang'; - $tmp_text = $langF($a8_text); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_text,$a8_escape,$a8_cut) ?><!-- Compiling link/link-end @ Wed, 29 Nov 2017 00:50:54 +0100 --></a> + <?php $if5=(!empty($default_url)); if($if5){?> + <td class="clickable"> + <a target="_self" data-type="post" data-action="model" data-method="setdefault" data-id="<?php echo $id ?>" data-data="{"action":"model","subaction":"setdefault","id":"<?php echo $id ?>","token":"<?php echo token() ?>","none":"0"}"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('GLOBAL_make_default')))); ?></span> + + </a> + </td> <?php } ?> <?php if(!$if5){?> - <td><!-- Compiling text/text-begin @ Wed, 29 Nov 2017 00:50:54 +0100 --><?php $a7_class='text';$a7_text='GLOBAL_is_default';$a7_escape=true;$a7_type='emphatic';$a7_cut='both'; ?><?php - $a7_title = ''; - $tmp_tag = 'em'; -?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php - $langF = $a7_escape?'langHtml':'lang'; - $tmp_text = $langF($a7_text); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_type,$a7_cut) ?> + <td> + <em class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('GLOBAL_is_default')))); ?></em> + </td> <?php } ?> - <?php $if5=(!empty('select_url')); if($if5){?> - <td class="clickable"><!-- Compiling link/link-begin @ Wed, 29 Nov 2017 00:50:54 +0100 --><?php $a7_title='';$a7_type='post';$a7_class='';$a7_action='start';$a7_subaction='model';$a7_id=$id;$a7_frame='_self';$a7_modal=false; ?><?php - $params = array(); - $a7_url=''; - $tmp_url = ''; - $a7_target = $view; - $tmp_href = 'javascript:void(0);'; - switch( $a7_type ) - { - case 'post': - $json = new JSON(); - $tmp_data = $json->encode( array('action'=>!empty($a7_action)?$a7_action:$this->actionName,'subaction'=>!empty($a7_subaction)?$a7_subaction:$this->subActionName,'id'=>!empty($a7_id)?$a7_id:$this->getRequestId()) - +array(REQ_PARAM_TOKEN=>token()) - +$params ); - $tmp_data = str_replace("\n",'',str_replace('"','"',$tmp_data)); - break; - case 'html'; - $tmp_href = $a7_url;