openrat-cms

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

commit 707c59b98e3183ab2169e2419cb0519cffe5237e
parent a696c5ffa2731de60a07f93ea2fa66c0087914ed
Author: Jan Dankert <devnull@localhost>
Date:   Fri,  8 Dec 2017 22:58:39 +0100

Links und Urls lassen sich wieder speichern.

Diffstat:
action/LinkAction.class.php | 9---------
action/UrlAction.class.php | 72+++++++++++++++++++++++++-----------------------------------------------
themes/default/templates/link/edit.tpl.out.php | 96++++++++++++++++++-------------------------------------------------------------
themes/default/templates/link/edit.tpl.src.xml | 17+----------------
themes/default/templates/url/edit.tpl.out.php | 28++++++++++++++++++++++++++++
themes/default/templates/url/edit.tpl.src.xml | 18++++++++++++++++++
themes/default/templates/url/info.tpl.out.php | 0
themes/default/templates/url/info.tpl.src.xml | 69+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/templates/url/prop.tpl.out.php | 42++++++++++++++++++++++++++++++++++++++++++
themes/default/templates/url/prop.tpl.src.xml | 30++++++++++++++++++++++++++++++
themes/default/templates/url/structure.tpl.out.php | 8++++++++
themes/default/templates/url/structure.tpl.src.xml | 8++++++++
12 files changed, 250 insertions(+), 147 deletions(-)

