openrat-cms

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

commit ca8eebabf90fc9fd94b02229eecd96e1301281b8
parent 3de6b5692b1230a2a73d3b7cfaf51ec75ddb11cd
Author: Jan Dankert <devnull@localhost>
Date:   Fri, 15 Dec 2017 22:19:17 +0100

Urls lassen sich anlegen und löschen.

Diffstat:
action/FolderAction.class.php | 145+++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------------
themes/default/templates/folder/create.tpl.out.php | 332+++++++++++++++++++++++++------------------------------------------------------
themes/default/templates/folder/create.tpl.src.xml | 19+++++++++++++++++--
themes/default/templates/folder/createfile.tpl.out.php | 190++++++++++++++++++++++++++++++-------------------------------------------------
themes/default/templates/folder/createfile.tpl.src.xml | 2+-
themes/default/templates/folder/createfolder.tpl.out.php | 38++++++++++++++++++++++++++++++++++++++
themes/default/templates/folder/createfolder.tpl.src.xml | 2+-
themes/default/templates/folder/createlink.tpl.out.php | 42++++++++++++++++++++++++++++++++++++++++++
themes/default/templates/folder/createpage.tpl.out.php | 48++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/templates/folder/createpage.tpl.src.xml | 4++--
themes/default/templates/folder/createurl.tpl.out.php | 52++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/templates/folder/createurl.tpl.src.xml | 41+++++++++++++++++++++++++++++++++++++++++
themes/default/templates/folder/edit.tpl.out.php | 17+++++------------
themes/default/templates/folder/info.tpl.out.php | 78++++++++++++++++++++++++++++++++++++------------------------------------------
themes/default/templates/folder/order.tpl.out.php | 58++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/templates/folder/order.tpl.src.xml | 2+-
themes/default/templates/folder/preview.tpl.out.php | 199++++++++++++++++++++-----------------------------------------------------------
themes/default/templates/folder/prop.tpl.out.php | 6+++---
themes/default/templates/folder/pub.tpl.out.php | 61++++++++++++++++++++++++-------------------------------------
themes/default/templates/folder/structure.tpl.out.php | 2+-
themes/default/templates/url/edit.tpl.out.php | 2+-
themes/default/templates/url/prop.tpl.out.php | 2+-
22 files changed, 693 insertions(+), 649 deletions(-)

