openrat-cms

# OpenRat Content Management System
git clone http://git.code.weiherhei.de/openrat-cms.git
Log | Files | Refs

advanced.php (17272B)


      1 <?php if (!defined('OR_TITLE')) die('Forbidden'); ?>
      2 	<?php $if2=(config('security','disable_dynamic_code')); if($if2){?>
      3 		<?php $if3=(!true); if($if3){?>
      4 			<div class="message warn">
      5 				<span><?php echo nl2br(encodeHtml(htmlentities(lang(''.'NOTICE_CODE_DISABLED'.'')))); ?></span>
      6 			</div>
      7 		<?php } ?>
      8 	<?php } ?>
      9 	<form name="" target="_self" data-target="view" action="./" data-method="advanced" data-action="element" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" class="or-form element" data-async="false" data-autosave="false"><input type="hidden" name="<?php echo REQ_PARAM_TOKEN ?>" value="<?php echo token() ?>" /><input type="hidden" name="<?php echo REQ_PARAM_ACTION ?>" value="element" /><input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="advanced" /><input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo OR_ID ?>" />
     10 		<fieldset class="toggle-open-close<?php echo true?" open":" closed" ?><?php echo true?" show":"" ?>"><div class="closable">
     11 			<?php $if4=(isset($subtype)); if($if4){?>
     12 				<div class="line">
     13 					<div class="label">
     14 						<span><?php echo nl2br(encodeHtml(htmlentities(lang('ELEMENT_SUBTYPE')))); ?></span>
     15 					</div>
     16 					<div class="input">
     17 						<?php $if7=(isset($subtypes)); if($if7){?>
     18 							<div class="inputholder"><select  id="<?php echo REQUEST_ID ?>_subtype" name="subtype" title="" class="" size="1"><?php include_once( 'modules/template-engine/components/html/selectbox/component-select-box.php') ?><?php component_select_option_list($subtypes,$subtype,1,0) ?><?php if (count($subtypes)==0) { ?><input type="hidden" name="subtype" value="" /><?php } ?><?php if (count($subtypes)==1) { ?><input type="hidden" name="subtype" value="<?php echo array_keys($subtypes)[0] ?>" /><?php } ?>
     19 							</select></div>
     20 						<?php } ?>
     21 						<?php $if7=!(isset($subtypes)); if($if7){?>
     22 							<div class="inputholder"><input id="<?php echo REQUEST_ID ?>_subtype" name="<?php if ('') echo ''.'_' ?>subtype<?php if (false) echo '_disabled' ?>" type="text" maxlength="256" class="" value="<?php echo Text::encodeHtml(@$subtype) ?>" /><?php if (false) { ?><input type="hidden" name="subtype" value="<?php $subtype ?>"/><?php } ?></div>
     23 						<?php } ?>
     24 					</div>
     25 				</div>
     26 			<?php } ?>
     27 			<?php $if4=(isset($with_icon)); if($if4){?>
     28 				<div class="line">
     29 					<div class="label">
     30 					</div>
     31 					<div class="input">
     32 						<?php { $tmpname     = 'with_icon';$default  = false;$readonly = false;$required = false;		
     33 		if	( isset($$tmpname) )
     34 			$checked = $$tmpname;
     35 		else
     36 			$checked = $default;
     37 
     38 		?><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( $required ) echo ' required="required"' ?> /><?php
     39 
     40 		if ( $readonly && $checked )
     41 		{ 
     42 		?><input type="hidden" name="<?php echo $tmpname ?>" value="1" /><?php
     43 		}
     44 		} ?>
     45 						<label for="<?php echo REQUEST_ID ?>_with_icon" class="label">
     46 							<span><?php echo nl2br(encodeHtml(htmlentities(lang('EL_PROP_WITH_ICON')))); ?></span>
     47 						</label>
     48 					</div>
     49 				</div>
     50 			<?php } ?>
     51 			<?php $if4=(isset($inherit)); if($if4){?>
     52 				<div class="line">
     53 					<div class="label">
     54 					</div>
     55 					<div class="input">
     56 						<?php { $tmpname     = 'inherit';$default  = false;$readonly = false;$required = false;		
     57 		if	( isset($$tmpname) )
     58 			$checked = $$tmpname;
     59 		else
     60 			$checked = $default;
     61 
     62 		?><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( $required ) echo ' required="required"' ?> /><?php
     63 
     64 		if ( $readonly && $checked )
     65 		{ 
     66 		?><input type="hidden" name="<?php echo $tmpname ?>" value="1" /><?php
     67 		}
     68 		} ?>
     69 						<label for="<?php echo REQUEST_ID ?>_inherit" class="label">
     70 							<span><?php echo nl2br(encodeHtml(htmlentities(lang('EL_PROP_INHERIT')))); ?></span>
     71 						</label>
     72 					</div>
     73 				</div>
     74 			<?php } ?>
     75 			<?php $if4=(isset($all_languages)); if($if4){?>
     76 				<div class="line">
     77 					<div class="label">
     78 					</div>
     79 					<div class="input">
     80 						<?php { $tmpname     = 'all_languages';$default  = false;$readonly = false;$required = false;		
     81 		if	( isset($$tmpname) )
     82 			$checked = $$tmpname;
     83 		else
     84 			$checked = $default;
     85 
     86 		?><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( $required ) echo ' required="required"' ?> /><?php
     87 
     88 		if ( $readonly && $checked )
     89 		{ 
     90 		?><input type="hidden" name="<?php echo $tmpname ?>" value="1" /><?php
     91 		}
     92 		} ?>
     93 						<label for="<?php echo REQUEST_ID ?>_all_languages" class="label">
     94 							<span><?php echo nl2br(encodeHtml(htmlentities(lang('EL_PROP_ALL_LANGUAGES')))); ?></span>
     95 						</label>
     96 					</div>
     97 				</div>
     98 			<?php } ?>
     99 			<?php $if4=(isset($writable)); if($if4){?>
    100 				<div class="line">
    101 					<div class="label">
    102 					</div>
    103 					<div class="input">
    104 						<?php { $tmpname     = 'writable';$default  = false;$readonly = false;$required = false;		
    105 		if	( isset($$tmpname) )
    106 			$checked = $$tmpname;
    107 		else
    108 			$checked = $default;
    109 
    110 		?><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( $required ) echo ' required="required"' ?> /><?php
    111 
    112 		if ( $readonly && $checked )
    113 		{ 
    114 		?><input type="hidden" name="<?php echo $tmpname ?>" value="1" /><?php
    115 		}
    116 		} ?>
    117 						<label for="<?php echo REQUEST_ID ?>_writable" class="label">
    118 							<span><?php echo nl2br(encodeHtml(htmlentities(lang('EL_PROP_writable')))); ?></span>
    119 						</label>
    120 					</div>
    121 				</div>
    122 			<?php } ?>
    123 			<?php $if4=(isset($width)); if($if4){?>
    124 				<div class="line">
    125 					<div class="label">
    126 						<span><?php echo nl2br(encodeHtml(htmlentities(lang('width')))); ?></span>
    127 					</div>
    128 					<div class="input">
    129 						<div class="inputholder"><input id="<?php echo REQUEST_ID ?>_width" name="<?php if ('') echo ''.'_' ?>width<?php if (false) echo '_disabled' ?>" type="text" maxlength="256" class="" value="<?php echo Text::encodeHtml(@$width) ?>" /><?php if (false) { ?><input type="hidden" name="width" value="<?php $width ?>"/><?php } ?></div>
    130 					</div>
    131 				</div>
    132 			<?php } ?>
    133 			<?php $if4=(isset($height)); if($if4){?>
    134 				<div class="line">
    135 					<div class="label">
    136 						<span><?php echo nl2br(encodeHtml(htmlentities(lang('height')))); ?></span>
    137 					</div>
    138 					<div class="input">
    139 						<div class="inputholder"><input id="<?php echo REQUEST_ID ?>_height" name="<?php if ('') echo ''.'_' ?>height<?php if (false) echo '_disabled' ?>" type="text" maxlength="256" class="" value="<?php echo Text::encodeHtml(@$height) ?>" /><?php if (false) { ?><input type="hidden" name="height" value="<?php $height ?>"/><?php } ?></div>
    140 					</div>
    141 				</div>
    142 			<?php } ?>
    143 			<?php $if4=(isset($dateformat)); if($if4){?>
    144 				<div class="line">
    145 					<div class="label">
    146 						<span><?php echo nl2br(encodeHtml(htmlentities(lang('EL_PROP_DATEFORMAT')))); ?></span>
    147 					</div>
    148 					<div class="input">
    149 						<div class="inputholder"><select  id="<?php echo REQUEST_ID ?>_dateformat" name="dateformat" title="" class=""<?php if (count($dateformats)<=1) echo ' disabled="disabled"'; ?> size="1"><?php include_once( 'modules/template-engine/components/html/selectbox/component-select-box.php') ?><?php component_select_option_list($dateformats,$dateformat,0,0) ?><?php if (count($dateformats)==0) { ?><input type="hidden" name="dateformat" value="" /><?php } ?><?php if (count($dateformats)==1) { ?><input type="hidden" name="dateformat" value="<?php echo array_keys($dateformats)[0] ?>" /><?php } ?>
    150 						</select></div>
    151 					</div>
    152 				</div>
    153 			<?php } ?>
    154 			<?php $if4=(isset($format)); if($if4){?>
    155 				<div class="line">
    156 					<div class="label">
    157 						<span><?php echo nl2br(encodeHtml(htmlentities(lang('EL_PROP_FORMAT')))); ?></span>
    158 					</div>
    159 					<div class="input">
    160 						<?php include_once( 'modules/template-engine/components/html/radiobox/component-radio-box.php') ?><?php component_radio_box('format',$formatlist,$format) ?>
    161 					</div>
    162 				</div>
    163 			<?php } ?>
    164 			<?php $if4=(isset($decimals)); if($if4){?>
    165 				<div class="line">
    166 					<div class="label">
    167 						<span><?php echo nl2br(encodeHtml(htmlentities(lang('EL_PROP_DECIMALS')))); ?></span>
    168 					</div>
    169 					<div class="input">
    170 						<div class="inputholder"><input id="<?php echo REQUEST_ID ?>_decimals" name="<?php if ('') echo ''.'_' ?>decimals<?php if (false) echo '_disabled' ?>" type="text" maxlength="2" class="" value="<?php echo Text::encodeHtml(@$decimals) ?>" /><?php if (false) { ?><input type="hidden" name="decimals" value="<?php $decimals ?>"/><?php } ?></div>
    171 					</div>
    172 				</div>
    173 			<?php } ?>
    174 			<?php $if4=(isset($dec_point)); if($if4){?>
    175 				<div class="line">
    176 					<div class="label">
    177 						<span><?php echo nl2br(encodeHtml(htmlentities(lang('EL_PROP_DEC_POINT')))); ?></span>
    178 					</div>
    179 					<div class="input">
    180 						<div class="inputholder"><input id="<?php echo REQUEST_ID ?>_dec_point" name="<?php if ('') echo ''.'_' ?>dec_point<?php if (false) echo '_disabled' ?>" type="text" maxlength="5" class="" value="<?php echo Text::encodeHtml(@$dec_point) ?>" /><?php if (false) { ?><input type="hidden" name="dec_point" value="<?php $dec_point ?>"/><?php } ?></div>
    181 					</div>
    182 				</div>
    183 			<?php } ?>
    184 			<?php $if4=(isset($thousand_sep)); if($if4){?>
    185 				<div class="line">
    186 					<div class="label">
    187 						<span><?php echo nl2br(encodeHtml(htmlentities(lang('EL_PROP_thousand_sep')))); ?></span>
    188 					</div>
    189 					<div class="input">
    190 						<div class="inputholder"><input id="<?php echo REQUEST_ID ?>_thousand_sep" name="<?php if ('') echo ''.'_' ?>thousand_sep<?php if (false) echo '_disabled' ?>" type="text" maxlength="1" class="" value="<?php echo Text::encodeHtml(@$thousand_sep) ?>" /><?php if (false) { ?><input type="hidden" name="thousand_sep" value="<?php $thousand_sep ?>"/><?php } ?></div>
    191 					</div>
    192 				</div>
    193 			<?php } ?>
    194 			<?php $if4=(isset($default_text)); if($if4){?>
    195 				<div class="line">
    196 					<div class="label">
    197 						<span><?php echo nl2br(encodeHtml(htmlentities(lang('EL_PROP_default_text')))); ?></span>
    198 					</div>
    199 					<div class="input">
    200 						<div class="inputholder"><input id="<?php echo REQUEST_ID ?>_default_text" name="<?php if ('') echo ''.'_' ?>default_text<?php if (false) echo '_disabled' ?>" type="text" maxlength="255" class="" value="<?php echo Text::encodeHtml(@$default_text) ?>" /><?php if (false) { ?><input type="hidden" name="default_text" value="<?php $default_text ?>"/><?php } ?></div>
    201 					</div>
    202 				</div>
    203 			<?php } ?>
    204 			<?php $if4=(isset($default_longtext)); if($if4){?>
    205 				<div class="line">
    206 					<div class="label">
    207 						<span><?php echo nl2br(encodeHtml(htmlentities(lang('EL_PROP_default_longtext')))); ?></span>
    208 					</div>
    209 					<div class="input">
    210 						<div class="inputholder"><textarea class="inputarea" name="<?php if ('') echo ''.'_' ?>default_longtext<?php if (false) echo '_disabled' ?>"><?php echo Text::encodeHtml($default_longtext) ?></textarea></div>
    211 					</div>
    212 				</div>
    213 			<?php } ?>
    214 			<?php $if4=(isset($parameters)); if($if4){?>
    215 				<div class="line">
    216 					<div class="label">
    217 						<span><?php echo nl2br(encodeHtml(htmlentities(lang('EL_PROP_DYNAMIC_PARAMETERS')))); ?></span>
    218 					</div>
    219 					<div class="input">
    220 						<div class="inputholder"><textarea class="inputarea" name="<?php if ('') echo ''.'_' ?>parameters<?php if (false) echo '_disabled' ?>"><?php echo Text::encodeHtml($parameters) ?></textarea></div>
    221 					</div>
    222 				</div>
    223 				<div class="line">
    224 					<div class="label">
    225 					</div>
    226 					<div class="input">
    227 						<?php foreach($dynamic_class_parameters as $paramName=>$defaultValue){ ?>
    228 							<span><?php echo nl2br(encodeHtml(htmlentities($paramName))); ?></span>
    229 							<span><?php echo nl2br('&nbsp;('); ?></span>
    230 							<span><?php echo nl2br(encodeHtml(htmlentities(lang('GLOBAL_DEFAULT')))); ?></span>
    231 							<span><?php echo nl2br(')&nbsp;=&nbsp;'); ?></span>
    232 							<span><?php echo nl2br(encodeHtml(htmlentities($defaultValue))); ?></span>
    233 							<br/>
    234 						<?php } ?>
    235 					</div>
    236 				</div>
    237 			<?php } ?>
    238 			<?php $if4=(isset($select_items)); if($if4){?>
    239 				<div class="line">
    240 					<div class="label">
    241 						<span><?php echo nl2br(encodeHtml(htmlentities(lang('EL_PROP_select_items')))); ?></span>
    242 					</div>
    243 					<div class="input">
    244 						<div class="inputholder"><textarea class="inputarea" name="<?php if ('') echo ''.'_' ?>select_items<?php if (false) echo '_disabled' ?>"><?php echo Text::encodeHtml($select_items) ?></textarea></div>
    245 					</div>
    246 				</div>
    247 			<?php } ?>
    248 			<?php $if4=(isset($linkelement)); if($if4){?>
    249 				<div class="line">
    250 					<div class="label">
    251 						<span><?php echo nl2br(encodeHtml(htmlentities(lang('EL_LINK')))); ?></span>
    252 					</div>
    253 					<div class="input">
    254 						<div class="inputholder"><select  id="<?php echo REQUEST_ID ?>_linkelement" name="linkelement" title="" class=""<?php if (count($linkelements)<=1) echo ' disabled="disabled"'; ?> size="1"><?php include_once( 'modules/template-engine/components/html/selectbox/component-select-box.php') ?><?php component_select_option_list($linkelements,$linkelement,0,0) ?><?php if (count($linkelements)==0) { ?><input type="hidden" name="linkelement" value="" /><?php } ?><?php if (count($linkelements)==1) { ?><input type="hidden" name="linkelement" value="<?php echo array_keys($linkelements)[0] ?>" /><?php } ?>
    255 						</select></div>
    256 					</div>
    257 				</div>
    258 			<?php } ?>
    259 			<?php $if4=(isset($name)); if($if4){?>
    260 				<div class="line">
    261 					<div class="label">
    262 						<span><?php echo nl2br(encodeHtml(htmlentities(lang('ELEMENT_NAME')))); ?></span>
    263 					</div>
    264 					<div class="input">
    265 						<div class="inputholder"><select  id="<?php echo REQUEST_ID ?>_name" name="name" title="" class=""<?php if (count($names)<=1) echo ' disabled="disabled"'; ?> size="1"><?php include_once( 'modules/template-engine/components/html/selectbox/component-select-box.php') ?><?php component_select_option_list($names,$name,0,0) ?><?php if (count($names)==0) { ?><input type="hidden" name="name" value="" /><?php } ?><?php if (count($names)==1) { ?><input type="hidden" name="name" value="<?php echo array_keys($names)[0] ?>" /><?php } ?>
    266 						</select></div>
    267 					</div>
    268 				</div>
    269 			<?php } ?>
    270 			<?php $if4=(isset($folderobjectid)); if($if4){?>
    271 				<div class="line">
    272 					<div class="label">
    273 						<span><?php echo nl2br(encodeHtml(htmlentities(lang('EL_PROP_DEFAULT_FOLDEROBJECT')))); ?></span>
    274 					</div>
    275 					<div class="input">
    276 						<div class="inputholder"><select  id="<?php echo REQUEST_ID ?>_folderobjectid" name="folderobjectid" title="" class=""<?php if (count($folders)<=1) echo ' disabled="disabled"'; ?> size="1"><?php include_once( 'modules/template-engine/components/html/selectbox/component-select-box.php') ?><?php component_select_option_list($folders,$folderobjectid,0,0) ?><?php if (count($folders)==0) { ?><input type="hidden" name="folderobjectid" value="" /><?php } ?><?php if (count($folders)==1) { ?><input type="hidden" name="folderobjectid" value="<?php echo array_keys($folders)[0] ?>" /><?php } ?>
    277 						</select></div>
    278 					</div>
    279 				</div>
    280 			<?php } ?>
    281 			<?php $if4=(isset($default_objectid)); if($if4){?>
    282 				<div class="line">
    283 					<div class="label">
    284 						<span><?php echo nl2br(encodeHtml(htmlentities(lang('EL_PROP_DEFAULT_OBJECT')))); ?></span>
    285 					</div>
    286 					<div class="input">
    287 						<div class="inputholder"><select  id="<?php echo REQUEST_ID ?>_default_objectid" name="default_objectid" title="" class="" size="1"><?php include_once( 'modules/template-engine/components/html/selectbox/component-select-box.php') ?><?php component_select_option_list($objects,$default_objectid,1,0) ?><?php if (count($objects)==0) { ?><input type="hidden" name="default_objectid" value="" /><?php } ?><?php if (count($objects)==1) { ?><input type="hidden" name="default_objectid" value="<?php echo array_keys($objects)[0] ?>" /><?php } ?>
    288 						</select></div>
    289 					</div>
    290 				</div>
    291 			<?php } ?>
    292 			<?php $if4=(isset($code)); if($if4){?>
    293 				<div class="line">
    294 					<div class="label">
    295 						<span><?php echo nl2br(encodeHtml(htmlentities(lang('EL_PROP_code')))); ?></span>
    296 					</div>
    297 					<div class="input">
    298 						<div class="inputholder"><textarea class="inputarea" name="<?php if ('') echo ''.'_' ?>code<?php if (false) echo '_disabled' ?>"><?php echo Text::encodeHtml($code) ?></textarea></div>
    299 					</div>
    300 				</div>
    301 			<?php } ?>
    302 		</div></fieldset>
    303 	<div class="or-form-actionbar"><input type="button" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" value="<?php echo lang("CANCEL") ?>" /><input type="submit" class="or-form-btn or-form-btn--primary or-form-btn--save" value="<?php echo lang('BUTTON_OK') ?>" /></div></form>