diff --git a/action/LinkAction.class.php b/action/LinkAction.class.php @@ -94,10 +94,6 @@ class LinkAction extends ObjectAction */ function editPost() { - if( $this->getRequestVar('type') != '' ) - { - $this->link->isLinkToObject = true; - $this->link->isLinkToUrl = false; $this->link->linkedObjectId = $this->getRequestVar('targetobjectid'); $this->link->save(); @@ -105,11 +101,6 @@ class LinkAction extends ObjectAction Session::setObject( $this->link ); $this->addNotice('link',$this->link->name,'SAVED',OR_NOTICE_OK); - } - else - { - $this->addNotice('link',$this->link->name,'NOT_SAVED',OR_NOTICE_WARN); - } } diff --git a/action/UrlAction.class.php b/action/UrlAction.class.php @@ -3,7 +3,7 @@ namespace cms\action; use cms\model\Folder; -use cms\model\Link; +use cms\model\Url; @@ -39,7 +39,7 @@ class UrlAction extends ObjectAction { public $security = SECURITY_USER; - var $link; + var $url; var $defaultSubAction = 'prop'; /** @@ -47,15 +47,15 @@ class UrlAction extends ObjectAction */ function __construct() { - $this->link = new Link( $this->getRequestId() ); - $this->link->load(); + $this->url = new Url( $this->getRequestId() ); + $this->url->load(); } function remove() { - $this->setTemplateVars( $this->link->getProperties() ); + $this->setTemplateVars( $this->url->getProperties() ); } @@ -64,8 +64,8 @@ class UrlAction extends ObjectAction { if ( $this->hasRequestVar("delete") ) { - $this->link->delete(); - $this->addNotice('link',$this->link->name,'DELETED'); + $this->url->delete(); + $this->addNotice('url',$this->url->name,'DELETED'); } } @@ -80,12 +80,12 @@ class UrlAction extends ObjectAction if ( $this->getRequestVar('name') != '' ) { // Eigenschaften speichern - $this->link->name = $this->getRequestVar('name' ,'full'); - $this->link->desc = $this->getRequestVar('description','full'); + $this->url->name = $this->getRequestVar('name' ,'full'); + $this->url->desc = $this->getRequestVar('description','full'); - $this->link->save(); - $this->link->setTimestamp(); - Session::setObject( $this->link ); + $this->url->save(); + $this->url->setTimestamp(); + Session::setObject( $this->url ); } } @@ -95,59 +95,37 @@ class UrlAction extends ObjectAction */ function editPost() { - if( $this->getRequestVar('type') != '' ) - { - if ( $this->getRequestVar('type') == 'link' ) - { - $this->link->isLinkToObject = true; - $this->link->isLinkToUrl = false; - $this->link->linkedObjectId = $this->getRequestVar('targetobjectid'); - } - else - { - $this->link->isLinkToObject = false; - $this->link->isLinkToUrl = true; - $this->link->url = $this->getRequestVar('url'); - } - - $this->link->save(); - $this->link->setTimestamp(); - Session::setObject( $this->link ); - - $this->addNotice('link',$this->link->name,'SAVED',OR_NOTICE_OK); - } - else - { - $this->addNotice('link',$this->link->name,'NOT_SAVED',OR_NOTICE_WARN); - } + $this->url->url = $this->getRequestVar('url'); + $this->url->save(); + $this->url->setTimestamp(); + Session::setObject( $this->url ); + + $this->addNotice('url',$this->url->name,'SAVED',OR_NOTICE_OK); } public function editView() { - $this->setTemplateVars( $this->link->getProperties() ); + $this->setTemplateVars( $this->url->getProperties() ); // Typ der Verknuepfung - $this->setTemplateVar('type' ,$this->link->getType() ); - $this->setTemplateVar('targetobjectid' ,$this->link->linkedObjectId); - $this->setTemplateVar('targetobjectname',$this->link->name ); - $this->setTemplateVar('url' ,$this->link->url ); + $this->setTemplateVar('type' ,$this->url->getType() ); + $this->setTemplateVar('url' ,$this->url->url ); } function propView() { - $this->setTemplateVars( $this->link->getProperties() ); - $this->setTemplateVar('act_linkobjectid',$this->link->linkedObjectId); + $this->setTemplateVars( $this->url->getProperties() ); } function infoView() { - $this->setTemplateVars( $this->link->getProperties() ); + $this->setTemplateVars( $this->url->getProperties() ); } @@ -174,7 +152,7 @@ class UrlAction extends ObjectAction $tmp = &$structure; $nr = 0; - $folder = new Folder( $this->link->parentid ); + $folder = new Folder( $this->url->parentid ); $parents = $folder->parentObjectNames(false,true); foreach( $parents as $id=>$name) @@ -199,7 +177,7 @@ class UrlAction extends ObjectAction $elementChildren = array(); - $tmp[ $this->link->objectid ] = array('id'=>$this->link->objectid,'name'=>$this->link->name,'type'=>'link','self'=>true,'children'=>&$elementChildren); + $tmp[ $this->url->objectid ] = array('id'=>$this->url->objectid,'name'=>$this->url->name,'type'=>'url','self'=>true,'children'=>&$elementChildren); // //$elementChildren[$id] = array('id'=>$this->page->objectid.'_'.$id,'name'=>$name,'type'=>'pageelement','children'=>array() ); diff --git a/themes/default/templates/link/edit.tpl.out.php b/themes/default/templates/link/edit.tpl.out.php @@ -1,79 +1,22 @@ -<!-- Compiling output/output-begin @ Wed, 29 Nov 2017 01:27:31 +0100 --> - <form name="" - target="_self" - action="<?php echo OR_ACTION ?>" - data-method="<?php echo OR_METHOD ?>" - data-action="<?php echo OR_ACTION ?>" - data-id="<?php echo OR_ID ?>" - method="<?php echo OR_METHOD ?>" - enctype="application/x-www-form-urlencoded" - class="<?php echo OR_ACTION ?>" - data-async="" - data-autosave="" - onSubmit="formSubmit( $(this) ); return false;"><input type="submit" class="invisible" /> - -<input type="hidden" name="<?php echo REQ_PARAM_TOKEN ?>" value="<?php echo token() ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_ACTION ?>" value="<?php echo OR_ACTION ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo OR_METHOD ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo OR_ID ?>" /> -<?php - if ( $conf['interface']['url_sessionid'] ) - echo '<input type="hidden" name="'.session_name().'" value="'.session_id().'" />'."\n"; -?> - <fieldset class="<?php echo 1?" open":"" ?><?php echo 1?" show":"" ?>"><div><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 01:27:31 +0100 --><?php $a4_class='line'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 01:27:31 +0100 --><?php $a5_class='label'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><!-- Compiling radio/radio-begin @ Wed, 29 Nov 2017 01:27:31 +0100 --><?php $a6_readonly=false;$a6_name='type';$a6_value='url';$a6_default=false;$a6_prefix='';$a6_suffix='';$a6_class='';$a6_onchange=''; ?><?php - if ($this->isEditable() && !$this->isEditMode()) $a6_readonly=true; - if ( isset($$a6_name) ) - $a6_tmp_default = $$a6_name; - elseif ( isset($a6_default) ) - $a6_tmp_default = $a6_default; - else - $a6_tmp_default = ''; - ?><input onclick="" class="radio" type="radio" id="<?php echo REQUEST_ID ?>_<?php echo $a6_name.'_'.$a6_value ?>" name="<?php echo $a6_prefix.$a6_name ?>"<?php if ( $a6_readonly ) echo ' disabled="disabled"' ?> value="<?php echo $a6_value ?>"<?php if($a6_value==$a6_tmp_default||@$a6_checked) echo ' checked="checked"' ?> /> -<?php /* #END-IF# */ ?><?php unset($a6_readonly,$a6_name,$a6_value,$a6_default,$a6_prefix,$a6_suffix,$a6_class,$a6_onchange) ?><!-- Compiling label/label-begin @ Wed, 29 Nov 2017 01:27:31 +0100 --><?php $a6_for='type_url'; ?><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 @ Wed, 29 Nov 2017 01:27:31 +0100 --><?php $a7_class='text';$a7_text='link_url';$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 @ Wed, 29 Nov 2017 01:27:31 +0100 --></label><!-- Compiling part/part-end @ Wed, 29 Nov 2017 01:27:31 +0100 --></div><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 01:27:31 +0100 --><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><!-- Compiling input/input-begin @ Wed, 29 Nov 2017 01:27:31 +0100 --><?php $a6_class='text';$a6_default='';$a6_type='text';$a6_name='url';$a6_size='';$a6_maxlength='256';$a6_onchange='';$a6_readonly=false;$a6_hint='';$a6_icon=''; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a6_readonly=true; - if ($a6_readonly && empty($$a6_name)) $$a6_name = '- '.lang('EMPTY').' -'; - if(!isset($a6_default)) $a6_default=''; - $tmp_value = Text::encodeHtml(isset($$a6_name)?$$a6_name:$a6_default); -?><?php if (!$a6_readonly || $a6_type=='hidden') { -?><div class="<?php echo $a6_type!='hidden'?'inputholder':'inputhidden' ?>"><input<?php if ($a6_readonly) echo ' disabled="true"' ?><?php if ($a6_hint) echo ' data-hint="'.$a6_hint.'"'; ?> id="<?php echo REQUEST_ID ?>_<?php echo $a6_name ?><?php if ($a6_readonly) echo '_disabled' ?>" name="<?php echo $a6_name ?><?php if ($a6_readonly) echo '_disabled' ?>" type="<?php echo $a6_type ?>" maxlength="<?php echo $a6_maxlength ?>" class="<?php echo str_replace(',',' ',$a6_class) ?>" value="<?php echo $tmp_value ?>" /><?php if ($a6_icon) echo '<img src="'.$image_dir.'icon_'.$a6_icon.IMG_ICON_EXT.'" width="16" height="16" />'; ?></div><?php -if ($a6_readonly) { -?><input type="hidden" id="<?php echo REQUEST_ID ?>_<?php echo $a6_name ?>" name="<?php echo $a6_name ?>" value="<?php echo $tmp_value ?>" /><?php - } } else { ?><a title="<?php echo langHtml('EDIT') ?>" href="<?php echo Html::url($actionName,$subActionName,0,array('mode'=>'edit')) ?>"><span class="<?php echo $a6_class ?>"><?php echo $tmp_value ?></span></a><?php } ?><?php unset($a6_class,$a6_default,$a6_type,$a6_name,$a6_size,$a6_maxlength,$a6_onchange,$a6_readonly,$a6_hint,$a6_icon) ?><!-- Compiling part/part-end @ Wed, 29 Nov 2017 01:27:31 +0100 --></div><!-- Compiling part/part-end @ Wed, 29 Nov 2017 01:27:31 +0100 --></div><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 01:27:31 +0100 --><?php $a4_class='line'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 01:27:31 +0100 --><?php $a5_class='label'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><!-- Compiling radio/radio-begin @ Wed, 29 Nov 2017 01:27:31 +0100 --><?php $a6_readonly=false;$a6_name='type';$a6_value='link';$a6_default=false;$a6_prefix='';$a6_suffix='';$a6_class='';$a6_onchange=''; ?><?php - if ($this->isEditable() && !$this->isEditMode()) $a6_readonly=true; - if ( isset($$a6_name) ) - $a6_tmp_default = $$a6_name; - elseif ( isset($a6_default) ) - $a6_tmp_default = $a6_default; - else - $a6_tmp_default = ''; - ?><input onclick="" class="radio" type="radio" id="<?php echo REQUEST_ID ?>_<?php echo $a6_name.'_'.$a6_value ?>" name="<?php echo $a6_prefix.$a6_name ?>"<?php if ( $a6_readonly ) echo ' disabled="disabled"' ?> value="<?php echo $a6_value ?>"<?php if($a6_value==$a6_tmp_default||@$a6_checked) echo ' checked="checked"' ?> /> -<?php /* #END-IF# */ ?><?php unset($a6_readonly,$a6_name,$a6_value,$a6_default,$a6_prefix,$a6_suffix,$a6_class,$a6_onchange) ?><!-- Compiling label/label-begin @ Wed, 29 Nov 2017 01:27:31 +0100 --><?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 @ Wed, 29 Nov 2017 01:27:31 +0100 --><?php $a7_class='text';$a7_text='link_target';$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 @ Wed, 29 Nov 2017 01:27:31 +0100 --></label><!-- Compiling part/part-end @ Wed, 29 Nov 2017 01:27:31 +0100 --></div><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 01:27:31 +0100 --><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><!-- Compiling selector/selector-begin @ Wed, 29 Nov 2017 01:27:31 +0100 --><?php $a6_types='page,file';$a6_name=$targetobjectname;$a6_id=$targetobjectid;$a6_folderid='parentid';$a6_param='targetobjectid'; ?><div class="selector"> - <div class="inputholder"> - <input type="hidden" name="<?php echo $a6_param ?>" value="<?php echo $a6_id ?>" /> - <input type="text" disabled="disabled" value="<?php echo $a6_name ?>" /> - </div> - <div class="tree selector" data-types="<?php echo $a6_types ?>" data-init-id="<?php echo $a6_id ?>" data-init-folderid="<?php echo $a6_folderid ?>"></div> -</div><?php unset($a6_types,$a6_name,$a6_id,$a6_folderid,$a6_param) ?><!-- Compiling part/part-end @ Wed, 29 Nov 2017 01:27:31 +0100 --></div><!-- Compiling part/part-end @ Wed, 29 Nov 2017 01:27:31 +0100 --></div> + + <form name="" target="_self" action="<?php echo OR_ACTION ?>" data-method="<?php echo OR_METHOD ?>" data-action="<?php echo OR_ACTION ?>" data-id="<?php echo OR_ID ?>" method="<?php echo OR_METHOD ?>" enctype="application/x-www-form-urlencoded" class="<?php echo OR_ACTION ?>" data-async="" data-autosave="" onSubmit="formSubmit( $(this) ); return false;"><input type="submit" class="invisible" /><input type="hidden" name="<?php echo REQ_PARAM_TOKEN ?>" value="<?php echo token() ?>" /><input type="hidden" name="<?php echo REQ_PARAM_ACTION ?>" value="<?php echo OR_ACTION ?>" /><input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo OR_METHOD ?>" /><input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo OR_ID ?>" /> + <fieldset class="<?php echo '1'?" open":"" ?><?php echo '1'?" show":"" ?>"><div> + <div class="line"> + <div class="label"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('link_target')))); ?></span> + + </div> + <div class="input"> + <div class="selector"> +<div class="inputholder"> +<input type="hidden" name="targetobjectid" value="{id}" /> +<input type="text" disabled="disabled" value="{name}" /> +</div> +<div class="tree selector" data-types="{types}" data-init-id="<?php echo $targetobjectid ?>" data-init-folderid="parentid"> + + </div> + </div> </div></fieldset> <div class="bottom"> @@ -85,3 +28,5 @@ if ($a6_readonly) { </div> </form> + + + \ No newline at end of file diff --git a/themes/default/templates/link/edit.tpl.src.xml b/themes/default/templates/link/edit.tpl.src.xml @@ -4,22 +4,7 @@ <group> <part class="line"> <part class="label"> - <radio name="type" value="url"></radio> - <label for="type_url"> - <text text="link_url"></text> - </label> - </part> - <part class="input"> - <input name="url"></input> - </part> - </part> - - <part class="line"> - <part class="label"> - <radio name="type" value="link"></radio> - <label for="type_link"> - <text text="link_target"></text> - </label> + <text text="link_target"></text> </part> <part class="input"> <selector id="var:targetobjectid" name="var:targetobjectname" types="page,file" param="targetobjectid" folderid="parentid"/> diff --git a/themes/default/templates/url/edit.tpl.out.php b/themes/default/templates/url/edit.tpl.out.php @@ -0,0 +1,27 @@ + + + <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":"" ?>"><div> + <div class="line"> + <div class="label"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('link_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> + </div></fieldset> + +<div class="bottom"> + <div class="command "> + + <input type="button" class="submit ok" value="OK" onclick="$(this).closest('div.sheet').find('form').submit(); " /> + + <!-- Cancel-Button nicht anzeigen, wenn cancel==false. --> </div> +</div> + +</form> + + + \ No newline at end of file diff --git a/themes/default/templates/url/edit.tpl.src.xml b/themes/default/templates/url/edit.tpl.src.xml @@ -0,0 +1,17 @@ +<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> + <group> + <part class="line"> + <part class="label"> + <text text="link_url"></text> + </part> + <part class="input"> + <input name="url"></input> + </part> + </part> + + + </group> + </form> +</output>+ \ No newline at end of file diff --git a/themes/default/templates/url/info.tpl.out.php b/themes/default/templates/url/info.tpl.out.php diff --git a/themes/default/templates/url/info.tpl.src.xml b/themes/default/templates/url/info.tpl.src.xml @@ -0,0 +1,68 @@ +<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> + <group title="message:global_prop"> + <part class="line"> + <part class="label"> + <text text="GLOBAL_name"></text> + </part> + <part class="input"> + <text var="name" class="name,focus" /> + </part> + </part> + + <part class="line"> + <part class="label"> + <text text="GLOBAL_description"></text> + </part> + <part class="input"> + <text var="description" class="description" /> + </part> + </part> + </group> + + <group title="message:additional_info"> + <part class="line"> + <part class="label"> + <label for="objectid"> + <text key="id"></text> + </label> + </part> + <part class="input"> + <text var="objectid"></text> + </part> + </part> + </group> + + <group title="message:prop_userinfo"> + <part class="line"> + <part class="label"> + <label for=""> + <text text="global_created"></text> + </label> + </part> + <part class="input"> + <image icon="el_date"></image> + <date date="var:create_date"></date> + <newline></newline> + <image icon="user"></image> + <user user="var:create_user"></user> + </part> + </part> + <part class="line"> + <part class="label"> + <label for=""> + <text text="global_lastchange"></text> + </label> + </part> + <part class="input"> + <image icon="el_date"></image> + <date date="var:lastchange_date"></date> + <newline></newline> + <image icon="user"></image> + <user user="var:lastchange_user"></user> + </part> + </part> + </group> + </form> +</output>+ \ No newline at end of file diff --git a/themes/default/templates/url/prop.tpl.out.php b/themes/default/templates/url/prop.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="<?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"> + <label for="<?php echo REQUEST_ID ?>_name" 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 ?>_name" name="name<?php if ('') echo '_disabled' ?>" type="text" maxlength="256" class="name,focus" value="<?php echo Text::encodeHtml(@$name) ?>" /><?php if ('') { ?><input type="hidden" name="name" value="<?php $name ?>"/><?php } ?></div> + + </div> + </div> + <div class="line"> + <div class="label"> + <label for="<?php echo REQUEST_ID ?>_description" class="label"> + <span class="text"><?php echo nl2br(encodeHtml(htmlentities(lang('GLOBAL_description')))); ?></span> + + </label> + </div> + <div class="input"> + <div class="inputholder"><textarea class="description" name="description"><?php echo Text::encodeHtml($description) ?></textarea></div> + + </div> + </div> + </div></fieldset> + +<div class="bottom"> + <div class="command "> + + <input type="button" class="submit ok" value="OK" onclick="$(this).closest('div.sheet').find('form').submit(); " /> + + <!-- Cancel-Button nicht anzeigen, wenn cancel==false. --> </div> +</div> + +</form> + + + \ No newline at end of file diff --git a/themes/default/templates/url/prop.tpl.src.xml b/themes/default/templates/url/prop.tpl.src.xml @@ -0,0 +1,29 @@ +<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> + <group title="message:global_prop"> + <part class="line"> + <part class="label"> + <label for="name"> + <text text="GLOBAL_name"></text> + </label> + </part> + <part class="input"> + <input name="name" class="name,focus"></input> + </part> + </part> + + <part class="line"> + <part class="label"> + <label for="description"> + <text text="GLOBAL_description"></text> + </label> + </part> + <part class="input"> + <inputarea name="description" class="description"></inputarea> + </part> + </part> + </group> + + </form> +</output>+ \ No newline at end of file diff --git a/themes/default/templates/url/structure.tpl.out.php b/themes/default/templates/url/structure.tpl.out.php @@ -0,0 +1,7 @@ + + + <div class="structure tree"> + <?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/structure.tpl.src.xml b/themes/default/templates/url/structure.tpl.src.xml @@ -0,0 +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"> + <part class="structure tree"> + <tree tree="var:outline"></tree> + </part> + +</output>+ \ No newline at end of file