openrat-cms

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

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:
action/Action.class.php | 4+++-
action/IndexAction.class.php | 9+++++----
init.php | 4++++
modules/template-engine/components/html/Component.class.php | 222+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
modules/template-engine/components/html/button/Button.class.php | 53+++++++++++++++++++++++++++++++++++++++++++++++++++++
modules/template-engine/components/html/checkbox/Checkbox.class.php | 37+++++++++++++++++++++++++++++++++++++
modules/template-engine/components/html/column/Column.class.php | 49+++++++++++++++++++++++++++++++++++++++++++++++++
modules/template-engine/components/html/date/Date.class.php | 18++++++++++++++++++
modules/template-engine/components/html/date/component-date.php | 73+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
modules/template-engine/components/html/dummy/Dummy.class.php | 9+++++++++
modules/template-engine/components/html/editor/Editor.class.php | 57+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
modules/template-engine/components/html/editor/editor.css | 31+++++++++++++++++++++++++++++++
modules/template-engine/components/html/editor/editor.js | 88+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
modules/template-engine/components/html/editor/editor.less | 45+++++++++++++++++++++++++++++++++++++++++++++
modules/template-engine/components/html/editor/editor.min.css | 2++
modules/template-engine/components/html/editor/editor.min.js | 88+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
modules/template-engine/components/html/else/Else.class.php | 18++++++++++++++++++
modules/template-engine/components/html/focus/Focus.class.php | 26++++++++++++++++++++++++++
modules/template-engine/components/html/form/Form.class.php | 94+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
modules/template-engine/components/html/form/form.js | 221+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
modules/template-engine/components/html/form/form.min.js | 4++++
modules/template-engine/components/html/group/Group.class.php | 39+++++++++++++++++++++++++++++++++++++++
modules/template-engine/components/html/group/group.css | 46++++++++++++++++++++++++++++++++++++++++++++++
modules/template-engine/components/html/group/group.js | 7+++++++
modules/template-engine/components/html/group/group.less | 66++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
modules/template-engine/components/html/group/group.min.css | 2++
modules/template-engine/components/html/group/group.min.js | 7+++++++
modules/template-engine/components/html/header/Header.class.php | 26++++++++++++++++++++++++++
modules/template-engine/components/html/hidden/Hidden.class.php | 28++++++++++++++++++++++++++++
modules/template-engine/components/html/if/If.class.php | 50++++++++++++++++++++++++++++++++++++++++++++++++++
modules/template-engine/components/html/image/Image.class.php | 83+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
modules/template-engine/components/html/image/image.css | 3+++
modules/template-engine/components/html/image/image.js | 6++++++
modules/template-engine/components/html/image/image.less | 4++++
modules/template-engine/components/html/image/image.min.css | 0
modules/template-engine/components/html/image/image.min.js | 2++
modules/template-engine/components/html/input/Input.class.php | 107+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
modules/template-engine/components/html/inputarea/Inputarea.class.php | 43+++++++++++++++++++++++++++++++++++++++++++
modules/template-engine/components/html/insert/Insert.class.php | 35+++++++++++++++++++++++++++++++++++
modules/template-engine/components/html/label/Label.class.php | 44++++++++++++++++++++++++++++++++++++++++++++
modules/template-engine/components/html/link/Link.class.php | 169+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
modules/template-engine/components/html/link/link.js | 36++++++++++++++++++++++++++++++++++++
modules/template-engine/components/html/link/link.min.js | 2++
modules/template-engine/components/html/list/List.class.php | 29+++++++++++++++++++++++++++++
modules/template-engine/components/html/logo/Logo.class.php | 39+++++++++++++++++++++++++++++++++++++++
modules/template-engine/components/html/newline/Newline.class.php | 13+++++++++++++
modules/template-engine/components/html/output/Output.class.php | 9+++++++++
modules/template-engine/components/html/page/Window.class.php | 9+++++++++
modules/template-engine/components/html/part/Part.class.php | 29+++++++++++++++++++++++++++++
modules/template-engine/components/html/password/Password.class.php | 41+++++++++++++++++++++++++++++++++++++++++
modules/template-engine/components/html/qrcode/Qrcode.class.php | 21+++++++++++++++++++++
modules/template-engine/components/html/qrcode/qrcode.js | 15+++++++++++++++
modules/template-engine/components/html/qrcode/qrcode.min.js | 15+++++++++++++++
modules/template-engine/components/html/radio/Radio.class.php | 45+++++++++++++++++++++++++++++++++++++++++++++
modules/template-engine/components/html/radiobox/Radiobox.class.php | 32++++++++++++++++++++++++++++++++
modules/template-engine/components/html/radiobox/component-radio-box.php | 40++++++++++++++++++++++++++++++++++++++++
modules/template-engine/components/html/row/Row.class.php | 27+++++++++++++++++++++++++++
modules/template-engine/components/html/selectbox/Selectbox.class.php | 89+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
modules/template-engine/components/html/selectbox/component-select-box.php | 44++++++++++++++++++++++++++++++++++++++++++++
modules/template-engine/components/html/selector/Selector.class.php | 36++++++++++++++++++++++++++++++++++++
modules/template-engine/components/html/set/Set.class.php | 27+++++++++++++++++++++++++++
modules/template-engine/components/html/table/Table.class.php | 29+++++++++++++++++++++++++++++
modules/template-engine/components/html/table/table.js | 41+++++++++++++++++++++++++++++++++++++++++
modules/template-engine/components/html/table/table.min.js | 41+++++++++++++++++++++++++++++++++++++++++
modules/template-engine/components/html/text/Text.class.php | 123+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
modules/template-engine/components/html/tree/Tree.class.php | 17+++++++++++++++++
modules/template-engine/components/html/tree/component-tree.php | 30++++++++++++++++++++++++++++++
modules/template-engine/components/html/upload/Upload.class.php | 36++++++++++++++++++++++++++++++++++++
modules/template-engine/components/html/upload/upload.css | 5+++++
modules/template-engine/components/html/upload/upload.js | 85+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
modules/template-engine/components/html/upload/upload.less | 7+++++++
modules/template-engine/components/html/upload/upload.min.css | 2++
modules/template-engine/components/html/upload/upload.min.js | 85+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
modules/template-engine/components/html/user/User.class.php | 18++++++++++++++++++
modules/template-engine/components/html/user/component-user.php | 17+++++++++++++++++
modules/template-engine/components/html/window/Window.class.php | 9+++++++++
modules/template-engine/engine/TemplateEngine.class.php | 186+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
modules/template-engine/require.php | 6++++++
themes/default/include/html/Component.class.php | 222-------------------------------------------------------------------------------
themes/default/include/html/button/Button.class.php | 53-----------------------------------------------------
themes/default/include/html/checkbox/Checkbox.class.php | 37-------------------------------------
themes/default/include/html/column/Column.class.php | 49-------------------------------------------------
themes/default/include/html/date/Date.class.php | 18------------------
themes/default/include/html/date/component-date.php | 73-------------------------------------------------------------------------
themes/default/include/html/dummy/Dummy.class.php | 9---------
themes/default/include/html/editor/Editor.class.php | 57---------------------------------------------------------
themes/default/include/html/editor/editor.css | 31-------------------------------
themes/default/include/html/editor/editor.js | 88-------------------------------------------------------------------------------
themes/default/include/html/editor/editor.less | 45---------------------------------------------
themes/default/include/html/editor/editor.min.css | 2--
themes/default/include/html/editor/editor.min.js | 88-------------------------------------------------------------------------------
themes/default/include/html/else/Else.class.php | 18------------------
themes/default/include/html/focus/Focus.class.php | 26--------------------------
themes/default/include/html/form/Form.class.php | 94-------------------------------------------------------------------------------
themes/default/include/html/form/form.js | 221-------------------------------------------------------------------------------
themes/default/include/html/form/form.min.js | 4----
themes/default/include/html/group/Group.class.php | 39---------------------------------------
themes/default/include/html/group/group.css | 46----------------------------------------------
themes/default/include/html/group/group.js | 7-------
themes/default/include/html/group/group.less | 66------------------------------------------------------------------
themes/default/include/html/group/group.min.css | 2--
themes/default/include/html/group/group.min.js | 7-------
themes/default/include/html/header/Header.class.php | 26--------------------------
themes/default/include/html/hidden/Hidden.class.php | 28----------------------------
themes/default/include/html/if/If.class.php | 50--------------------------------------------------
themes/default/include/html/image/Image.class.php | 83-------------------------------------------------------------------------------
themes/default/include/html/image/image.css | 3---
themes/default/include/html/image/image.js | 6------
themes/default/include/html/image/image.less | 4----
themes/default/include/html/image/image.min.css | 0
themes/default/include/html/image/image.min.js | 2--
themes/default/include/html/input/Input.class.php | 107-------------------------------------------------------------------------------
themes/default/include/html/inputarea/Inputarea.class.php | 43-------------------------------------------
themes/default/include/html/insert/Insert.class.php | 35-----------------------------------
themes/default/include/html/label/Label.class.php | 44--------------------------------------------
themes/default/include/html/link/Link.class.php | 169-------------------------------------------------------------------------------
themes/default/include/html/link/link.js | 36------------------------------------
themes/default/include/html/list/List.class.php | 29-----------------------------
themes/default/include/html/logo/Logo.class.php | 39---------------------------------------
themes/default/include/html/newline/Newline.class.php | 13-------------
themes/default/include/html/output/Output.class.php | 9---------
themes/default/include/html/page/Window.class.php | 9---------
themes/default/include/html/part/Part.class.php | 29-----------------------------
themes/default/include/html/password/Password.class.php | 41-----------------------------------------
themes/default/include/html/qrcode/Qrcode.class.php | 21---------------------
themes/default/include/html/qrcode/qrcode.js | 15---------------
themes/default/include/html/qrcode/qrcode.min.js | 15---------------
themes/default/include/html/radio/Radio.class.php | 45---------------------------------------------
themes/default/include/html/radiobox/Radiobox.class.php | 32--------------------------------
themes/default/include/html/radiobox/component-radio-box.php | 40----------------------------------------
themes/default/include/html/row/Row.class.php | 27---------------------------
themes/default/include/html/selectbox/Selectbox.class.php | 89-------------------------------------------------------------------------------
themes/default/include/html/selectbox/component-select-box.php | 44--------------------------------------------
themes/default/include/html/selector/Selector.class.php | 36------------------------------------
themes/default/include/html/set/Set.class.php | 27---------------------------
themes/default/include/html/table/Table.class.php | 29-----------------------------
themes/default/include/html/table/table.js | 41-----------------------------------------
themes/default/include/html/table/table.min.js | 41-----------------------------------------
themes/default/include/html/text/Text.class.php | 123-------------------------------------------------------------------------------
themes/default/include/html/tree/Tree.class.php | 17-----------------
themes/default/include/html/tree/component-tree.php | 30------------------------------
themes/default/include/html/upload/Upload.class.php | 36------------------------------------
themes/default/include/html/upload/upload.css | 5-----
themes/default/include/html/upload/upload.js | 85-------------------------------------------------------------------------------
themes/default/include/html/upload/upload.less | 7-------
themes/default/include/html/upload/upload.min.css | 2--
themes/default/include/html/upload/upload.min.js | 85-------------------------------------------------------------------------------
themes/default/include/html/user/User.class.php | 18------------------
themes/default/include/html/user/component-user.php | 17-----------------
themes/default/include/html/window/Window.class.php | 9---------
themes/default/templates/element/delete.tpl.src.xml | 2+-
themes/default/templates/element/edit.tpl.out.php | 59+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/templates/element/prop.tpl.out.php | 719+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/templates/file/edit.tpl.out.php | 23+++++++++++------------
themes/default/templates/file/prop.tpl.out.php | 99++++++++++++++++++++++++++++++++++---------------------------------------------
themes/default/templates/file/structure.tpl.out.php | 6++++++
themes/default/templates/folder/edit.tpl.out.php | 359+++++++++++++++++++++----------------------------------------------------------
themes/default/templates/folder/info.tpl.out.php | 76+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-----------------
themes/default/templates/folder/prop.tpl.out.php | 91+++++++++++++++++++++++++++++++++----------------------------------------------
themes/default/templates/folder/pub.tpl.out.php | 159++++++++++++++++++++++++++++++-------------------------------------------------
themes/default/templates/folder/structure.tpl.out.php | 10+++++++---
themes/default/templates/group/edit.tpl.out.php | 38++++++++++++++------------------------
themes/default/templates/group/memberships.tpl.out.php | 90++++++++++++++++++-------------------------------------------------------------
themes/default/templates/grouplist/show.tpl.out.php | 33+++++++++++++++++++++++++++++++++
themes/default/templates/languagelist/show.tpl.out.php | 313+++++++++++++++++--------------------------------------------------------------
themes/default/templates/login/license.tpl.out.php | 77+++++++++++++++++++----------------------------------------------------------
themes/default/templates/login/login.tpl.out.php | 264++++++++++++++++++++++++++++++++++++-------------------------------------------
themes/default/templates/login/register.tpl.out.php | 96+++++++++++++++++++++++++++++++------------------------------------------------
themes/default/templates/model/edit.tpl.out.php | 51+++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/templates/model/structure.tpl.out.php | 6++++++
themes/default/templates/modellist/show.tpl.out.php | 285++++++++++++++++---------------------------------------------------------------
themes/default/templates/object/inherit.tpl.out.php | 67+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/templates/object/rights.tpl.out.php | 76+++++++++++++++++++++-------------------------------------------------------
themes/default/templates/page/changetemplate.tpl.out.php | 125+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/templates/page/edit.tpl.out.php | 182+++++++++++++++++++------------------------------------------------------------
themes/default/templates/page/form.tpl.src.xml | 83+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----
themes/default/templates/page/prop.tpl.out.php | 78+++++++++++++++++++++++++++++++++---------------------------------------------
themes/default/templates/page/pub.tpl.out.php | 65+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/templates/page/structure.tpl.out.php | 31++++++-------------------------
themes/default/templates/pageelement/edit.tpl.out.php | 915+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/templates/pageelement/structure.tpl.out.php | 5+++++
themes/default/templates/profile/edit.tpl.out.php | 390++++++++++++++++++++++++++-----------------------------------------------------
themes/default/templates/profile/memberships.tpl.out.php | 73+++++++++++++++++++------------------------------------------------------
themes/default/templates/profile/pw.tpl.out.php | 80+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/templates/project/edit.tpl.out.php | 128+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/templates/project/info.tpl.out.php | 18++++++++++++++++++
themes/default/templates/projectlist/show.tpl.out.php | 36++++++++++++++++++++++++++++++++++++
themes/default/templates/start/applications.tpl.out.php | 143++++++++++++++++---------------------------------------------------------------
themes/default/templates/start/projectmenu.tpl.out.php | 225+++++++++++++++++++------------------------------------------------------------
themes/default/templates/template/edit.tpl.out.php | 248++++++++++++++++++-------------------------------------------------------------
themes/default/templates/template/prop.tpl.out.php | 182+++++++++++++++++++++++--------------------------------------------------------
themes/default/templates/template/src.tpl.out.php | 37+++++++++++++++++++++++++++++++++++++
themes/default/templates/templatelist/add.tpl.out.php | 211+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/templates/templatelist/show.tpl.out.php | 153++++++++++++++++++-------------------------------------------------------------
themes/default/templates/title/ping.tpl.out.php | 6++++--
themes/default/templates/title/show.tpl.out.php | 696++++++++++++++++++++++++-------------------------------------------------------
themes/default/templates/tree/tree.tpl.out.php | 25++++++++-----------------
themes/default/templates/user/edit.tpl.out.php | 504+++++++++++++++++++++++++++----------------------------------------------------
themes/default/templates/user/info.tpl.out.php | 149+++++++++++++++++++++++++------------------------------------------------------
themes/default/templates/user/memberships.tpl.out.php | 122++++++++++++++++++-------------------------------------------------------------
themes/default/templates/user/pw.tpl.out.php | 128+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/templates/userlist/show.tpl.out.php | 62++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
util/Http.class.php | 9++++++---
util/TemplateEngine.class.php | 185-------------------------------------------------------------------------------
util/include.inc.php | 1-
version.ini | 8++++----
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="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo langHtml($this->text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?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(' ','&nbsp;',$dl); + echo $dl; + unset($dl); + + + $sekunden = time()-$time; + $minuten = intval($sekunden/60); + $stunden = intval($minuten /60); + $tage = intval($stunden /24); + $monate = intval($tage /30); + $jahre = intval($monate /12); + + echo ' ('; + + + if ( $sekunden == 1 ) + echo $sekunden.' '.lang('GLOBAL_SECOND'); + elseif ( $sekunden < 60 ) + echo $sekunden.' '.lang('GLOBAL_SECONDS'); + + elseif ( $minuten == 1 ) + echo $minuten.' '.lang('GLOBAL_MINUTE'); + elseif ( $minuten < 60 ) + echo $minuten.' '.lang('GLOBAL_MINUTES'); + + elseif ( $stunden == 1 ) + echo $stunden.' '.lang('GLOBAL_HOUR'); + elseif ( $stunden < 60 ) + echo $stunden.' '.lang('GLOBAL_HOURS'); + + elseif ( $tage == 1 ) + echo $tage.' '.lang('GLOBAL_DAY'); + elseif ( $tage < 60 ) + echo $tage.' '.lang('GLOBAL_DAYS'); + + elseif ( $monate == 1 ) + echo $monate.' '.lang('GLOBAL_MONTH'); + elseif ( $monate < 12 ) + echo $monate.' '.lang('GLOBAL_MONTHS'); + + elseif ( $jahre == 1 ) + echo $jahre.' '.lang('GLOBAL_YEAR'); + else + echo $jahre.' '.lang('GLOBAL_YEARS'); + + echo ')'; + + + echo '">'; + echo date(lang('DATE_FORMAT'),$time); + echo '</span>'; + } +} +?>+ \ No newline at end of file diff --git a/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 "&quot;action&quot;:&quot;"; + if (! empty($this->action)) + echo $this->htmlvalue($this->action); + else + echo "<?php echo OR_ACTION ?>"; + echo "&quot;,"; + + echo "&quot;subaction&quot;:&quot;"; + if (! empty($this->subaction)) + echo $this->htmlvalue($this->subaction); + else + echo "<?php echo OR_METHOD ?>"; + echo "&quot;,"; + + echo "&quot;id&quot;:&quot;"; + if (! empty($this->id)) + echo $this->htmlvalue($this->id); + else + echo "<?php echo OR_ID ?>"; + echo "&quot;,"; + + echo '&quot;'.REQ_PARAM_TOKEN . "&quot;:&quot;" . '<?php echo token() ?>' . "&quot;,"; + + if (! empty($this->var1)) + echo "&quot;var1&quot;:&quot;" . $this->htmlvalue($this->value1) . "&quot;,"; + if (! empty($this->var2)) + echo "&quot;var2&quot;:&quot;" . $this->htmlvalue($this->value2) . "&quot;,"; + if (! empty($this->var3)) + echo "&quot;var3&quot;:&quot;" . $this->htmlvalue($this->value3) . "&quot;,"; + if (! empty($this->var4)) + echo "&quot;var4&quot;:&quot;" . $this->htmlvalue($this->value4) . "&quot;,"; + if (! empty($this->var5)) + echo "&quot;var5&quot;:&quot;" . $this->htmlvalue($this->value5) . "&quot;,"; + + echo "&quot;none&quot;:&quot;0&quot;}\""; + + 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('&nbsp;'); + 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('&nbsp;');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 ' />&nbsp;<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('_','&nbsp;',$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="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo langHtml($this->text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?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(' ','&nbsp;',$dl); - echo $dl; - unset($dl); - - - $sekunden = time()-$time; - $minuten = intval($sekunden/60); - $stunden = intval($minuten /60); - $tage = intval($stunden /24); - $monate = intval($tage /30); - $jahre = intval($monate /12); - - echo ' ('; - - - if ( $sekunden == 1 ) - echo $sekunden.' '.lang('GLOBAL_SECOND'); - elseif ( $sekunden < 60 ) - echo $sekunden.' '.lang('GLOBAL_SECONDS'); - - elseif ( $minuten == 1 ) - echo $minuten.' '.lang('GLOBAL_MINUTE'); - elseif ( $minuten < 60 ) - echo $minuten.' '.lang('GLOBAL_MINUTES'); - - elseif ( $stunden == 1 ) - echo $stunden.' '.lang('GLOBAL_HOUR'); - elseif ( $stunden < 60 ) - echo $stunden.' '.lang('GLOBAL_HOURS'); - - elseif ( $tage == 1 ) - echo $tage.' '.lang('GLOBAL_DAY'); - elseif ( $tage < 60 ) - echo $tage.' '.lang('GLOBAL_DAYS'); - - elseif ( $monate == 1 ) - echo $monate.' '.lang('GLOBAL_MONTH'); - elseif ( $monate < 12 ) - echo $monate.' '.lang('GLOBAL_MONTHS'); - - elseif ( $jahre == 1 ) - echo $jahre.' '.lang('GLOBAL_YEAR'); - else - echo $jahre.' '.lang('GLOBAL_YEARS'); - - echo ')'; - - - echo '">'; - echo date(lang('DATE_FORMAT'),$time); - echo '</span>'; - } -} -?>- \ No newline at end of file diff --git a/themes/default/include/html/dummy/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 "&quot;action&quot;:&quot;"; - if (! empty($this->action)) - echo $this->htmlvalue($this->action); - else - echo "<?php echo OR_ACTION ?>"; - echo "&quot;,"; - - echo "&quot;subaction&quot;:&quot;"; - if (! empty($this->subaction)) - echo $this->htmlvalue($this->subaction); - else - echo "<?php echo OR_METHOD ?>"; - echo "&quot;,"; - - echo "&quot;id&quot;:&quot;"; - if (! empty($this->id)) - echo $this->htmlvalue($this->id); - else - echo "<?php echo OR_ID ?>"; - echo "&quot;,"; - - echo '&quot;'.REQ_PARAM_TOKEN . "&quot;:&quot;" . '<?php echo token() ?>' . "&quot;,"; - - if (! empty($this->var1)) - echo "&quot;var1&quot;:&quot;" . $this->htmlvalue($this->value1) . "&quot;,"; - if (! empty($this->var2)) - echo "&quot;var2&quot;:&quot;" . $this->htmlvalue($this->value2) . "&quot;,"; - if (! empty($this->var3)) - echo "&quot;var3&quot;:&quot;" . $this->htmlvalue($this->value3) . "&quot;,"; - if (! empty($this->var4)) - echo "&quot;var4&quot;:&quot;" . $this->htmlvalue($this->value4) . "&quot;,"; - if (! empty($this->var5)) - echo "&quot;var5&quot;:&quot;" . $this->htmlvalue($this->value5) . "&quot;,"; - - echo "&quot;none&quot;:&quot;0&quot;}\""; - - 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('&nbsp;'); - 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 ' />&nbsp;<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('_','&nbsp;',$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 ' />&nbsp;<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('&nbsp;('); ?></span> + + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('GLOBAL_DEFAULT')))); ?></span> + + <span class="text"><?php echo nl2br(')&nbsp;=&nbsp;'); ?></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('"','&quot;',$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('&nbsp;'); ?></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('&nbsp;'); ?></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('"','&quot;',$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('&nbsp;'); ?></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('"','&quot;',$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('&nbsp;'); ?></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('"','&quot;',$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('&nbsp;'); ?></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('"','&quot;',$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('&nbsp;'); ?></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('&nbsp;&nbsp;&nbsp;&nbsp;'); ?></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('_','&nbsp;',$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('&nbsp;'); ?></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('_','&nbsp;',$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('&nbsp;'); ?></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('_','&nbsp;',$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('&nbsp;'); ?></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('_','&nbsp;',$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('&nbsp;'); ?></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="&nbsp;&nbsp;&nbsp;&nbsp;OK&nbsp;&nbsp;&nbsp;&nbsp;" /> </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('_','&nbsp;',$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('_','&nbsp;',$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('"','&quot;',$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('"','&quot;',$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="{&quot;action&quot;:&quot;language&quot;,&quot;subaction&quot;:&quot;setdefault&quot;,&quot;id&quot;:&quot;<?php echo $id ?>&quot;,&quot;token&quot;:&quot;<?php echo token() ?>&quot;,&quot;none&quot;:&quot;0&quot;}"> + <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('"','&quot;',$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="{&quot;action&quot;:&quot;start&quot;,&quot;subaction&quot;:&quot;language&quot;,&quot;id&quot;:&quot;<?php echo $id ?>&quot;,&quot;token&quot;:&quot;<?php echo token() ?>&quot;,&quot;none&quot;:&quot;0&quot;}"> + <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('"','&quot;',$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('"','&quot;',$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('"','&quot;',$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('_','&nbsp;',$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('_','&nbsp;',$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('"','&quot;',$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('"','&quot;',$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="{&quot;action&quot;:&quot;model&quot;,&quot;subaction&quot;:&quot;setdefault&quot;,&quot;id&quot;:&quot;<?php echo $id ?>&quot;,&quot;token&quot;:&quot;<?php echo token() ?>&quot;,&quot;none&quot;:&quot;0&quot;}"> + <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('"','&quot;',$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_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:54 +0100 --></a> + <?php $if5=(!empty($select_url)); if($if5){?> + <td class="clickable"> + <a target="_self" data-type="post" data-action="start" data-method="model" data-id="<?php echo $id ?>" data-data="{&quot;action&quot;:&quot;start&quot;,&quot;subaction&quot;:&quot;model&quot;,&quot;id&quot;:&quot;<?php echo $id ?>&quot;,&quot;token&quot;:&quot;<?php echo token() ?>&quot;,&quot;none&quot;:&quot;0&quot;}"> + <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:54 +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:54 +0100 --></tr> + <?php } ?> + </tr> <?php unset($select_url) ?> <?php unset($default_url) ?> - <!-- Compiling list/list-end @ Wed, 29 Nov 2017 00:50:54 +0100 --><?php } ?><!-- Compiling row/row-begin @ Wed, 29 Nov 2017 00:50:54 +0100 --><?php $a3_class='data'; ?><?php - $column_idx = 0; -?> -<tr - class="data" -> -<?php unset($a3_class) ?> - <td class="clickable" colspan="3"><!-- Compiling link/link-begin @ Wed, 29 Nov 2017 00:50:54 +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('"','&quot;',$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="3"> + <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:54 +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:54 +0100 --></a> - </td><!-- Compiling row/row-end @ Wed, 29 Nov 2017 00:50:54 +0100 --></tr><!-- Compiling table/table-end @ Wed, 29 Nov 2017 00:50:54 +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/object/inherit.tpl.out.php b/themes/default/templates/object/inherit.tpl.out.php @@ -0,0 +1,67 @@ +<!-- Compiling output/output-begin --><!-- Compiling header/header-begin --><?php $a2_name='';$a2_back=true; ?><?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"; +?> + + <?php $if3=($type=='folder'); if($if3){?> + <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><!-- 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 part/part-end --></div><!-- Compiling part/part-begin --><?php $a6_class='input'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?> + <?php $inherit= '1'; ?> + + <?php { $tmpname = 'inherit';$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='inherit'; ?><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(''.'inherit_rights'.'')))); ?></span> + <!-- Compiling label/label-end --></label><!-- Compiling part/part-end --></div><!-- Compiling part/part-end --></div> + </div></fieldset> + <?php } ?> + +<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/object/rights.tpl.out.php b/themes/default/templates/object/rights.tpl.out.php @@ -1,37 +1,14 @@ <!-- Compiling output/output-begin --> - <?php $if2=($type=='folder'); if($if2){?><!-- Compiling header/header-begin --><?php $a3_name='';$a3_views='inherit,aclform';$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 $if2=($type=='folder'); if($if2){?> + + <?php } ?> - </div> -<?php } ?> -<?php unset($a3_name,$a3_views,$a3_back) ?> + <?php if(!$if2){?> + + <?php } ?> - <?php if(!$if2){?><!-- Compiling header/header-begin --><?php $a3_name='';$a3_views='aclform';$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) ?> - <?php } ?> - <table width="100%'><!-- Compiling row/row-begin --><?php $a3_class='headline'; ?><?php - $column_idx = 0; -?> -<tr - class="headline" -> -<?php unset($a3_class) ?> + <table width="100%"> + <tr class="headline"> <td class="help"> <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'GLOBAL_NAME'.'')))); ?></span> @@ -66,18 +43,15 @@ <td class="help"> <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'global_delete'.'')))); ?></span> - </td><!-- Compiling row/row-end --></tr> - <?php $if3=(empty($acls)); if($if3){?><!-- Compiling row/row-begin --><?php $a4_class='data'; ?><?php - $column_idx = 0; -?> -<tr - class="data" -> -<?php unset($a4_class) ?> + </td> + </tr> + <?php $if3=(empty($acls)); if($if3){?> + <tr class="data"> <td colspan="99"> <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('GLOBAL_NOT_FOUND')))); ?></span> - </td><!-- Compiling row/row-end --></tr> + </td> + </tr> <?php } ?> <?php $if3=!(empty($acls)); if($if3){?> <?php } ?><!-- Compiling list/list-begin --><?php $a3_list='acls';$a3_extract=true;$a3_key='aclid';$a3_value='acl'; ?><?php @@ -99,13 +73,8 @@ } 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) ?> +?><?php unset($a3_list,$a3_extract,$a3_key,$a3_value) ?> + <tr class="data"> <td> <?php $if6=(!empty($username)); if($if6){?> <img class="" title="" src="./themes/default/images/icon_user.png" /> @@ -191,13 +160,9 @@ ?><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_subaction,$a6_var1,$a6_value1,$a6_frame,$a6_modal) ?> <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'GLOBAL_DELETE'.'')))); ?></span> <!-- Compiling link/link-end --></a> - </td><!-- Compiling row/row-end --></tr><!-- Compiling list/list-end --><?php } ?><!-- Compiling row/row-begin --><?php $a3_class='data'; ?><?php - $column_idx = 0; -?> -<tr - class="data" -> -<?php unset($a3_class) ?> + </td> + </tr><!-- Compiling list/list-end --><?php } ?> + <tr class="data"> <td class="clickable" colspan="99"><!-- Compiling link/link-begin --><?php $a5_title='';$a5_type='dialog';$a5_class='';$a5_subaction='aclform';$a5_name=lang('menu_aclform');$a5_frame='_self';$a5_modal=false; ?><?php $params = array(); $a5_url=''; @@ -223,5 +188,6 @@ <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('new')))); ?></span> <!-- Compiling link/link-end --></a> - </td><!-- Compiling row/row-end --></tr> + </td> + </tr> </table> \ No newline at end of file diff --git a/themes/default/templates/page/changetemplate.tpl.out.php b/themes/default/templates/page/changetemplate.tpl.out.php @@ -0,0 +1,125 @@ +<!-- Compiling output/output-begin --> + <form name="" + target="_self" + action="<?php echo OR_ACTION ?>" + data-method="changetemplateselectelements" + data-action="<?php echo OR_ACTION ?>" + data-id="<?php echo OR_ID ?>" + method="changetemplateselectelements" + 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="changetemplateselectelements" /> +<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('page_template_old')))); ?></span> + + </div> + <div class="input"><!-- Compiling link/link-begin --><?php $a5_title='';$a5_type='';$a5_target='cms_main';$a5_url=$template_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('"','&quot;',$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) ?> + <img class="" title="" src="./themes/default/images/icon_template.png" /> + + <span class="text"><?php echo nl2br(encodeHtml(htmlentities($template_name))); ?></span> + <!-- Compiling link/link-end --></a> + </div> + </div> + <div class="line"> + <div class="label"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('page_template_new')))); ?></span> + + </div> + <div class="input"><!-- Compiling selectbox/selectbox-begin --><?php $a5_list='templates';$a5_name='newtemplateid';$a5_onchange='';$a5_title='';$a5_class='focus';$a5_addempty=false;$a5_multiple=false;$a5_size='1';$a5_lang=false; ?><?php +$a5_readonly=false; +$a5_tmp_list = $$a5_list; +if ($this->isEditable() && !$this->isEditMode()) +{ + echo empty($$a5_name)?'- '.lang('EMPTY').' -':$a5_tmp_list[$$a5_name]; +} +else +{ +if ( $a5_addempty!==FALSE ) +{ + if ($a5_addempty===TRUE) + $a5_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a5_tmp_list; + else + $a5_tmp_list = array(''=>'- '.lang($a5_addempty).' -')+$a5_tmp_list; +} +?><div class="inputholder"><select<?php if ($a5_readonly) echo ' disabled="disabled"' ?> id="<?php echo REQUEST_ID ?>_<?php echo $a5_name ?>" name="<?php echo $a5_name; if ($a5_multiple) echo '[]'; ?>" onchange="<?php echo $a5_onchange ?>" title="<?php echo $a5_title ?>" class="<?php echo $a5_class ?>"<?php +if (count($$a5_list)<=1) echo ' disabled="disabled"'; +if ($a5_multiple) echo ' multiple="multiple"'; +echo ' size="'.intval($a5_size).'"'; +?>><?php + if ( isset($$a5_name) && isset($a5_tmp_list[$$a5_name]) ) + $a5_tmp_default = $$a5_name; + elseif ( isset($a5_default) ) + $a5_tmp_default = $a5_default; + else + $a5_tmp_default = ''; + foreach( $a5_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( $a5_lang ) + { + $box_title = lang( $box_value.'_DESC'); + $box_value = lang( $box_value ); + } + else + { + $box_title = ''; + } + echo '<option class="'.$a5_class.'" value="'.$box_key.'" title="'.$box_title.'"'; + if ((string)$box_key==$a5_tmp_default) + echo ' selected="selected"'; + echo '>'.$box_value.'</option>'; + } +?></select></div><?php +if (count($$a5_list)==0) echo '<input type="hidden" name="'.$a5_name.'" value="" />'; +if (count($$a5_list)==1) echo '<input type="hidden" name="'.$a5_name.'" value="'.$box_key.'" />'; +} +?><?php unset($a5_list,$a5_name,$a5_onchange,$a5_title,$a5_class,$a5_addempty,$a5_multiple,$a5_size,$a5_lang) ?> + </div> + </div> + +<div class="bottom"> + <div class="command true"> + + <input type="button" class="submit ok" value="<?php echo lang('BUTTON_NEXT') ?>" onclick="$(this).closest('div.sheet').find('form').submit(); " /> + + <!-- Cancel-Button nicht anzeigen, wenn cancel==false. --><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();" /> </div> +</div> + +</form> diff --git a/themes/default/templates/page/edit.tpl.out.php b/themes/default/templates/page/edit.tpl.out.php @@ -1,144 +1,48 @@ -<!-- Compiling output/output-begin @ Wed, 29 Nov 2017 01:27:15 +0100 --><!-- Compiling table/table-begin @ Wed, 29 Nov 2017 01:27:15 +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) ?> - <?php $if3=(empty('el')); if($if3){?><!-- Compiling row/row-begin @ Wed, 29 Nov 2017 01:27:15 +0100 --><?php $a4_class='headline'; ?><?php - $column_idx = 0; -?> -<tr - class="headline" -> -<?php unset($a4_class) ?> - <td class="help"><!-- Compiling text/text-begin @ Wed, 29 Nov 2017 01:27:15 +0100 --><?php $a6_class='text';$a6_text='PAGE_ELEMENT_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 output/output-begin --> + <table width="100%"> + <?php $if3=(empty($el)); if($if3){?> + <tr class="headline"> + <td class="help"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('PAGE_ELEMENT_NAME')))); ?></span> + </td> - <td class="help"><!-- Compiling text/text-begin @ Wed, 29 Nov 2017 01:27:15 +0100 --><?php $a6_class='text';$a6_text='PAGE_ELEMENT_VALUE';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php - $langF = $a6_escape?'langHtml':'lang'; - $tmp_text = $langF($a6_text); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_text,$a6_escape,$a6_cut) ?> - </td><!-- Compiling row/row-end @ Wed, 29 Nov 2017 01:27:15 +0100 --></tr> + <td class="help"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('PAGE_ELEMENT_VALUE')))); ?></span> + + </td> + </tr> <?php } ?> - <?php $if3=(empty('el')); if($if3){?><!-- Compiling row/row-begin @ Wed, 29 Nov 2017 01:27:15 +0100 --><?php - $column_idx = 0; -?> -<tr -> - - <td><!-- Compiling text/text-begin @ Wed, 29 Nov 2017 01:27:15 +0100 --><?php $a6_class='text';$a6_text='GLOBAL_NOT_FOUND';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php - $langF = $a6_escape?'langHtml':'lang'; - $tmp_text = $langF($a6_text); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_text,$a6_escape,$a6_cut) ?> - </td><!-- Compiling row/row-end @ Wed, 29 Nov 2017 01:27:15 +0100 --></tr> - <?php } ?><!-- Compiling list/list-begin @ Wed, 29 Nov 2017 01:27:15 +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 01:27:15 +0100 --><?php $a4_class='data'; ?><?php - $column_idx = 0; -?> -<tr - class="data" -> -<?php unset($a4_class) ?> - <td class="clickable"><!-- Compiling link/link-begin @ Wed, 29 Nov 2017 01:27:15 +0100 --><?php $a6_title=$desc;$a6_type='open';$a6_class='';$a6_action='pageelement';$a6_id=$pageelementid;$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('"','&quot;',$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) ?> + <?php $if3=(empty($el)); if($if3){?> + <tr> + <td> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('GLOBAL_NOT_FOUND')))); ?></span> + + </td> + </tr> + <?php } ?> + <?php foreach($el as $list_key=>$list_value){ ?><?php extract($list_value) ?> + <tr class="data"> + <td class="clickable"> + <a title="<?php echo $desc ?>" target="_self" date-name="<?php echo $name ?>" name="<?php echo $name ?>" data-type="open" data-action="pageelement" data-method="<?php echo OR_METHOD ?>" data-id="<?php echo $pageelementid ?>" href="javascript:void(0);"> <img class="image-icon image-icon--element" title="" src="./themes/default/images/icon/element/<?php echo $type ?>.svg" /> - <!-- Compiling text/text-begin @ Wed, 29 Nov 2017 01:27:15 +0100 --><?php $a7_class='text';$a7_var='name';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php - $langF = $a7_escape?'langHtml':'lang'; - $tmp_text = isset($$a7_var)?$$a7_var:$langF('UNKNOWN'); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_var,$a7_escape,$a7_cut) ?><!-- Compiling link/link-end @ Wed, 29 Nov 2017 01:27:15 +0100 --></a> + + <span class="text"><?php echo nl2br(encodeHtml(htmlentities($name))); ?></span> + + </a> + + </td> + <td> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(Text::maxLength( $value,50,'..',constant('STR_PAD_BOTH') )))); ?></span> + + <span class="text"><?php echo nl2br('&nbsp;'); ?></span> + </td> - <td><!-- Compiling text/text-begin @ Wed, 29 Nov 2017 01:27:15 +0100 --><?php $a6_class='text';$a6_var='value';$a6_maxlength='50';$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 = Text::maxLength( $tmp_text,intval($a6_maxlength),'..',constant('STR_PAD_'.strtoupper($a6_cut)) ); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_var,$a6_maxlength,$a6_escape,$a6_cut) ?><!-- Compiling text/text-begin @ Wed, 29 Nov 2017 01:27:15 +0100 --><?php $a6_class='text';$a6_raw='_';$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 = str_replace('_','&nbsp;',$a6_raw); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_raw,$a6_escape,$a6_cut) ?> - </td><!-- Compiling row/row-end @ Wed, 29 Nov 2017 01:27:15 +0100 --></tr><!-- Compiling list/list-end @ Wed, 29 Nov 2017 01:27:15 +0100 --><?php } ?><!-- Compiling table/table-end @ Wed, 29 Nov 2017 01:27:15 +0100 --><?php - $column_idx = $last_column_idx; -?> -</table> - <fieldset class="<?php echo 1?" open":"" ?><?php echo 1?" show":"" ?>"><legend><div class="arrow-right closed" /><div class="arrow-down open" /><?php echo lang('menu_page_show') ?></legend><div><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 01:27:15 +0100 --><div><!-- Compiling insert/insert-begin @ Wed, 29 Nov 2017 01:27:15 +0100 --><?php $a4_inline=false;$a4_url=$preview_url;$a4_name='preview'; ?><iframe - name="<?php echo $a4_name ?>" - src="<?php echo $a4_url ?>" -></iframe> -<?php unset($a4_inline,$a4_url,$a4_name) ?><!-- Compiling part/part-end @ Wed, 29 Nov 2017 01:27:15 +0100 --></div> + </tr> + <?php } ?> + </table> + <fieldset class="<?php echo '1'?" open":"" ?><?php echo '1'?" show":"" ?>"><legend><div class="arrow-right closed" /><div class="arrow-down open" /><?php echo lang('menu_page_show') ?></legend><div> + <div> + <iframe name="preview" src="<?php echo $preview_url ?>"></iframe> + + </div> </div></fieldset> \ No newline at end of file diff --git a/themes/default/templates/page/form.tpl.src.xml b/themes/default/templates/page/form.tpl.src.xml @@ -1,3 +1,78 @@ -<output xmlns="http://www.openrat.de/template" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.openrat.de/template ../template.xsd"><dummy><form><window><table><if empty="el"><row><column colspan="4"><text text="GLOBAL_NOT_FOUND"></text></column></row></if><if not="" empty="el"><row><column class="help"><text text="PAGE_ELEMENT_NAME"></text></column><column class="help"><text text="GLOBAL_CHANGE"></text></column><column class="help"><text text="GLOBAL_VALUE"></text></column></row><list list="el" extract="true"><row class="data"><column><label for="var:saveid"><image elementtype="var:type"></image><text var="name"></text></label></column><column><checkbox name="var:saveid" default="false" readonly="false"></checkbox></column><column><if value="var:type" contains="text,date,number"><input index="true" type="text" name="var:id" default="var:value" size="40" maxlength="255" onchange="onchange"></input></if><if value="var:type" equals="longtext"><inputarea index="true" name="var:id" rows="7" cols="50" onchange="onchange" default="var:value"></inputarea></if><if value="var:type" contains="select,link,list"><selectbox name="var:id" list="list" default="var:value"></selectbox></if></column></row></list></if></table><group title="message:options"><if present="release"><part><checkbox name="release"></checkbox><label for="release"><text raw="_"></text><text text="GLOBAL_RELEASE"></text></label></part></if><if present="publish"><part><checkbox name="publish"></checkbox><label for="publish"><text raw="_"></text><text text="PAGE_PUBLISH_AFTER_SAVE"></text></label></part></if></group><button type="ok"></button></window></form></dummy></output>- \ No newline at end of file +<output xmlns="http://www.openrat.de/template" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.openrat.de/template ../template.xsd"> + <dummy> + <form> + <window> + <table> + <if empty="el"> + <row> + <column colspan="4"> + <text text="GLOBAL_NOT_FOUND"></text> + </column> + </row> + </if> + <if not="" empty="el"> + <row> + <column class="help"> + <text text="PAGE_ELEMENT_NAME"></text> + </column> + <column class="help"> + <text text="GLOBAL_CHANGE"></text> + </column> + <column class="help"> + <text text="GLOBAL_VALUE"></text> + </column> + </row> + <list list="el" extract="true"> + <row class="data"> + <column> + <label for="var:saveid"> + <image elementtype="var:type"></image> + <text var="name"></text> + </label> + </column> + <column> + <checkbox name="var:saveid" default="false" readonly="false"></checkbox> + </column> + <column> + <if value="var:type" contains="text,date,number"> + <input index="true" type="text" name="var:id" default="var:value" + size="40" maxlength="255" onchange="onchange"></input> + </if> + <if value="var:type" equals="longtext"> + <inputarea index="true" name="var:id" rows="7" cols="50" + onchange="onchange" default="var:value"></inputarea> + </if> + <if value="var:type" contains="select,link,list"> + <selectbox name="var:id" list="list" default="var:value"></selectbox> + </if> + </column> + </row> + </list> + </if> + </table> + <group title="message:options"> + <if present="release"> + <part> + <checkbox name="release"></checkbox> + <label for="release"> + <text raw="_"></text> + <text text="GLOBAL_RELEASE"></text> + </label> + </part> + </if> + <if present="publish"> + <part> + <checkbox name="publish"></checkbox> + <label for="publish"> + <text raw="_"></text> + <text text="PAGE_PUBLISH_AFTER_SAVE"></text> + </label> + </part> + </if> + </group> + <button type="ok"></button> + </window> + </form> + </dummy> +</output>+ \ No newline at end of file diff --git a/themes/default/templates/page/prop.tpl.out.php b/themes/default/templates/page/prop.tpl.out.php @@ -1,15 +1,6 @@ -<!-- Compiling output/output-begin @ Wed, 29 Nov 2017 01:27:15 +0100 --><!-- Compiling header/header-begin @ Wed, 29 Nov 2017 01:27:15 +0100 --><?php $a2_name='';$a2_views='changetemplate';$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 @ Wed, 29 Nov 2017 01:27:15 +0100 --><?php $a3_class='line'; ?><div class="<?php echo $a3_class ?>"><?php unset($a3_class) ?><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 01:27:15 +0100 --><?php $a4_class='label'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling label/label-begin @ Wed, 29 Nov 2017 01:27:15 +0100 --><?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 @ Wed, 29 Nov 2017 01:27:15 +0100 --><?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 @ Wed, 29 Nov 2017 01:27:15 +0100 --></label><!-- Compiling part/part-end @ Wed, 29 Nov 2017 01:27:15 +0100 --></div><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 01:27:15 +0100 --><?php $a4_class='input'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling input/input-begin @ Wed, 29 Nov 2017 01:27:15 +0100 --><?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 @ Wed, 29 Nov 2017 01:27:15 +0100 --></div><!-- Compiling part/part-end @ Wed, 29 Nov 2017 01:27:15 +0100 --></div><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 01:27:15 +0100 --><?php $a3_class='line'; ?><div class="<?php echo $a3_class ?>"><?php unset($a3_class) ?><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 01:27:15 +0100 --><?php $a4_class='label'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling label/label-begin @ Wed, 29 Nov 2017 01:27:15 +0100 --><?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 @ Wed, 29 Nov 2017 01:27:15 +0100 --><?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 @ Wed, 29 Nov 2017 01:27:15 +0100 --></label><!-- Compiling part/part-end @ Wed, 29 Nov 2017 01:27:15 +0100 --></div><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 01:27:15 +0100 --><?php $a4_class='input'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling input/input-begin @ Wed, 29 Nov 2017 01:27:15 +0100 --><?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,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 @ Wed, 29 Nov 2017 01:27:15 +0100 --></div><!-- Compiling part/part-end @ Wed, 29 Nov 2017 01:27:15 +0100 --></div><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 01:27:15 +0100 --><?php $a3_class='line'; ?><div class="<?php echo $a3_class ?>"><?php unset($a3_class) ?><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 01:27:15 +0100 --><?php $a4_class='label'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling label/label-begin @ Wed, 29 Nov 2017 01:27:15 +0100 --><?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 @ Wed, 29 Nov 2017 01:27:15 +0100 --><?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 @ Wed, 29 Nov 2017 01:27:15 +0100 --></label><!-- Compiling part/part-end @ Wed, 29 Nov 2017 01:27:15 +0100 --></div><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 01:27:15 +0100 --><?php $a4_class='input'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling inputarea/inputarea-begin @ Wed, 29 Nov 2017 01:27:15 +0100 --><?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 @ Wed, 29 Nov 2017 01:27:15 +0100 --></div><!-- Compiling part/part-end @ Wed, 29 Nov 2017 01:27:15 +0100 --></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/page/pub.tpl.out.php b/themes/default/templates/page/pub.tpl.out.php @@ -0,0 +1,65 @@ +<!-- 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" + 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="true" + 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":"" ?>"><legend><div class="arrow-right closed" /><div class="arrow-down open" /><?php echo lang('options') ?></legend><div> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <?php { $tmpname = 'files';$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 + } + } ?> + + <label for="<?php echo REQUEST_ID ?>_files" class="label"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('global_files')))); ?></span> + + </label> + </div> + </div> + </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/page/structure.tpl.out.php b/themes/default/templates/page/structure.tpl.out.php @@ -1,24 +1,5 @@ -<!-- Compiling output/output-begin @ Wed, 29 Nov 2017 01:27:15 +0100 --><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 01:27:15 +0100 --><?php $a2_class='structure tree'; ?><div class="<?php echo $a2_class ?>"><?php unset($a2_class) ?><!-- Compiling tree/tree-begin @ Wed, 29 Nov 2017 01:27:15 +0100 --><?php $a3_tree=$outline; ?><?php showList($a3_tree); -function showList( $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']) ) - { - showList($el['children'] ); - } - echo '</li>'; - } - echo '</ul>'; -} -?><?php unset($a3_tree) ?><!-- Compiling part/part-end @ Wed, 29 Nov 2017 01:27:15 +0100 --></div>- \ No newline at end of file +<!-- 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/pageelement/edit.tpl.out.php b/themes/default/templates/pageelement/edit.tpl.out.php @@ -0,0 +1,914 @@ +<!-- 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"; +?> +<!-- Compiling input/input-begin --><?php $a3_class='text';$a3_default='';$a3_type='hidden';$a3_name='elementid';$a3_size='';$a3_maxlength='256';$a3_onchange='';$a3_readonly=false;$a3_hint='';$a3_icon=''; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a3_readonly=true; + if ($a3_readonly && empty($$a3_name)) $$a3_name = '- '.lang('EMPTY').' -'; + if(!isset($a3_default)) $a3_default=''; + $tmp_value = Text::encodeHtml(isset($$a3_name)?$$a3_name:$a3_default); +?><?php if (!$a3_readonly || $a3_type=='hidden') { +?><div class="<?php echo $a3_type!='hidden'?'inputholder':'inputhidden' ?>"><input<?php if ($a3_readonly) echo ' disabled="true"' ?><?php if ($a3_hint) echo ' data-hint="'.$a3_hint.'"'; ?> id="<?php echo REQUEST_ID ?>_<?php echo $a3_name ?><?php if ($a3_readonly) echo '_disabled' ?>" name="<?php echo $a3_name ?><?php if ($a3_readonly) echo '_disabled' ?>" type="<?php echo $a3_type ?>" maxlength="<?php echo $a3_maxlength ?>" class="<?php echo str_replace(',',' ',$a3_class) ?>" value="<?php echo $tmp_value ?>" /><?php if ($a3_icon) echo '<img src="'.$image_dir.'icon_'.$a3_icon.IMG_ICON_EXT.'" width="16" height="16" />'; ?></div><?php +if ($a3_readonly) { +?><input type="hidden" id="<?php echo REQUEST_ID ?>_<?php echo $a3_name ?>" name="<?php echo $a3_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 $a3_class ?>"><?php echo $tmp_value ?></span></a><?php } ?><?php unset($a3_class,$a3_default,$a3_type,$a3_name,$a3_size,$a3_maxlength,$a3_onchange,$a3_readonly,$a3_hint,$a3_icon) ?><!-- Compiling input/input-begin --><?php $a3_class='text';$a3_default='';$a3_type='hidden';$a3_name='value_time';$a3_size='';$a3_maxlength='256';$a3_onchange='';$a3_readonly=false;$a3_hint='';$a3_icon=''; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a3_readonly=true; + if ($a3_readonly && empty($$a3_name)) $$a3_name = '- '.lang('EMPTY').' -'; + if(!isset($a3_default)) $a3_default=''; + $tmp_value = Text::encodeHtml(isset($$a3_name)?$$a3_name:$a3_default); +?><?php if (!$a3_readonly || $a3_type=='hidden') { +?><div class="<?php echo $a3_type!='hidden'?'inputholder':'inputhidden' ?>"><input<?php if ($a3_readonly) echo ' disabled="true"' ?><?php if ($a3_hint) echo ' data-hint="'.$a3_hint.'"'; ?> id="<?php echo REQUEST_ID ?>_<?php echo $a3_name ?><?php if ($a3_readonly) echo '_disabled' ?>" name="<?php echo $a3_name ?><?php if ($a3_readonly) echo '_disabled' ?>" type="<?php echo $a3_type ?>" maxlength="<?php echo $a3_maxlength ?>" class="<?php echo str_replace(',',' ',$a3_class) ?>" value="<?php echo $tmp_value ?>" /><?php if ($a3_icon) echo '<img src="'.$image_dir.'icon_'.$a3_icon.IMG_ICON_EXT.'" width="16" height="16" />'; ?></div><?php +if ($a3_readonly) { +?><input type="hidden" id="<?php echo REQUEST_ID ?>_<?php echo $a3_name ?>" name="<?php echo $a3_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 $a3_class ?>"><?php echo $tmp_value ?></span></a><?php } ?><?php unset($a3_class,$a3_default,$a3_type,$a3_name,$a3_size,$a3_maxlength,$a3_onchange,$a3_readonly,$a3_hint,$a3_icon) ?> + + <span class="help"><?php echo nl2br(encodeHtml(htmlentities($desc))); ?></span> + + <?php $if4=($type=='date'); if($if4){?> + <fieldset class="<?php echo '1'?" open":"" ?><?php echo '1'?" show":"" ?>"><legend><div class="arrow-right closed" /><div class="arrow-down open" /><?php echo lang('calendar') ?></legend><div> + <div> + <table class="calendar" width="85%"> + <tr> + <td class="help" colspan="8"> + <a target="_self" data-url="<?php echo $lastmonthurl ?>" 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="./themes/default/images/icon/left.png" /> + + </a> + + <span class="text"><?php echo nl2br('&nbsp;'); ?></span> + + <strong class="text"><?php echo nl2br(encodeHtml(htmlentities($monthname))); ?></strong> + + <span class="text"><?php echo nl2br('&nbsp;'); ?></span> + + <a target="_self" data-url="<?php echo $nextmonthurl ?>" 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="./themes/default/images/icon/right.png" /> + + </a> + + <span class="text"><?php echo nl2br('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'); ?></span> + + <a target="_self" data-url="<?php echo $lastyearurl ?>" 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="./themes/default/images/icon/left.png" /> + + </a> + + <span class="text"><?php echo nl2br('&nbsp;'); ?></span> + + <strong class="text"><?php echo nl2br(encodeHtml(htmlentities($yearname))); ?></strong> + + <span class="text"><?php echo nl2br('&nbsp;'); ?></span> + + <a target="_self" data-url="<?php echo $nextyearurl ?>" 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="./themes/default/images/icon/right.png" /> + + </a> + + </td> + </tr> + <tr> + <td> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'week'.'')))); ?></span> + + </td><!-- Compiling list/list-begin --><?php $a9_list='weekdays';$a9_extract=false;$a9_key='list_key';$a9_value='weekday'; ?><?php + $a9_list_tmp_key = $a9_key; + $a9_list_tmp_value = $a9_value; + $a9_list_extract = $a9_extract; + unset($a9_key); + unset($a9_value); + if ( !isset($$a9_list) || !is_array($$a9_list) ) + $$a9_list = array(); + foreach( $$a9_list as $$a9_list_tmp_key => $$a9_list_tmp_value ) + { + if ( $a9_list_extract ) + { + if ( !is_array($$a9_list_tmp_value) ) + { + print_r($$a9_list_tmp_value); + die( 'not an array at key: '.$$a9_list_tmp_key ); + } + extract($$a9_list_tmp_value); + } +?><?php unset($a9_list,$a9_extract,$a9_key,$a9_value) ?> + <td> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities($weekday))); ?></span> + + </td><!-- Compiling list/list-end --><?php } ?> + </tr><!-- Compiling list/list-begin --><?php $a8_list='weeklist';$a8_extract=false;$a8_key='weeknr';$a8_value='week'; ?><?php + $a8_list_tmp_key = $a8_key; + $a8_list_tmp_value = $a8_value; + $a8_list_extract = $a8_extract; + unset($a8_key); + unset($a8_value); + if ( !isset($$a8_list) || !is_array($$a8_list) ) + $$a8_list = array(); + foreach( $$a8_list as $$a8_list_tmp_key => $$a8_list_tmp_value ) + { + if ( $a8_list_extract ) + { + if ( !is_array($$a8_list_tmp_value) ) + { + print_r($$a8_list_tmp_value); + die( 'not an array at key: '.$$a8_list_tmp_key ); + } + extract($$a8_list_tmp_value); + } +?><?php unset($a8_list,$a8_extract,$a8_key,$a8_value) ?> + <tr> + <td width="12%"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities($weeknr))); ?></span> + + </td><!-- Compiling list/list-begin --><?php $a10_list='week';$a10_extract=true;$a10_key='list_key';$a10_value='list_value'; ?><?php + $a10_list_tmp_key = $a10_key; + $a10_list_tmp_value = $a10_value; + $a10_list_extract = $a10_extract; + unset($a10_key); + unset($a10_value); + if ( !isset($$a10_list) || !is_array($$a10_list) ) + $$a10_list = array(); + foreach( $$a10_list as $$a10_list_tmp_key => $$a10_list_tmp_value ) + { + if ( $a10_list_extract ) + { + if ( !is_array($$a10_list_tmp_value) ) + { + print_r($$a10_list_tmp_value); + die( 'not an array at key: '.$$a10_list_tmp_key ); + } + extract($$a10_list_tmp_value); + } +?><?php unset($a10_list,$a10_extract,$a10_key,$a10_value) ?> + <td width="12%"> + <?php $if12=(empty($url)); if($if12){?> + <span class="text"><?php echo nl2br('&nbsp;&nbsp;'); ?></span> + + <strong class="text"><?php echo nl2br(encodeHtml(htmlentities($nr))); ?></strong> + + <span class="text"><?php echo nl2br('&nbsp;&nbsp;'); ?></span> + + <?php } ?> + <?php $if12=!(empty($url)); if($if12){?> + <a target="_self" data-url="<?php echo $url ?>" 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('&nbsp;&nbsp;'); ?></span> + + <span class="text"><?php echo nl2br(encodeHtml(htmlentities($nr))); ?></span> + + <span class="text"><?php echo nl2br('&nbsp;&nbsp;'); ?></span> + + </a> + + <?php } ?> + <?php $if12=($today); if($if12){?> + <span class="text"><?php echo nl2br('*'); ?></span> + + <?php } ?> + </td><!-- Compiling list/list-end --><?php } ?> + </tr><!-- Compiling list/list-end --><?php } ?> + </table> + </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('date') ?></legend><div> + <div><!-- Compiling label/label-begin --><?php $a7_for='year'; ?><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(''.'date'.'')))); ?></span> + <!-- Compiling label/label-end --></label><!-- Compiling selectbox/selectbox-begin --><?php $a7_list='all_years';$a7_name='year';$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) ?> + <span class="text"><?php echo nl2br('&nbsp;-&nbsp;'); ?></span> + <!-- Compiling selectbox/selectbox-begin --><?php $a7_list='all_months';$a7_name='month';$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) ?> + <span class="text"><?php echo nl2br('&nbsp;-&nbsp;'); ?></span> + <!-- Compiling selectbox/selectbox-begin --><?php $a7_list='all_days';$a7_name='day';$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><!-- Compiling label/label-begin --><?php $a7_for='hour'; ?><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(''.'date_time'.'')))); ?></span> + <!-- Compiling label/label-end --></label><!-- Compiling selectbox/selectbox-begin --><?php $a7_list='all_hours';$a7_name='hour';$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) ?> + <span class="text"><?php echo nl2br('&nbsp;-&nbsp;'); ?></span> + <!-- Compiling selectbox/selectbox-begin --><?php $a7_list='all_minutes';$a7_name='minute';$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) ?> + <span class="text"><?php echo nl2br('&nbsp;-&nbsp;'); ?></span> + <!-- Compiling selectbox/selectbox-begin --><?php $a7_list='all_seconds';$a7_name='second';$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></fieldset> + <?php } ?> + <?php $if4=($type=='text'); if($if4){?> + <tr> + <td colspan="2"><!-- Compiling input/input-begin --><?php $a7_class='text';$a7_default='';$a7_type='text';$a7_name='text';$a7_size='50';$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) ?> + + + </td> + </tr> + <?php } ?> + <?php $if4=($type=='longtext'); if($if4){?> + <?php $if5=(!empty($preview)); if($if5){?> + <div class="preview"> + <fieldset class="<?php echo '1'?" open":"" ?><?php echo '1'?" show":"" ?>"><legend><div class="arrow-right closed" /><div class="arrow-down open" /><?php echo lang('page_preview') ?></legend><div> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities($preview))); ?></span> + + </div></fieldset> + </div> + <?php } ?> + <?php $if5=($editor=='html'); if($if5){?> + <textarea name="text" class="editor__html-editor" id="pageelement_edit_editor"><?php echo ${'text'} ?></textarea> + + <?php } ?> + <?php $if5=($editor=='wiki'); if($if5){?> + <?php $if6=(!empty($languagetext)); if($if6){?> + <fieldset class="<?php echo '1'?" open":"" ?><?php echo '1'?" show":"" ?>"><legend><div class="arrow-right closed" /><div class="arrow-down open" /><?php echo $languagename ?></legend><div> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities($languagetext))); ?></span> + + </div></fieldset><!-- Compiling newline/newline-begin --><br/><!-- Compiling newline/newline-begin --><br/> + <?php } ?> + <textarea name="text" class="editor__wiki-editor"><?php echo ${'text'} ?></textarea> + + <fieldset class="<?php echo '1'?" open":"" ?><?php echo '1'?" show":"" ?>"><legend><div class="arrow-right closed" /><div class="arrow-down open" /><?php echo lang('help') ?></legend><div> + <table width="100%"> + <td> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(@$conf['editor']['text-markup']['strong-begin']))); ?></span> + + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'text_markup_strong'.'')))); ?></span> + + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(@$conf['editor']['text-markup']['strong-end']))); ?></span> + <!-- Compiling newline/newline-begin --><br/> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(@$conf['editor']['text-markup']['emphatic-begin']))); ?></span> + + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'text_markup_emphatic'.'')))); ?></span> + + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(@$conf['editor']['text-markup']['emphatic-end']))); ?></span> + + </td> + <td> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(@$conf['editor']['text-markup']['list-numbered']))); ?></span> + + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'text_markup_numbered_list'.'')))); ?></span> + <!-- Compiling newline/newline-begin --><br/> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(@$conf['editor']['text-markup']['list-numbered']))); ?></span> + + <span class="text"><?php echo nl2br('...'); ?></span> + <!-- Compiling newline/newline-begin --><br/> + </td> + <td> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(@$conf['editor']['text-markup']['list-unnumbered']))); ?></span> + + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'text_markup_unnumbered_list'.'')))); ?></span> + <!-- Compiling newline/newline-begin --><br/> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(@$conf['editor']['text-markup']['list-unnumbered']))); ?></span> + + <span class="text"><?php echo nl2br('...'); ?></span> + <!-- Compiling newline/newline-begin --><br/> + </td> + <td> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(@$conf['editor']['text-markup']['table-cell-sep']))); ?></span> + + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'text_markup_table'.'')))); ?></span> + + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(@$conf['editor']['text-markup']['table-cell-sep']))); ?></span> + + <span class="text"><?php echo nl2br('...'); ?></span> + + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(@$conf['editor']['text-markup']['table-cell-sep']))); ?></span> + + <span class="text"><?php echo nl2br('...'); ?></span> + + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(@$conf['editor']['text-markup']['table-cell-sep']))); ?></span> + <!-- Compiling newline/newline-begin --><br/> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(@$conf['editor']['text-markup']['table-cell-sep']))); ?></span> + + <span class="text"><?php echo nl2br('...'); ?></span> + + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(@$conf['editor']['text-markup']['table-cell-sep']))); ?></span> + + <span class="text"><?php echo nl2br('...'); ?></span> + + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(@$conf['editor']['text-markup']['table-cell-sep']))); ?></span> + + <span class="text"><?php echo nl2br('...'); ?></span> + + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(@$conf['editor']['text-markup']['table-cell-sep']))); ?></span> + <!-- Compiling newline/newline-begin --><br/> + </td> + </table> + </div></fieldset> + <?php } ?> + <?php $if5=($editor=='text'); if($if5){?><!-- Compiling inputarea/inputarea-begin --><?php $a6_name='text';$a6_rows='25';$a6_cols='70';$a6_class='longtext';$a6_default=''; ?><div class="inputholder"><textarea class="<?php echo $a6_class ?>" name="<?php echo $a6_name ?>" ><?php echo Text::encodeHtml(isset($$a6_name)?$$a6_name:$a6_default) ?></textarea></div><?php unset($a6_name,$a6_rows,$a6_cols,$a6_class,$a6_default) ?> + + + <?php } ?> + <?php } ?> + <?php $if4=($type=='link'); if($if4){?> + <fieldset class="<?php echo '1'?" open":"" ?><?php echo '1'?" show":"" ?>"><div> + <div class="line"> + <div class="label"><!-- Compiling label/label-begin --><?php $a8_for='linkobjectid'; ?><label<?php if (isset($a8_for)) { ?> for="<?php echo REQUEST_ID ?>_<?php echo $a8_for ?><?php if (!empty($a8_value)) echo '_'.$a8_value ?>" <?php if(hasLang(@$a8_key.'_desc')) { ?> title="<?php echo lang(@$a8_key.'_desc')?>"<?php } ?> class="label"<?php } ?>> +<?php if (isset($a8_key)) { echo lang($a8_key); ?><?php if (isset($a8_text)) { echo $a8_text; } ?><?php } ?><?php unset($a8_for) ?> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'link_target'.'')))); ?></span> + <!-- Compiling label/label-end --></label> + </div> + <div class="input"> + <div class="selector"> +<div class="inputholder"> +<input type="hidden" name="linkobjectid" value="{id}" /> +<input type="text" disabled="disabled" value="{name}" /> +</div> +<div class="tree selector" data-types="{types}" data-init-id="<?php echo $linkobjectid ?>" data-init-folderid="<?php echo $rootfolderid ?>"> + + </div> + </div> + <div class="line"> + <div class="label"><!-- Compiling label/label-begin --><?php $a8_for='link_url'; ?><label<?php if (isset($a8_for)) { ?> for="<?php echo REQUEST_ID ?>_<?php echo $a8_for ?><?php if (!empty($a8_value)) echo '_'.$a8_value ?>" <?php if(hasLang(@$a8_key.'_desc')) { ?> title="<?php echo lang(@$a8_key.'_desc')?>"<?php } ?> class="label"<?php } ?>> +<?php if (isset($a8_key)) { echo lang($a8_key); ?><?php if (isset($a8_text)) { echo $a8_text; } ?><?php } ?><?php unset($a8_for) ?> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'link_url'.'')))); ?></span> + <!-- Compiling label/label-end --></label> + </div> + <div class="input"><!-- Compiling input/input-begin --><?php $a8_class='text';$a8_default='';$a8_type='text';$a8_name='linkurl';$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) ?> + </div> + </div> + </div></fieldset> + <?php } ?> + <?php $if4=($type=='list'); if($if4){?> + <fieldset class="<?php echo '1'?" open":"" ?><?php echo '1'?" show":"" ?>"><div> + <div><!-- Compiling selectbox/selectbox-begin --><?php $a7_list='objects';$a7_name='linkobjectid';$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></fieldset> + <?php } ?> + <?php $if4=($type=='insert'); if($if4){?> + <fieldset class="<?php echo '1'?" open":"" ?><?php echo '1'?" show":"" ?>"><div> + <div><!-- Compiling selectbox/selectbox-begin --><?php $a7_list='objects';$a7_name='linkobjectid';$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></fieldset> + <?php } ?> + <?php $if4=($type=='number'); if($if4){?> + <fieldset class="<?php echo '1'?" open":"" ?><?php echo '1'?" show":"" ?>"><div> + <div><!-- Compiling hidden/hidden-begin --><?php $a7_name='decimals';$a7_default='decimals'; ?><?php +if (isset($$a7_name)) + $a7_tmp_value = $$a7_name; +elseif ( isset($a7_default) ) + $a7_tmp_value = $a7_default; +else + $a7_tmp_value = ""; +?><input type="hidden" name="<?php echo $a7_name ?>" value="<?php echo $a7_tmp_value ?>" /><?php unset($a7_name,$a7_default) ?><!-- Compiling input/input-begin --><?php $a7_class='text';$a7_default='';$a7_type='text';$a7_name='number';$a7_size='15';$a7_maxlength='20';$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></fieldset> + <?php } ?> + <?php $if4=($type=='select'); if($if4){?> + <fieldset class="<?php echo '1'?" open":"" ?><?php echo '1'?" show":"" ?>"><div> + <div><!-- Compiling selectbox/selectbox-begin --><?php $a7_list='items';$a7_name='text';$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></fieldset> + <?php } ?> + <?php $if4=($type=='longtext'); if($if4){?> + <?php $if5=($editor=='wiki'); if($if5){?> + <?php $if6=(!empty($languages)); if($if6){?> + <fieldset class="<?php echo '1'?" open":"" ?><?php echo '1'?" show":"" ?>"><legend><div class="arrow-right closed" /><div class="arrow-down open" /><?php echo lang('editor_show_language') ?></legend><div> + <div><!-- Compiling list/list-begin --><?php $a9_list='languages';$a9_extract=false;$a9_key='languageid';$a9_value='languagename'; ?><?php + $a9_list_tmp_key = $a9_key; + $a9_list_tmp_value = $a9_value; + $a9_list_extract = $a9_extract; + unset($a9_key); + unset($a9_value); + if ( !isset($$a9_list) || !is_array($$a9_list) ) + $$a9_list = array(); + foreach( $$a9_list as $$a9_list_tmp_key => $$a9_list_tmp_value ) + { + if ( $a9_list_extract ) + { + if ( !is_array($$a9_list_tmp_value) ) + { + print_r($$a9_list_tmp_value); + die( 'not an array at key: '.$$a9_list_tmp_key ); + } + extract($$a9_list_tmp_value); + } +?><?php unset($a9_list,$a9_extract,$a9_key,$a9_value) ?><!-- Compiling radio/radio-begin --><?php $a10_readonly=false;$a10_name='otherlanguageid';$a10_value=$languageid;$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; + elseif ( isset($a10_default) ) + $a10_tmp_default = $a10_default; + 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 -->+ \ No newline at end of file diff --git a/themes/default/templates/pageelement/structure.tpl.out.php b/themes/default/templates/pageelement/structure.tpl.out.php @@ -0,0 +1,4 @@ +<!-- Compiling output/output-begin --> + <?php $if2=(!empty($text)); if($if2){?> + <div class="structure"> + + \ No newline at end of file diff --git a/themes/default/templates/profile/edit.tpl.out.php b/themes/default/templates/profile/edit.tpl.out.php @@ -1,269 +1,124 @@ -<!-- Compiling output/output-begin --><!-- Compiling header/header-begin --><?php $a2_name='';$a2_views='mail';$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"; -?> - <fieldset class="<?php echo 1?" open":"" ?><?php echo 1?" show":"" ?>"><legend><div class="arrow-right closed" /><div class="arrow-down open" /><?php echo lang('name') ?></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='user_username'; ?><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) ?> + + + + <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 ?>" /> + <fieldset class="<?php echo '1'?" open":"" ?><?php echo '1'?" show":"" ?>"><legend><div class="arrow-right closed" /><div class="arrow-down open" /><?php echo lang('name') ?></legend><div> + <div class="line"> + <div class="label"> + <label for="<?php echo REQUEST_ID ?>_name" class="label"><?php echo lang('user_username') ?> + </label> + </div> + <div class="input"> <span class="name"><?php echo nl2br(encodeHtml(htmlentities($name))); ?></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('MENU_PROFILE_MAIL') ?></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='mail';$a6_key='user_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,$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('MENU_PROFILE_MAIL') ?></legend><div> + <div class="line"> + <div class="label"> + <label for="<?php echo REQUEST_ID ?>_mail" class="label"><?php echo lang('user_mail') ?> + </label> + </div> + <div class="input"> <span class="text"><?php echo nl2br(encodeHtml(htmlentities($mail))); ?></span> - <!-- Compiling newline/newline-begin --><br/><!-- Compiling newline/newline-begin --><br/><!-- Compiling part/part-begin --><?php $a6_class='clickable'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><!-- Compiling link/link-begin --><?php $a7_title='';$a7_type='dialog';$a7_class='action';$a7_action='profile';$a7_subaction='mail';$a7_name=lang('mail');$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('"','&quot;',$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_name,$a7_frame,$a7_modal) ?> + + <br/> + + <br/> + + <div class="clickable"> + <a class="action" target="_self" date-name="<?php echo lang('mail') ?>" name="<?php echo lang('mail') ?>" data-type="dialog" data-action="profile" data-method="mail" data-id="<?php echo OR_ID ?>" href="javascript:void(0);"> <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'edit'.'')))); ?></span> - <!-- Compiling link/link-end --></a><!-- Compiling part/part-end --></div><!-- Compiling part/part-end --></div><!-- Compiling part/part-end --></div> + + </a> + + </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('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='fullname';$a6_key='user_fullname'; ?><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) ?><!-- Compiling input/input-begin --><?php $a6_class='text';$a6_default='';$a6_type='text';$a6_name='fullname';$a6_size='';$a6_maxlength='128';$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><!-- 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='tel';$a6_key='user_tel'; ?><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) ?><!-- Compiling input/input-begin --><?php $a6_class='text';$a6_default='';$a6_type='text';$a6_name='tel';$a6_size='40';$a6_maxlength='128';$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><!-- 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='desc';$a6_key='user_desc'; ?><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) ?><!-- Compiling input/input-begin --><?php $a6_class='text';$a6_default='';$a6_type='text';$a6_name='desc';$a6_size='40';$a6_maxlength='128';$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><!-- 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='style';$a6_key='user_style'; ?><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) ?><!-- Compiling selectbox/selectbox-begin --><?php $a6_list='allstyles';$a6_name='style';$a6_default=@$conf['interface']['style']['default'];$a6_onchange='';$a6_title='';$a6_class='';$a6_addempty=false;$a6_multiple=false;$a6_size='1';$a6_lang=false; ?><?php -$a6_readonly=false; -$a6_tmp_list = $$a6_list; -if ($this->isEditable() && !$this->isEditMode()) -{ - echo empty($$a6_name)?'- '.lang('EMPTY').' -':$a6_tmp_list[$$a6_name]; -} -else -{ -if ( $a6_addempty!==FALSE ) -{ - if ($a6_addempty===TRUE) - $a6_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a6_tmp_list; - else - $a6_tmp_list = array(''=>'- '.lang($a6_addempty).' -')+$a6_tmp_list; -} -?><div class="inputholder"><select<?php if ($a6_readonly) echo ' disabled="disabled"' ?> id="<?php echo REQUEST_ID ?>_<?php echo $a6_name ?>" name="<?php echo $a6_name; if ($a6_multiple) echo '[]'; ?>" onchange="<?php echo $a6_onchange ?>" title="<?php echo $a6_title ?>" class="<?php echo $a6_class ?>"<?php -if (count($$a6_list)<=1) echo ' disabled="disabled"'; -if ($a6_multiple) echo ' multiple="multiple"'; -echo ' size="'.intval($a6_size).'"'; -?>><?php - if ( isset($$a6_name) && isset($a6_tmp_list[$$a6_name]) ) - $a6_tmp_default = $$a6_name; - elseif ( isset($a6_default) ) - $a6_tmp_default = $a6_default; - else - $a6_tmp_default = ''; - foreach( $a6_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( $a6_lang ) - { - $box_title = lang( $box_value.'_DESC'); - $box_value = lang( $box_value ); - } - else - { - $box_title = ''; - } - echo '<option class="'.$a6_class.'" value="'.$box_key.'" title="'.$box_title.'"'; - if ((string)$box_key==$a6_tmp_default) - echo ' selected="selected"'; - echo '>'.$box_value.'</option>'; - } -?></select></div><?php -if (count($$a6_list)==0) echo '<input type="hidden" name="'.$a6_name.'" value="" />'; -if (count($$a6_list)==1) echo '<input type="hidden" name="'.$a6_name.'" value="'.$box_key.'" />'; -} -?><?php unset($a6_list,$a6_name,$a6_default,$a6_onchange,$a6_title,$a6_class,$a6_addempty,$a6_multiple,$a6_size,$a6_lang) ?><!-- 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='timezone_offset'; ?><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 '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"> + <label for="<?php echo REQUEST_ID ?>_fullname" class="label"><?php echo lang('user_fullname') ?> + </label> + </div> + <div class="input"> + <div class="inputholder"><input<?php if ('') echo ' disabled="true"' ?> id="<?php echo REQUEST_ID ?>_fullname" name="fullname<?php if ('') echo '_disabled' ?>" type="text" maxlength="128" class="text" value="<?php echo Text::encodeHtml(@$fullname) ?>" /><?php if ('') { ?><input type="hidden" name="fullname" value="<?php $fullname ?>"/><?php } ?></div> + + </div> + </div> + <div class="line"> + <div class="label"> + <label for="<?php echo REQUEST_ID ?>_tel" class="label"><?php echo lang('user_tel') ?> + </label> + </div> + <div class="input"> + <div class="inputholder"><input<?php if ('') echo ' disabled="true"' ?> id="<?php echo REQUEST_ID ?>_tel" name="tel<?php if ('') echo '_disabled' ?>" type="text" maxlength="128" class="text" value="<?php echo Text::encodeHtml(@$tel) ?>" /><?php if ('') { ?><input type="hidden" name="tel" value="<?php $tel ?>"/><?php } ?></div> + + </div> + </div> + <div class="line"> + <div class="label"> + <label for="<?php echo REQUEST_ID ?>_desc" class="label"><?php echo lang('user_desc') ?> + </label> + </div> + <div class="input"> + <div class="inputholder"><input<?php if ('') echo ' disabled="true"' ?> id="<?php echo REQUEST_ID ?>_desc" name="desc<?php if ('') echo '_disabled' ?>" type="text" maxlength="128" class="text" value="<?php echo Text::encodeHtml(@$desc) ?>" /><?php if ('') { ?><input type="hidden" name="desc" value="<?php $desc ?>"/><?php } ?></div> + + </div> + </div> + <div class="line"> + <div class="label"> + <label for="<?php echo REQUEST_ID ?>_style" class="label"><?php echo lang('user_style') ?> + </label> + </div> + <div class="input"> + <div class="inputholder"><select id="<?php echo REQUEST_ID ?>_style" name="style" title="" class=""<?php if (count($allstyles)<=1) echo ' disabled="disabled"'; ?> size=1"><?php include_once( OR_THEMES_DIR.'default/include/html/selectbox/component-select-box.php') ?><?php component_select_option_list($allstyles,@$conf['interface']['style']['default'],0,0) ?><?php if (count($allstyles)==0) { ?><input type="hidden" name="style" value="" /><?php } ?><?php if (count($allstyles)==1) { ?><input type="hidden" name="style" value="<?php echo array_keys($allstyles)[0] ?>" /><?php } ?> + </select></div> + </div> + </div> + <div class="line"> + <div class="label"> + <label for="<?php echo REQUEST_ID ?>_timezone_offset" class="label"> <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'timezone'.'')))); ?></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 selectbox/selectbox-begin --><?php $a6_list='timezone_list';$a6_name='timezone';$a6_onchange='';$a6_title='';$a6_class='';$a6_addempty=true;$a6_multiple=false;$a6_size='1';$a6_lang=false; ?><?php -$a6_readonly=false; -$a6_tmp_list = $$a6_list; -if ($this->isEditable() && !$this->isEditMode()) -{ - echo empty($$a6_name)?'- '.lang('EMPTY').' -':$a6_tmp_list[$$a6_name]; -} -else -{ -if ( $a6_addempty!==FALSE ) -{ - if ($a6_addempty===TRUE) - $a6_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a6_tmp_list; - else - $a6_tmp_list = array(''=>'- '.lang($a6_addempty).' -')+$a6_tmp_list; -} -?><div class="inputholder"><select<?php if ($a6_readonly) echo ' disabled="disabled"' ?> id="<?php echo REQUEST_ID ?>_<?php echo $a6_name ?>" name="<?php echo $a6_name; if ($a6_multiple) echo '[]'; ?>" onchange="<?php echo $a6_onchange ?>" title="<?php echo $a6_title ?>" class="<?php echo $a6_class ?>"<?php -if (count($$a6_list)<=1) echo ' disabled="disabled"'; -if ($a6_multiple) echo ' multiple="multiple"'; -echo ' size="'.intval($a6_size).'"'; -?>><?php - if ( isset($$a6_name) && isset($a6_tmp_list[$$a6_name]) ) - $a6_tmp_default = $$a6_name; - elseif ( isset($a6_default) ) - $a6_tmp_default = $a6_default; - else - $a6_tmp_default = ''; - foreach( $a6_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( $a6_lang ) - { - $box_title = lang( $box_value.'_DESC'); - $box_value = lang( $box_value ); - } - else - { - $box_title = ''; - } - echo '<option class="'.$a6_class.'" value="'.$box_key.'" title="'.$box_title.'"'; - if ((string)$box_key==$a6_tmp_default) - echo ' selected="selected"'; - echo '>'.$box_value.'</option>'; - } -?></select></div><?php -if (count($$a6_list)==0) echo '<input type="hidden" name="'.$a6_name.'" value="" />'; -if (count($$a6_list)==1) echo '<input type="hidden" name="'.$a6_name.'" value="'.$box_key.'" />'; -} -?><?php unset($a6_list,$a6_name,$a6_onchange,$a6_title,$a6_class,$a6_addempty,$a6_multiple,$a6_size,$a6_lang) ?><!-- 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=''; ?><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"><select id="<?php echo REQUEST_ID ?>_timezone" name="timezone" title="" class=""<?php if (count($timezone_list)<=1) echo ' disabled="disabled"'; ?> size=1"><?php include_once( OR_THEMES_DIR.'default/include/html/selectbox/component-select-box.php') ?><?php component_select_option_list($timezone_list,$timezone,1,0) ?><?php if (count($timezone_list)==0) { ?><input type="hidden" name="timezone" value="" /><?php } ?><?php if (count($timezone_list)==1) { ?><input type="hidden" name="timezone" value="<?php echo array_keys($timezone_list)[0] ?>" /><?php } ?> + </select></div> + </div> + </div> + <div class="line"> + <div class="label"> + <label class="label"> <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'language'.'')))); ?></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 selectbox/selectbox-begin --><?php $a6_list='language_list';$a6_name='language';$a6_onchange='';$a6_title='';$a6_class='';$a6_addempty=true;$a6_multiple=false;$a6_size='1';$a6_lang=false; ?><?php -$a6_readonly=false; -$a6_tmp_list = $$a6_list; -if ($this->isEditable() && !$this->isEditMode()) -{ - echo empty($$a6_name)?'- '.lang('EMPTY').' -':$a6_tmp_list[$$a6_name]; -} -else -{ -if ( $a6_addempty!==FALSE ) -{ - if ($a6_addempty===TRUE) - $a6_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a6_tmp_list; - else - $a6_tmp_list = array(''=>'- '.lang($a6_addempty).' -')+$a6_tmp_list; -} -?><div class="inputholder"><select<?php if ($a6_readonly) echo ' disabled="disabled"' ?> id="<?php echo REQUEST_ID ?>_<?php echo $a6_name ?>" name="<?php echo $a6_name; if ($a6_multiple) echo '[]'; ?>" onchange="<?php echo $a6_onchange ?>" title="<?php echo $a6_title ?>" class="<?php echo $a6_class ?>"<?php -if (count($$a6_list)<=1) echo ' disabled="disabled"'; -if ($a6_multiple) echo ' multiple="multiple"'; -echo ' size="'.intval($a6_size).'"'; -?>><?php - if ( isset($$a6_name) && isset($a6_tmp_list[$$a6_name]) ) - $a6_tmp_default = $$a6_name; - elseif ( isset($a6_default) ) - $a6_tmp_default = $a6_default; - else - $a6_tmp_default = ''; - foreach( $a6_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( $a6_lang ) - { - $box_title = lang( $box_value.'_DESC'); - $box_value = lang( $box_value ); - } - else - { - $box_title = ''; - } - echo '<option class="'.$a6_class.'" value="'.$box_key.'" title="'.$box_title.'"'; - if ((string)$box_key==$a6_tmp_default) - echo ' selected="selected"'; - echo '>'.$box_value.'</option>'; - } -?></select></div><?php -if (count($$a6_list)==0) echo '<input type="hidden" name="'.$a6_name.'" value="" />'; -if (count($$a6_list)==1) echo '<input type="hidden" name="'.$a6_name.'" value="'.$box_key.'" />'; -} -?><?php unset($a6_list,$a6_name,$a6_onchange,$a6_title,$a6_class,$a6_addempty,$a6_multiple,$a6_size,$a6_lang) ?><!-- Compiling part/part-end --></div><!-- Compiling part/part-end --></div> + + </label> + </div> + <div class="input"> + <div class="inputholder"><select id="<?php echo REQUEST_ID ?>_language" name="language" title="" class=""<?php if (count($language_list)<=1) echo ' disabled="disabled"'; ?> size=1"><?php include_once( OR_THEMES_DIR.'default/include/html/selectbox/component-select-box.php') ?><?php component_select_option_list($language_list,$language,1,0) ?><?php if (count($language_list)==0) { ?><input type="hidden" name="language" value="" /><?php } ?><?php if (count($language_list)==1) { ?><input type="hidden" name="language" value="<?php echo array_keys($language_list)[0] ?>" /><?php } ?> + </select></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('security') ?></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) ?> + <fieldset class="<?php echo '1'?" open":"" ?><?php echo '1'?" show":"" ?>"><legend><div class="arrow-right closed" /><div class="arrow-down open" /><?php echo lang('security') ?></legend><div> + <div class="line"> + <div class="label"> <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('user_password_expires')))); ?></span> - <!-- 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 class="input"> <?php include_once( OR_THEMES_DIR.'default/include/html/date/component-date.php') ?><?php component_date($passwordExpires) ?> - <!-- 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) ?> + + </div> + </div> + <div class="line"> + <div class="label"> + </div> + <div class="input"> <?php { $tmpname = 'totp';$default = '';$readonly = ''; if ( isset($$tmpname) ) $checked = $$tmpname; @@ -277,10 +132,17 @@ if (count($$a6_list)==1) echo '<input type="hidden" name="'.$a6_name.'" value="' ?><input type="hidden" name="<?php echo $tmpname ?>" value="1" /><?php } } ?> - <!-- Compiling label/label-begin --><?php $a6_for='totp';$a6_key='user_totp'; ?><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> + + <label for="<?php echo REQUEST_ID ?>_totp" class="label"><?php echo lang('user_totp') ?> + </label> <div class="qrcode" data-qrcode="<?php echo $totpSecretUrl ?>" title="<?php echo $totpSecretUrl ?>"></div> - <!-- 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) ?> + + </div> + </div> + <div class="line"> + <div class="label"> + </div> + <div class="input"> <?php { $tmpname = 'hotp';$default = '';$readonly = ''; if ( isset($$tmpname) ) $checked = $$tmpname; @@ -294,10 +156,13 @@ if (count($$a6_list)==1) echo '<input type="hidden" name="'.$a6_name.'" value="' ?><input type="hidden" name="<?php echo $tmpname ?>" value="1" /><?php } } ?> - <!-- Compiling label/label-begin --><?php $a6_for='hotp';$a6_key='user_hotp'; ?><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> + + <label for="<?php echo REQUEST_ID ?>_hotp" class="label"><?php echo lang('user_hotp') ?> + </label> <div class="qrcode" data-qrcode="<?php echo $hotpSecretUrl ?>" title="<?php echo $hotpSecretUrl ?>"></div> - <!-- Compiling part/part-end --></div><!-- Compiling part/part-end --></div> + + </div> + </div> </div></fieldset> <div class="bottom"> @@ -309,3 +174,5 @@ if (count($$a6_list)==1) echo '<input type="hidden" name="'.$a6_name.'" value="' </div> </form> + + + \ No newline at end of file diff --git a/themes/default/templates/profile/memberships.tpl.out.php b/themes/default/templates/profile/memberships.tpl.out.php @@ -1,62 +1,27 @@ -<!-- Compiling output/output-begin --><!-- Compiling table/table-begin --><?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 --><?php $a3_class='headline'; ?><?php - $column_idx = 0; -?> -<tr - class="headline" -> -<?php unset($a3_class) ?> + + + <table width="100%"> + <tr class="headline"> <td> <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'name'.'')))); ?></span> - </td><!-- Compiling row/row-end --></tr> - <?php $if3=(empty('groups')); if($if3){?><!-- Compiling row/row-begin --><?php $a4_class='data'; ?><?php - $column_idx = 0; -?> -<tr - class="data" -> -<?php unset($a4_class) ?> + </td> + </tr> + <?php $if3=(empty($groups)); if($if3){?> + <tr class="data"> <td> <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'NOT_FOUND'.'')))); ?></span> - </td><!-- Compiling row/row-end --></tr> - <?php } ?><!-- Compiling list/list-begin --><?php $a3_list='groups';$a3_extract=false;$a3_key='list_key';$a3_value='group'; ?><?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> + </tr> + <?php } ?> + <?php foreach($groups as $list_key=>$group){ ?> + <tr class="data"> <td> <span class="text"><?php echo nl2br(encodeHtml(htmlentities($group))); ?></span> - </td><!-- Compiling row/row-end --></tr><!-- Compiling list/list-end --><?php } ?><!-- Compiling table/table-end --><?php - $column_idx = $last_column_idx; -?> -</table>- \ No newline at end of file + </td> + </tr> + <?php } ?> + </table> + + \ No newline at end of file diff --git a/themes/default/templates/profile/pw.tpl.out.php b/themes/default/templates/profile/pw.tpl.out.php @@ -0,0 +1,79 @@ + + + <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=($pwchange_enabled); if($if3){?> + <div class="line logo"> + <div class="label"> + <img src="themes/default/images/logo_changepassword.png ?>" + border="0" /> + </div> + <div class="input"> + <h2> + <?php echo langHtml('logo_changepassword') ?> + </h2> + <p> + <?php echo langHtml('logo_changepassword_text') ?> + </p> + + </div> +</div> + </div> + <fieldset class="<?php echo '1'?" open":"" ?><?php echo '1'?" show":"" ?>"><legend><div class="arrow-right closed" /><div class="arrow-down open" /><?php echo lang('user_act_password') ?></legend><div> + <div class="line"> + <div class="label"> + <label for="<?php echo REQUEST_ID ?>_act_password" class="label"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('user_password')))); ?></span> + + </label> + </div> + <div class="input"> + <div class="inputholder"><input type="password" name="act_password" id="<?php echo REQUEST_ID ?>_act_password" size="40" maxlength="256" class="focus" value="<?php echo @$act_password?>"" /></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('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> + + </label> + </div> + <div class="input"> + <div class="inputholder"><input type="password" name="password1" id="<?php echo REQUEST_ID ?>_password1" size="40" maxlength="256" class="" value="<?php echo @$password1?>"" /></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> + + </label> + </div> + <div class="input"> + <div class="inputholder"><input type="password" name="password2" id="<?php echo REQUEST_ID ?>_password2" size="40" maxlength="256" class="" value="<?php echo @$password2?>"" /></div> + + </div> + </div> + </div></fieldset> + <?php } ?> + <?php if(!$if3){?> + <div class="message warn"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'pwchange_not_allowed'.'')))); ?></span> + + </div> + <?php } ?> + +<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> + + + \ No newline at end of file diff --git a/themes/default/templates/project/edit.tpl.out.php b/themes/default/templates/project/edit.tpl.out.php @@ -0,0 +1,127 @@ + + + + + <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 ?>" /> + <fieldset class="<?php echo '1'?" open":"" ?><?php echo '1'?" show":"" ?>"><legend><div class="arrow-right closed" /><div class="arrow-down open" /><?php echo lang('NAME') ?></legend><div> + <div class="line"> + <div class="label"> + <label for="<?php echo REQUEST_ID ?>_name" class="label"><?php echo lang('PROJECT_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" value="<?php echo Text::encodeHtml(@$name) ?>" /><?php if ('') { ?><input type="hidden" name="name" value="<?php $name ?>"/><?php } ?></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('PUBLISH') ?></legend><div> + <div class="line"> + <div class="label"> + <label for="<?php echo REQUEST_ID ?>_target_dir" class="label"><?php echo lang('PROJECT_TARGET_DIR') ?> + </label> + </div> + <div class="input"> + <div class="inputholder"><input<?php if ('') echo ' disabled="true"' ?> id="<?php echo REQUEST_ID ?>_target_dir" name="target_dir<?php if ('') echo '_disabled' ?>" type="text" maxlength="256" class="filename" value="<?php echo Text::encodeHtml(@$target_dir) ?>" /><?php if ('') { ?><input type="hidden" name="target_dir" value="<?php $target_dir ?>"/><?php } ?></div> + + </div> + </div> + <div class="line"> + <div class="label"> + <label for="<?php echo REQUEST_ID ?>_cmd_after_publish" class="label"><?php echo lang('PROJECT_CMD_AFTER_PUBLISH') ?> + </label> + </div> + <div class="input"> + <div class="inputholder"><input<?php if (!@$conf['publish']['project']['override_system_command']) echo ' disabled="true"' ?> id="<?php echo REQUEST_ID ?>_cmd_after_publish" name="cmd_after_publish<?php if (!@$conf['publish']['project']['override_system_command']) echo '_disabled' ?>" type="text" maxlength="256" class="filename" value="<?php echo Text::encodeHtml(@$cmd_after_publish) ?>" /><?php if (!@$conf['publish']['project']['override_system_command']) { ?><input type="hidden" name="cmd_after_publish" value="<?php $cmd_after_publish ?>"/><?php } ?></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('project_FTP') ?></legend><div> + <div class="line"> + <div class="label"> + <label for="<?php echo REQUEST_ID ?>_ftp_url" class="label"><?php echo lang('PROJECT_FTP_URL') ?> + </label> + </div> + <div class="input"> + <div class="inputholder"><input<?php if (!@$conf['publish']['ftp']['enable']) echo ' disabled="true"' ?> id="<?php echo REQUEST_ID ?>_ftp_url" name="ftp_url<?php if (!@$conf['publish']['ftp']['enable']) echo '_disabled' ?>" type="text" maxlength="256" class="filename" value="<?php echo Text::encodeHtml(@$ftp_url) ?>" /><?php if (!@$conf['publish']['ftp']['enable']) { ?><input type="hidden" name="ftp_url" value="<?php $ftp_url ?>"/><?php } ?></div> + + <br/> + + <?php { $tmpname = 'ftp_passive';$default = '';$readonly = !@$conf['publish']['ftp']['enable']; + 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 + } + } ?> + + <label for="<?php echo REQUEST_ID ?>_ftp_passive" class="label"><?php echo lang('PROJECT_FTP_PASSIVE') ?> + </label> + </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('options') ?></legend><div> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <?php { $tmpname = 'content_negotiation';$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 + } + } ?> + + <label for="<?php echo REQUEST_ID ?>_content_negotiation" class="label"><?php echo lang('PROJECT_CONTENT_NEGOTIATION') ?> + </label> + </div> + </div> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <?php { $tmpname = 'cut_index';$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 + } + } ?> + + <label for="<?php echo REQUEST_ID ?>_cut_index" class="label"><?php echo lang('PROJECT_CUT_INDEX') ?> + </label> + </div> + </div> + </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> + + + \ No newline at end of file diff --git a/themes/default/templates/project/info.tpl.out.php b/themes/default/templates/project/info.tpl.out.php @@ -0,0 +1,17 @@ + + + <?php foreach($info as $list_key=>$list_value){ ?> + <div class="line"> + <div class="label"> + <label class="label"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('project_info_'.$list_key.'')))); ?></span> + + </label> + </div> + <div class="input"> + <strong class="text"><?php echo nl2br(encodeHtml(htmlentities($list_value))); ?></strong> + + </div> + </div> + <?php } ?> + + \ No newline at end of file diff --git a/themes/default/templates/projectlist/show.tpl.out.php b/themes/default/templates/projectlist/show.tpl.out.php @@ -0,0 +1,35 @@ +<!-- 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($projects as $list_key=>$list_value){ ?><?php extract($list_value) ?> + <tr class="data"> + <td class="clickable"> + <a target="_self" date-name="<?php echo $name ?>" name="<?php echo $name ?>" data-type="open" data-action="project" data-method="<?php echo OR_METHOD ?>" data-id="<?php echo $id ?>" href="javascript:void(0);"> + <img class="" title="" src="./themes/default/images/icon/icon_project.png" /> + + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(Text::maxLength( $name,30,'..',constant('STR_PAD_BOTH') )))); ?></span> + + </a> + + </td> + </tr> + <?php } ?> + <tr class="data"> + <td class="clickable"> + <a target="_self" date-name="<?php echo lang('new') ?>" name="<?php echo lang('new') ?>" 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/start/applications.tpl.out.php b/themes/default/templates/start/applications.tpl.out.php @@ -1,114 +1,29 @@ -<!-- Compiling output/output-begin --><!-- Compiling table/table-begin --><?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 --><?php $a3_class='data'; ?><?php - $column_idx = 0; -?> -<tr - class="data" -> -<?php unset($a3_class) ?> - <td colspan="2"><!-- Compiling link/link-begin --><?php $a5_title='';$a5_type='';$a5_class='';$a5_action='index';$a5_subaction='projectmenu';$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('"','&quot;',$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_action,$a5_subaction,$a5_frame,$a5_modal) ?><!-- Compiling text/text-begin --><?php $a6_class='text';$a6_raw='OpenRat';$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 = str_replace('_','&nbsp;',$a6_raw); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_raw,$a6_escape,$a6_cut) ?><!-- Compiling link/link-end --></a> - </td><!-- Compiling row/row-end --></tr><!-- Compiling list/list-begin --><?php $a3_list='applications';$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><!-- Compiling link/link-begin --><?php $a6_title='';$a6_type='';$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('"','&quot;',$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) ?><!-- Compiling text/text-begin --><?php $a7_class='text';$a7_var='name';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php - $langF = $a7_escape?'langHtml':'lang'; - $tmp_text = isset($$a7_var)?$$a7_var:$langF('UNKNOWN'); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_var,$a7_escape,$a7_cut) ?><!-- Compiling link/link-end --></a> + + + <table width="100%"> + <tr class="data"> + <td colspan="2"> + <a target="_self" data-action="index" data-method="projectmenu" data-id="<?php echo OR_ID ?>" href="javascript:void(0);"> + <span class="text"><?php echo nl2br('OpenRat'); ?></span> + + </a> + + </td> + </tr> + <?php foreach($applications as $list_key=>$list_value){ ?><?php extract($list_value) ?> + <tr class="data"> + <td> + <a target="_self" data-url="<?php echo $url ?>" 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> + + </a> + </td> - <td><!-- Compiling text/text-begin --><?php $a6_class='text';$a6_var='description';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php - $langF = $a6_escape?'langHtml':'lang'; - $tmp_text = isset($$a6_var)?$$a6_var:$langF('UNKNOWN'); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_var,$a6_escape,$a6_cut) ?> - </td><!-- Compiling row/row-end --></tr><!-- Compiling list/list-end --><?php } ?><!-- Compiling table/table-end --><?php - $column_idx = $last_column_idx; -?> -</table>- \ No newline at end of file + <td> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities($description))); ?></span> + + </td> + </tr> + <?php } ?> + </table> + + \ No newline at end of file diff --git a/themes/default/templates/start/projectmenu.tpl.out.php b/themes/default/templates/start/projectmenu.tpl.out.php @@ -1,189 +1,67 @@ -<!-- Compiling output/output-begin --><!-- Compiling table/table-begin --><?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 --><?php - $column_idx = 0; -?> -<tr -> - <td class="logo" colspan="2"><!-- Compiling logo/logo-begin --><?php $a5_name='projectmenu'; ?><div class="line logo"> + + <table width="100%"> + <tr> + <td class="logo" colspan="2"> + <div class="line logo"> <div class="label"> - <img src="<?php echo $image_dir.'logo_'.$a5_name.IMG_ICON_EXT ?>" - border="0" /> + <img src="themes/default/images/logo_projectmenu.png ?>" + border="0" /> </div> <div class="input"> - <h2> - <?php echo langHtml('logo_'.$a5_name) ?> + <h2> + <?php echo langHtml('logo_projectmenu') ?> </h2> <p> - <?php echo langHtml('logo_'.$a5_name.'_text') ?> + <?php echo langHtml('logo_projectmenu_text') ?> </p> + </div> </div> -<?php unset($a5_name) ?> - </td><!-- Compiling row/row-end --></tr><!-- Compiling row/row-begin --><?php $a3_class='headline'; ?><?php - $column_idx = 0; -?> -<tr - class="headline" -> -<?php unset($a3_class) ?> - <td><!-- Compiling text/text-begin --><?php $a5_class='text';$a5_key='project';$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><!-- Compiling row/row-end --></tr><!-- Compiling list/list-begin --><?php $a3_list='projects';$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=lang('TREE_CHOOSE_PROJECT');$a6_type='post';$a6_class='';$a6_id=$id;$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('"','&quot;',$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_id,$a6_frame,$a6_modal) ?> + </div> + </td> + </tr> + <tr class="headline"> + <td> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'project'.'')))); ?></span> + + </td> + </tr> + <?php foreach($projects as $list_key=>$list_value){ ?><?php extract($list_value) ?> + <tr class="data"> + <td class="clickable"> + <a title="<?php echo lang('TREE_CHOOSE_PROJECT') ?>" target="_self" data-type="post" data-action="<?php echo OR_ACTION ?>" data-method="<?php echo OR_METHOD ?>" data-id="<?php echo $id ?>" data-data="{&quot;action&quot;:&quot;<?php echo OR_ACTION ?>&quot;,&quot;subaction&quot;:&quot;<?php echo OR_METHOD ?>&quot;,&quot;id&quot;:&quot;<?php echo $id ?>&quot;,&quot;token&quot;:&quot;<?php echo token() ?>&quot;,&quot;none&quot;:&quot;0&quot;}"> <?php $project= 'project'; ?> <img class="" title="" src="./themes/default/images/icon_project.png" /> - <!-- Compiling text/text-begin --><?php $a7_class='text';$a7_var='name';$a7_maxlength='30';$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 --></a><!-- Compiling part/part-begin --><?php $a6_class='onrowvisible'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><!-- Compiling part/part-begin --><?php $a7_class='arrow-down'; ?><div class="<?php echo $a7_class ?>"><?php unset($a7_class) ?><!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a7_class='dropdown'; ?><div class="<?php echo $a7_class ?>"><?php unset($a7_class) ?> - <form name="" - target="_self" - action="index" - data-method="project" - data-action="index" - data-id="var:id" - method="project" - enctype="application/x-www-form-urlencoded" - class="index" - 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="index" /> -<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="project" /> -<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="var:id" /> -<?php - if ( $conf['interface']['url_sessionid'] ) - echo '<input type="hidden" name="'.session_name().'" value="'.session_id().'" />'."\n"; -?> -<!-- Compiling table/table-begin --><?php $a9_width='100%';$a9_space='0px';$a9_padding='0px';$a9_widths='150px,150px'; ?><?php - $last_column_idx = @$column_idx; - $column_idx = 0; - $coloumn_widths = array(); - $row_classes = array(); - $column_classes = array(); - $column_widths = explode(',',$a9_widths); -?><table class="%class%" cellspacing="0px" width="100%" cellpadding="0px"> -<?php unset($a9_width,$a9_space,$a9_padding,$a9_widths) ?><!-- Compiling row/row-begin --><?php - $column_idx = 0; -?> -<tr -> + + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(Text::maxLength( $name,30,'..',constant('STR_PAD_BOTH') )))); ?></span> + + </a> - <td><!-- Compiling radiobox/radiobox-begin --><?php $a12_list='models';$a12_name='modelid';$a12_default=$defaultmodelid;$a12_onchange='';$a12_title='';$a12_class=''; ?><?php $a12_tmp_list = $$a12_list; - if ( isset($$a12_name) && isset($a12_tmp_list[$$a12_name]) ) - $a12_tmp_default = $$a12_name; - elseif ( isset($a12_default) ) - $a12_tmp_default = $a12_default; - else - $a12_tmp_default = ''; - foreach( $a12_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.'_'.$a12_name.'_'.$box_key; - echo '<input id="'.$id.'" name="'.$a12_name.'" type="radio" class="'.$a12_class.'" value="'.$box_key.'"'; - if ($box_key==$a12_tmp_default) - echo ' checked="checked"'; - echo ' />&nbsp;<label for="'.$id.'">'.$box_value.'</label><br />'; - } -?><?php unset($a12_list,$a12_name,$a12_default,$a12_onchange,$a12_title,$a12_class) ?> + <div class="onrowvisible"> + <div class="arrow-down"> + </div> + <div class="dropdown"> + <form name="" target="_self" action="index" data-method="project" data-action="index" data-id="<?php echo $id ?>" method="project" enctype="application/x-www-form-urlencoded" class="index" 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="index" /><input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="project" /><input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $id ?>" /> + <table width="100%"> + <tr> + <td> + <?php include_once( OR_THEMES_DIR.'default/include/html/radiobox/component-radio-box.php') ?><?php component_radio_box('modelid',$models,$defaultmodelid) ?> + </td> - <td><!-- Compiling radiobox/radiobox-begin --><?php $a12_list='languages';$a12_name='languageid';$a12_default=$defaultlanguageid;$a12_onchange='';$a12_title='';$a12_class=''; ?><?php $a12_tmp_list = $$a12_list; - if ( isset($$a12_name) && isset($a12_tmp_list[$$a12_name]) ) - $a12_tmp_default = $$a12_name; - elseif ( isset($a12_default) ) - $a12_tmp_default = $a12_default; - else - $a12_tmp_default = ''; - foreach( $a12_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.'_'.$a12_name.'_'.$box_key; - echo '<input id="'.$id.'" name="'.$a12_name.'" type="radio" class="'.$a12_class.'" value="'.$box_key.'"'; - if ($box_key==$a12_tmp_default) - echo ' checked="checked"'; - echo ' />&nbsp;<label for="'.$id.'">'.$box_value.'</label><br />'; - } -?><?php unset($a12_list,$a12_name,$a12_default,$a12_onchange,$a12_title,$a12_class) ?> + <td> + <?php include_once( OR_THEMES_DIR.'default/include/html/radiobox/component-radio-box.php') ?><?php component_radio_box('languageid',$languages,$defaultlanguageid) ?> + </td> <td> <div class="invisible"><input type="submit" name="ok" class="%class%" title="?message:start_DESC?" value="&nbsp;&nbsp;&nbsp;&nbsp;?message:start?&nbsp;&nbsp;&nbsp;&nbsp;" /> </div> - </td><!-- Compiling row/row-end --></tr><!-- Compiling table/table-end --><?php - $column_idx = $last_column_idx; -?> -</table> + </td> + </tr> + </table> <div class="bottom"> <div class="command "> @@ -194,8 +72,11 @@ </div> </form> -<!-- Compiling part/part-end --></div><!-- Compiling part/part-end --></div> - </td><!-- Compiling row/row-end --></tr><!-- Compiling list/list-end --><?php } ?><!-- Compiling table/table-end --><?php - $column_idx = $last_column_idx; -?> -</table>- \ No newline at end of file + + </div> + </div> + </td> + </tr> + <?php } ?> + </table> + + \ No newline at end of file diff --git a/themes/default/templates/template/edit.tpl.out.php b/themes/default/templates/template/edit.tpl.out.php @@ -1,50 +1,17 @@ -<!-- Compiling output/output-begin @ Wed, 29 Nov 2017 00:50:50 +0100 --><!-- Compiling header/header-begin @ Wed, 29 Nov 2017 00:50:50 +0100 --><?php $a2_name='';$a2_views='src,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 table/table-begin @ Wed, 29 Nov 2017 00:50:50 +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:50 +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:50 +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:50 +0100 --><?php $a5_class='text';$a5_key='type';$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><!-- Compiling row/row-end @ Wed, 29 Nov 2017 00:50:50 +0100 --></tr><!-- Compiling list/list-begin @ Wed, 29 Nov 2017 00:50:50 +0100 --><?php $a3_list='elements';$a3_extract=true;$a3_key='list_key';$a3_value='list_value'; ?><?php + <td> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'type'.'')))); ?></span> + + </td> + </tr><!-- Compiling list/list-begin --><?php $a3_list='elements';$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; @@ -63,154 +30,53 @@ } 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:50 +0100 --><?php $a4_class='data'; ?><?php - $column_idx = 0; -?> -<tr - class="data" -> -<?php unset($a4_class) ?> +?><?php unset($a3_list,$a3_extract,$a3_key,$a3_value) ?> + <tr class="data"> <td onclick="javascript:openNewAction('<?php echo $name ?>','element','<?php echo $id ?>');"> <img class="image-icon image-icon--element" title="" src="./themes/default/images/icon/element/<?php echo $type ?>.svg" /> - <!-- Compiling text/text-begin @ Wed, 29 Nov 2017 00:50:50 +0100 --><?php $a6_title=$description;$a6_class='text';$a6_var='name';$a6_escape=true;$a6_cut='both'; ?><?php - $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_title,$a6_class,$a6_var,$a6_escape,$a6_cut) ?> + + <span class="text" title="<?php echo $description ?>"><?php echo nl2br(encodeHtml(htmlentities($name))); ?></span> + </td> - <td><!-- Compiling text/text-begin @ Wed, 29 Nov 2017 00:50:50 +0100 --><?php $a6_class='text';$a6_key=$type;$a6_prefix='EL_';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_key = $a6_prefix.$a6_key; - $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_prefix,$a6_escape,$a6_cut) ?> - </td><!-- Compiling row/row-end @ Wed, 29 Nov 2017 00:50:50 +0100 --></tr><!-- Compiling list/list-end @ Wed, 29 Nov 2017 00:50:50 +0100 --><?php } ?> - <?php $if3=(empty('el')); if($if3){?><!-- Compiling row/row-begin @ Wed, 29 Nov 2017 00:50:50 +0100 --><?php - $column_idx = 0; -?> -<tr -> - - <td colspan="2"><!-- Compiling text/text-begin @ Wed, 29 Nov 2017 00:50:50 +0100 --><?php $a6_class='text';$a6_key='GLOBAL_NOT_FOUND';$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 @ Wed, 29 Nov 2017 00:50:50 +0100 --></tr> - <?php } ?><!-- Compiling row/row-begin @ Wed, 29 Nov 2017 00:50:50 +0100 --><?php $a3_class='data'; ?><?php - $column_idx = 0; -?> -<tr - class="data" -> -<?php unset($a3_class) ?> - <td class="clickable" colspan="2"><!-- Compiling link/link-begin @ Wed, 29 Nov 2017 00:50:50 +0100 --><?php $a5_title='';$a5_type='view';$a5_class='';$a5_subaction='addel';$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('"','&quot;',$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) ?> + <td> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('EL_'.$type.'')))); ?></span> + + </td> + </tr><!-- Compiling list/list-end --><?php } ?> + <?php $if3=(empty($el)); if($if3){?> + <tr> + <td colspan="2"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'GLOBAL_NOT_FOUND'.'')))); ?></span> + + </td> + </tr> + <?php } ?> + <tr class="data"> + <td class="clickable" colspan="2"> + <a target="_self" data-type="view" data-action="<?php echo OR_ACTION ?>" data-method="addel" 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:50 +0100 --><?php $a6_class='text';$a6_key='menu_template_addel';$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) ?><!-- Compiling link/link-end @ Wed, 29 Nov 2017 00:50:50 +0100 --></a> - </td><!-- Compiling row/row-end @ Wed, 29 Nov 2017 00:50:50 +0100 --></tr><!-- Compiling table/table-end @ Wed, 29 Nov 2017 00:50:50 +0100 --><?php - $column_idx = $last_column_idx; -?> -</table> - <fieldset class="<?php echo 1?" open":"" ?><?php echo 1?" show":"" ?>"><legend><div class="arrow-right closed" /><div class="arrow-down open" /><?php echo lang('src') ?></legend><div><!-- Compiling table/table-begin @ Wed, 29 Nov 2017 00:50:50 +0100 --><?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 @ Wed, 29 Nov 2017 00:50:50 +0100 --><?php $a4_class='data'; ?><?php - $column_idx = 0; -?> -<tr - class="data" -> -<?php unset($a4_class) ?> - <td class="clickable"><!-- Compiling link/link-begin @ Wed, 29 Nov 2017 00:50:50 +0100 --><?php $a6_title='';$a6_type='view';$a6_class='';$a6_subaction='src';$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('"','&quot;',$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_subaction,$a6_frame,$a6_modal) ?> + + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'menu_template_addel'.'')))); ?></span> + + </a> + + </td> + </tr> + </table> + <fieldset class="<?php echo '1'?" open":"" ?><?php echo '1'?" show":"" ?>"><legend><div class="arrow-right closed" /><div class="arrow-down open" /><?php echo lang('src') ?></legend><div> + <table width="100%"> + <tr class="data"> + <td class="clickable"> + <a target="_self" data-type="view" data-action="<?php echo OR_ACTION ?>" data-method="src" data-id="<?php echo OR_ID ?>" href="javascript:void(0);"> <img class="" title="" src="./themes/default/images/icon/template.png" /> - <!-- Compiling text/text-begin @ Wed, 29 Nov 2017 00:50:50 +0100 --><?php $a7_class='text';$a7_key='edit';$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_key); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_key,$a7_escape,$a7_cut) ?><!-- Compiling link/link-end @ Wed, 29 Nov 2017 00:50:50 +0100 --></a> - </td><!-- Compiling row/row-end @ Wed, 29 Nov 2017 00:50:50 +0100 --></tr><!-- Compiling table/table-end @ Wed, 29 Nov 2017 00:50:50 +0100 --><?php - $column_idx = $last_column_idx; -?> -</table><!-- Compiling text/text-begin @ Wed, 29 Nov 2017 00:50:50 +0100 --><?php $a3_class='text';$a3_var='text';$a3_escape=false;$a3_type='code';$a3_cut='both'; ?><?php - $a3_title = ''; - $tmp_tag = 'code'; -?><<?php echo $tmp_tag ?> class="<?php echo $a3_class ?>" title="<?php echo $a3_title ?>"><?php - $langF = $a3_escape?'langHtml':'lang'; - $tmp_text = isset($$a3_var)?$$a3_var:$langF('UNKNOWN'); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a3_class,$a3_var,$a3_escape,$a3_type,$a3_cut) ?> + + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'edit'.'')))); ?></span> + + </a> + + </td> + </tr> + </table> + <code class="text"><?php echo nl2br(encodeHtml(htmlentities($text))); ?></code> + </div></fieldset> \ No newline at end of file diff --git a/themes/default/templates/template/prop.tpl.out.php b/themes/default/templates/template/prop.tpl.out.php @@ -1,15 +1,6 @@ -<!-- Compiling output/output-begin @ Wed, 29 Nov 2017 00:50:50 +0100 --><!-- Compiling header/header-begin @ Wed, 29 Nov 2017 00:50:50 +0100 --><?php $a2_name='';$a2_views='extension';$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,16 +22,13 @@ if ( $conf['interface']['url_sessionid'] ) echo '<input type="hidden" name="'.session_name().'" value="'.session_id().'" />'."\n"; ?> -<!-- Compiling part/part-begin @ Wed, 29 Nov 2017 00:50:50 +0100 --><?php $a3_class='line'; ?><div class="<?php echo $a3_class ?>"><?php unset($a3_class) ?><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 00:50:50 +0100 --><?php $a4_class='label'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling text/text-begin @ Wed, 29 Nov 2017 00:50:50 +0100 --><?php $a5_class='text';$a5_text='TEMPLATE_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_text); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a5_class,$a5_text,$a5_escape,$a5_cut) ?><!-- Compiling part/part-end @ Wed, 29 Nov 2017 00:50:50 +0100 --></div><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 00:50:50 +0100 --><?php $a4_class='input'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling input/input-begin @ Wed, 29 Nov 2017 00:50:50 +0100 --><?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; + + <div class="line"> + <div class="label"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('TEMPLATE_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); @@ -48,114 +36,48 @@ ?><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 @ Wed, 29 Nov 2017 00:50:50 +0100 --></div><!-- Compiling part/part-end @ Wed, 29 Nov 2017 00:50:50 +0100 --></div> - <fieldset class="<?php echo 1?" open":"" ?><?php echo 1?" show":"" ?>"><div> - </div></fieldset><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 00:50:50 +0100 --><?php $a3_class='line'; ?><div class="<?php echo $a3_class ?>"><?php unset($a3_class) ?><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 00:50:50 +0100 --><?php $a4_class='label'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling text/text-begin @ Wed, 29 Nov 2017 00:50:50 +0100 --><?php $a5_class='text';$a5_key='file_extension';$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 part/part-end @ Wed, 29 Nov 2017 00:50:50 +0100 --></div><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 00:50:50 +0100 --><?php $a4_class='input'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling link/link-begin @ Wed, 29 Nov 2017 00:50:50 +0100 --><?php $a5_title='';$a5_type='view';$a5_class='';$a5_subaction='extension';$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('"','&quot;',$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) ?><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 00:50:50 +0100 --><?php $a6_class='inputholder'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><!-- Compiling text/text-begin @ Wed, 29 Nov 2017 00:50:50 +0100 --><?php $a7_class='text';$a7_var='extension';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php - $langF = $a7_escape?'langHtml':'lang'; - $tmp_text = isset($$a7_var)?$$a7_var:$langF('UNKNOWN'); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_var,$a7_escape,$a7_cut) ?><!-- Compiling part/part-end @ Wed, 29 Nov 2017 00:50:50 +0100 --></div><!-- Compiling link/link-end @ Wed, 29 Nov 2017 00:50:50 +0100 --></a><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 00:50:50 +0100 --><?php $a5_class='clickable'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><!-- Compiling link/link-begin @ Wed, 29 Nov 2017 00:50:50 +0100 --><?php $a6_title='';$a6_type='view';$a6_class='action';$a6_subaction='extension';$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('"','&quot;',$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_subaction,$a6_frame,$a6_modal) ?><!-- Compiling text/text-begin @ Wed, 29 Nov 2017 00:50:50 +0100 --><?php $a7_class='text';$a7_key='edit';$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_key); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_key,$a7_escape,$a7_cut) ?><!-- Compiling link/link-end @ Wed, 29 Nov 2017 00:50:50 +0100 --></a><!-- Compiling part/part-end @ Wed, 29 Nov 2017 00:50:50 +0100 --></div><!-- Compiling part/part-end @ Wed, 29 Nov 2017 00:50:50 +0100 --></div><!-- Compiling part/part-end @ Wed, 29 Nov 2017 00:50:50 +0100 --></div><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 00:50:50 +0100 --><?php $a3_class='line'; ?><div class="<?php echo $a3_class ?>"><?php unset($a3_class) ?><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 00:50:50 +0100 --><?php $a4_class='label'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling text/text-begin @ Wed, 29 Nov 2017 00:50:50 +0100 --><?php $a5_class='text';$a5_key='file_mimetype';$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 part/part-end @ Wed, 29 Nov 2017 00:50:50 +0100 --></div><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 00:50:50 +0100 --><?php $a4_class='input'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling link/link-begin @ Wed, 29 Nov 2017 00:50:50 +0100 --><?php $a5_title='';$a5_type='';$a5_class='';$a5_action='template';$a5_subaction='extension';$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('"','&quot;',$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_action,$a5_subaction,$a5_frame,$a5_modal) ?><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 00:50:50 +0100 --><?php $a6_class='inputholder'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><!-- Compiling text/text-begin @ Wed, 29 Nov 2017 00:50:50 +0100 --><?php $a7_class='text';$a7_var='mime_type';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php - $langF = $a7_escape?'langHtml':'lang'; - $tmp_text = isset($$a7_var)?$$a7_var:$langF('UNKNOWN'); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_var,$a7_escape,$a7_cut) ?><!-- Compiling part/part-end @ Wed, 29 Nov 2017 00:50:50 +0100 --></div><!-- Compiling link/link-end @ Wed, 29 Nov 2017 00:50:50 +0100 --></a><!-- Compiling part/part-end @ Wed, 29 Nov 2017 00:50:50 +0100 --></div><!-- Compiling part/part-end @ Wed, 29 Nov 2017 00:50:50 +0100 --></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> + <fieldset class="<?php echo '1'?" open":"" ?><?php echo '1'?" show":"" ?>"><div> + </div></fieldset> + <div class="line"> + <div class="label"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'file_extension'.'')))); ?></span> + + </div> + <div class="input"> + <a target="_self" data-type="view" data-action="<?php echo OR_ACTION ?>" data-method="extension" data-id="<?php echo OR_ID ?>" href="javascript:void(0);"> + <div class="inputholder"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities($extension))); ?></span> + + </div> + </a> + + <div class="clickable"> + <a class="action" target="_self" data-type="view" data-action="<?php echo OR_ACTION ?>" data-method="extension" data-id="<?php echo OR_ID ?>" href="javascript:void(0);"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'edit'.'')))); ?></span> + + </a> + + </div> + </div> + </div> + <div class="line"> + <div class="label"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'file_mimetype'.'')))); ?></span> + + </div> + <div class="input"> + <a target="_self" data-action="template" data-method="extension" data-id="<?php echo OR_ID ?>" href="javascript:void(0);"> + <div class="inputholder"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities($mime_type))); ?></span> + + </div> + </a> + + </div> + </div> <div class="bottom"> <div class="command "> diff --git a/themes/default/templates/template/src.tpl.out.php b/themes/default/templates/template/src.tpl.out.php @@ -0,0 +1,37 @@ +<!-- 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"; +?> + + <textarea name="src" data-mode="html" class="editor__code-editor"><?php echo ${'src'} ?></textarea> + + +<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/templatelist/add.tpl.out.php b/themes/default/templates/templatelist/add.tpl.out.php @@ -0,0 +1,211 @@ +<!-- 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('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> + <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> + <div class="line"> + <div class="label"><!-- Compiling radio/radio-begin --><?php $a6_readonly=false;$a6_name='type';$a6_value='empty';$a6_default=false;$a6_prefix='';$a6_suffix='';$a6_class='';$a6_onchange=''; ?><?php + if ($this->isEditable() && !$this->isEditMode()) $a6_readonly=true; + if ( isset($$a6_name) ) + $a6_tmp_default = $$a6_name; + elseif ( isset($a6_default) ) + $a6_tmp_default = $a6_default; + else + $a6_tmp_default = ''; + ?><input onclick="" class="radio" type="radio" id="<?php echo REQUEST_ID ?>_<?php echo $a6_name.'_'.$a6_value ?>" name="<?php echo $a6_prefix.$a6_name ?>"<?php if ( $a6_readonly ) echo ' disabled="disabled"' ?> value="<?php echo $a6_value ?>"<?php if($a6_value==$a6_tmp_default||@$a6_checked) echo ' checked="checked"' ?> /> +<?php /* #END-IF# */ ?><?php unset($a6_readonly,$a6_name,$a6_value,$a6_default,$a6_prefix,$a6_suffix,$a6_class,$a6_onchange) ?> + </div> + <div class="input"><!-- Compiling label/label-begin --><?php $a6_for='type_empty'; ?><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) ?> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'empty'.'')))); ?></span> + <!-- Compiling label/label-end --></label> + </div> + </div> + <div class="line"> + <div class="label"><!-- Compiling label/label-begin --><?php $a6_for='type_copy'; ?><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) ?> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'copy'.'')))); ?></span> + <!-- Compiling label/label-end --></label><!-- Compiling radio/radio-begin --><?php $a6_readonly=false;$a6_name='type';$a6_value='copy';$a6_default=false;$a6_prefix='';$a6_suffix='';$a6_class='';$a6_onchange=''; ?><?php + if ($this->isEditable() && !$this->isEditMode()) $a6_readonly=true; + if ( isset($$a6_name) ) + $a6_tmp_default = $$a6_name; + elseif ( isset($a6_default) ) + $a6_tmp_default = $a6_default; + else + $a6_tmp_default = ''; + ?><input onclick="" class="radio" type="radio" id="<?php echo REQUEST_ID ?>_<?php echo $a6_name.'_'.$a6_value ?>" name="<?php echo $a6_prefix.$a6_name ?>"<?php if ( $a6_readonly ) echo ' disabled="disabled"' ?> value="<?php echo $a6_value ?>"<?php if($a6_value==$a6_tmp_default||@$a6_checked) echo ' checked="checked"' ?> /> +<?php /* #END-IF# */ ?><?php unset($a6_readonly,$a6_name,$a6_value,$a6_default,$a6_prefix,$a6_suffix,$a6_class,$a6_onchange) ?> + </div> + <div class="input"><!-- Compiling selectbox/selectbox-begin --><?php $a6_list='templates';$a6_name='templateid';$a6_onchange='';$a6_title='';$a6_class='';$a6_addempty=false;$a6_multiple=false;$a6_size='1';$a6_lang=false; ?><?php +$a6_readonly=false; +$a6_tmp_list = $$a6_list; +if ($this->isEditable() && !$this->isEditMode()) +{ + echo empty($$a6_name)?'- '.lang('EMPTY').' -':$a6_tmp_list[$$a6_name]; +} +else +{ +if ( $a6_addempty!==FALSE ) +{ + if ($a6_addempty===TRUE) + $a6_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a6_tmp_list; + else + $a6_tmp_list = array(''=>'- '.lang($a6_addempty).' -')+$a6_tmp_list; +} +?><div class="inputholder"><select<?php if ($a6_readonly) echo ' disabled="disabled"' ?> id="<?php echo REQUEST_ID ?>_<?php echo $a6_name ?>" name="<?php echo $a6_name; if ($a6_multiple) echo '[]'; ?>" onchange="<?php echo $a6_onchange ?>" title="<?php echo $a6_title ?>" class="<?php echo $a6_class ?>"<?php +if (count($$a6_list)<=1) echo ' disabled="disabled"'; +if ($a6_multiple) echo ' multiple="multiple"'; +echo ' size="'.intval($a6_size).'"'; +?>><?php + if ( isset($$a6_name) && isset($a6_tmp_list[$$a6_name]) ) + $a6_tmp_default = $$a6_name; + elseif ( isset($a6_default) ) + $a6_tmp_default = $a6_default; + else + $a6_tmp_default = ''; + foreach( $a6_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( $a6_lang ) + { + $box_title = lang( $box_value.'_DESC'); + $box_value = lang( $box_value ); + } + else + { + $box_title = ''; + } + echo '<option class="'.$a6_class.'" value="'.$box_key.'" title="'.$box_title.'"'; + if ((string)$box_key==$a6_tmp_default) + echo ' selected="selected"'; + echo '>'.$box_value.'</option>'; + } +?></select></div><?php +if (count($$a6_list)==0) echo '<input type="hidden" name="'.$a6_name.'" value="" />'; +if (count($$a6_list)==1) echo '<input type="hidden" name="'.$a6_name.'" value="'.$box_key.'" />'; +} +?><?php unset($a6_list,$a6_name,$a6_onchange,$a6_title,$a6_class,$a6_addempty,$a6_multiple,$a6_size,$a6_lang) ?> + </div> + </div> + <div class="line"> + <div class="label"><!-- Compiling label/label-begin --><?php $a6_for='type_example'; ?><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) ?> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'example'.'')))); ?></span> + <!-- Compiling label/label-end --></label><!-- Compiling radio/radio-begin --><?php $a6_readonly=false;$a6_name='type';$a6_value='example';$a6_default=false;$a6_prefix='';$a6_suffix='';$a6_class='';$a6_onchange=''; ?><?php + if ($this->isEditable() && !$this->isEditMode()) $a6_readonly=true; + if ( isset($$a6_name) ) + $a6_tmp_default = $$a6_name; + elseif ( isset($a6_default) ) + $a6_tmp_default = $a6_default; + else + $a6_tmp_default = ''; + ?><input onclick="" class="radio" type="radio" id="<?php echo REQUEST_ID ?>_<?php echo $a6_name.'_'.$a6_value ?>" name="<?php echo $a6_prefix.$a6_name ?>"<?php if ( $a6_readonly ) echo ' disabled="disabled"' ?> value="<?php echo $a6_value ?>"<?php if($a6_value==$a6_tmp_default||@$a6_checked) echo ' checked="checked"' ?> /> +<?php /* #END-IF# */ ?><?php unset($a6_readonly,$a6_name,$a6_value,$a6_default,$a6_prefix,$a6_suffix,$a6_class,$a6_onchange) ?> + </div> + <div class="input"><!-- Compiling selectbox/selectbox-begin --><?php $a6_list='examples';$a6_name='example';$a6_onchange='';$a6_title='';$a6_class='';$a6_addempty=false;$a6_multiple=false;$a6_size='1';$a6_lang=false; ?><?php +$a6_readonly=false; +$a6_tmp_list = $$a6_list; +if ($this->isEditable() && !$this->isEditMode()) +{ + echo empty($$a6_name)?'- '.lang('EMPTY').' -':$a6_tmp_list[$$a6_name]; +} +else +{ +if ( $a6_addempty!==FALSE ) +{ + if ($a6_addempty===TRUE) + $a6_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a6_tmp_list; + else + $a6_tmp_list = array(''=>'- '.lang($a6_addempty).' -')+$a6_tmp_list; +} +?><div class="inputholder"><select<?php if ($a6_readonly) echo ' disabled="disabled"' ?> id="<?php echo REQUEST_ID ?>_<?php echo $a6_name ?>" name="<?php echo $a6_name; if ($a6_multiple) echo '[]'; ?>" onchange="<?php echo $a6_onchange ?>" title="<?php echo $a6_title ?>" class="<?php echo $a6_class ?>"<?php +if (count($$a6_list)<=1) echo ' disabled="disabled"'; +if ($a6_multiple) echo ' multiple="multiple"'; +echo ' size="'.intval($a6_size).'"'; +?>><?php + if ( isset($$a6_name) && isset($a6_tmp_list[$$a6_name]) ) + $a6_tmp_default = $$a6_name; + elseif ( isset($a6_default) ) + $a6_tmp_default = $a6_default; + else + $a6_tmp_default = ''; + foreach( $a6_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( $a6_lang ) + { + $box_title = lang( $box_value.'_DESC'); + $box_value = lang( $box_value ); + } + else + { + $box_title = ''; + } + echo '<option class="'.$a6_class.'" value="'.$box_key.'" title="'.$box_title.'"'; + if ((string)$box_key==$a6_tmp_default) + echo ' selected="selected"'; + echo '>'.$box_value.'</option>'; + } +?></select></div><?php +if (count($$a6_list)==0) echo '<input type="hidden" name="'.$a6_name.'" value="" />'; +if (count($$a6_list)==1) echo '<input type="hidden" name="'.$a6_name.'" value="'.$box_key.'" />'; +} +?><?php unset($a6_list,$a6_name,$a6_onchange,$a6_title,$a6_class,$a6_addempty,$a6_multiple,$a6_size,$a6_lang) ?> + </div> + </div> + </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/templatelist/show.tpl.out.php b/themes/default/templates/templatelist/show.tpl.out.php @@ -1,119 +1,34 @@ -<!-- Compiling output/output-begin @ Wed, 29 Nov 2017 00:50:51 +0100 --><!-- Compiling table/table-begin @ Wed, 29 Nov 2017 00:50:51 +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:51 +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:51 +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) ?> - </td><!-- Compiling row/row-end @ Wed, 29 Nov 2017 00:50:51 +0100 --></tr><!-- Compiling list/list-begin @ Wed, 29 Nov 2017 00:50:51 +0100 --><?php $a3_list='templates';$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:51 +0100 --><?php $a4_class='data'; ?><?php - $column_idx = 0; -?> -<tr - class="data" -> -<?php unset($a4_class) ?> - <td onclick="javascript:openNewAction('<?php echo $name ?>','template','<?php echo $id ?>');"><!-- Compiling text/text-begin @ Wed, 29 Nov 2017 00:50:51 +0100 --><?php $a6_class='text';$a6_var='name';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php - $langF = $a6_escape?'langHtml':'lang'; - $tmp_text = isset($$a6_var)?$$a6_var:$langF('UNKNOWN'); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_var,$a6_escape,$a6_cut) ?> - </td><!-- Compiling row/row-end @ Wed, 29 Nov 2017 00:50:51 +0100 --></tr><!-- Compiling list/list-end @ Wed, 29 Nov 2017 00:50:51 +0100 --><?php } ?> - <?php $if3=(empty('templates')); if($if3){?><!-- Compiling row/row-begin @ Wed, 29 Nov 2017 00:50:51 +0100 --><?php - $column_idx = 0; -?> -<tr -> -<!-- Compiling text/text-begin @ Wed, 29 Nov 2017 00:50:51 +0100 --><?php $a5_class='text';$a5_text='GLOBAL_NO_TEMPLATES_AVAILABLE_DESC';$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_text); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a5_class,$a5_text,$a5_escape,$a5_cut) ?><!-- Compiling row/row-end @ Wed, 29 Nov 2017 00:50:51 +0100 --></tr> - <?php } ?><!-- Compiling row/row-begin @ Wed, 29 Nov 2017 00:50:51 +0100 --><?php $a3_class='data'; ?><?php - $column_idx = 0; -?> -<tr - class="data" -> -<?php unset($a3_class) ?> - <td class="clickable" colspan="1"><!-- Compiling link/link-begin @ Wed, 29 Nov 2017 00:50:51 +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('"','&quot;',$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) ?> +<!-- 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($templates as $list_key=>$list_value){ ?><?php extract($list_value) ?> + <tr class="data"> + <td onclick="javascript:openNewAction('<?php echo $name ?>','template','<?php echo $id ?>');"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities($name))); ?></span> + + </td> + </tr> + <?php } ?> + <?php $if3=(empty($templates)); if($if3){?> + <tr> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('GLOBAL_NO_TEMPLATES_AVAILABLE_DESC')))); ?></span> + + </tr> + <?php } ?> + <tr class="data"> + <td class="clickable" colspan="1"> + <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:51 +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:51 +0100 --></a> - </td><!-- Compiling row/row-end @ Wed, 29 Nov 2017 00:50:51 +0100 --></tr><!-- Compiling table/table-end @ Wed, 29 Nov 2017 00:50:51 +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/title/ping.tpl.out.php b/themes/default/templates/title/ping.tpl.out.php @@ -1 +1,3 @@ -<!-- Compiling output/output-begin -->- \ No newline at end of file + + + + \ No newline at end of file diff --git a/themes/default/templates/title/show.tpl.out.php b/themes/default/templates/title/show.tpl.out.php @@ -1,572 +1,288 @@ -<!-- Compiling output/output-begin --> - <?php $if2=(!empty($dbname)); if($if2){?><!-- Compiling part/part-begin --><?php $a3_class='toolbar-icon'; ?><div class="<?php echo $a3_class ?>"><?php unset($a3_class) ?> + + + <?php $if2=(!empty($$dbname)); if($if2){?> + <div class="toolbar-icon"> <img class="image-icon image-icon--action" title="" src="./themes/default/images/icon/action/database.svg" /> <span class="text"><?php echo nl2br('&nbsp;'); ?></span> - <!-- Compiling part/part-begin --><?php $a4_class='arrow-down'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a4_class='dropdown'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling part/part-begin --><?php $a5_class='entry'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?> + + <div class="arrow-down"> + </div> + <div class="dropdown"> + <div class="entry"> <span class="text" title="<?php echo $dbid ?>"><?php echo nl2br(encodeHtml(htmlentities(Text::maxLength( $dbname,50,'..',constant('STR_PAD_BOTH') )))); ?></span> - <!-- Compiling part/part-end --></div><!-- Compiling part/part-end --></div><!-- Compiling part/part-end --></div> + + </div> + </div> + </div> <?php } ?> - <?php $if2=($this->userIsLoggedIn()); if($if2){?><!-- Compiling part/part-begin --><?php $a3_class='toolbar-icon menu'; ?><div class="<?php echo $a3_class ?>"><?php unset($a3_class) ?> + <?php $if2=($this->userIsLoggedIn()); if($if2){?> + <div class="toolbar-icon menu"> <img class="image-icon image-icon--action" title="" src="./themes/default/images/icon/action/file.svg" /> <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'file'.'')))); ?></span> - <!-- Compiling part/part-begin --><?php $a4_class='arrow-down'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a4_class='dropdown'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling part/part-begin --><?php $a5_class='entry clickable filtered on-action-folder on-action-page on-action-file'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><!-- Compiling link/link-begin --><?php $a6_title=lang('menu_new_desc');$a6_type='dialog';$a6_class='';$a6_subaction='new';$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('"','&quot;',$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_subaction,$a6_frame,$a6_modal) ?> + + <div class="arrow-down"> + </div> + <div class="dropdown"> + <div class="entry clickable filtered on-action-folder on-action-page on-action-file"> + <a title="<?php echo lang('menu_new_desc') ?>" target="_self" data-type="dialog" data-action="<?php echo OR_ACTION ?>" data-method="new" data-id="<?php echo OR_ID ?>" href="javascript:void(0);"> <img class="image-icon image-icon--method" title="" src="./themes/default/images/icon/method/add.svg" /> <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'menu_new'.'')))); ?></span> - <!-- Compiling link/link-end --></a><!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a5_class='divide'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a5_class='entry clickable'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><!-- Compiling link/link-begin --><?php $a6_title=lang('menu_save_desc');$a6_type='post';$a6_class='';$a6_subaction='save';$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('"','&quot;',$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_subaction,$a6_frame,$a6_modal) ?> + + </a> + + </div> + <div class="divide"> + </div> + <div class="entry clickable"> + <a title="<?php echo lang('menu_save_desc') ?>" target="_self" data-type="post" data-action="<?php echo OR_ACTION ?>" data-method="save" data-id="<?php echo OR_ID ?>" data-data="{&quot;action&quot;:&quot;<?php echo OR_ACTION ?>&quot;,&quot;subaction&quot;:&quot;save&quot;,&quot;id&quot;:&quot;<?php echo OR_ID ?>&quot;,&quot;token&quot;:&quot;<?php echo token() ?>&quot;,&quot;none&quot;:&quot;0&quot;}"> <img class="image-icon image-icon--method" title="" src="./themes/default/images/icon/method/save.svg" /> <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'menu_save'.'')))); ?></span> - <!-- Compiling link/link-end --></a><!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a5_class='entry clickable'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><!-- Compiling link/link-begin --><?php $a6_title=lang('menu_saveall_desc');$a6_type='post';$a6_class='';$a6_subaction='saveall';$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('"','&quot;',$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_subaction,$a6_frame,$a6_modal) ?> + + </a> + + </div> + <div class="entry clickable"> + <a title="<?php echo lang('menu_saveall_desc') ?>" target="_self" data-type="post" data-action="<?php echo OR_ACTION ?>" data-method="saveall" data-id="<?php echo OR_ID ?>" data-data="{&quot;action&quot;:&quot;<?php echo OR_ACTION ?>&quot;,&quot;subaction&quot;:&quot;saveall&quot;,&quot;id&quot;:&quot;<?php echo OR_ID ?>&quot;,&quot;token&quot;:&quot;<?php echo token() ?>&quot;,&quot;none&quot;:&quot;0&quot;}"> <img class="image-icon image-icon--method" title="" src="./themes/default/images/icon/method/save.svg" /> <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'menu_saveall'.'')))); ?></span> - <!-- Compiling link/link-end --></a><!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a5_class='entry clickable filtered on-action-page on-action-file on-action-template on-action-pageelement'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><!-- Compiling link/link-begin --><?php $a6_title=lang('menu_preview_desc');$a6_type='dialog';$a6_class='';$a6_subaction='preview';$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('"','&quot;',$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_subaction,$a6_frame,$a6_modal) ?> + + </a> + + </div> + <div class="entry clickable filtered on-action-page on-action-file on-action-template on-action-pageelement"> + <a title="<?php echo lang('menu_preview_desc') ?>" target="_self" data-type="dialog" data-action="<?php echo OR_ACTION ?>" data-method="preview" data-id="<?php echo OR_ID ?>" href="javascript:void(0);"> <img class="image-icon image-icon--method" title="" src="./themes/default/images/icon/method/preview.svg" /> <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'menu_preview'.'')))); ?></span> - <!-- Compiling link/link-end --></a><!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a5_class='divide'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a5_class='entry clickable'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><!-- Compiling link/link-begin --><?php $a6_title=lang('USER_LOGOUT_DESC');$a6_type='post';$a6_class='entry';$a6_action='login';$a6_subaction='logout';$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('"','&quot;',$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) ?> + + </a> + + </div> + <div class="divide"> + </div> + <div class="entry clickable"> + <a class="entry" title="<?php echo lang('USER_LOGOUT_DESC') ?>" target="_self" data-type="post" data-action="login" data-method="logout" data-id="<?php echo OR_ID ?>" data-data="{&quot;action&quot;:&quot;login&quot;,&quot;subaction&quot;:&quot;logout&quot;,&quot;id&quot;:&quot;<?php echo OR_ID ?>&quot;,&quot;token&quot;:&quot;<?php echo token() ?>&quot;,&quot;none&quot;:&quot;0&quot;}"> <img class="image-icon image-icon--method" title="" src="./themes/default/images/icon/method/logout.svg" /> <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'USER_LOGOUT'.'')))); ?></span> - <!-- Compiling link/link-end --></a><!-- Compiling part/part-end --></div><!-- Compiling part/part-end --></div><!-- Compiling part/part-end --></div> + + </a> + + </div> + </div> + </div> <?php } ?> - <?php $if2=($this->userIsLoggedIn()); if($if2){?><!-- Compiling part/part-begin --><?php $a3_class='toolbar-icon menu'; ?><div class="<?php echo $a3_class ?>"><?php unset($a3_class) ?> + <?php $if2=($this->userIsLoggedIn()); if($if2){?> + <div class="toolbar-icon menu"> <img class="image-icon image-icon--method" title="" src="./themes/default/images/icon/method/edit.svg" /> <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'edit'.'')))); ?></span> - <!-- Compiling part/part-begin --><?php $a4_class='arrow-down'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a4_class='dropdown'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling part/part-begin --><?php $a5_class='entry clickable filtered on-action-link on-action-folder on-action-page on-action-template on-action-element on-action-file'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><!-- Compiling link/link-begin --><?php $a6_title=lang('menu_prop_desc');$a6_type='dialog';$a6_class='';$a6_subaction='prop';$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('"','&quot;',$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_subaction,$a6_frame,$a6_modal) ?> + + <div class="arrow-down"> + </div> + <div class="dropdown"> + <div class="entry clickable filtered on-action-link on-action-folder on-action-page on-action-template on-action-element on-action-file"> + <a title="<?php echo lang('menu_prop_desc') ?>" target="_self" data-type="dialog" data-action="<?php echo OR_ACTION ?>" data-method="prop" data-id="<?php echo OR_ID ?>" href="javascript:void(0);"> <img class="image-icon image-icon--method" title="" src="./themes/default/images/icon/method/prop.svg" /> <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'menu_prop'.'')))); ?></span> - <!-- Compiling link/link-end --></a><!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a5_class='entry clickable filtered on-action-page on-action-file on-action-folder on-action-pageelement on-action-template'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><!-- Compiling link/link-begin --><?php $a6_title=lang('menu_pub_desc');$a6_type='dialog';$a6_class='';$a6_subaction='pub';$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('"','&quot;',$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_subaction,$a6_frame,$a6_modal) ?> + + </a> + + </div> + <div class="entry clickable filtered on-action-page on-action-file on-action-folder on-action-pageelement on-action-template"> + <a title="<?php echo lang('menu_pub_desc') ?>" target="_self" data-type="dialog" data-action="<?php echo OR_ACTION ?>" data-method="pub" data-id="<?php echo OR_ID ?>" href="javascript:void(0);"> <img class="image-icon image-icon--method" title="" src="./themes/default/images/icon/method/publish.svg" /> <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'menu_pub'.'')))); ?></span> - <!-- Compiling link/link-end --></a><!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a5_class='entry clickable filtered on-action-pageelement'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><!-- Compiling link/link-begin --><?php $a6_title=lang('menu_archive_desc');$a6_type='dialog';$a6_class='entry';$a6_subaction='archive';$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('"','&quot;',$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_subaction,$a6_frame,$a6_modal) ?> + + </a> + + </div> + <div class="entry clickable filtered on-action-pageelement"> + <a class="entry" title="<?php echo lang('menu_archive_desc') ?>" target="_self" data-type="dialog" data-action="<?php echo OR_ACTION ?>" data-method="archive" data-id="<?php echo OR_ID ?>" href="javascript:void(0);"> <img class="image-icon image-icon--method" title="" src="./themes/default/images/icon/method/archive.svg" /> <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'menu_archive'.'')))); ?></span> - <!-- Compiling link/link-end --></a><!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a5_class='entry clickable filtered on-action-folder on-action-link on-action-user on-action-page on-action-file'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><!-- Compiling link/link-begin --><?php $a6_title=lang('menu_rights_desc');$a6_type='dialog';$a6_class='';$a6_subaction='rights';$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('"','&quot;',$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_subaction,$a6_frame,$a6_modal) ?> + + </a> + + </div> + <div class="entry clickable filtered on-action-folder on-action-link on-action-user on-action-page on-action-file"> + <a title="<?php echo lang('menu_rights_desc') ?>" target="_self" data-type="dialog" data-action="<?php echo OR_ACTION ?>" data-method="rights" data-id="<?php echo OR_ID ?>" href="javascript:void(0);"> <img class="image-icon image-icon--method" title="" src="./themes/default/images/icon/method/rights.svg" /> <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'menu_rights'.'')))); ?></span> - <!-- Compiling link/link-end --></a><!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a5_class='divide'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a5_class='entry clickable filtered on-action-page'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><!-- Compiling link/link-begin --><?php $a6_title=lang('menu_changetemplate_desc');$a6_type='dialog';$a6_class='';$a6_subaction='changetemplate';$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('"','&quot;',$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_subaction,$a6_frame,$a6_modal) ?> + + </a> + + </div> + <div class="divide"> + </div> + <div class="entry clickable filtered on-action-page"> + <a title="<?php echo lang('menu_changetemplate_desc') ?>" target="_self" data-type="dialog" data-action="<?php echo OR_ACTION ?>" data-method="changetemplate" data-id="<?php echo OR_ID ?>" href="javascript:void(0);"> <img class="image-icon image-icon--method" title="" src="./themes/default/images/icon/method/changetemplate.svg" /> <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'menu_changetemplate'.'')))); ?></span> - <!-- Compiling link/link-end --></a><!-- Compiling part/part-end --></div><!-- Compiling part/part-end --></div><!-- Compiling part/part-end --></div> + + </a> + + </div> + </div> + </div> <?php } ?> - <?php $if2=($this->userIsLoggedIn()); if($if2){?><!-- Compiling part/part-begin --><?php $a3_class='toolbar-icon projects'; ?><div class="<?php echo $a3_class ?>"><?php unset($a3_class) ?> + <?php $if2=($this->userIsLoggedIn()); if($if2){?> + <div class="toolbar-icon projects"> <img class="image-icon image-icon--action" title="" src="./themes/default/images/icon/action/project.svg" /> <span class="titletext"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'GLOBAL_PROJECT'.'')))); ?></span> - <!-- Compiling part/part-begin --><?php $a4_class='dropdown'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?> - <?php $if5=($this->userIsAdmin()); if($if5){?><!-- Compiling part/part-begin --><?php $a6_class='entry clickable'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><!-- Compiling link/link-begin --><?php $a7_title='';$a7_type='post';$a7_target='tree';$a7_class='entry';$a7_action='start';$a7_subaction='administration';$a7_id='-1';$a7_frame='_self';$a7_modal=false; ?><?php - $params = array(); - $a7_url=''; - $tmp_url = ''; - $params[REQ_PARAM_TARGET] = $a7_target; - $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('"','&quot;',$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_target,$a7_class,$a7_action,$a7_subaction,$a7_id,$a7_frame,$a7_modal) ?> + + <div class="dropdown"> + <?php $if5=($this->userIsAdmin()); if($if5){?> + <div class="entry clickable"> + <a class="entry" target="_self" data-type="post" data-action="start" data-method="administration" data-id="-1" data-data="{&quot;action&quot;:&quot;start&quot;,&quot;subaction&quot;:&quot;administration&quot;,&quot;id&quot;:&quot;-1&quot;,&quot;token&quot;:&quot;<?php echo token() ?>&quot;,&quot;none&quot;:&quot;0&quot;}"> <img class="image-icon image-icon--method" title="" src="./themes/default/images/icon/method/settings.svg" /> <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'administration'.'')))); ?></span> - <!-- Compiling link/link-end --></a><!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a6_class='divide'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><!-- Compiling part/part-end --></div> + + </a> + + </div> + <div class="divide"> + </div> <?php } ?> - <?php $if5=(intval('00')<intval(@count($languages))); if($if5){?><!-- Compiling list/list-begin --><?php $a6_list='languages';$a6_extract=false;$a6_key='id';$a6_value='name'; ?><?php - $a6_list_tmp_key = $a6_key; - $a6_list_tmp_value = $a6_value; - $a6_list_extract = $a6_extract; - unset($a6_key); - unset($a6_value); - if ( !isset($$a6_list) || !is_array($$a6_list) ) - $$a6_list = array(); - foreach( $$a6_list as $$a6_list_tmp_key => $$a6_list_tmp_value ) - { - if ( $a6_list_extract ) - { - if ( !is_array($$a6_list_tmp_value) ) - { - print_r($$a6_list_tmp_value); - die( 'not an array at key: '.$$a6_list_tmp_key ); - } - extract($$a6_list_tmp_value); - } -?><?php unset($a6_list,$a6_extract,$a6_key,$a6_value) ?><!-- Compiling part/part-begin --><?php $a7_class='entry clickable'; ?><div class="<?php echo $a7_class ?>"><?php unset($a7_class) ?> + <?php $if5=(intval('00')<intval(@count($languages))); if($if5){?> + <?php foreach($languages as $id=>$name){ ?> + <div class="entry clickable"> <img class="image-icon image-icon--action" title="" src="./themes/default/images/icon/action/language.svg" /> - <!-- Compiling link/link-begin --><?php $a8_title=lang('select_language');$a8_type='post';$a8_class='';$a8_action='tree';$a8_subaction='language';$a8_id=$id;$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('"','&quot;',$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_subaction,$a8_id,$a8_frame,$a8_modal) ?> + + <a title="<?php echo lang('select_language') ?>" target="_self" data-type="post" data-action="tree" data-method="language" data-id="<?php echo $id ?>" data-data="{&quot;action&quot;:&quot;tree&quot;,&quot;subaction&quot;:&quot;language&quot;,&quot;id&quot;:&quot;<?php echo $id ?>&quot;,&quot;token&quot;:&quot;<?php echo token() ?>&quot;,&quot;none&quot;:&quot;0&quot;}"> <span class="text"><?php echo nl2br(encodeHtml(htmlentities($name))); ?></span> - <!-- Compiling link/link-end --></a><!-- Compiling part/part-end --></div><!-- Compiling list/list-end --><?php } ?><!-- Compiling part/part-begin --><?php $a6_class='divide'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><!-- Compiling part/part-end --></div> + + </a> + + </div> + <?php } ?> + <div class="divide"> + </div> <?php } ?> - <?php $if5=(intval('0')<intval(@count($models))); if($if5){?><!-- Compiling list/list-begin --><?php $a6_list='models';$a6_extract=false;$a6_key='id';$a6_value='name'; ?><?php - $a6_list_tmp_key = $a6_key; - $a6_list_tmp_value = $a6_value; - $a6_list_extract = $a6_extract; - unset($a6_key); - unset($a6_value); - if ( !isset($$a6_list) || !is_array($$a6_list) ) - $$a6_list = array(); - foreach( $$a6_list as $$a6_list_tmp_key => $$a6_list_tmp_value ) - { - if ( $a6_list_extract ) - { - if ( !is_array($$a6_list_tmp_value) ) - { - print_r($$a6_list_tmp_value); - die( 'not an array at key: '.$$a6_list_tmp_key ); - } - extract($$a6_list_tmp_value); - } -?><?php unset($a6_list,$a6_extract,$a6_key,$a6_value) ?><!-- Compiling part/part-begin --><?php $a7_class='entry clickable'; ?><div class="<?php echo $a7_class ?>"><?php unset($a7_class) ?> + <?php $if5=(intval('0')<intval(@count($models))); if($if5){?> + <?php foreach($models as $id=>$name){ ?> + <div class="entry clickable"> <img class="image-icon image-icon--action" title="" src="./themes/default/images/icon/action/model.svg" /> - <!-- Compiling link/link-begin --><?php $a8_title=lang('select_model');$a8_type='post';$a8_class='';$a8_action='tree';$a8_subaction='model';$a8_id=$id;$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('"','&quot;',$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_subaction,$a8_id,$a8_frame,$a8_modal) ?> + + <a title="<?php echo lang('select_model') ?>" target="_self" data-type="post" data-action="tree" data-method="model" data-id="<?php echo $id ?>" data-data="{&quot;action&quot;:&quot;tree&quot;,&quot;subaction&quot;:&quot;model&quot;,&quot;id&quot;:&quot;<?php echo $id ?>&quot;,&quot;token&quot;:&quot;<?php echo token() ?>&quot;,&quot;none&quot;:&quot;0&quot;}"> <span class="text"><?php echo nl2br(encodeHtml(htmlentities($name))); ?></span> - <!-- Compiling link/link-end --></a><!-- Compiling part/part-end --></div><!-- Compiling list/list-end --><?php } ?><!-- Compiling part/part-begin --><?php $a6_class='divide'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><!-- Compiling part/part-end --></div> - <?php } ?><!-- Compiling list/list-begin --><?php $a5_list='projects';$a5_extract=false;$a5_key='id';$a5_value='name'; ?><?php - $a5_list_tmp_key = $a5_key; - $a5_list_tmp_value = $a5_value; - $a5_list_extract = $a5_extract; - unset($a5_key); - unset($a5_value); - if ( !isset($$a5_list) || !is_array($$a5_list) ) - $$a5_list = array(); - foreach( $$a5_list as $$a5_list_tmp_key => $$a5_list_tmp_value ) - { - if ( $a5_list_extract ) - { - if ( !is_array($$a5_list_tmp_value) ) - { - print_r($$a5_list_tmp_value); - die( 'not an array at key: '.$$a5_list_tmp_key ); - } - extract($$a5_list_tmp_value); - } -?><?php unset($a5_list,$a5_extract,$a5_key,$a5_value) ?><!-- Compiling part/part-begin --><?php $a6_class='entry clickable'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?> + + </a> + + </div> + <?php } ?> + <div class="divide"> + </div> + <?php } ?> + <?php foreach($projects as $id=>$name){ ?> + <div class="entry clickable"> <img class="image-icon image-icon--action" title="" src="./themes/default/images/icon/action/project.svg" /> - <!-- Compiling link/link-begin --><?php $a7_title=lang('select_project');$a7_type='post';$a7_class='';$a7_action='start';$a7_subaction='projectmenu';$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('"','&quot;',$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) ?> + + <a title="<?php echo lang('select_project') ?>" target="_self" data-type="post" data-action="start" data-method="projectmenu" data-id="<?php echo $id ?>" data-data="{&quot;action&quot;:&quot;start&quot;,&quot;subaction&quot;:&quot;projectmenu&quot;,&quot;id&quot;:&quot;<?php echo $id ?>&quot;,&quot;token&quot;:&quot;<?php echo token() ?>&quot;,&quot;none&quot;:&quot;0&quot;}"> <span class="text"><?php echo nl2br(encodeHtml(htmlentities(Text::maxLength( $name,45,'..',constant('STR_PAD_BOTH') )))); ?></span> - <!-- Compiling link/link-end --></a><!-- Compiling part/part-end --></div><!-- Compiling list/list-end --><?php } ?><!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a4_class='arrow-down'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling part/part-end --></div><!-- Compiling part/part-end --></div> + + </a> + + </div> + <?php } ?> + </div> + <div class="arrow-down"> + </div> + </div> <?php } ?> - <?php $if2=($this->userIsLoggedIn()); if($if2){?><!-- Compiling part/part-begin --><?php $a3_class='toolbar-icon clickable filtered on-action-folder on-action-file on-action-page on-action-link on-action-template on-action-element'; ?><div class="<?php echo $a3_class ?>"><?php unset($a3_class) ?><!-- Compiling link/link-begin --><?php $a4_title=lang('menu_prop_desc');$a4_type='dialog';$a4_class='';$a4_subaction='prop';$a4_frame='_self';$a4_modal=false; ?><?php - $params = array(); - $a4_url=''; - $tmp_url = ''; - $a4_target = $view; - $tmp_href = 'javascript:void(0);'; - switch( $a4_type ) - { - case 'post': - $json = new JSON(); - $tmp_data = $json->encode( array('action'=>!empty($a4_action)?$a4_action:$this->actionName,'subaction'=>!empty($a4_subaction)?$a4_subaction:$this->subActionName,'id'=>!empty($a4_id)?$a4_id:$this->getRequestId()) - +array(REQ_PARAM_TOKEN=>token()) - +$params ); - $tmp_data = str_replace("\n",'',str_replace('"','&quot;',$tmp_data)); - break; - case 'html'; - $tmp_href = $a4_url; - default: - $tmp_data = ''; - } -?><a data-url="<?php echo $a4_url ?>" target="<?php echo $a4_frame ?>"<?php if (isset($a4_name)) { ?> data-name="<?php echo $a4_name ?>" name="<?php echo $a4_name ?>"<?php }else{ ?> href="<?php echo $tmp_href ?>" <?php } ?> class="<?php echo $a4_class ?>" data-id="<?php echo @$a4_id ?>" data-type="<?php echo $a4_type ?>" data-action="<?php echo @$a4_action ?>" data-method="<?php echo @$a4_subaction ?>" data-data="<?php echo $tmp_data ?>" <?php if (isset($a4_accesskey)) echo ' accesskey="'.$a4_accesskey.'"' ?> title="<?php echo encodeHtml($a4_title) ?>"><?php unset($a4_title,$a4_type,$a4_class,$a4_subaction,$a4_frame,$a4_modal) ?> + <?php $if2=($this->userIsLoggedIn()); if($if2){?> + <div class="toolbar-icon clickable filtered on-action-folder on-action-file on-action-page on-action-link on-action-template on-action-element"> + <a title="<?php echo lang('menu_prop_desc') ?>" target="_self" data-type="dialog" data-action="<?php echo OR_ACTION ?>" data-method="prop" data-id="<?php echo OR_ID ?>" href="javascript:void(0);"> <img class="image-icon image-icon--method" title="" src="./themes/default/images/icon/method/prop.svg" /> <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'menu_prop'.'')))); ?></span> - <!-- Compiling link/link-end --></a><!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a3_class='toolbar-icon clickable filtered on-action-folder on-action-page on-action-file on-action-pageelement on-action-template'; ?><div class="<?php echo $a3_class ?>"><?php unset($a3_class) ?><!-- Compiling link/link-begin --><?php $a4_title=lang('menu_pub_desc');$a4_type='dialog';$a4_class='';$a4_subaction='pub';$a4_frame='_self';$a4_modal=false; ?><?php - $params = array(); - $a4_url=''; - $tmp_url = ''; - $a4_target = $view; - $tmp_href = 'javascript:void(0);'; - switch( $a4_type ) - { - case 'post': - $json = new JSON(); - $tmp_data = $json->encode( array('action'=>!empty($a4_action)?$a4_action:$this->actionName,'subaction'=>!empty($a4_subaction)?$a4_subaction:$this->subActionName,'id'=>!empty($a4_id)?$a4_id:$this->getRequestId()) - +array(REQ_PARAM_TOKEN=>token()) - +$params ); - $tmp_data = str_replace("\n",'',str_replace('"','&quot;',$tmp_data)); - break; - case 'html'; - $tmp_href = $a4_url; - default: - $tmp_data = ''; - } -?><a data-url="<?php echo $a4_url ?>" target="<?php echo $a4_frame ?>"<?php if (isset($a4_name)) { ?> data-name="<?php echo $a4_name ?>" name="<?php echo $a4_name ?>"<?php }else{ ?> href="<?php echo $tmp_href ?>" <?php } ?> class="<?php echo $a4_class ?>" data-id="<?php echo @$a4_id ?>" data-type="<?php echo $a4_type ?>" data-action="<?php echo @$a4_action ?>" data-method="<?php echo @$a4_subaction ?>" data-data="<?php echo $tmp_data ?>" <?php if (isset($a4_accesskey)) echo ' accesskey="'.$a4_accesskey.'"' ?> title="<?php echo encodeHtml($a4_title) ?>"><?php unset($a4_title,$a4_type,$a4_class,$a4_subaction,$a4_frame,$a4_modal) ?> + + </a> + + </div> + <div class="toolbar-icon clickable filtered on-action-folder on-action-page on-action-file on-action-pageelement on-action-template"> + <a title="<?php echo lang('menu_pub_desc') ?>" target="_self" data-type="dialog" data-action="<?php echo OR_ACTION ?>" data-method="pub" data-id="<?php echo OR_ID ?>" href="javascript:void(0);"> <img class="image-icon image-icon--method" title="" src="./themes/default/images/icon/method/publish.svg" /> <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'menu_pub'.'')))); ?></span> - <!-- Compiling link/link-end --></a><!-- Compiling part/part-end --></div> + + </a> + + </div> <?php } ?> - <?php $if2=(empty(@$conf['login']['motd'])); if($if2){?><!-- Compiling part/part-begin --><?php $a3_class='toolbar-icon'; ?><div class="<?php echo $a3_class ?>"><?php unset($a3_class) ?> + <?php $if2=(empty(@$conf['login']['motd'])); if($if2){?> + <div class="toolbar-icon"> <img class="image-icon image-icon--method" title="" src="./themes/default/images/icon/method/motd.svg" /> <span class="text"><?php echo nl2br('&nbsp;'); ?></span> - <!-- Compiling part/part-begin --><?php $a4_class='arrow-down'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a4_class='dropdown'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling part/part-begin --><?php $a5_class='entry'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?> + + <div class="arrow-down"> + </div> + <div class="dropdown"> + <div class="entry"> <span class="text"><?php echo nl2br('config:login/motd'); ?></span> - <!-- Compiling part/part-end --></div><!-- Compiling part/part-end --></div><!-- Compiling part/part-end --></div> - <?php } ?><!-- Compiling part/part-begin --><?php $a2_class='search'; ?><div class="<?php echo $a2_class ?>"><?php unset($a2_class) ?><!-- Compiling input/input-begin --><?php $a3_class='text';$a3_default='';$a3_type='text';$a3_name='text';$a3_size='';$a3_maxlength='256';$a3_onchange='';$a3_readonly=false;$a3_hint=lang('search');$a3_icon='search'; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a3_readonly=true; - if ($a3_readonly && empty($$a3_name)) $$a3_name = '- '.lang('EMPTY').' -'; - if(!isset($a3_default)) $a3_default=''; - $tmp_value = Text::encodeHtml(isset($$a3_name)?$$a3_name:$a3_default); -?><?php if (!$a3_readonly || $a3_type=='hidden') { -?><div class="<?php echo $a3_type!='hidden'?'inputholder':'inputhidden' ?>"><input<?php if ($a3_readonly) echo ' disabled="true"' ?><?php if ($a3_hint) echo ' data-hint="'.$a3_hint.'"'; ?> id="<?php echo REQUEST_ID ?>_<?php echo $a3_name ?><?php if ($a3_readonly) echo '_disabled' ?>" name="<?php echo $a3_name ?><?php if ($a3_readonly) echo '_disabled' ?>" type="<?php echo $a3_type ?>" maxlength="<?php echo $a3_maxlength ?>" class="<?php echo str_replace(',',' ',$a3_class) ?>" value="<?php echo $tmp_value ?>" /><?php if ($a3_icon) echo '<img src="'.$image_dir.'icon_'.$a3_icon.IMG_ICON_EXT.'" width="16" height="16" />'; ?></div><?php -if ($a3_readonly) { -?><input type="hidden" id="<?php echo REQUEST_ID ?>_<?php echo $a3_name ?>" name="<?php echo $a3_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 $a3_class ?>"><?php echo $tmp_value ?></span></a><?php } ?><?php unset($a3_class,$a3_default,$a3_type,$a3_name,$a3_size,$a3_maxlength,$a3_onchange,$a3_readonly,$a3_hint,$a3_icon) ?><!-- Compiling part/part-begin --><?php $a3_class='dropdown'; ?><div class="<?php echo $a3_class ?>"><?php unset($a3_class) ?> - <span class="text"><?php echo nl2br(encodeHtml(htmlentities())); ?></span> - <!-- Compiling part/part-end --></div><!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a2_class='toolbar-icon user'; ?><div class="<?php echo $a2_class ?>"><?php unset($a2_class) ?> + + </div> + </div> + </div> + <?php } ?> + <div class="search"> + <div class="inputholder"><input<?php if ('') echo ' disabled="true"' ?> data-hint="<?php echo lang('search') ?>" id="<?php echo REQUEST_ID ?>_text" name="text<?php if ('') echo '_disabled' ?>" type="text" maxlength="256" class="text" value="<?php echo Text::encodeHtml(@$text) ?>" /><?php if ('') { ?><input type="hidden" name="text" value="<?php $text ?>"/><?php } ?><img src="/themes/default/images/icon_search<?php echo IMG_ICON_EXT ?>" width="16" height="16" /></div> + + <div class="dropdown"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(''))); ?></span> + + </div> + </div> + <div class="toolbar-icon user"> <img class="image-icon image-icon--action" title="" src="./themes/default/images/icon/action/user.svg" /> <span class="titletext"><?php echo nl2br(encodeHtml(htmlentities(Text::maxLength( $userfullname,25,'..',constant('STR_PAD_BOTH') )))); ?></span> <img class="image-icon image-icon--method" title="" src="./themes/default/images/icon/method/arrow_down.svg" /> - <!-- Compiling part/part-begin --><?php $a3_class='dropdown'; ?><div class="<?php echo $a3_class ?>"><?php unset($a3_class) ?><!-- Compiling part/part-begin --><?php $a4_class='entry clickable'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling link/link-begin --><?php $a5_title=lang('USER_PROFILE_DESC');$a5_type='post';$a5_class='';$a5_action='start';$a5_subaction='profile';$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('"','&quot;',$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_action,$a5_subaction,$a5_frame,$a5_modal) ?> + + <div class="dropdown"> + <div class="entry clickable"> + <a title="<?php echo lang('USER_PROFILE_DESC') ?>" target="_self" data-type="post" data-action="start" data-method="profile" data-id="<?php echo OR_ID ?>" data-data="{&quot;action&quot;:&quot;start&quot;,&quot;subaction&quot;:&quot;profile&quot;,&quot;id&quot;:&quot;<?php echo OR_ID ?>&quot;,&quot;token&quot;:&quot;<?php echo token() ?>&quot;,&quot;none&quot;:&quot;0&quot;}"> <img class="image-icon image-icon--action" title="" src="./themes/default/images/icon/action/user.svg" /> <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'profile'.'')))); ?></span> - <!-- Compiling link/link-end --></a><!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a4_class='entry clickable'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling link/link-begin --><?php $a5_title=lang('start');$a5_type='post';$a5_class='';$a5_action='start';$a5_subaction='start';$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('"','&quot;',$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_action,$a5_subaction,$a5_frame,$a5_modal) ?> + + </a> + + </div> + <div class="entry clickable"> + <a title="<?php echo lang('start') ?>" target="_self" data-type="post" data-action="start" data-method="start" data-id="<?php echo OR_ID ?>" data-data="{&quot;action&quot;:&quot;start&quot;,&quot;subaction&quot;:&quot;start&quot;,&quot;id&quot;:&quot;<?php echo OR_ID ?>&quot;,&quot;token&quot;:&quot;<?php echo token() ?>&quot;,&quot;none&quot;:&quot;0&quot;}"> <img class="image-icon image-icon--action" title="" src="./themes/default/images/icon/action/dashboard.svg" /> <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'start'.'')))); ?></span> - <!-- Compiling link/link-end --></a><!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a4_class='divide'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a4_class='entry clickable'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling link/link-begin --><?php $a5_title=lang('USER_LOGOUT_DESC');$a5_type='post';$a5_class='entry';$a5_action='login';$a5_subaction='logout';$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('"','&quot;',$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_action,$a5_subaction,$a5_frame,$a5_modal) ?> + + </a> + + </div> + <div class="divide"> + </div> + <div class="entry clickable"> + <a class="entry" title="<?php echo lang('USER_LOGOUT_DESC') ?>" target="_self" data-type="post" data-action="login" data-method="logout" data-id="<?php echo OR_ID ?>" data-data="{&quot;action&quot;:&quot;login&quot;,&quot;subaction&quot;:&quot;logout&quot;,&quot;id&quot;:&quot;<?php echo OR_ID ?>&quot;,&quot;token&quot;:&quot;<?php echo token() ?>&quot;,&quot;none&quot;:&quot;0&quot;}"> <img class="image-icon image-icon--method" title="" src="./themes/default/images/icon/method/close.svg" /> <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'USER_LOGOUT'.'')))); ?></span> - <!-- Compiling link/link-end --></a><!-- Compiling part/part-end --></div><!-- Compiling part/part-end --></div><!-- Compiling part/part-end --></div>- \ No newline at end of file + + </a> + + </div> + </div> + </div> + + \ No newline at end of file diff --git a/themes/default/templates/tree/tree.tpl.out.php b/themes/default/templates/tree/tree.tpl.out.php @@ -1,16 +1,7 @@ -<!-- Compiling output/output-begin --><!-- Compiling header/header-begin --><?php $a2_name='';$a2_views='projecttimeline,userprojecttimeline';$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 insert/insert-begin --><?php $a2_inline=false;$a2_function='loadTree'; ?><iframe -></iframe> -Hallo! -<script type="text/javascript" name="JavaScript"><?php echo $a2_function?>();</script> -<?php unset($a2_inline,$a2_function) ?>- \ No newline at end of file + + + + + <script type="text/javascript" name="JavaScript">loadTree();</script> + + + \ No newline at end of file diff --git a/themes/default/templates/user/edit.tpl.out.php b/themes/default/templates/user/edit.tpl.out.php @@ -1,217 +1,95 @@ -<!-- Compiling output/output-begin --><!-- Compiling header/header-begin --><?php $a2_name='';$a2_views='pw,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) ?> - <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='user_username'; ?><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='20';$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> - <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='fullname';$a6_key='user_fullname'; ?><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) ?><!-- Compiling input/input-begin --><?php $a6_class='text';$a6_default='';$a6_type='text';$a6_name='fullname';$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 --></div><!-- Compiling part/part-end --></div> - <?php $if4=(@$conf['security']['user']['show_admin_mail']); if($if4){?><!-- 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='mail';$a7_key='user_mail'; ?><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,$a7_key) ?><!-- 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 input/input-begin --><?php $a7_class='text';$a7_default='';$a7_type='text';$a7_name='mail';$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_size,$a7_maxlength,$a7_onchange,$a7_readonly,$a7_hint,$a7_icon) ?> + + + + + <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('user_username') ?> + </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> + <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"> + <label for="<?php echo REQUEST_ID ?>_fullname" class="label"><?php echo lang('user_fullname') ?> + </label> + </div> + <div class="input"> + <div class="inputholder"><input<?php if ('') echo ' disabled="true"' ?> id="<?php echo REQUEST_ID ?>_fullname" name="fullname<?php if ('') echo '_disabled' ?>" type="text" maxlength="256" class="text" value="<?php echo Text::encodeHtml(@$fullname) ?>" /><?php if ('') { ?><input type="hidden" name="fullname" value="<?php $fullname ?>"/><?php } ?></div> + + </div> + </div> + <?php $if4=(@$conf['security']['user']['show_admin_mail']); if($if4){?> + <div class="line"> + <div class="label"> + <label for="<?php echo REQUEST_ID ?>_mail" class="label"><?php echo lang('user_mail') ?> + </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="text" value="<?php echo Text::encodeHtml(@$mail) ?>" /><?php if ('') { ?><input type="hidden" name="mail" value="<?php $mail ?>"/><?php } ?></div> + <div class="qrcode" data-qrcode="<?php echo 'mailto:'.$mail.'' ?>" title="<?php echo 'mailto:'.$mail.'' ?>"></div> - <!-- Compiling part/part-end --></div><!-- Compiling part/part-end --></div> - <?php } ?><!-- 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='desc';$a6_key='user_desc'; ?><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) ?><!-- Compiling input/input-begin --><?php $a6_class='text';$a6_default='';$a6_type='text';$a6_name='desc';$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 --></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='tel';$a6_key='user_tel'; ?><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) ?><!-- Compiling input/input-begin --><?php $a6_class='text';$a6_default='';$a6_type='text';$a6_name='tel';$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) ?> + + </div> + </div> + <?php } ?> + <div class="line"> + <div class="label"> + <label for="<?php echo REQUEST_ID ?>_desc" class="label"><?php echo lang('user_desc') ?> + </label> + </div> + <div class="input"> + <div class="inputholder"><input<?php if ('') echo ' disabled="true"' ?> id="<?php echo REQUEST_ID ?>_desc" name="desc<?php if ('') echo '_disabled' ?>" type="text" maxlength="256" class="text" value="<?php echo Text::encodeHtml(@$desc) ?>" /><?php if ('') { ?><input type="hidden" name="desc" value="<?php $desc ?>"/><?php } ?></div> + + </div> + </div> + <div class="line"> + <div class="label"> + <label for="<?php echo REQUEST_ID ?>_tel" class="label"><?php echo lang('user_tel') ?> + </label> + </div> + <div class="input"> + <div class="inputholder"><input<?php if ('') echo ' disabled="true"' ?> id="<?php echo REQUEST_ID ?>_tel" name="tel<?php if ('') echo '_disabled' ?>" type="text" maxlength="256" class="text" value="<?php echo Text::encodeHtml(@$tel) ?>" /><?php if ('') { ?><input type="hidden" name="tel" value="<?php $tel ?>"/><?php } ?></div> + <div class="qrcode" data-qrcode="<?php echo 'tel:'.$tel.'' ?>" title="<?php echo 'tel:'.$tel.'' ?>"></div> - <!-- 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='timezone_offset'; ?><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 --><?php $a7_class='text';$a7_key='timezone';$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_key); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_key,$a7_escape,$a7_cut) ?><!-- 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 selectbox/selectbox-begin --><?php $a6_list='timezone_list';$a6_name='timezone';$a6_onchange='';$a6_title='';$a6_class='';$a6_addempty=true;$a6_multiple=false;$a6_size='1';$a6_lang=false; ?><?php -$a6_readonly=false; -$a6_tmp_list = $$a6_list; -if ($this->isEditable() && !$this->isEditMode()) -{ - echo empty($$a6_name)?'- '.lang('EMPTY').' -':$a6_tmp_list[$$a6_name]; -} -else -{ -if ( $a6_addempty!==FALSE ) -{ - if ($a6_addempty===TRUE) - $a6_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a6_tmp_list; - else - $a6_tmp_list = array(''=>'- '.lang($a6_addempty).' -')+$a6_tmp_list; -} -?><div class="inputholder"><select<?php if ($a6_readonly) echo ' disabled="disabled"' ?> id="<?php echo REQUEST_ID ?>_<?php echo $a6_name ?>" name="<?php echo $a6_name; if ($a6_multiple) echo '[]'; ?>" onchange="<?php echo $a6_onchange ?>" title="<?php echo $a6_title ?>" class="<?php echo $a6_class ?>"<?php -if (count($$a6_list)<=1) echo ' disabled="disabled"'; -if ($a6_multiple) echo ' multiple="multiple"'; -echo ' size="'.intval($a6_size).'"'; -?>><?php - if ( isset($$a6_name) && isset($a6_tmp_list[$$a6_name]) ) - $a6_tmp_default = $$a6_name; - elseif ( isset($a6_default) ) - $a6_tmp_default = $a6_default; - else - $a6_tmp_default = ''; - foreach( $a6_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( $a6_lang ) - { - $box_title = lang( $box_value.'_DESC'); - $box_value = lang( $box_value ); - } - else - { - $box_title = ''; - } - echo '<option class="'.$a6_class.'" value="'.$box_key.'" title="'.$box_title.'"'; - if ((string)$box_key==$a6_tmp_default) - echo ' selected="selected"'; - echo '>'.$box_value.'</option>'; - } -?></select></div><?php -if (count($$a6_list)==0) echo '<input type="hidden" name="'.$a6_name.'" value="" />'; -if (count($$a6_list)==1) echo '<input type="hidden" name="'.$a6_name.'" value="'.$box_key.'" />'; -} -?><?php unset($a6_list,$a6_name,$a6_onchange,$a6_title,$a6_class,$a6_addempty,$a6_multiple,$a6_size,$a6_lang) ?><!-- 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=''; ?><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 --><?php $a7_class='text';$a7_key='language';$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_key); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_key,$a7_escape,$a7_cut) ?><!-- 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 selectbox/selectbox-begin --><?php $a6_list='language_list';$a6_name='language';$a6_onchange='';$a6_title='';$a6_class='';$a6_addempty=true;$a6_multiple=false;$a6_size='1';$a6_lang=false; ?><?php -$a6_readonly=false; -$a6_tmp_list = $$a6_list; -if ($this->isEditable() && !$this->isEditMode()) -{ - echo empty($$a6_name)?'- '.lang('EMPTY').' -':$a6_tmp_list[$$a6_name]; -} -else -{ -if ( $a6_addempty!==FALSE ) -{ - if ($a6_addempty===TRUE) - $a6_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a6_tmp_list; - else - $a6_tmp_list = array(''=>'- '.lang($a6_addempty).' -')+$a6_tmp_list; -} -?><div class="inputholder"><select<?php if ($a6_readonly) echo ' disabled="disabled"' ?> id="<?php echo REQUEST_ID ?>_<?php echo $a6_name ?>" name="<?php echo $a6_name; if ($a6_multiple) echo '[]'; ?>" onchange="<?php echo $a6_onchange ?>" title="<?php echo $a6_title ?>" class="<?php echo $a6_class ?>"<?php -if (count($$a6_list)<=1) echo ' disabled="disabled"'; -if ($a6_multiple) echo ' multiple="multiple"'; -echo ' size="'.intval($a6_size).'"'; -?>><?php - if ( isset($$a6_name) && isset($a6_tmp_list[$$a6_name]) ) - $a6_tmp_default = $$a6_name; - elseif ( isset($a6_default) ) - $a6_tmp_default = $a6_default; - else - $a6_tmp_default = ''; - foreach( $a6_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( $a6_lang ) - { - $box_title = lang( $box_value.'_DESC'); - $box_value = lang( $box_value ); - } - else - { - $box_title = ''; - } - echo '<option class="'.$a6_class.'" value="'.$box_key.'" title="'.$box_title.'"'; - if ((string)$box_key==$a6_tmp_default) - echo ' selected="selected"'; - echo '>'.$box_value.'</option>'; - } -?></select></div><?php -if (count($$a6_list)==0) echo '<input type="hidden" name="'.$a6_name.'" value="" />'; -if (count($$a6_list)==1) echo '<input type="hidden" name="'.$a6_name.'" value="'.$box_key.'" />'; -} -?><?php unset($a6_list,$a6_name,$a6_onchange,$a6_title,$a6_class,$a6_addempty,$a6_multiple,$a6_size,$a6_lang) ?><!-- Compiling part/part-end --></div><!-- Compiling part/part-end --></div> + + </div> + </div> + <div class="line"> + <div class="label"> + <label for="<?php echo REQUEST_ID ?>_timezone_offset" class="label"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'timezone'.'')))); ?></span> + + </label> + </div> + <div class="input"> + <div class="inputholder"><select id="<?php echo REQUEST_ID ?>_timezone" name="timezone" title="" class=""<?php if (count($timezone_list)<=1) echo ' disabled="disabled"'; ?> size=1"><?php include_once( OR_THEMES_DIR.'default/include/html/selectbox/component-select-box.php') ?><?php component_select_option_list($timezone_list,$timezone,1,0) ?><?php if (count($timezone_list)==0) { ?><input type="hidden" name="timezone" value="" /><?php } ?><?php if (count($timezone_list)==1) { ?><input type="hidden" name="timezone" value="<?php echo array_keys($timezone_list)[0] ?>" /><?php } ?> + </select></div> + </div> + </div> + <div class="line"> + <div class="label"> + <label class="label"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'language'.'')))); ?></span> + + </label> + </div> + <div class="input"> + <div class="inputholder"><select id="<?php echo REQUEST_ID ?>_language" name="language" title="" class=""<?php if (count($language_list)<=1) echo ' disabled="disabled"'; ?> size=1"><?php include_once( OR_THEMES_DIR.'default/include/html/selectbox/component-select-box.php') ?><?php component_select_option_list($language_list,$language,1,0) ?><?php if (count($language_list)==0) { ?><input type="hidden" name="language" value="" /><?php } ?><?php if (count($language_list)==1) { ?><input type="hidden" name="language" value="<?php echo array_keys($language_list)[0] ?>" /><?php } ?> + </select></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('options') ?></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 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('options') ?></legend><div> + <div class="line"> + <div class="label"> + </div> + <div class="input"> <?php { $tmpname = 'is_admin';$default = '';$readonly = ''; if ( isset($$tmpname) ) $checked = $$tmpname; @@ -225,114 +103,69 @@ if (count($$a6_list)==1) echo '<input type="hidden" name="'.$a6_name.'" value="' ?><input type="hidden" name="<?php echo $tmpname ?>" value="1" /><?php } } ?> - <!-- Compiling label/label-begin --><?php $a6_for='is_admin';$a6_key='user_admin'; ?><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-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='ldap_dn';$a6_key='user_ldapdn'; ?><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) ?><!-- Compiling input/input-begin --><?php $a6_class='text';$a6_default='';$a6_type='text';$a6_name='ldap_dn';$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 --></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='style';$a6_key='user_style'; ?><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) ?><!-- Compiling selectbox/selectbox-begin --><?php $a6_list='allstyles';$a6_name='style';$a6_default=@$conf['interface']['style']['default'];$a6_onchange='';$a6_title='';$a6_class='';$a6_addempty=false;$a6_multiple=false;$a6_size='1';$a6_lang=false; ?><?php -$a6_readonly=false; -$a6_tmp_list = $$a6_list; -if ($this->isEditable() && !$this->isEditMode()) -{ - echo empty($$a6_name)?'- '.lang('EMPTY').' -':$a6_tmp_list[$$a6_name]; -} -else -{ -if ( $a6_addempty!==FALSE ) -{ - if ($a6_addempty===TRUE) - $a6_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a6_tmp_list; - else - $a6_tmp_list = array(''=>'- '.lang($a6_addempty).' -')+$a6_tmp_list; -} -?><div class="inputholder"><select<?php if ($a6_readonly) echo ' disabled="disabled"' ?> id="<?php echo REQUEST_ID ?>_<?php echo $a6_name ?>" name="<?php echo $a6_name; if ($a6_multiple) echo '[]'; ?>" onchange="<?php echo $a6_onchange ?>" title="<?php echo $a6_title ?>" class="<?php echo $a6_class ?>"<?php -if (count($$a6_list)<=1) echo ' disabled="disabled"'; -if ($a6_multiple) echo ' multiple="multiple"'; -echo ' size="'.intval($a6_size).'"'; -?>><?php - if ( isset($$a6_name) && isset($a6_tmp_list[$$a6_name]) ) - $a6_tmp_default = $$a6_name; - elseif ( isset($a6_default) ) - $a6_tmp_default = $a6_default; - else - $a6_tmp_default = ''; - foreach( $a6_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( $a6_lang ) - { - $box_title = lang( $box_value.'_DESC'); - $box_value = lang( $box_value ); - } - else - { - $box_title = ''; - } - echo '<option class="'.$a6_class.'" value="'.$box_key.'" title="'.$box_title.'"'; - if ((string)$box_key==$a6_tmp_default) - echo ' selected="selected"'; - echo '>'.$box_value.'</option>'; - } -?></select></div><?php -if (count($$a6_list)==0) echo '<input type="hidden" name="'.$a6_name.'" value="" />'; -if (count($$a6_list)==1) echo '<input type="hidden" name="'.$a6_name.'" value="'.$box_key.'" />'; -} -?><?php unset($a6_list,$a6_name,$a6_default,$a6_onchange,$a6_title,$a6_class,$a6_addempty,$a6_multiple,$a6_size,$a6_lang) ?><!-- Compiling part/part-end --></div><!-- Compiling part/part-end --></div> + + <label for="<?php echo REQUEST_ID ?>_is_admin" class="label"><?php echo lang('user_admin') ?> + </label> + </div> + </div> + <div class="line"> + <div class="label"> + <label for="<?php echo REQUEST_ID ?>_ldap_dn" class="label"><?php echo lang('user_ldapdn') ?> + </label> + </div> + <div class="input"> + <div class="inputholder"><input<?php if ('') echo ' disabled="true"' ?> id="<?php echo REQUEST_ID ?>_ldap_dn" name="ldap_dn<?php if ('') echo '_disabled' ?>" type="text" maxlength="256" class="text" value="<?php echo Text::encodeHtml(@$ldap_dn) ?>" /><?php if ('') { ?><input type="hidden" name="ldap_dn" value="<?php $ldap_dn ?>"/><?php } ?></div> + + </div> + </div> + <div class="line"> + <div class="label"> + <label for="<?php echo REQUEST_ID ?>_style" class="label"><?php echo lang('user_style') ?> + </label> + </div> + <div class="input"> + <div class="inputholder"><select id="<?php echo REQUEST_ID ?>_style" name="style" title="" class=""<?php if (count($allstyles)<=1) echo ' disabled="disabled"'; ?> size=1"><?php include_once( OR_THEMES_DIR.'default/include/html/selectbox/component-select-box.php') ?><?php component_select_option_list($allstyles,@$conf['interface']['style']['default'],0,0) ?><?php if (count($allstyles)==0) { ?><input type="hidden" name="style" value="" /><?php } ?><?php if (count($allstyles)==1) { ?><input type="hidden" name="style" value="<?php echo array_keys($allstyles)[0] ?>" /><?php } ?> + </select></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('security') ?></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 text/text-begin --><?php $a6_class='text';$a6_text=lang('user_password_expires');$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 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('security') ?></legend><div> + <div class="line"> + <div class="label"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('user_password_expires')))); ?></span> + + </div> + <div class="input"> <?php include_once( OR_THEMES_DIR.'default/include/html/date/component-date.php') ?><?php component_date($passwordExpires) ?> - <!-- 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 text/text-begin --><?php $a6_class='text';$a6_text=lang('user_last_login');$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 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"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('user_last_login')))); ?></span> + + </div> + <div class="input"> <?php include_once( OR_THEMES_DIR.'default/include/html/date/component-date.php') ?><?php component_date($lastLogin) ?> - <!-- 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 text/text-begin --><?php $a6_class='text';$a6_text=lang('token');$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 part/part-end --></div><!-- Compiling part/part-begin --><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><!-- Compiling text/text-begin --><?php $a6_class='text';$a6_value=$totpToken;$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 = $a6_escape?htmlentities($a6_value):$a6_value; - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_value,$a6_escape,$a6_cut) ?><!-- 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='otpsecret';$a6_key='user_totp'; ?><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"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('token')))); ?></span> + + </div> + <div class="input"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities($totpToken))); ?></span> + + </div> + </div> + <div class="line"> + <div class="label"> + <label for="<?php echo REQUEST_ID ?>_otpsecret" class="label"><?php echo lang('user_totp') ?> + </label> + </div> + <div class="input"> <?php { $tmpname = 'totp';$default = '';$readonly = ''; if ( isset($$tmpname) ) $checked = $$tmpname; @@ -346,20 +179,21 @@ if (count($$a6_list)==1) echo '<input type="hidden" name="'.$a6_name.'" value="' ?><input type="hidden" name="<?php echo $tmpname ?>" value="1" /><?php } } ?> - <!-- Compiling label/label-begin --><?php $a6_for='totp';$a6_key='user_totp'; ?><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 text/text-begin --><?php $a6_class='text';$a6_var='otpSecret';$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) ?> + + <label for="<?php echo REQUEST_ID ?>_totp" class="label"><?php echo lang('user_totp') ?> + </label> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities($otpSecret))); ?></span> + <div class="qrcode" data-qrcode="<?php echo $totpSecretUrl ?>" title="<?php echo $totpSecretUrl ?>"></div> - <!-- 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='otpsecret';$a6_key='user_hotp'; ?><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"> + <label for="<?php echo REQUEST_ID ?>_otpsecret" class="label"><?php echo lang('user_hotp') ?> + </label> + </div> + <div class="input"> <?php { $tmpname = 'hotp';$default = '';$readonly = ''; if ( isset($$tmpname) ) $checked = $$tmpname; @@ -373,10 +207,13 @@ if (count($$a6_list)==1) echo '<input type="hidden" name="'.$a6_name.'" value="' ?><input type="hidden" name="<?php echo $tmpname ?>" value="1" /><?php } } ?> - <!-- Compiling label/label-begin --><?php $a6_for='hotp';$a6_key='user_hotp'; ?><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> + + <label for="<?php echo REQUEST_ID ?>_hotp" class="label"><?php echo lang('user_hotp') ?> + </label> <div class="qrcode" data-qrcode="<?php echo $hotpSecretUrl ?>" title="<?php echo $hotpSecretUrl ?>"></div> - <!-- Compiling part/part-end --></div><!-- Compiling part/part-end --></div> + + </div> + </div> </div></fieldset> <div class="bottom"> @@ -388,3 +225,5 @@ if (count($$a6_list)==1) echo '<input type="hidden" name="'.$a6_name.'" value="' </div> </form> + + + \ No newline at end of file diff --git a/themes/default/templates/user/info.tpl.out.php b/themes/default/templates/user/info.tpl.out.php @@ -1,103 +1,46 @@ -<!-- 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) ?> - <?php $if2=!(empty('image')); if($if2){?><!-- 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='line'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?> + + + + + <?php $if2=!(empty($image)); if($if2){?> + <div class="line"> + <div class="line"> <img class="" title="" src="<?php echo $image ?>" /> - <!-- Compiling part/part-end --></div><!-- Compiling part/part-end --></div> - <?php } ?><!-- Compiling part/part-begin --><?php $a2_class='line'; ?><div class="<?php echo $a2_class ?>"><?php unset($a2_class) ?><!-- Compiling text/text-begin --><?php $a3_class='name';$a3_var='name';$a3_escape=true;$a3_cut='both'; ?><?php - $a3_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a3_class ?>" title="<?php echo $a3_title ?>"><?php - $langF = $a3_escape?'langHtml':'lang'; - $tmp_text = isset($$a3_var)?$$a3_var:$langF('UNKNOWN'); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a3_class,$a3_var,$a3_escape,$a3_cut) ?><!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a2_class='line'; ?><div class="<?php echo $a2_class ?>"><?php unset($a2_class) ?><!-- Compiling text/text-begin --><?php $a3_class='text';$a3_var='fullname';$a3_escape=true;$a3_cut='both'; ?><?php - $a3_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a3_class ?>" title="<?php echo $a3_title ?>"><?php - $langF = $a3_escape?'langHtml':'lang'; - $tmp_text = isset($$a3_var)?$$a3_var:$langF('UNKNOWN'); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a3_class,$a3_var,$a3_escape,$a3_cut) ?><!-- Compiling part/part-end --></div> - <?php $if2=(@$conf['security']['user']['show_admin_mail']); if($if2){?><!-- Compiling part/part-begin --><?php $a3_class='line'; ?><div class="<?php echo $a3_class ?>"><?php unset($a3_class) ?><!-- Compiling link/link-begin --><?php $a4_title='';$a4_type='';$a4_class='';$a4_action=$mail;$a4_frame='_self';$a4_modal=false; ?><?php - $params = array(); - $a4_url=''; - $tmp_url = ''; - $a4_target = $view; - $tmp_href = 'javascript:void(0);'; - switch( $a4_type ) - { - case 'post': - $json = new JSON(); - $tmp_data = $json->encode( array('action'=>!empty($a4_action)?$a4_action:$this->actionName,'subaction'=>!empty($a4_subaction)?$a4_subaction:$this->subActionName,'id'=>!empty($a4_id)?$a4_id:$this->getRequestId()) - +array(REQ_PARAM_TOKEN=>token()) - +$params ); - $tmp_data = str_replace("\n",'',str_replace('"','&quot;',$tmp_data)); - break; - case 'html'; - $tmp_href = $a4_url; - default: - $tmp_data = ''; - } -?><a data-url="<?php echo $a4_url ?>" target="<?php echo $a4_frame ?>"<?php if (isset($a4_name)) { ?> data-name="<?php echo $a4_name ?>" name="<?php echo $a4_name ?>"<?php }else{ ?> href="<?php echo $tmp_href ?>" <?php } ?> class="<?php echo $a4_class ?>" data-id="<?php echo @$a4_id ?>" data-type="<?php echo $a4_type ?>" data-action="<?php echo @$a4_action ?>" data-method="<?php echo @$a4_subaction ?>" data-data="<?php echo $tmp_data ?>" <?php if (isset($a4_accesskey)) echo ' accesskey="'.$a4_accesskey.'"' ?> title="<?php echo encodeHtml($a4_title) ?>"><?php unset($a4_title,$a4_type,$a4_class,$a4_action,$a4_frame,$a4_modal) ?><!-- Compiling text/text-begin --><?php $a5_class='text';$a5_var='mail';$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 = isset($$a5_var)?$$a5_var:$langF('UNKNOWN'); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a5_class,$a5_var,$a5_escape,$a5_cut) ?><!-- Compiling link/link-end --></a><!-- Compiling part/part-end --></div> - <?php } ?><!-- Compiling part/part-begin --><?php $a2_class='line'; ?><div class="<?php echo $a2_class ?>"><?php unset($a2_class) ?><!-- Compiling text/text-begin --><?php $a3_class='text';$a3_var='desc';$a3_escape=true;$a3_cut='both'; ?><?php - $a3_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a3_class ?>" title="<?php echo $a3_title ?>"><?php - $langF = $a3_escape?'langHtml':'lang'; - $tmp_text = isset($$a3_var)?$$a3_var:$langF('UNKNOWN'); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a3_class,$a3_var,$a3_escape,$a3_cut) ?><!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a2_class='line'; ?><div class="<?php echo $a2_class ?>"><?php unset($a2_class) ?><!-- Compiling text/text-begin --><?php $a3_class='text';$a3_text='user_tel';$a3_escape=true;$a3_cut='both'; ?><?php - $a3_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a3_class ?>" title="<?php echo $a3_title ?>"><?php - $langF = $a3_escape?'langHtml':'lang'; - $tmp_text = $langF($a3_text); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a3_class,$a3_text,$a3_escape,$a3_cut) ?><!-- Compiling text/text-begin --><?php $a3_class='text';$a3_var='tel';$a3_escape=true;$a3_cut='both'; ?><?php - $a3_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a3_class ?>" title="<?php echo $a3_title ?>"><?php - $langF = $a3_escape?'langHtml':'lang'; - $tmp_text = isset($$a3_var)?$$a3_var:$langF('UNKNOWN'); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a3_class,$a3_var,$a3_escape,$a3_cut) ?><!-- Compiling part/part-end --></div> - <?php $if2=('is_admin'); if($if2){?><!-- Compiling part/part-begin --><?php $a3_class='line'; ?><div class="<?php echo $a3_class ?>"><?php unset($a3_class) ?><!-- Compiling text/text-begin --><?php $a4_class='text';$a4_key='user_admin';$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 --></div> - <?php } ?>- \ No newline at end of file + + </div> + </div> + <?php } ?> + <div class="line"> + <span class="name"><?php echo nl2br(encodeHtml(htmlentities($name))); ?></span> + + </div> + <div class="line"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities($fullname))); ?></span> + + </div> + <?php $if2=(@$conf['security']['user']['show_admin_mail']); if($if2){?> + <div class="line"> + <a target="_self" data-action="<?php echo $mail ?>" data-method="<?php echo OR_METHOD ?>" data-id="<?php echo OR_ID ?>" href="javascript:void(0);"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities($mail))); ?></span> + + </a> + + </div> + <?php } ?> + <div class="line"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities($desc))); ?></span> + + </div> + <div class="line"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('user_tel')))); ?></span> + + <span class="text"><?php echo nl2br(encodeHtml(htmlentities($tel))); ?></span> + + </div> + <?php $if2=($is_admin); if($if2){?> + <div class="line"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'user_admin'.'')))); ?></span> + + </div> + <?php } ?> + + \ No newline at end of file diff --git a/themes/default/templates/user/memberships.tpl.out.php b/themes/default/templates/user/memberships.tpl.out.php @@ -1,75 +1,15 @@ -<!-- 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="true" - 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 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) ?> - <td colspan="2"><!-- Compiling text/text-begin --><?php $a6_class='text';$a6_key='group';$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) ?> + + + <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="true" 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 ?>" /> + <table width="100%"> + <tr class="headline"> + <td colspan="2"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'group'.'')))); ?></span> + + </td> + </tr> + <?php foreach($memberships as $list_key=>$list_value){ ?><?php extract($list_value) ?> + <tr class="data"> <td width="10%"> <?php { $tmpname = $var;$default = '';$readonly = ''; if ( isset($$tmpname) ) @@ -86,34 +26,25 @@ } ?> </td> - <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) ?> + <td> + <label for="<?php echo REQUEST_ID ?>_<?php echo $var ?>" class="label"> <img class="" title="" src="./themes/default/images/icon/icon_group.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 row/row-begin --><?php - $column_idx = 0; -?> -<tr -> - + + <span class="text"><?php echo nl2br(encodeHtml(htmlentities($name))); ?></span> + + </label> + </td> + </tr> + <?php } ?> + <tr> <td class="act" colspan="2"> <div class="invisible"><input type="submit" name="ok" class="%class%" title="Bestätigen" value="&nbsp;&nbsp;&nbsp;&nbsp;OK&nbsp;&nbsp;&nbsp;&nbsp;" /> </div> - </td><!-- Compiling row/row-end --></tr><!-- Compiling table/table-end --><?php - $column_idx = $last_column_idx; -?> -</table> + </td> + </tr> + </table> <div class="bottom"> <div class="command "> @@ -124,3 +55,5 @@ </div> </form> + + + \ No newline at end of file diff --git a/themes/default/templates/user/pw.tpl.out.php b/themes/default/templates/user/pw.tpl.out.php @@ -0,0 +1,127 @@ + + + <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"> + </div> + <div class="input"> + <input class="radio" type="radio" id="<?php echo REQUEST_ID ?>_type_proposal" name="type" value="proposal"<?php if('proposal'==@$type)echo ' checked="checked"' ?> /> + + <label for="<?php echo REQUEST_ID ?>_type_proposal" class="label"><?php echo $password_proposal ?> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'USER_new_password'.'')))); ?></span> + + <span class="text"><?php echo nl2br('text:: '); ?></span> + + <span class="text"><?php echo nl2br(encodeHtml(htmlentities($password_proposal))); ?></span> + + </label> + <div class="inputholder"><input<?php if ('') echo ' disabled="true"' ?> id="<?php echo REQUEST_ID ?>_password_proposal" name="password_proposal<?php if ('') echo '_disabled' ?>" type="hidden" maxlength="256" class="text" value="<?php echo Text::encodeHtml(@$password_proposal) ?>" /><?php if ('') { ?><input type="hidden" name="password_proposal" value="<?php $password_proposal ?>"/><?php } ?></div> + + </div> + </div> + <?php $if3=(@$conf['mail']['enabled']); if($if3){?> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <input class="radio" type="radio" id="<?php echo REQUEST_ID ?>_type_random" name="type" value="random"<?php if('random'==@$type)echo ' checked="checked"' ?> /> + + <label for="<?php echo REQUEST_ID ?>_type_random" class="label"><?php echo lang('user_random_password') ?> + </label> + </div> + </div> + <?php } ?> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <input class="radio" type="radio" id="<?php echo REQUEST_ID ?>_type_input" name="type" value="input"<?php if('input'==@$type||true)echo ' checked="checked"' ?> /> + + <label for="<?php echo REQUEST_ID ?>_type_input" class="label"><?php echo lang('USER_NEW_PASSWORD_INPUT') ?> + </label> + </div> + </div> + <div class="line"> + <div class="label"> + <label for="<?php echo REQUEST_ID ?>_password1" class="label"><?php echo lang('USER_new_password') ?> + </label> + </div> + <div class="input"> + <div class="inputholder"><input type="password" name="password1" id="<?php echo REQUEST_ID ?>_password1" size="40" maxlength="256" class="" value="<?php echo @$password1?>" /></div> + + </div> + </div> + <div class="line"> + <div class="label"> + <label for="<?php echo REQUEST_ID ?>_password2" class="label"><?php echo lang('USER_new_password_repeat') ?> + </label> + </div> + <div class="input"> + <div class="inputholder"><input type="password" name="password2" id="<?php echo REQUEST_ID ?>_password2" size="40" maxlength="256" class="" value="<?php echo @$password2?>" /></div> + + </div> + </div> + <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> + </div></fieldset> + <?php $if3=(@$conf['mail']['enabled']); if($if3){?> + <?php $if4=(!empty($mail)); if($if4){?> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <?php { $tmpname = 'email';$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 + } + } ?> + + <label for="<?php echo REQUEST_ID ?>_email" class="label"><?php echo lang('user_mail_new_password') ?> + </label> + </div> + </div> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <?php { $tmpname = 'timeout';$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 + } + } ?> + + <label for="<?php echo REQUEST_ID ?>_timeout" class="label"><?php echo lang('user_password_timeout') ?> + </label> + </div> + </div> + <?php } ?> + <?php } ?> + + + +<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> + + + \ No newline at end of file diff --git a/themes/default/templates/userlist/show.tpl.out.php b/themes/default/templates/userlist/show.tpl.out.php @@ -0,0 +1,61 @@ +<!-- Compiling output/output-begin --> + + + <table width="100%"> + <tr class="headline"> + <td> + <img class="" title="" src="./themes/default/images/icon_user.png" /> + + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'name'.'')))); ?></span> + + </td> + <td> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(''))); ?></span> + + </td> + <td> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'LOGIN'.'')))); ?></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 ?>','user','<?php echo $id ?>');"> + <img class="" title="" src="./themes/default/images/icon_user.png" /> + + <span class="text"><?php echo nl2br(encodeHtml(htmlentities($name))); ?></span> + + </td> + <td onclick="javascript:openNewAction('<?php echo $name ?>','user','<?php echo $id ?>');"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities($fullname))); ?></span> + + <?php $if6=($isAdmin); if($if6){?> + <span class="text"><?php echo nl2br('&nbsp;('); ?></span> + + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'USER_ADMIN'.'')))); ?></span> + + <span class="text"><?php echo nl2br(')'); ?></span> + + <?php } ?> + </td> + <td class="clickable"> + <a target="_self" data-type="post" data-action="user" data-method="switch" data-id="<?php echo $userid ?>" data-data="{&quot;action&quot;:&quot;user&quot;,&quot;subaction&quot;:&quot;switch&quot;,&quot;id&quot;:&quot;<?php echo $userid ?>&quot;,&quot;token&quot;:&quot;<?php echo token() ?>&quot;,&quot;none&quot;:&quot;0&quot;}"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'LOGIN'.'')))); ?></span> + + </a> + + </td> + </tr> + <?php } ?> + <tr class="data"> + <td class="clickable" colspan="3"> + <a target="_self" date-name="<?php echo lang('add') ?>" name="<?php echo lang('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/util/Http.class.php b/util/Http.class.php @@ -424,9 +424,12 @@ class Http */ public static function serverError($message,$reason='') { - $db = Session::getDatabase(); - if ( is_object( $db ) ) - $db->rollback(); + if ( class_exists('Session')) + { + $db = Session::getDatabase(); + if ( is_object( $db ) ) + $db->rollback(); + } if ( class_exists('Logger')) Logger::warn($message."\n".$reason); diff --git a/util/TemplateEngine.class.php b/util/TemplateEngine.class.php @@ -1,184 +0,0 @@ -<?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 -{ - /** - * Name Template. - * - * @var String - */ - private $tplName; - - /** - * Erzeugt einen Templateparser. - * - * @param String $tplName Name des Templates, das umgewandelt werden soll. - */ - public function TemplateEngine( $tplName='' ) - { - $this->tplName = $tplName; - } - - /** - * Wandelt eine Vorlage um - * - * @param - * filename Dateiname der Datei, die erstellt werden soll. - */ - public function compile($tplName = '') - { - require_once (OR_THEMES_DIR . "default/include/html/Component.class." . PHP_EXT); - - try - { - if (empty($tplName)) - $tplName = $this->tplName; - - global $conf; - $confCompiler = $conf['theme']['compiler']; - - $srcXmlFilename = 'themes/default/templates/' . $tplName . '.tpl.src.xml'; - - if (is_file($srcXmlFilename)) - $srcFilename = $srcXmlFilename; - else - // Wenn Vorlage (noch) nicht existiert - throw new LogicException("Template not found: $tplName"); - - $filename = 'themes/default/templates/' . $tplName . '.tpl.out.'. PHP_EXT; - - // 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 $tplName: 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 = OR_THEMES_DIR . $conf['interface']['theme'] . "/include/html/$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 $tplName 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/util/include.inc.php b/util/include.inc.php @@ -7,7 +7,6 @@ require_once( OR_SERVICECLASSES_DIR."Html.class.".PHP_EXT ); require_once( OR_SERVICECLASSES_DIR."Text.class.".PHP_EXT ); require_once( OR_SERVICECLASSES_DIR."Mail.class.".PHP_EXT ); require_once( OR_SERVICECLASSES_DIR."Ldap.class.".PHP_EXT ); -require_once( OR_SERVICECLASSES_DIR."TemplateEngine.class.".PHP_EXT ); require_once( OR_SERVICECLASSES_DIR."Preferences.class.".PHP_EXT ); require_once( OR_SERVICECLASSES_DIR."FileUtils.class.".PHP_EXT ); require_once( OR_SERVICECLASSES_DIR."JSON.class.".PHP_EXT ); diff --git a/version.ini b/version.ini @@ -1,5 +1,5 @@ -rev="3269" -node="104191c8dea87518b8d0a427b4b54378364bf57f" -date="Tue Nov 21 21:56:47 2017 +0100" -description="Bei einer früheren UTF-8-Konvertierung muss irgendetwas gehörig schief gegangen sein. Daher diese Dateien nochmal korrekt nach UTF-8 konvertiert." +rev="3318" +node="2f11a744c8a9e805a9ecd087e5c634f03af4198e" +date="Sun Dec 03 02:19:12 2017 +0100" +description="Die Attribute brauchen wir hier nicht mehr, denn die stehen jetzt in den Komponenten-Klassen" author="Jan Dankert"