diff --git a/action/FolderAction.class.php b/action/FolderAction.class.php @@ -10,6 +10,7 @@ use cms\model\Object; use cms\model\File; use cms\model\Link; +use cms\model\Url; use Http; use Publish; use Session; @@ -48,7 +49,7 @@ class FolderAction extends ObjectAction private $folder; - function __construct() + public function __construct() { $this->folder = new Folder( $this->getRequestId() ); $this->folder->load(); @@ -60,7 +61,7 @@ class FolderAction extends ObjectAction * Neues Objekt anlegen.<br> * Dies kann ein(e) Verzeichnis, Seite, Verkn�pfung oder Datei sein.<br> */ - function createPost() + public function createPost() { global $conf; $type = $this->getRequestVar('type' ); @@ -152,9 +153,6 @@ class FolderAction extends ObjectAction $link->name = $name; $link->parentid = $this->folder->objectid; - $link->isLinkToObject = false; - $link->url = $name; - $link->add(); $this->folder->setTimestamp(); @@ -168,6 +166,30 @@ class FolderAction extends ObjectAction break; + case 'url': + + $urlValue = $this->getRequestVar('url'); + if ( !empty($urlValue) ) + { + $url = new Url(); + $url->name = $urlValue; + $url->parentid = $this->folder->objectid; + + $url->url = $urlValue; + + $url->add(); + $this->folder->setTimestamp(); + + $this->addNotice('url',$url->name,'ADDED','ok'); + } + else + { + $this->addValidationError('url'); + $this->callSubAction('create'); + } + + break; + default: $this->addValidationError('type'); $this->callSubAction('create'); @@ -178,7 +200,7 @@ class FolderAction extends ObjectAction - function createfolderPost() + public function createfolderPost() { $type = $this->getRequestVar('type' ); $name = $this->getRequestVar('name' ); @@ -208,7 +230,7 @@ class FolderAction extends ObjectAction - function createfilePost() + public function createfilePost() { $type = $this->getRequestVar('type' ); $name = $this->getRequestVar('name' ); @@ -283,52 +305,71 @@ class FolderAction extends ObjectAction - function createlinkPost() + public function createlinkPost() { - $type = $this->getRequestVar('type' ); $name = $this->getRequestVar('name' ); $filename = $this->getRequestVar('filename' ); + $description = $this->getRequestVar('description'); + + if ( !empty($name) ) + { + $link = new Link(); + $link->filename = $filename; + $link->name = $name; + $link->desc = $description; + $link->parentid = $this->folder->objectid; + + $link->linkedObjectId = $this->getRequestVar('targetobjectid'); + + $link->add(); + + $this->addNotice('link',$link->name,'ADDED','ok'); + $this->setTemplateVar('objectid',$link->objectid); + } + else + { + $this->addValidationError('name'); + $this->callSubAction('createlink'); + return; + } + + $this->folder->setTimestamp(); + } + + public function createurlPost() + { + $name = $this->getRequestVar('name' ); $description = $this->getRequestVar('description'); - + $filename = $this->getRequestVar('filename' ); + if ( !empty($name) ) { - $link = new Link(); - $link->name = $name; - $link->desc = $description; - $link->parentid = $this->folder->objectid; + $url = new Url(); + $url->filename = $filename; + $url->name = $name; + $url->desc = $description; + $url->parentid = $this->folder->objectid; - if ( $this->hasRequestVar('targetobjectid') ) - { - $link->isLinkToObject = true; - $link->isLinkToUrl = false; - $link->linkedObjectId = $this->getRequestVar('targetobjectid'); - } - else - { - $link->isLinkToObject = false; - $link->isLinkToUrl = true; - $link->url = $this->getRequestVar('name'); - } - + $url->url = $this->getRequestVar('url'); - $link->add(); + $url->add(); - $this->addNotice('link',$link->name,'ADDED','ok'); - $this->setTemplateVar('objectid',$link->objectid); + $this->addNotice('url',$url->name,'ADDED','ok'); + $this->setTemplateVar('objectid',$url->objectid); } else { $this->addValidationError('name'); - $this->callSubAction('createlink'); + $this->callSubAction('createurl'); return; } - + $this->folder->setTimestamp(); - } + } - function createpagePost() + public function createpagePost() { $type = $this->getRequestVar('type' ); $name = $this->getRequestVar('name' ); @@ -365,7 +406,7 @@ class FolderAction extends ObjectAction * Abspeichern der Ordner-Eigenschaften. Ist der Schalter "delete" gesetzt, wird * der Ordner stattdessen gel?scht. */ - function propPost() + public function propPost() { // Ordnereigenschaften speichern if ( $this->getRequestVar('name') != '' ) @@ -390,7 +431,7 @@ class FolderAction extends ObjectAction /** * Reihenfolge von Objekten aendern. */ - function orderPost() + public function orderPost() { $ids = $this->folder->getObjectIds(); $seq = 0; @@ -417,7 +458,7 @@ class FolderAction extends ObjectAction // Reihenfolge von Objekten aendern - function changesequencePost() + public function changesequencePost() { $ids = $this->folder->getObjectIds(); $seq = 0; @@ -775,8 +816,13 @@ class FolderAction extends ObjectAction $l->delete(); break; + case 'url': + $u = new Url( $id ); + $u->delete(); + break; + default: - Http::serverError('Internal Error while deleting: What type to delete?'); + throw new \LogicException("Error while deleting: Unknown type: {$o->getType()}"); } $this->addNotice($o->getType(),$o->name,'DELETED',OR_NOTICE_OK); } @@ -846,7 +892,7 @@ class FolderAction extends ObjectAction } - function settopPost() + public function settopPost() { $o = new Object( $this->getRequestVar('objectid1') ); $o->setOrderId( 1 ); @@ -875,7 +921,7 @@ class FolderAction extends ObjectAction } - function setbottomPost() + public function setbottomPost() { $ids = $this->folder->getObjectIds(); $seq = 0; @@ -924,7 +970,7 @@ class FolderAction extends ObjectAction } - function createView() + public function createView() { // Maximale Dateigroesse. $maxSizeBytes = $this->maxFileSize(); @@ -942,7 +988,7 @@ class FolderAction extends ObjectAction - function createfolderView() + public function createfolderView() { $this->setTemplateVar('objectid' ,$this->folder->objectid ); } @@ -986,7 +1032,7 @@ class FolderAction extends ObjectAction * Hochladen einer Datei. * */ - function createfileView() + public function createfileView() { // Maximale Dateigroesse. $maxSizeBytes = $this->maxFileSize(); @@ -1027,13 +1073,18 @@ class FolderAction extends ObjectAction - function createlinkView() + public function createlinkView() { $this->setTemplateVar('objectid' ,$this->folder->objectid ); } - function createpageView() + public function createurlView() + { + } + + + public function createpageView() { $all_templates = Template::getAll(); $this->setTemplateVar('templates' ,$all_templates ); @@ -1287,7 +1338,7 @@ class FolderAction extends ObjectAction /** * Reihenfolge bearbeiten. */ - function orderView() + public function orderView() { global $conf_php; @@ -1484,7 +1535,7 @@ class FolderAction extends ObjectAction - function checkMenu( $name ) + public function checkMenu( $name ) { switch( $name) { diff --git a/themes/default/templates/folder/create.tpl.out.php b/themes/default/templates/folder/create.tpl.out.php @@ -1,236 +1,107 @@ -<!-- Compiling output/output-begin --><!-- Compiling header/header-begin --><?php $a2_name='';$a2_views='createfolder,createlink,createpage,createfile';$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_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="multipart/form-data" - 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('folder') ?></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 radio/radio-begin --><?php $a6_readonly=false;$a6_name='type';$a6_value='folder';$a6_default=false;$a6_prefix='';$a6_suffix='';$a6_class='';$a6_onchange='';$a6_children='folder_name'; ?><?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,$a6_children) ?><!-- Compiling label/label-begin --><?php $a6_for='type_folder'; ?><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_text='global_folder';$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 --></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='name';$a6_default='';$a6_type='text';$a6_name='folder_name';$a6_size='30';$a6_maxlength='250';$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> + + <div class="headermenu"><div class="toolbar-icon clickable"><a href="javascript:void(0);" data-type="dialog" data-name="<?php echo lang('MENU_CREATEFOLDER') ?>" data-method="createfolder"><img src="./themes/default/images/icon/action/createfolder.svg" title="<?php echo lang('MENU_createfolder_DESC') ?>" /><?php echo lang('MENU_createfolder') ?></a></div><div class="toolbar-icon clickable"><a href="javascript:void(0);" data-type="dialog" data-name="<?php echo lang('MENU_CREATELINK') ?>" data-method="createlink"><img src="./themes/default/images/icon/action/createlink.svg" title="<?php echo lang('MENU_createlink_DESC') ?>" /><?php echo lang('MENU_createlink') ?></a></div><div class="toolbar-icon clickable"><a href="javascript:void(0);" data-type="dialog" data-name="<?php echo lang('MENU_CREATEPAGE') ?>" data-method="createpage"><img src="./themes/default/images/icon/action/createpage.svg" title="<?php echo lang('MENU_createpage_DESC') ?>" /><?php echo lang('MENU_createpage') ?></a></div><div class="toolbar-icon clickable"><a href="javascript:void(0);" data-type="dialog" data-name="<?php echo lang('MENU_CREATEFILE') ?>" data-method="createfile"><img src="./themes/default/images/icon/action/createfile.svg" title="<?php echo lang('MENU_createfile_DESC') ?>" /><?php echo lang('MENU_createfile') ?></a></div><div class="toolbar-icon clickable"><a href="javascript:void(0);" data-type="dialog" data-name="<?php echo lang('MENU_CREATEURL') ?>" data-method="createurl"><img src="./themes/default/images/icon/action/createurl.svg" title="<?php echo lang('MENU_createurl_DESC') ?>" /><?php echo lang('MENU_createurl') ?></a></div></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="POST" enctype="multipart/form-data" 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('folder') ?></legend><div> + <div class="line"> + <div class="label"> + <input class="radio" type="radio" id="<?php echo REQUEST_ID ?>_type_folder" name="type" value="folder"<?php if('folder'==@$type)echo ' checked="checked"' ?> /> + + <label for="<?php echo REQUEST_ID ?>_type_folder" class="label"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('global_folder')))); ?></span> + + </label> + </div> + <div class="input"> + <div class="inputholder"><input<?php if ('') echo ' disabled="true"' ?> id="<?php echo REQUEST_ID ?>_folder_name" name="folder_name<?php if ('') echo '_disabled' ?>" type="text" maxlength="250" class="name" value="<?php echo Text::encodeHtml('') ?>" /><?php if ('') { ?><input type="hidden" name="folder_name" value="<?php '' ?>"/><?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('file') ?></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 radio/radio-begin --><?php $a6_readonly=false;$a6_name='type';$a6_value='file';$a6_default=false;$a6_prefix='';$a6_suffix='';$a6_class='';$a6_onchange='';$a6_children='file'; ?><?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,$a6_children) ?><!-- Compiling label/label-begin --><?php $a6_for='type_file'; ?><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_text='global_FILE';$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 --></label><!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?> - <input size="30" id="req1511991655129390138_file" type="file" maxlength="<?php echo $maxlength ?>" name="file" class="" /> - <!-- Compiling newline/newline-begin --><br/><!-- Compiling text/text-begin --><?php $a6_class='help';$a6_key='file_max_size';$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 text/text-begin --><?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) ?><!-- Compiling text/text-begin --><?php $a6_class='text';$a6_var='max_size';$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) ?><!-- 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('file') ?></legend><div> + <div class="line"> + <div class="label"> + <input class="radio" type="radio" id="<?php echo REQUEST_ID ?>_type_file" name="type" value="file"<?php if('file'==@$type)echo ' checked="checked"' ?> /> + + <label for="<?php echo REQUEST_ID ?>_type_file" class="label"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('global_FILE')))); ?></span> + + </label> + </div> + <div class="input"> + <input size="30" id="req1513372560383649395_file" type="file" maxlength="<?php echo $maxlength ?>" name="file" class="upload" /> + + <br/> + + <span class="help"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'file_max_size'.'')))); ?></span> + + <span class="text"><?php echo nl2br('&nbsp;'); ?></span> + + <span class="text"><?php echo nl2br(encodeHtml(htmlentities($max_size))); ?></span> + + </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('page') ?></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 radio/radio-begin --><?php $a6_readonly=false;$a6_name='type';$a6_value='page';$a6_default=false;$a6_prefix='';$a6_suffix='';$a6_class='';$a6_onchange='';$a6_children='page_templateid,page_name'; ?><?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,$a6_children) ?><!-- Compiling label/label-begin --><?php $a6_for='type_page'; ?><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_text='global_TEMPLATE';$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 --></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='templates';$a6_name='page_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) ?><!-- 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='type_page'; ?><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_text='global_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 = $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 --></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='name';$a6_default='';$a6_type='text';$a6_name='page_name';$a6_size='30';$a6_maxlength='250';$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> + <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') ?></legend><div> + <div class="line"> + <div class="label"> + <input class="radio" type="radio" id="<?php echo REQUEST_ID ?>_type_page" name="type" value="page"<?php if('page'==@$type)echo ' checked="checked"' ?> /> + + <label for="<?php echo REQUEST_ID ?>_type_page" class="label"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('global_TEMPLATE')))); ?></span> + + </label> + </div> + <div class="input"> + <div class="inputholder"><select id="<?php echo REQUEST_ID ?>_page_templateid" name="page_templateid" title="" class=""<?php if (count($templates)<=1) echo ' disabled="disabled"'; ?> size=1"><?php include_once( 'modules/template-engine/components/html/selectbox/component-select-box.php') ?><?php component_select_option_list($templates,'',0,0) ?><?php if (count($templates)==0) { ?><input type="hidden" name="page_templateid" value="" /><?php } ?><?php if (count($templates)==1) { ?><input type="hidden" name="page_templateid" value="<?php echo array_keys($templates)[0] ?>" /><?php } ?> + </select></div> + </div> + </div> + <div class="line"> + <div class="label"> + <label for="<?php echo REQUEST_ID ?>_type_page" class="label"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('global_NAME')))); ?></span> + + </label> + </div> + <div class="input"> + <div class="inputholder"><input<?php if ('') echo ' disabled="true"' ?> id="<?php echo REQUEST_ID ?>_page_name" name="page_name<?php if ('') echo '_disabled' ?>" type="text" maxlength="250" class="name" value="<?php echo Text::encodeHtml(@$page_name) ?>" /><?php if ('') { ?><input type="hidden" name="page_name" value="<?php $page_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('link') ?></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 radio/radio-begin --><?php $a6_readonly=false;$a6_name='type';$a6_value='link';$a6_default=false;$a6_prefix='';$a6_suffix='';$a6_class='';$a6_onchange='';$a6_children='link_name'; ?><?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,$a6_children) ?><!-- Compiling label/label-begin --><?php $a6_for='type_link'; ?><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_text='global_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 = $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 --></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='name';$a6_default='';$a6_type='text';$a6_name='link_name';$a6_size='30';$a6_maxlength='250';$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> + <fieldset class="<?php echo '1'?" open":"" ?><?php echo '1'?" show":"" ?>"><legend><div class="arrow-right closed" /><div class="arrow-down open" /><?php echo lang('link') ?></legend><div> + <div class="line"> + <div class="label"> + <input class="radio" type="radio" id="<?php echo REQUEST_ID ?>_type_link" name="type" value="link"<?php if('link'==@$type)echo ' checked="checked"' ?> /> + + <label for="<?php echo REQUEST_ID ?>_type_link" class="label"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('global_NAME')))); ?></span> + + </label> + </div> + <div class="input"> + <div class="inputholder"><input<?php if ('') echo ' disabled="true"' ?> id="<?php echo REQUEST_ID ?>_link_name" name="link_name<?php if ('') echo '_disabled' ?>" type="text" maxlength="250" class="name" value="<?php echo Text::encodeHtml(@$link_name) ?>" /><?php if ('') { ?><input type="hidden" name="link_name" value="<?php $link_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('url') ?></legend><div> + <div class="line"> + <div class="label"> + <input class="radio" type="radio" id="<?php echo REQUEST_ID ?>_type_url" name="type" value="url"<?php if('url'==@$type)echo ' checked="checked"' ?> /> + + <label for="<?php echo REQUEST_ID ?>_type_link" class="label"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('url')))); ?></span> + + </label> + </div> + <div class="input"> + <div class="inputholder"><input<?php if ('') echo ' disabled="true"' ?> id="<?php echo REQUEST_ID ?>_url" name="url<?php if ('') echo '_disabled' ?>" type="text" maxlength="250" class="name" value="<?php echo Text::encodeHtml(@$url) ?>" /><?php if ('') { ?><input type="hidden" name="url" value="<?php $url ?>"/><?php } ?></div> + + </div> + </div> </div></fieldset> <div class="bottom"> @@ -242,3 +113,5 @@ if ($a6_readonly) { </div> </form> + + + \ No newline at end of file diff --git a/themes/default/templates/folder/create.tpl.src.xml b/themes/default/templates/folder/create.tpl.src.xml @@ -1,6 +1,6 @@ <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"> - <header back="true" views="createfolder,createlink,createpage,createfile"></header> + <header back="true" views="createfolder,createlink,createpage,createfile,createurl"></header> <form enctype="multipart/form-data"> <group title="message:folder"> @@ -48,7 +48,7 @@ </label> </part> <part class="input"> - <selectbox name="page_templateid" list="templates"></selectbox> + <selectbox name="page_templateid" default="" list="templates"></selectbox> </part> </part> @@ -81,5 +81,20 @@ </part> </group> + <group title="message:url"> + + <part class="line"> + <part class="label"> + <radio name="type" value="url" children="url"></radio> + <label for="type_link"> + <text text="url"></text> + </label> + </part> + <part class="input"> + <input name="url" size="50" maxlength="250" class="name"></input> + </part> + </part> + </group> + </form> </output> \ No newline at end of file diff --git a/themes/default/templates/folder/createfile.tpl.out.php b/themes/default/templates/folder/createfile.tpl.out.php @@ -1,122 +1,73 @@ -<!-- 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="upload" - 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="multipart/form-data" - class="<?php echo OR_ACTION ?>" - data-async="" - data-autosave="" - onSubmit=""><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 hidden/hidden-begin --><?php $a3_name='type';$a3_default='file'; ?><?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,$a3_default) ?><!-- 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_FILE';$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) ?> - <input size="" id="req1511991658588812600_file" type="file" maxlength="<?php echo $maxlength ?>" name="file" class="" multiple="multiple" /> - <!-- Compiling part/part-end --></div><!-- Compiling part/part-end --></div><!-- Compiling part/part-begin --><?php $a3_class='line filedropzone'; ?><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 part/part-end --></div><!-- Compiling part/part-begin --><?php $a4_class='input'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- 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 text/text-begin --><?php $a5_class='help';$a5_key='file_max_size';$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 --></div><!-- Compiling part/part-begin --><?php $a4_class='input'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling text/text-begin --><?php $a5_class='text';$a5_var='max_size';$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 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 text/text-begin --><?php $a5_class='text';$a5_key='HTTP_URL';$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 --></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='text';$a5_default='';$a5_type='text';$a5_name='url';$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); -?><?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('description') ?></legend><div> - </div></fieldset><!-- 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 text/text-begin --><?php $a5_class='text';$a5_text='global_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 --></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='text';$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); -?><?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 text/text-begin --><?php $a5_class='text';$a5_text='global_DESCRIPTION';$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 --></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='5';$a5_cols='50';$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) ?><!-- Compiling part/part-end --></div><!-- Compiling part/part-end --></div> + + + + + <form name="" target="upload" action="<?php echo OR_ACTION ?>" data-method="<?php echo OR_METHOD ?>" data-action="<?php echo OR_ACTION ?>" data-id="<?php echo OR_ID ?>" method="POST" enctype="multipart/form-data" class="<?php echo OR_ACTION ?>" data-async="" data-autosave="" onSubmit=""><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 ?>" /> + <input type="hidden" name="type" value="file"/> + + <div class="line"> + <div class="label"> + <label for="<?php echo REQUEST_ID ?>_name" class="label"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('global_FILE')))); ?></span> + + </label> + </div> + <div class="input"> + <input size="40" id="req15132867911921208237_file" type="file" maxlength="<?php echo $maxlength ?>" name="file" class="upload" multiple="multiple" /> + + </div> + </div> + <div class="line filedropzone"> + <div class="label"> + </div> + <div class="input"> + </div> + </div> + <div class="line"> + <div class="label"> + <span class="help"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'file_max_size'.'')))); ?></span> + + </div> + <div class="input"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities($max_size))); ?></span> + + </div> + </div> + <div class="line"> + <div class="label"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'HTTP_URL'.'')))); ?></span> + + </div> + <div class="input"> + <div class="inputholder"><input<?php if ('') echo ' disabled="true"' ?> id="<?php echo REQUEST_ID ?>_url" name="url<?php if ('') echo '_disabled' ?>" type="text" maxlength="256" class="text" value="<?php echo Text::encodeHtml(@$url) ?>" /><?php if ('') { ?><input type="hidden" name="url" value="<?php $url ?>"/><?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('description') ?></legend><div> + </div></fieldset> + <div class="line"> + <div class="label"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('global_NAME')))); ?></span> + + </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="text" 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"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('global_DESCRIPTION')))); ?></span> + + </div> + <div class="input"> + <div class="inputholder"><textarea class="inputarea" name="description"><?php echo Text::encodeHtml('') ?></textarea></div> + + </div> + </div> <div class="bottom"> - <div class="command true"> + <div class="command 1"> <input type="button" class="submit ok" value="OK" onclick="$(this).closest('div.sheet').find('form').submit(); " /> @@ -126,4 +77,5 @@ if ($a5_readonly) { </form> - - \ No newline at end of file + + + \ No newline at end of file diff --git a/themes/default/templates/folder/createfile.tpl.src.xml b/themes/default/templates/folder/createfile.tpl.src.xml @@ -56,7 +56,7 @@ <text text="global_DESCRIPTION"></text> </part> <part class="input"> - <inputarea rows="5" cols="50" name="description"></inputarea> + <inputarea rows="5" cols="50" name="description" default=""></inputarea> </part> </part> diff --git a/themes/default/templates/folder/createfolder.tpl.out.php b/themes/default/templates/folder/createfolder.tpl.out.php @@ -0,0 +1,37 @@ + + + + + <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="POST" 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"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('global_FOLDER')))); ?></span> + + </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="text" value="<?php echo Text::encodeHtml('') ?>" /><?php if ('') { ?><input type="hidden" name="name" value="<?php '' ?>"/><?php } ?></div> + + </div> + </div> + <div class="line"> + <div class="label"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('global_DESCRIPTION')))); ?></span> + + </div> + <div class="input"> + <div class="inputholder"><textarea class="inputarea" name="description"><?php echo Text::encodeHtml('') ?></textarea></div> + + </div> + </div> + +<div class="bottom"> + <div class="command 1"> + + <input type="button" class="submit ok" value="<?php echo lang('add') ?>" 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/folder/createfolder.tpl.src.xml b/themes/default/templates/folder/createfolder.tpl.src.xml @@ -16,7 +16,7 @@ <text text="global_DESCRIPTION"></text> </part> <part class="input"> - <inputarea rows="5" cols="50" name="description"></inputarea> + <inputarea rows="5" cols="50" name="description" default=""></inputarea> </part> </part> </form> diff --git a/themes/default/templates/folder/createlink.tpl.out.php b/themes/default/templates/folder/createlink.tpl.out.php @@ -0,0 +1,41 @@ + + + <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="POST" 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"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('global_NAME')))); ?></span> + + </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="text" value="<?php echo Text::encodeHtml('') ?>" /><?php if ('') { ?><input type="hidden" name="name" value="<?php '' ?>"/><?php } ?></div> + + </div> + </div> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + </div> + </div> + <div class="line"> + <div class="label"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('global_DESCRIPTION')))); ?></span> + + </div> + <div class="input"> + <div class="inputholder"><textarea class="inputarea" name="description"><?php echo Text::encodeHtml('') ?></textarea></div> + + </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> + + + \ No newline at end of file diff --git a/themes/default/templates/folder/createpage.tpl.out.php b/themes/default/templates/folder/createpage.tpl.out.php @@ -0,0 +1,47 @@ + + + + + <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="POST" 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"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('global_TEMPLATE')))); ?></span> + + </div> + <div class="input"> + <div class="inputholder"><select id="<?php echo REQUEST_ID ?>_templateid" name="templateid" title="" class=""<?php if (count($templates)<=1) echo ' disabled="disabled"'; ?> size=1"><?php include_once( 'modules/template-engine/components/html/selectbox/component-select-box.php') ?><?php component_select_option_list($templates,'',0,0) ?><?php if (count($templates)==0) { ?><input type="hidden" name="templateid" value="" /><?php } ?><?php if (count($templates)==1) { ?><input type="hidden" name="templateid" value="<?php echo array_keys($templates)[0] ?>" /><?php } ?> + </select></div> + </div> + </div> + <div class="line"> + <div class="label"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('global_NAME')))); ?></span> + + </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="focus,name" 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"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('global_DESCRIPTION')))); ?></span> + + </div> + <div class="input"> + <div class="inputholder"><textarea class="inputarea" name="description"><?php echo Text::encodeHtml('') ?></textarea></div> + + </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> + + + \ No newline at end of file diff --git a/themes/default/templates/folder/createpage.tpl.src.xml b/themes/default/templates/folder/createpage.tpl.src.xml @@ -7,7 +7,7 @@ <text text="global_TEMPLATE"></text> </part> <part class="input"> - <selectbox name="templateid" list="templates"></selectbox> + <selectbox name="templateid" default="" list="templates"></selectbox> </part> </part> @@ -28,7 +28,7 @@ </part> <part class="input"> - <inputarea rows="5" name="description"></inputarea> + <inputarea rows="5" name="description" default=""></inputarea> </part> </part> diff --git a/themes/default/templates/folder/createurl.tpl.out.php b/themes/default/templates/folder/createurl.tpl.out.php @@ -0,0 +1,51 @@ + + + <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="POST" 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"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('URL')))); ?></span> + + </div> + <div class="input"> + <div class="inputholder"><input<?php if ('') echo ' disabled="true"' ?> id="<?php echo REQUEST_ID ?>_url" name="url<?php if ('') echo '_disabled' ?>" type="text" maxlength="256" class="text" value="<?php echo Text::encodeHtml('') ?>" /><?php if ('') { ?><input type="hidden" name="url" value="<?php '' ?>"/><?php } ?></div> + + </div> + </div> + <div class="line"> + <div class="label"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('global_NAME')))); ?></span> + + </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="text" value="<?php echo Text::encodeHtml('') ?>" /><?php if ('') { ?><input type="hidden" name="name" value="<?php '' ?>"/><?php } ?></div> + + </div> + </div> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + </div> + </div> + <div class="line"> + <div class="label"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('global_DESCRIPTION')))); ?></span> + + </div> + <div class="input"> + <div class="inputholder"><textarea class="inputarea" name="description"><?php echo Text::encodeHtml('') ?></textarea></div> + + </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> + + + \ No newline at end of file diff --git a/themes/default/templates/folder/createurl.tpl.src.xml b/themes/default/templates/folder/createurl.tpl.src.xml @@ -0,0 +1,40 @@ +<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"> + <form> + + <part class="line"> + <part class="label"> + <text text="URL"></text> + </part> + <part class="input"> + <input name="url" size="50" default=""></input> + </part> + </part> + + <part class="line"> + <part class="label"> + <text text="global_NAME"></text> + </part> + <part class="input"> + <input name="name" size="20" default=""></input> + </part> + </part> + + <part class="line"> + <part class="label"> + </part> + <part class="input"> + </part> + </part> + + <part class="line"> + <part class="label"> + <text text="global_DESCRIPTION"></text> + </part> + <part class="input"> + <inputarea rows="5" cols="50" name="description" default=""></inputarea> + </part> + </part> + + </form> +</output>+ \ 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,8 +1,8 @@ + <div class="headermenu"><div class="toolbar-icon clickable"><a href="javascript:void(0);" data-type="dialog" data-name="<?php echo lang('MENU_ORDER') ?>" data-method="order"><img src="./themes/default/images/icon/action/order.svg" title="<?php echo lang('MENU_order_DESC') ?>" /><?php echo lang('MENU_order') ?></a></div></div> - - <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 ?>" /> + <form name="" target="_self" action="folder" data-method="edit" data-action="folder" data-id="<?php echo OR_ID ?>" method="POST" 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"> @@ -146,16 +146,9 @@ <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; - 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) ?> + <div class="input"> + <input class="radio" type="radio" id="<?php echo REQUEST_ID ?>_type_<?php echo $actiontype ?>" name="type" value="<?php echo $actiontype ?>"<?php if($actiontype==@$type)echo ' checked="checked"' ?> /> + <label for="<?php echo REQUEST_ID ?>_type_<?php echo $actiontype ?>" class="label"> <span class="text"><?php echo nl2br('&nbsp;'); ?></span> diff --git a/themes/default/templates/folder/info.tpl.out.php b/themes/default/templates/folder/info.tpl.out.php @@ -1,30 +1,11 @@ -<!-- 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"; -?> + + <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('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 class="label"> + <label for="<?php echo REQUEST_ID ?>_name" class="label"><?php echo lang('global_name') ?> + </label> </div> <div class="input"> <span class="name,focus"><?php echo nl2br(encodeHtml(htmlentities($name))); ?></span> @@ -32,8 +13,9 @@ </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 class="label"> + <label for="<?php echo REQUEST_ID ?>_filename" class="label"><?php echo lang('global_filename') ?> + </label> </div> <div class="input"> <span class="text"><?php echo nl2br(encodeHtml(htmlentities($filename))); ?></span> @@ -41,8 +23,9 @@ </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 class="label"> + <label for="<?php echo REQUEST_ID ?>_description" class="label"><?php echo lang('global_description') ?> + </label> </div> <div class="input"> <span class="description"><?php echo nl2br(encodeHtml(htmlentities($description))); ?></span> @@ -52,8 +35,9 @@ </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> <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 class="label"> + <label for="<?php echo REQUEST_ID ?>_full_filename" class="label"><?php echo lang('FULL_FILENAME') ?> + </label> </div> <div class="input"> <span class="text"><?php echo nl2br(encodeHtml(htmlentities($full_filename))); ?></span> @@ -61,8 +45,9 @@ </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 class="label"> + <label for="<?php echo REQUEST_ID ?>_objectid" class="label"><?php echo lang('id') ?> + </label> </div> <div class="input"> <span class="text"><?php echo nl2br(encodeHtml(htmlentities($objectid))); ?></span> @@ -72,32 +57,38 @@ </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> <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 class="label"> + <label for="<?php echo REQUEST_ID ?>_create_user" class="label"><?php echo lang('global_created') ?> + </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) ?> - <!-- Compiling newline/newline-begin --><br/> + <?php include_once( 'modules/template-engine/components/html/date/component-date.php') ?><?php component_date($create_date) ?> + + <br/> + <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) ?> + <?php include_once( 'modules/template-engine/components/html/user/component-user.php') ?><?php component_user($create_user) ?> </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 class="label"> + <label for="<?php echo REQUEST_ID ?>_lastchange_user" class="label"><?php echo lang('global_lastchange') ?> + </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) ?> - <!-- Compiling newline/newline-begin --><br/> + <?php include_once( 'modules/template-engine/components/html/date/component-date.php') ?><?php component_date($lastchange_date) ?> + + <br/> + <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) ?> + <?php include_once( 'modules/template-engine/components/html/user/component-user.php') ?><?php component_user($lastchange_user) ?> </div> </div> @@ -112,3 +103,5 @@ </div> </form> + + + \ No newline at end of file diff --git a/themes/default/templates/folder/order.tpl.out.php b/themes/default/templates/folder/order.tpl.out.php @@ -0,0 +1,57 @@ + + + + + <div class="inputholder"><input<?php if ('') echo ' disabled="true"' ?> id="<?php echo REQUEST_ID ?>_token" name="token<?php if ('') echo '_disabled' ?>" type="hidden" maxlength="256" class="text" value="<?php echo Text::encodeHtml($token) ?>" /><?php if ('') { ?><input type="hidden" name="token" value="<?php $token ?>"/><?php } ?></div> + + <table class="sortable" width="100%"> + <tr class="headline"> + <td class="help clickable"> + <a title="<?php echo lang('FOLDER_FLIP') ?>" target="_self" data-type="post" data-action="folder" data-method="reorder" data-id="<?php echo OR_ID ?>" data-data="{&quot;action&quot;:&quot;folder&quot;,&quot;subaction&quot;:&quot;reorder&quot;,&quot;id&quot;:&quot;<?php echo OR_ID ?>&quot;,&quot;token&quot;:&quot;<?php echo token() ?>&quot;,&quot;var1&quot;:&quot;flip&quot;,&quot;none&quot;:&quot;0&quot;}"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'FOLDER_ORDER'.'')))); ?></span> + + </a> + + </td> + <td class="help clickable"> + <a title="<?php echo lang('FOLDER_ORDERBYTYPE') ?>" target="_self" data-type="post" data-action="folder" data-method="reorder" data-id="<?php echo OR_ID ?>" data-data="{&quot;action&quot;:&quot;folder&quot;,&quot;subaction&quot;:&quot;reorder&quot;,&quot;id&quot;:&quot;<?php echo OR_ID ?>&quot;,&quot;token&quot;:&quot;<?php echo token() ?>&quot;,&quot;var1&quot;:&quot;type&quot;,&quot;none&quot;:&quot;0&quot;}"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'GLOBAL_TYPE'.'')))); ?></span> + + </a> + + </td> + <td class="help clickable"> + <a title="<?php echo lang('FOLDER_ORDERBYNAME') ?>" target="_self" data-type="post" data-action="folder" data-method="reorder" data-id="<?php echo OR_ID ?>" data-data="{&quot;action&quot;:&quot;folder&quot;,&quot;subaction&quot;:&quot;reorder&quot;,&quot;id&quot;:&quot;<?php echo OR_ID ?>&quot;,&quot;token&quot;:&quot;<?php echo token() ?>&quot;,&quot;var1&quot;:&quot;name&quot;,&quot;none&quot;:&quot;0&quot;}"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'GLOBAL_NAME'.'')))); ?></span> + + </a> + + </td> + <td class="help clickable"> + <a title="<?php echo lang('FOLDER_ORDERBYLASTCHANGE') ?>" target="_self" data-type="post" data-action="folder" data-method="reorder" data-id="<?php echo OR_ID ?>" data-data="{&quot;action&quot;:&quot;folder&quot;,&quot;subaction&quot;:&quot;reorder&quot;,&quot;id&quot;:&quot;<?php echo OR_ID ?>&quot;,&quot;token&quot;:&quot;<?php echo token() ?>&quot;,&quot;var1&quot;:&quot;lastchange&quot;,&quot;none&quot;:&quot;0&quot;}"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'GLOBAL_LASTCHANGE'.'')))); ?></span> + + </a> + + </td> + </tr> + <?php foreach($object as $list_key=>$list_value){ ?><?php extract($list_value) ?> + <tr class="data" data-id="<?php echo $id ?>"> + <td> + <span class="text"><?php echo nl2br('&nbsp;'); ?></span> + + </td> + <td colspan="2"> + <img class="" title="" src="./themes/default/images/icon_<?php echo $icon ?>.png" /> + + <span class="text"><?php echo nl2br(encodeHtml(htmlentities($name))); ?></span> + + </td> + <td> + <?php include_once( 'modules/template-engine/components/html/date/component-date.php') ?><?php component_date($date) ?> + + </td> + </tr> + <?php } ?> + </table> + + \ No newline at end of file diff --git a/themes/default/templates/folder/order.tpl.src.xml b/themes/default/templates/folder/order.tpl.src.xml @@ -1,7 +1,7 @@ <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"> <header back="true"></header> - <input type="hidden" name="token" default="function:token"></input> + <input type="hidden" name="token" default="var:token"></input> <table class="sortable"> <row class="headline"> <column class="help clickable"> diff --git a/themes/default/templates/folder/preview.tpl.out.php b/themes/default/templates/folder/preview.tpl.out.php @@ -1,158 +1,57 @@ -<!-- 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) ?> - <td class="help"><!-- Compiling text/text-begin --><?php $a5_class='text';$a5_key='GLOBAL_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) ?><!-- Compiling text/text-begin --><?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) ?><!-- Compiling text/text-begin --><?php $a5_class='text';$a5_key='GLOBAL_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 class="help"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'GLOBAL_TYPE'.'')))); ?></span> + + <span class="text"><?php echo nl2br('&nbsp;/&nbsp;'); ?></span> + + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'GLOBAL_NAME'.'')))); ?></span> + + </td> + <td class="help"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang(''.'GLOBAL_LASTCHANGE'.'')))); ?></span> + </td> - <td class="help"><!-- Compiling text/text-begin --><?php $a5_class='text';$a5_key='GLOBAL_LASTCHANGE';$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> - <?php $if3=(!empty('up_url')); if($if3){?><!-- Compiling row/row-begin --><?php $a4_class='data'; ?><?php - $column_idx = 0; -?> -<tr - class="data" -> -<?php unset($a4_class) ?> + </tr> + <?php $if3=(!empty($up_url)); if($if3){?> + <tr class="data"> <td> <img class="" title="" src="./themes/default/images/icon_folder_up.png" /> - <!-- Compiling text/text-begin --><?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) ?> + + <span class="text"><?php echo nl2br('..'); ?></span> + + </td> + <td> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(''))); ?></span> + </td> - <td><!-- Compiling text/text-begin --><?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 --></tr> - <?php } ?><!-- Compiling list/list-begin --><?php $a3_list='object';$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) ?> + </tr> + <?php } ?> + <?php foreach($object as $list_key=>$list_value){ ?><?php extract($list_value) ?> + <tr class="data"> <td class="<?php echo $class ?>" title="<?php echo $desc ?>" onclick="javascript:openNewAction('<?php echo $name ?>','<?php echo $type ?>','<?php echo $id ?>');"> <img class="" title="" src="./themes/default/images/icon_<?php echo $icon ?>.png" /> - <!-- Compiling text/text-begin --><?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) ?><!-- Compiling text/text-begin --><?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) ?> + + <span class="text"><?php echo nl2br(encodeHtml(htmlentities($name))); ?></span> + + <span class="text"><?php echo nl2br('&nbsp;'); ?></span> + </td> <td> - <?php include_once( OR_THEMES_DIR.'default/include/html/date/component-date.php') ?><?php component_date($date) ?> + <?php include_once( 'modules/template-engine/components/html/date/component-date.php') ?><?php component_date($date) ?> - </td><!-- Compiling row/row-end --></tr><!-- Compiling list/list-end --><?php } ?> - <?php $if3=(empty('object')); if($if3){?><!-- Compiling row/row-begin --><?php - $column_idx = 0; -?> -<tr -> - - <td colspan="2"><!-- Compiling text/text-begin --><?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 --></tr> - <?php } ?><!-- Compiling table/table-end --><?php - $column_idx = $last_column_idx; -?> -</table>- \ No newline at end of file + </td> + </tr> + <?php } ?> + <?php $if3=(empty($object)); if($if3){?> + <tr> + <td colspan="2"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('GLOBAL_NOT_FOUND')))); ?></span> + + </td> + </tr> + <?php } ?> + </table> + + \ No newline at end of file diff --git a/themes/default/templates/folder/prop.tpl.out.php b/themes/default/templates/folder/prop.tpl.out.php @@ -2,14 +2,14 @@ - <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 ?>" /> + <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="POST" 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 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> @@ -19,7 +19,7 @@ </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 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> diff --git a/themes/default/templates/folder/pub.tpl.out.php b/themes/default/templates/folder/pub.tpl.out.php @@ -1,32 +1,12 @@ -<!-- 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"; -?> - + <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="POST" enctype="application/x-www-form-urlencoded" class="<?php echo OR_ACTION ?>" data-async="1" 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($pages)); if($if3){?> <?php $if4=(!empty($subdirs)); if($if4){?> <div class="line"> @@ -46,12 +26,13 @@ ?><input type="hidden" name="<?php echo $tmpname ?>" value="1" /><?php } } ?> - <!-- 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) ?> + + <label for="<?php echo REQUEST_ID ?>_pages" class="label"> <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> + + </label> </div> </div> <?php } ?> @@ -75,12 +56,13 @@ ?><input type="hidden" name="<?php echo $tmpname ?>" value="1" /><?php } } ?> - <!-- 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) ?> + + <label for="<?php echo REQUEST_ID ?>_files" class="label"> <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> + + </label> </div> </div> <?php } ?> @@ -104,12 +86,13 @@ ?><input type="hidden" name="<?php echo $tmpname ?>" value="1" /><?php } } ?> - <!-- 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) ?> + + <label for="<?php echo REQUEST_ID ?>_subdirs" class="label"> <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> + + </label> </div> </div> <?php } ?> @@ -131,23 +114,26 @@ ?><input type="hidden" name="<?php echo $tmpname ?>" value="1" /><?php } } ?> - <!-- 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) ?> + + <label for="<?php echo REQUEST_ID ?>_clean" class="label"> <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> + + </label> </div> </div> <?php } ?> </div></fieldset> <div class="bottom"> - <div class="command true"> + <div class="command 1"> <input type="button" class="submit ok" value="<?php echo lang('publish') ?>" 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> + <!-- Cancel-Button nicht anzeigen, wenn cancel==false. --> </div> </div> </form> + + + \ No newline at end of file diff --git a/themes/default/templates/folder/structure.tpl.out.php b/themes/default/templates/folder/structure.tpl.out.php @@ -1,7 +1,7 @@ <div class="structure tree"> - <?php include_once( OR_THEMES_DIR.'default/include/html/tree/component-tree.php') ?><?php component_tree($outline) ?> + <?php include_once( 'modules/template-engine/components/html/tree/component-tree.php') ?><?php component_tree($outline) ?> </div> \ No newline at end of file diff --git a/themes/default/templates/url/edit.tpl.out.php b/themes/default/templates/url/edit.tpl.out.php @@ -1,6 +1,6 @@ - <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 ?>" /> + <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="POST" 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":"" ?>"><div> <div class="line"> <div class="label"> diff --git a/themes/default/templates/url/prop.tpl.out.php b/themes/default/templates/url/prop.tpl.out.php @@ -1,6 +1,6 @@ - <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 ?>" /> + <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="POST" 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('global_prop') ?></legend><div> <div class="line"> <div class="label">