commit a85a797d65ea867da7de0da78659ccbda3754aac
parent edba211eb729309f7356a64bb8573f2eacb2cb0c
Author: Jan Dankert <devnull@localhost>
Date: Wed, 29 Nov 2017 01:20:12 +0100
Komponente "qrcode" umgestellt auf eine Klasse.
Diffstat:
4 files changed, 378 insertions(+), 6 deletions(-)
diff --git a/themes/default/include/elements.ini.php b/themes/default/include/elements.ini.php
@@ -9,17 +9,17 @@ checkbox = default:false,readonly:false,name:*
column = width,style,class,colspan,rowspan,header:false,title,url,action,id,name
date =
dummy =
-focus = field:*
-form = action,subaction,id,name:,target:_self,method:post,enctype:application/x-www-form-urlencoded,type:,cancel:false,label,visible:false,async:false,autosave:false
+focus =
+form =
frame = file,name,scrolling
frameset = rows,columns
frameset-page=menu
-group = title,icon,open:true,class,show:true
+group =
hidden = name:*,default
header = name:,views,back:false
editor =
else =
-if = equals,value,not,empty,present,contains,greaterthan,lessthan,true,false
+if =
image =
input = class:text,default:,type:text,index,name:*,prefix,value,size:,maxlength:256,onchange:,readonly:false,hint:,icon:
inputarea= name,rows:10,cols:40,value,index,onchange,prefix,class:inputarea,default:
diff --git a/themes/default/include/html/qrcode/Qrcode.class.php b/themes/default/include/html/qrcode/Qrcode.class.php
@@ -0,0 +1,20 @@
+<?php
+
+class QrcodeComponent extends Component
+{
+
+ public $title;
+
+
+
+ protected function begin()
+ {
+ $value = $this->htmlvalue($this->value);
+ echo <<<HTML
+<div class="qrcode" data-qrcode="{$value}" title="{$value}"></div>
+HTML;
+ }
+
+}
+
+?>+
\ No newline at end of file
diff --git a/themes/default/include/html/qrcode/qrcode-begin.inc.php b/themes/default/include/html/qrcode/qrcode-begin.inc.php
@@ -1 +0,0 @@
-<div class="qrcode" data-qrcode="<?php echo $attr_value ?>" title="<?php echo $attr_value ?>"></div>-
\ No newline at end of file
diff --git a/themes/default/templates/profile/edit.tpl.out.php b/themes/default/templates/profile/edit.tpl.out.php
@@ -0,0 +1,353 @@
+<!-- Compiling output/output-begin @ Wed, 29 Nov 2017 01:18:33 +0100 --><!-- Compiling header/header-begin @ Wed, 29 Nov 2017 01:18:33 +0100 --><?php $a2_name='';$a2_views='mail';$a2_back=false; ?><?php if(!empty($a2_views)) { ?>
+ <div class="headermenu">
+ <?php foreach( explode(',',$a2_views) as $a2_tmp_view ) { ?>
+ <div class="toolbar-icon clickable">
+ <a href="javascript:void(0);" data-type="dialog" data-name="<?php echo lang('MENU_'.$a2_tmp_view) ?>" data-method="<?php echo $a2_tmp_view ?>">
+ <img src="<?php echo $image_dir ?>icon/<?php echo $a2_tmp_view ?>.png" title="<?php echo lang('MENU_'.$a2_tmp_view.'_DESC') ?>" /> <?php echo lang('MENU_'.$a2_tmp_view) ?>
+ </a>
+ </div>
+ <?php } ?>
+ </div>
+<?php } ?>
+<?php unset($a2_name,$a2_views,$a2_back) ?>
+ <form name=""
+ target="_self"
+ action="<?php echo OR_ACTION ?>"
+ data-method="<?php echo OR_METHOD ?>"
+ data-action="<?php echo OR_ACTION ?>"
+ data-id="<?php echo OR_ID ?>"
+ method="<?php echo OR_METHOD ?>"
+ enctype="application/x-www-form-urlencoded"
+ class="<?php echo OR_ACTION ?>"
+ data-async=""
+ data-autosave=""
+ onSubmit="formSubmit( $(this) ); return false;"><input type="submit" class="invisible" />
+
+<input type="hidden" name="<?php echo REQ_PARAM_TOKEN ?>" value="<?php echo token() ?>" />
+<input type="hidden" name="<?php echo REQ_PARAM_ACTION ?>" value="<?php echo OR_ACTION ?>" />
+<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo OR_METHOD ?>" />
+<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo OR_ID ?>" />
+<?php
+ if ( $conf['interface']['url_sessionid'] )
+ echo '<input type="hidden" name="'.session_name().'" value="'.session_id().'" />'."\n";
+?>
+
+ <fieldset class="<?php echo 1?" open":"" ?><?php echo 1?" show":"" ?>"><legend><div class="arrow-right closed" /><div class="arrow-down open" /><?php echo lang('name') ?></legend><div><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 01:18:33 +0100 --><?php $a4_class='line'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 01:18:33 +0100 --><?php $a5_class='label'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><!-- Compiling label/label-begin @ Wed, 29 Nov 2017 01:18:33 +0100 --><?php $a6_for='name';$a6_key='user_username'; ?><label<?php if (isset($a6_for)) { ?> for="<?php echo REQUEST_ID ?>_<?php echo $a6_for ?><?php if (!empty($a6_value)) echo '_'.$a6_value ?>" <?php if(hasLang(@$a6_key.'_desc')) { ?> title="<?php echo lang(@$a6_key.'_desc')?>"<?php } ?> class="label"<?php } ?>>
+<?php if (isset($a6_key)) { echo lang($a6_key); ?><?php if (isset($a6_text)) { echo $a6_text; } ?><?php } ?><?php unset($a6_for,$a6_key) ?><!-- Compiling label/label-end @ Wed, 29 Nov 2017 01:18:33 +0100 --></label><!-- Compiling part/part-end @ Wed, 29 Nov 2017 01:18:33 +0100 --></div><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 01:18:33 +0100 --><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><!-- Compiling text/text-begin @ Wed, 29 Nov 2017 01:18:33 +0100 --><?php $a6_class='name';$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 part/part-end @ Wed, 29 Nov 2017 01:18:33 +0100 --></div><!-- Compiling part/part-end @ Wed, 29 Nov 2017 01:18:33 +0100 --></div>
+ </div></fieldset>
+ <fieldset class="<?php echo 1?" open":"" ?><?php echo 1?" show":"" ?>"><legend><div class="arrow-right closed" /><div class="arrow-down open" /><?php echo lang('MENU_PROFILE_MAIL') ?></legend><div><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 01:18:33 +0100 --><?php $a4_class='line'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 01:18:33 +0100 --><?php $a5_class='label'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><!-- Compiling label/label-begin @ Wed, 29 Nov 2017 01:18:33 +0100 --><?php $a6_for='mail';$a6_key='user_mail'; ?><label<?php if (isset($a6_for)) { ?> for="<?php echo REQUEST_ID ?>_<?php echo $a6_for ?><?php if (!empty($a6_value)) echo '_'.$a6_value ?>" <?php if(hasLang(@$a6_key.'_desc')) { ?> title="<?php echo lang(@$a6_key.'_desc')?>"<?php } ?> class="label"<?php } ?>>
+<?php if (isset($a6_key)) { echo lang($a6_key); ?><?php if (isset($a6_text)) { echo $a6_text; } ?><?php } ?><?php unset($a6_for,$a6_key) ?><!-- Compiling label/label-end @ Wed, 29 Nov 2017 01:18:33 +0100 --></label><!-- Compiling part/part-end @ Wed, 29 Nov 2017 01:18:33 +0100 --></div><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 01:18:33 +0100 --><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><!-- Compiling text/text-begin @ Wed, 29 Nov 2017 01:18:33 +0100 --><?php $a6_class='text';$a6_var='mail';$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 newline/newline-begin @ Wed, 29 Nov 2017 01:18:33 +0100 --><br/><!-- Compiling newline/newline-begin @ Wed, 29 Nov 2017 01:18:33 +0100 --><br/><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 01:18:33 +0100 --><?php $a6_class='clickable'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><!-- Compiling link/link-begin @ Wed, 29 Nov 2017 01:18:33 +0100 --><?php $a7_title='';$a7_type='dialog';$a7_class='action';$a7_action='profile';$a7_subaction='mail';$a7_name=lang('mail');$a7_frame='_self';$a7_modal=false; ?><?php
+ $params = array();
+ $a7_url='';
+ $tmp_url = '';
+ $a7_target = $view;
+ $tmp_href = 'javascript:void(0);';
+ switch( $a7_type )
+ {
+ case 'post':
+ $json = new JSON();
+ $tmp_data = $json->encode( array('action'=>!empty($a7_action)?$a7_action:$this->actionName,'subaction'=>!empty($a7_subaction)?$a7_subaction:$this->subActionName,'id'=>!empty($a7_id)?$a7_id:$this->getRequestId())
+ +array(REQ_PARAM_TOKEN=>token())
+ +$params );
+ $tmp_data = str_replace("\n",'',str_replace('"','"',$tmp_data));
+ break;
+ case 'html';
+ $tmp_href = $a7_url;
+ default:
+ $tmp_data = '';
+ }
+?><a data-url="<?php echo $a7_url ?>" target="<?php echo $a7_frame ?>"<?php if (isset($a7_name)) { ?> data-name="<?php echo $a7_name ?>" name="<?php echo $a7_name ?>"<?php }else{ ?> href="<?php echo $tmp_href ?>" <?php } ?> class="<?php echo $a7_class ?>" data-id="<?php echo @$a7_id ?>" data-type="<?php echo $a7_type ?>" data-action="<?php echo @$a7_action ?>" data-method="<?php echo @$a7_subaction ?>" data-data="<?php echo $tmp_data ?>" <?php if (isset($a7_accesskey)) echo ' accesskey="'.$a7_accesskey.'"' ?> title="<?php echo encodeHtml($a7_title) ?>"><?php unset($a7_title,$a7_type,$a7_class,$a7_action,$a7_subaction,$a7_name,$a7_frame,$a7_modal) ?><!-- Compiling text/text-begin @ Wed, 29 Nov 2017 01:18:33 +0100 --><?php $a8_class='text';$a8_key='edit';$a8_escape=true;$a8_cut='both'; ?><?php
+ $a8_title = '';
+ $tmp_tag = 'span';
+?><<?php echo $tmp_tag ?> class="<?php echo $a8_class ?>" title="<?php echo $a8_title ?>"><?php
+ $langF = $a8_escape?'langHtml':'lang';
+ $tmp_text = $langF($a8_key);
+ $tmp_text = nl2br($tmp_text);
+ echo $tmp_text;
+ unset($tmp_text);
+?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_key,$a8_escape,$a8_cut) ?><!-- Compiling link/link-end @ Wed, 29 Nov 2017 01:18:33 +0100 --></a><!-- Compiling part/part-end @ Wed, 29 Nov 2017 01:18:33 +0100 --></div><!-- Compiling part/part-end @ Wed, 29 Nov 2017 01:18:33 +0100 --></div><!-- Compiling part/part-end @ Wed, 29 Nov 2017 01:18:33 +0100 --></div>
+ </div></fieldset>
+ <fieldset class="<?php echo 1?" open":"" ?><?php echo 1?" show":"" ?>"><legend><div class="arrow-right closed" /><div class="arrow-down open" /><?php echo lang('GLOBAL_PROP') ?></legend><div><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 01:18:33 +0100 --><?php $a4_class='line'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 01:18:33 +0100 --><?php $a5_class='label'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><!-- Compiling label/label-begin @ Wed, 29 Nov 2017 01:18:33 +0100 --><?php $a6_for='fullname';$a6_key='user_fullname'; ?><label<?php if (isset($a6_for)) { ?> for="<?php echo REQUEST_ID ?>_<?php echo $a6_for ?><?php if (!empty($a6_value)) echo '_'.$a6_value ?>" <?php if(hasLang(@$a6_key.'_desc')) { ?> title="<?php echo lang(@$a6_key.'_desc')?>"<?php } ?> class="label"<?php } ?>>
+<?php if (isset($a6_key)) { echo lang($a6_key); ?><?php if (isset($a6_text)) { echo $a6_text; } ?><?php } ?><?php unset($a6_for,$a6_key) ?><!-- Compiling label/label-end @ Wed, 29 Nov 2017 01:18:33 +0100 --></label><!-- Compiling part/part-end @ Wed, 29 Nov 2017 01:18:33 +0100 --></div><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 01:18:33 +0100 --><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><!-- Compiling input/input-begin @ Wed, 29 Nov 2017 01:18:33 +0100 --><?php $a6_class='text';$a6_default='';$a6_type='text';$a6_name='fullname';$a6_size='';$a6_maxlength='128';$a6_onchange='';$a6_readonly=false;$a6_hint='';$a6_icon=''; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a6_readonly=true;
+ if ($a6_readonly && empty($$a6_name)) $$a6_name = '- '.lang('EMPTY').' -';
+ if(!isset($a6_default)) $a6_default='';
+ $tmp_value = Text::encodeHtml(isset($$a6_name)?$$a6_name:$a6_default);
+?><?php if (!$a6_readonly || $a6_type=='hidden') {
+?><div class="<?php echo $a6_type!='hidden'?'inputholder':'inputhidden' ?>"><input<?php if ($a6_readonly) echo ' disabled="true"' ?><?php if ($a6_hint) echo ' data-hint="'.$a6_hint.'"'; ?> id="<?php echo REQUEST_ID ?>_<?php echo $a6_name ?><?php if ($a6_readonly) echo '_disabled' ?>" name="<?php echo $a6_name ?><?php if ($a6_readonly) echo '_disabled' ?>" type="<?php echo $a6_type ?>" maxlength="<?php echo $a6_maxlength ?>" class="<?php echo str_replace(',',' ',$a6_class) ?>" value="<?php echo $tmp_value ?>" /><?php if ($a6_icon) echo '<img src="'.$image_dir.'icon_'.$a6_icon.IMG_ICON_EXT.'" width="16" height="16" />'; ?></div><?php
+if ($a6_readonly) {
+?><input type="hidden" id="<?php echo REQUEST_ID ?>_<?php echo $a6_name ?>" name="<?php echo $a6_name ?>" value="<?php echo $tmp_value ?>" /><?php
+ } } else { ?><a title="<?php echo langHtml('EDIT') ?>" href="<?php echo Html::url($actionName,$subActionName,0,array('mode'=>'edit')) ?>"><span class="<?php echo $a6_class ?>"><?php echo $tmp_value ?></span></a><?php } ?><?php unset($a6_class,$a6_default,$a6_type,$a6_name,$a6_size,$a6_maxlength,$a6_onchange,$a6_readonly,$a6_hint,$a6_icon) ?><!-- Compiling part/part-end @ Wed, 29 Nov 2017 01:18:33 +0100 --></div><!-- Compiling part/part-end @ Wed, 29 Nov 2017 01:18:33 +0100 --></div><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 01:18:33 +0100 --><?php $a4_class='line'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 01:18:33 +0100 --><?php $a5_class='label'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><!-- Compiling label/label-begin @ Wed, 29 Nov 2017 01:18:33 +0100 --><?php $a6_for='tel';$a6_key='user_tel'; ?><label<?php if (isset($a6_for)) { ?> for="<?php echo REQUEST_ID ?>_<?php echo $a6_for ?><?php if (!empty($a6_value)) echo '_'.$a6_value ?>" <?php if(hasLang(@$a6_key.'_desc')) { ?> title="<?php echo lang(@$a6_key.'_desc')?>"<?php } ?> class="label"<?php } ?>>
+<?php if (isset($a6_key)) { echo lang($a6_key); ?><?php if (isset($a6_text)) { echo $a6_text; } ?><?php } ?><?php unset($a6_for,$a6_key) ?><!-- Compiling label/label-end @ Wed, 29 Nov 2017 01:18:33 +0100 --></label><!-- Compiling part/part-end @ Wed, 29 Nov 2017 01:18:33 +0100 --></div><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 01:18:33 +0100 --><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><!-- Compiling input/input-begin @ Wed, 29 Nov 2017 01:18:33 +0100 --><?php $a6_class='text';$a6_default='';$a6_type='text';$a6_name='tel';$a6_size='40';$a6_maxlength='128';$a6_onchange='';$a6_readonly=false;$a6_hint='';$a6_icon=''; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a6_readonly=true;
+ if ($a6_readonly && empty($$a6_name)) $$a6_name = '- '.lang('EMPTY').' -';
+ if(!isset($a6_default)) $a6_default='';
+ $tmp_value = Text::encodeHtml(isset($$a6_name)?$$a6_name:$a6_default);
+?><?php if (!$a6_readonly || $a6_type=='hidden') {
+?><div class="<?php echo $a6_type!='hidden'?'inputholder':'inputhidden' ?>"><input<?php if ($a6_readonly) echo ' disabled="true"' ?><?php if ($a6_hint) echo ' data-hint="'.$a6_hint.'"'; ?> id="<?php echo REQUEST_ID ?>_<?php echo $a6_name ?><?php if ($a6_readonly) echo '_disabled' ?>" name="<?php echo $a6_name ?><?php if ($a6_readonly) echo '_disabled' ?>" type="<?php echo $a6_type ?>" maxlength="<?php echo $a6_maxlength ?>" class="<?php echo str_replace(',',' ',$a6_class) ?>" value="<?php echo $tmp_value ?>" /><?php if ($a6_icon) echo '<img src="'.$image_dir.'icon_'.$a6_icon.IMG_ICON_EXT.'" width="16" height="16" />'; ?></div><?php
+if ($a6_readonly) {
+?><input type="hidden" id="<?php echo REQUEST_ID ?>_<?php echo $a6_name ?>" name="<?php echo $a6_name ?>" value="<?php echo $tmp_value ?>" /><?php
+ } } else { ?><a title="<?php echo langHtml('EDIT') ?>" href="<?php echo Html::url($actionName,$subActionName,0,array('mode'=>'edit')) ?>"><span class="<?php echo $a6_class ?>"><?php echo $tmp_value ?></span></a><?php } ?><?php unset($a6_class,$a6_default,$a6_type,$a6_name,$a6_size,$a6_maxlength,$a6_onchange,$a6_readonly,$a6_hint,$a6_icon) ?><!-- Compiling part/part-end @ Wed, 29 Nov 2017 01:18:33 +0100 --></div><!-- Compiling part/part-end @ Wed, 29 Nov 2017 01:18:33 +0100 --></div><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 01:18:33 +0100 --><?php $a4_class='line'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 01:18:33 +0100 --><?php $a5_class='label'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><!-- Compiling label/label-begin @ Wed, 29 Nov 2017 01:18:33 +0100 --><?php $a6_for='desc';$a6_key='user_desc'; ?><label<?php if (isset($a6_for)) { ?> for="<?php echo REQUEST_ID ?>_<?php echo $a6_for ?><?php if (!empty($a6_value)) echo '_'.$a6_value ?>" <?php if(hasLang(@$a6_key.'_desc')) { ?> title="<?php echo lang(@$a6_key.'_desc')?>"<?php } ?> class="label"<?php } ?>>
+<?php if (isset($a6_key)) { echo lang($a6_key); ?><?php if (isset($a6_text)) { echo $a6_text; } ?><?php } ?><?php unset($a6_for,$a6_key) ?><!-- Compiling label/label-end @ Wed, 29 Nov 2017 01:18:33 +0100 --></label><!-- Compiling part/part-end @ Wed, 29 Nov 2017 01:18:33 +0100 --></div><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 01:18:33 +0100 --><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><!-- Compiling input/input-begin @ Wed, 29 Nov 2017 01:18:33 +0100 --><?php $a6_class='text';$a6_default='';$a6_type='text';$a6_name='desc';$a6_size='40';$a6_maxlength='128';$a6_onchange='';$a6_readonly=false;$a6_hint='';$a6_icon=''; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a6_readonly=true;
+ if ($a6_readonly && empty($$a6_name)) $$a6_name = '- '.lang('EMPTY').' -';
+ if(!isset($a6_default)) $a6_default='';
+ $tmp_value = Text::encodeHtml(isset($$a6_name)?$$a6_name:$a6_default);
+?><?php if (!$a6_readonly || $a6_type=='hidden') {
+?><div class="<?php echo $a6_type!='hidden'?'inputholder':'inputhidden' ?>"><input<?php if ($a6_readonly) echo ' disabled="true"' ?><?php if ($a6_hint) echo ' data-hint="'.$a6_hint.'"'; ?> id="<?php echo REQUEST_ID ?>_<?php echo $a6_name ?><?php if ($a6_readonly) echo '_disabled' ?>" name="<?php echo $a6_name ?><?php if ($a6_readonly) echo '_disabled' ?>" type="<?php echo $a6_type ?>" maxlength="<?php echo $a6_maxlength ?>" class="<?php echo str_replace(',',' ',$a6_class) ?>" value="<?php echo $tmp_value ?>" /><?php if ($a6_icon) echo '<img src="'.$image_dir.'icon_'.$a6_icon.IMG_ICON_EXT.'" width="16" height="16" />'; ?></div><?php
+if ($a6_readonly) {
+?><input type="hidden" id="<?php echo REQUEST_ID ?>_<?php echo $a6_name ?>" name="<?php echo $a6_name ?>" value="<?php echo $tmp_value ?>" /><?php
+ } } else { ?><a title="<?php echo langHtml('EDIT') ?>" href="<?php echo Html::url($actionName,$subActionName,0,array('mode'=>'edit')) ?>"><span class="<?php echo $a6_class ?>"><?php echo $tmp_value ?></span></a><?php } ?><?php unset($a6_class,$a6_default,$a6_type,$a6_name,$a6_size,$a6_maxlength,$a6_onchange,$a6_readonly,$a6_hint,$a6_icon) ?><!-- Compiling part/part-end @ Wed, 29 Nov 2017 01:18:33 +0100 --></div><!-- Compiling part/part-end @ Wed, 29 Nov 2017 01:18:33 +0100 --></div><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 01:18:33 +0100 --><?php $a4_class='line'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 01:18:33 +0100 --><?php $a5_class='label'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><!-- Compiling label/label-begin @ Wed, 29 Nov 2017 01:18:33 +0100 --><?php $a6_for='style';$a6_key='user_style'; ?><label<?php if (isset($a6_for)) { ?> for="<?php echo REQUEST_ID ?>_<?php echo $a6_for ?><?php if (!empty($a6_value)) echo '_'.$a6_value ?>" <?php if(hasLang(@$a6_key.'_desc')) { ?> title="<?php echo lang(@$a6_key.'_desc')?>"<?php } ?> class="label"<?php } ?>>
+<?php if (isset($a6_key)) { echo lang($a6_key); ?><?php if (isset($a6_text)) { echo $a6_text; } ?><?php } ?><?php unset($a6_for,$a6_key) ?><!-- Compiling label/label-end @ Wed, 29 Nov 2017 01:18:33 +0100 --></label><!-- Compiling part/part-end @ Wed, 29 Nov 2017 01:18:33 +0100 --></div><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 01:18:33 +0100 --><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><!-- Compiling selectbox/selectbox-begin @ Wed, 29 Nov 2017 01:18:33 +0100 --><?php $a6_list='allstyles';$a6_name='style';$a6_default=@$conf['interface']['style']['default'];$a6_onchange='';$a6_title='';$a6_class='';$a6_addempty=false;$a6_multiple=false;$a6_size='1';$a6_lang=false; ?><?php
+$a6_readonly=false;
+$a6_tmp_list = $$a6_list;
+if ($this->isEditable() && !$this->isEditMode())
+{
+ echo empty($$a6_name)?'- '.lang('EMPTY').' -':$a6_tmp_list[$$a6_name];
+}
+else
+{
+if ( $a6_addempty!==FALSE )
+{
+ if ($a6_addempty===TRUE)
+ $a6_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a6_tmp_list;
+ else
+ $a6_tmp_list = array(''=>'- '.lang($a6_addempty).' -')+$a6_tmp_list;
+}
+?><div class="inputholder"><select<?php if ($a6_readonly) echo ' disabled="disabled"' ?> id="<?php echo REQUEST_ID ?>_<?php echo $a6_name ?>" name="<?php echo $a6_name; if ($a6_multiple) echo '[]'; ?>" onchange="<?php echo $a6_onchange ?>" title="<?php echo $a6_title ?>" class="<?php echo $a6_class ?>"<?php
+if (count($$a6_list)<=1) echo ' disabled="disabled"';
+if ($a6_multiple) echo ' multiple="multiple"';
+echo ' size="'.intval($a6_size).'"';
+?>><?php
+ if ( isset($$a6_name) && isset($a6_tmp_list[$$a6_name]) )
+ $a6_tmp_default = $$a6_name;
+ elseif ( isset($a6_default) )
+ $a6_tmp_default = $a6_default;
+ else
+ $a6_tmp_default = '';
+ foreach( $a6_tmp_list as $box_key=>$box_value )
+ {
+ if ( is_array($box_value) )
+ {
+ $box_key = $box_value['key' ];
+ $box_title = $box_value['title'];
+ $box_value = $box_value['value'];
+ }
+ elseif( $a6_lang )
+ {
+ $box_title = lang( $box_value.'_DESC');
+ $box_value = lang( $box_value );
+ }
+ else
+ {
+ $box_title = '';
+ }
+ echo '<option class="'.$a6_class.'" value="'.$box_key.'" title="'.$box_title.'"';
+ if ((string)$box_key==$a6_tmp_default)
+ echo ' selected="selected"';
+ echo '>'.$box_value.'</option>';
+ }
+?></select></div><?php
+if (count($$a6_list)==0) echo '<input type="hidden" name="'.$a6_name.'" value="" />';
+if (count($$a6_list)==1) echo '<input type="hidden" name="'.$a6_name.'" value="'.$box_key.'" />';
+}
+?><?php unset($a6_list,$a6_name,$a6_default,$a6_onchange,$a6_title,$a6_class,$a6_addempty,$a6_multiple,$a6_size,$a6_lang) ?><!-- Compiling part/part-end @ Wed, 29 Nov 2017 01:18:33 +0100 --></div><!-- Compiling part/part-end @ Wed, 29 Nov 2017 01:18:33 +0100 --></div><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 01:18:33 +0100 --><?php $a4_class='line'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 01:18:33 +0100 --><?php $a5_class='label'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><!-- Compiling label/label-begin @ Wed, 29 Nov 2017 01:18:33 +0100 --><?php $a6_for='timezone_offset'; ?><label<?php if (isset($a6_for)) { ?> for="<?php echo REQUEST_ID ?>_<?php echo $a6_for ?><?php if (!empty($a6_value)) echo '_'.$a6_value ?>" <?php if(hasLang(@$a6_key.'_desc')) { ?> title="<?php echo lang(@$a6_key.'_desc')?>"<?php } ?> class="label"<?php } ?>>
+<?php if (isset($a6_key)) { echo lang($a6_key); ?><?php if (isset($a6_text)) { echo $a6_text; } ?><?php } ?><?php unset($a6_for) ?><!-- Compiling text/text-begin @ Wed, 29 Nov 2017 01:18:33 +0100 --><?php $a7_class='text';$a7_key='timezone';$a7_escape=true;$a7_cut='both'; ?><?php
+ $a7_title = '';
+ $tmp_tag = 'span';
+?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php
+ $langF = $a7_escape?'langHtml':'lang';
+ $tmp_text = $langF($a7_key);
+ $tmp_text = nl2br($tmp_text);
+ echo $tmp_text;
+ unset($tmp_text);
+?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_key,$a7_escape,$a7_cut) ?><!-- Compiling label/label-end @ Wed, 29 Nov 2017 01:18:33 +0100 --></label><!-- Compiling part/part-end @ Wed, 29 Nov 2017 01:18:33 +0100 --></div><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 01:18:33 +0100 --><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><!-- Compiling selectbox/selectbox-begin @ Wed, 29 Nov 2017 01:18:33 +0100 --><?php $a6_list='timezone_list';$a6_name='timezone';$a6_onchange='';$a6_title='';$a6_class='';$a6_addempty=true;$a6_multiple=false;$a6_size='1';$a6_lang=false; ?><?php
+$a6_readonly=false;
+$a6_tmp_list = $$a6_list;
+if ($this->isEditable() && !$this->isEditMode())
+{
+ echo empty($$a6_name)?'- '.lang('EMPTY').' -':$a6_tmp_list[$$a6_name];
+}
+else
+{
+if ( $a6_addempty!==FALSE )
+{
+ if ($a6_addempty===TRUE)
+ $a6_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a6_tmp_list;
+ else
+ $a6_tmp_list = array(''=>'- '.lang($a6_addempty).' -')+$a6_tmp_list;
+}
+?><div class="inputholder"><select<?php if ($a6_readonly) echo ' disabled="disabled"' ?> id="<?php echo REQUEST_ID ?>_<?php echo $a6_name ?>" name="<?php echo $a6_name; if ($a6_multiple) echo '[]'; ?>" onchange="<?php echo $a6_onchange ?>" title="<?php echo $a6_title ?>" class="<?php echo $a6_class ?>"<?php
+if (count($$a6_list)<=1) echo ' disabled="disabled"';
+if ($a6_multiple) echo ' multiple="multiple"';
+echo ' size="'.intval($a6_size).'"';
+?>><?php
+ if ( isset($$a6_name) && isset($a6_tmp_list[$$a6_name]) )
+ $a6_tmp_default = $$a6_name;
+ elseif ( isset($a6_default) )
+ $a6_tmp_default = $a6_default;
+ else
+ $a6_tmp_default = '';
+ foreach( $a6_tmp_list as $box_key=>$box_value )
+ {
+ if ( is_array($box_value) )
+ {
+ $box_key = $box_value['key' ];
+ $box_title = $box_value['title'];
+ $box_value = $box_value['value'];
+ }
+ elseif( $a6_lang )
+ {
+ $box_title = lang( $box_value.'_DESC');
+ $box_value = lang( $box_value );
+ }
+ else
+ {
+ $box_title = '';
+ }
+ echo '<option class="'.$a6_class.'" value="'.$box_key.'" title="'.$box_title.'"';
+ if ((string)$box_key==$a6_tmp_default)
+ echo ' selected="selected"';
+ echo '>'.$box_value.'</option>';
+ }
+?></select></div><?php
+if (count($$a6_list)==0) echo '<input type="hidden" name="'.$a6_name.'" value="" />';
+if (count($$a6_list)==1) echo '<input type="hidden" name="'.$a6_name.'" value="'.$box_key.'" />';
+}
+?><?php unset($a6_list,$a6_name,$a6_onchange,$a6_title,$a6_class,$a6_addempty,$a6_multiple,$a6_size,$a6_lang) ?><!-- Compiling part/part-end @ Wed, 29 Nov 2017 01:18:33 +0100 --></div><!-- Compiling part/part-end @ Wed, 29 Nov 2017 01:18:33 +0100 --></div><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 01:18:33 +0100 --><?php $a4_class='line'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 01:18:33 +0100 --><?php $a5_class='label'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><!-- Compiling label/label-begin @ Wed, 29 Nov 2017 01:18:33 +0100 --><?php $a6_for=''; ?><label<?php if (isset($a6_for)) { ?> for="<?php echo REQUEST_ID ?>_<?php echo $a6_for ?><?php if (!empty($a6_value)) echo '_'.$a6_value ?>" <?php if(hasLang(@$a6_key.'_desc')) { ?> title="<?php echo lang(@$a6_key.'_desc')?>"<?php } ?> class="label"<?php } ?>>
+<?php if (isset($a6_key)) { echo lang($a6_key); ?><?php if (isset($a6_text)) { echo $a6_text; } ?><?php } ?><?php unset($a6_for) ?><!-- Compiling text/text-begin @ Wed, 29 Nov 2017 01:18:33 +0100 --><?php $a7_class='text';$a7_key='language';$a7_escape=true;$a7_cut='both'; ?><?php
+ $a7_title = '';
+ $tmp_tag = 'span';
+?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php
+ $langF = $a7_escape?'langHtml':'lang';
+ $tmp_text = $langF($a7_key);
+ $tmp_text = nl2br($tmp_text);
+ echo $tmp_text;
+ unset($tmp_text);
+?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_key,$a7_escape,$a7_cut) ?><!-- Compiling label/label-end @ Wed, 29 Nov 2017 01:18:33 +0100 --></label><!-- Compiling part/part-end @ Wed, 29 Nov 2017 01:18:33 +0100 --></div><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 01:18:33 +0100 --><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><!-- Compiling selectbox/selectbox-begin @ Wed, 29 Nov 2017 01:18:33 +0100 --><?php $a6_list='language_list';$a6_name='language';$a6_onchange='';$a6_title='';$a6_class='';$a6_addempty=true;$a6_multiple=false;$a6_size='1';$a6_lang=false; ?><?php
+$a6_readonly=false;
+$a6_tmp_list = $$a6_list;
+if ($this->isEditable() && !$this->isEditMode())
+{
+ echo empty($$a6_name)?'- '.lang('EMPTY').' -':$a6_tmp_list[$$a6_name];
+}
+else
+{
+if ( $a6_addempty!==FALSE )
+{
+ if ($a6_addempty===TRUE)
+ $a6_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a6_tmp_list;
+ else
+ $a6_tmp_list = array(''=>'- '.lang($a6_addempty).' -')+$a6_tmp_list;
+}
+?><div class="inputholder"><select<?php if ($a6_readonly) echo ' disabled="disabled"' ?> id="<?php echo REQUEST_ID ?>_<?php echo $a6_name ?>" name="<?php echo $a6_name; if ($a6_multiple) echo '[]'; ?>" onchange="<?php echo $a6_onchange ?>" title="<?php echo $a6_title ?>" class="<?php echo $a6_class ?>"<?php
+if (count($$a6_list)<=1) echo ' disabled="disabled"';
+if ($a6_multiple) echo ' multiple="multiple"';
+echo ' size="'.intval($a6_size).'"';
+?>><?php
+ if ( isset($$a6_name) && isset($a6_tmp_list[$$a6_name]) )
+ $a6_tmp_default = $$a6_name;
+ elseif ( isset($a6_default) )
+ $a6_tmp_default = $a6_default;
+ else
+ $a6_tmp_default = '';
+ foreach( $a6_tmp_list as $box_key=>$box_value )
+ {
+ if ( is_array($box_value) )
+ {
+ $box_key = $box_value['key' ];
+ $box_title = $box_value['title'];
+ $box_value = $box_value['value'];
+ }
+ elseif( $a6_lang )
+ {
+ $box_title = lang( $box_value.'_DESC');
+ $box_value = lang( $box_value );
+ }
+ else
+ {
+ $box_title = '';
+ }
+ echo '<option class="'.$a6_class.'" value="'.$box_key.'" title="'.$box_title.'"';
+ if ((string)$box_key==$a6_tmp_default)
+ echo ' selected="selected"';
+ echo '>'.$box_value.'</option>';
+ }
+?></select></div><?php
+if (count($$a6_list)==0) echo '<input type="hidden" name="'.$a6_name.'" value="" />';
+if (count($$a6_list)==1) echo '<input type="hidden" name="'.$a6_name.'" value="'.$box_key.'" />';
+}
+?><?php unset($a6_list,$a6_name,$a6_onchange,$a6_title,$a6_class,$a6_addempty,$a6_multiple,$a6_size,$a6_lang) ?><!-- Compiling part/part-end @ Wed, 29 Nov 2017 01:18:33 +0100 --></div><!-- Compiling part/part-end @ Wed, 29 Nov 2017 01:18:33 +0100 --></div>
+ </div></fieldset>
+ <fieldset class="<?php echo 1?" open":"" ?><?php echo 1?" show":"" ?>"><legend><div class="arrow-right closed" /><div class="arrow-down open" /><?php echo lang('security') ?></legend><div><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 01:18:33 +0100 --><?php $a4_class='line'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 01:18:33 +0100 --><?php $a5_class='label'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><!-- Compiling text/text-begin @ Wed, 29 Nov 2017 01:18:33 +0100 --><?php $a6_class='text';$a6_text=lang('user_password_expires');$a6_escape=true;$a6_cut='both'; ?><?php
+ $a6_title = '';
+ $tmp_tag = 'span';
+?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php
+ $langF = $a6_escape?'langHtml':'lang';
+ $tmp_text = $langF($a6_text);
+ $tmp_text = nl2br($tmp_text);
+ echo $tmp_text;
+ unset($tmp_text);
+?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_text,$a6_escape,$a6_cut) ?><!-- Compiling part/part-end @ Wed, 29 Nov 2017 01:18:33 +0100 --></div><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 01:18:33 +0100 --><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?>
+ <?php include_once( OR_THEMES_DIR.'default/include/html/date/component-date.php') ?><?php component_date($passwordExpires) ?>
+ <!-- Compiling part/part-end @ Wed, 29 Nov 2017 01:18:33 +0100 --></div><!-- Compiling part/part-end @ Wed, 29 Nov 2017 01:18:33 +0100 --></div><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 01:18:33 +0100 --><?php $a4_class='line'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 01:18:33 +0100 --><?php $a5_class='label'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><!-- Compiling part/part-end @ Wed, 29 Nov 2017 01:18:33 +0100 --></div><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 01:18:33 +0100 --><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?>
+ <?php { $tmpname = 'totp';$default = '';$readonly = '';
+ if ( isset($$tmpname) )
+ $checked = $$tmpname;
+ else
+ $checked = $default;
+
+ ?><input class="checkbox" type="checkbox" id="<?php echo REQUEST_ID ?>_<?php echo $tmpname ?>" name="<?php echo $tmpname ?>" <?php if ($readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?> /><?php
+
+ if ( $readonly && $checked )
+ {
+ ?><input type="hidden" name="<?php echo $tmpname ?>" value="1" /><?php
+ }
+ } ?>
+ <!-- Compiling label/label-begin @ Wed, 29 Nov 2017 01:18:33 +0100 --><?php $a6_for='totp';$a6_key='user_totp'; ?><label<?php if (isset($a6_for)) { ?> for="<?php echo REQUEST_ID ?>_<?php echo $a6_for ?><?php if (!empty($a6_value)) echo '_'.$a6_value ?>" <?php if(hasLang(@$a6_key.'_desc')) { ?> title="<?php echo lang(@$a6_key.'_desc')?>"<?php } ?> class="label"<?php } ?>>
+<?php if (isset($a6_key)) { echo lang($a6_key); ?><?php if (isset($a6_text)) { echo $a6_text; } ?><?php } ?><?php unset($a6_for,$a6_key) ?><!-- Compiling label/label-end @ Wed, 29 Nov 2017 01:18:33 +0100 --></label>
+ <div class="qrcode" data-qrcode="<?php echo $totpSecretUrl ?>" title="<?php echo $totpSecretUrl ?>"></div>
+ <!-- Compiling part/part-end @ Wed, 29 Nov 2017 01:18:33 +0100 --></div><!-- Compiling part/part-end @ Wed, 29 Nov 2017 01:18:33 +0100 --></div><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 01:18:33 +0100 --><?php $a4_class='line'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 01:18:33 +0100 --><?php $a5_class='label'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><!-- Compiling part/part-end @ Wed, 29 Nov 2017 01:18:33 +0100 --></div><!-- Compiling part/part-begin @ Wed, 29 Nov 2017 01:18:33 +0100 --><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?>
+ <?php { $tmpname = 'hotp';$default = '';$readonly = '';
+ if ( isset($$tmpname) )
+ $checked = $$tmpname;
+ else
+ $checked = $default;
+
+ ?><input class="checkbox" type="checkbox" id="<?php echo REQUEST_ID ?>_<?php echo $tmpname ?>" name="<?php echo $tmpname ?>" <?php if ($readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?> /><?php
+
+ if ( $readonly && $checked )
+ {
+ ?><input type="hidden" name="<?php echo $tmpname ?>" value="1" /><?php
+ }
+ } ?>
+ <!-- Compiling label/label-begin @ Wed, 29 Nov 2017 01:18:33 +0100 --><?php $a6_for='hotp';$a6_key='user_hotp'; ?><label<?php if (isset($a6_for)) { ?> for="<?php echo REQUEST_ID ?>_<?php echo $a6_for ?><?php if (!empty($a6_value)) echo '_'.$a6_value ?>" <?php if(hasLang(@$a6_key.'_desc')) { ?> title="<?php echo lang(@$a6_key.'_desc')?>"<?php } ?> class="label"<?php } ?>>
+<?php if (isset($a6_key)) { echo lang($a6_key); ?><?php if (isset($a6_text)) { echo $a6_text; } ?><?php } ?><?php unset($a6_for,$a6_key) ?><!-- Compiling label/label-end @ Wed, 29 Nov 2017 01:18:33 +0100 --></label>
+ <div class="qrcode" data-qrcode="<?php echo $hotpSecretUrl ?>" title="<?php echo $hotpSecretUrl ?>"></div>
+ <!-- Compiling part/part-end @ Wed, 29 Nov 2017 01:18:33 +0100 --></div><!-- Compiling part/part-end @ Wed, 29 Nov 2017 01:18:33 +0100 --></div>
+ </div></fieldset>
+
+<div class="bottom">
+ <div class="command ">
+
+ <input type="button" class="submit ok" value="<?php echo lang('global_save') ?>" onclick="$(this).closest('div.sheet').find('form').submit(); " />
+
+ <!-- Cancel-Button nicht anzeigen, wenn cancel==false. --> </div>
+</div>
+
+</form>