properties.php (15158B)
1 <?php if (!defined('OR_TITLE')) die('Forbidden'); ?> 2 <form name="" target="_self" data-target="view" action="./" data-method="properties" 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="properties" /><input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo OR_ID ?>" /> 3 <?php $if5=(isset($subtype)); if($if5){?> 4 <tr> 5 <td> 6 <span><?php echo nl2br(encodeHtml(htmlentities(lang('ELEMENT_SUBTYPE')))); ?></span> 7 </td> 8 <td> 9 <?php $if8=(isset($subtypes)); if($if8){?> 10 <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 } ?> 11 </select></div> 12 <?php } ?> 13 <?php $if8=!(isset($subtypes)); if($if8){?> 14 <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> 15 <?php } ?> 16 </td> 17 </tr> 18 <?php } ?> 19 <?php $if5=(isset($with_icon)); if($if5){?> 20 <tr> 21 <td> 22 <span><?php echo nl2br(encodeHtml(htmlentities(lang('EL_PROP_WITH_ICON')))); ?></span> 23 </td> 24 <td> 25 <?php { $tmpname = 'with_icon';$default = false;$readonly = false;$required = false; 26 if ( isset($$tmpname) ) 27 $checked = $$tmpname; 28 else 29 $checked = $default; 30 31 ?><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 32 33 if ( $readonly && $checked ) 34 { 35 ?><input type="hidden" name="<?php echo $tmpname ?>" value="1" /><?php 36 } 37 } ?> 38 </td> 39 </tr> 40 <?php } ?> 41 <?php $if5=(isset($all_languages)); if($if5){?> 42 <tr> 43 <td> 44 <span><?php echo nl2br(encodeHtml(htmlentities(lang('EL_PROP_ALL_LANGUAGES')))); ?></span> 45 </td> 46 <td> 47 <?php { $tmpname = 'all_languages';$default = false;$readonly = false;$required = false; 48 if ( isset($$tmpname) ) 49 $checked = $$tmpname; 50 else 51 $checked = $default; 52 53 ?><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 54 55 if ( $readonly && $checked ) 56 { 57 ?><input type="hidden" name="<?php echo $tmpname ?>" value="1" /><?php 58 } 59 } ?> 60 </td> 61 </tr> 62 <?php } ?> 63 <?php $if5=(isset($writable)); if($if5){?> 64 <tr> 65 <td> 66 <span><?php echo nl2br(encodeHtml(htmlentities(lang('EL_PROP_writable')))); ?></span> 67 </td> 68 <td> 69 <?php { $tmpname = 'writable';$default = false;$readonly = false;$required = false; 70 if ( isset($$tmpname) ) 71 $checked = $$tmpname; 72 else 73 $checked = $default; 74 75 ?><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 76 77 if ( $readonly && $checked ) 78 { 79 ?><input type="hidden" name="<?php echo $tmpname ?>" value="1" /><?php 80 } 81 } ?> 82 </td> 83 </tr> 84 <?php } ?> 85 <?php $if5=(isset($width)); if($if5){?> 86 <tr> 87 <td> 88 <span><?php echo nl2br(encodeHtml(htmlentities(lang('width')))); ?></span> 89 </td> 90 <td> 91 <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> 92 </td> 93 </tr> 94 <?php } ?> 95 <?php $if5=(isset($height)); if($if5){?> 96 <tr> 97 <td> 98 <span><?php echo nl2br(encodeHtml(htmlentities(lang('height')))); ?></span> 99 </td> 100 <td> 101 <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> 102 </td> 103 </tr> 104 <?php } ?> 105 <?php $if5=(isset($dateformat)); if($if5){?> 106 <tr> 107 <td> 108 <span><?php echo nl2br(encodeHtml(htmlentities(lang('EL_PROP_DATEFORMAT')))); ?></span> 109 </td> 110 <td> 111 <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 } ?> 112 </select></div> 113 </td> 114 </tr> 115 <?php } ?> 116 <?php $if5=(isset($format)); if($if5){?> 117 <tr> 118 <td> 119 <span><?php echo nl2br(encodeHtml(htmlentities(lang('EL_PROP_FORMAT')))); ?></span> 120 </td> 121 <td> 122 <?php include_once( 'modules/template-engine/components/html/radiobox/component-radio-box.php') ?><?php component_radio_box('format',$formatlist,$format) ?> 123 </td> 124 </tr> 125 <?php } ?> 126 <?php $if5=(isset($decimals)); if($if5){?> 127 <tr> 128 <td> 129 <span><?php echo nl2br(encodeHtml(htmlentities(lang('EL_PROP_DECIMALS')))); ?></span> 130 </td> 131 <td> 132 <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> 133 </td> 134 </tr> 135 <?php } ?> 136 <?php $if5=(isset($dec_point)); if($if5){?> 137 <tr> 138 <td> 139 <span><?php echo nl2br(encodeHtml(htmlentities(lang('EL_PROP_DEC_POINT')))); ?></span> 140 </td> 141 <td> 142 <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> 143 </td> 144 </tr> 145 <?php } ?> 146 <?php $if5=(isset($thousand_sep)); if($if5){?> 147 <tr> 148 <td> 149 <span><?php echo nl2br(encodeHtml(htmlentities(lang('EL_PROP_thousand_sep')))); ?></span> 150 </td> 151 <td> 152 <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> 153 </td> 154 </tr> 155 <?php } ?> 156 <?php $if5=(isset($default_text)); if($if5){?> 157 <tr> 158 <td> 159 <span><?php echo nl2br(encodeHtml(htmlentities(lang('EL_PROP_default_text')))); ?></span> 160 </td> 161 <td> 162 <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> 163 </td> 164 </tr> 165 <?php } ?> 166 <?php $if5=(isset($default_longtext)); if($if5){?> 167 <tr> 168 <td> 169 <span><?php echo nl2br(encodeHtml(htmlentities(lang('EL_PROP_default_longtext')))); ?></span> 170 </td> 171 <td> 172 <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> 173 </td> 174 </tr> 175 <?php } ?> 176 <?php $if5=(isset($parameters)); if($if5){?> 177 <tr> 178 <td> 179 <span><?php echo nl2br(encodeHtml(htmlentities(lang('EL_PROP_DYNAMIC_PARAMETERS')))); ?></span> 180 </td> 181 <td> 182 <div class="inputholder"><textarea class="inputarea" name="<?php if ('') echo ''.'_' ?>parameters<?php if (false) echo '_disabled' ?>"><?php echo Text::encodeHtml($parameters) ?></textarea></div> 183 </td> 184 </tr> 185 <tr> 186 <td> 187 </td> 188 <td> 189 <?php foreach($dynamic_class_parameters as $paramName=>$defaultValue){ ?> 190 <span><?php echo nl2br(encodeHtml(htmlentities($paramName))); ?></span> 191 <span><?php echo nl2br(' ('); ?></span> 192 <span><?php echo nl2br(encodeHtml(htmlentities(lang('GLOBAL_DEFAULT')))); ?></span> 193 <span><?php echo nl2br(') = '); ?></span> 194 <span><?php echo nl2br(encodeHtml(htmlentities($defaultValue))); ?></span> 195 <br/> 196 <?php } ?> 197 </td> 198 </tr> 199 <?php } ?> 200 <?php $if5=(isset($select_items)); if($if5){?> 201 <tr> 202 <td> 203 <span><?php echo nl2br(encodeHtml(htmlentities(lang('EL_PROP_select_items')))); ?></span> 204 </td> 205 <td> 206 <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> 207 </td> 208 </tr> 209 <?php } ?> 210 <?php $if5=(isset($linkelement)); if($if5){?> 211 <tr> 212 <td> 213 <span><?php echo nl2br(encodeHtml(htmlentities(lang('EL_LINK')))); ?></span> 214 </td> 215 <td> 216 <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 } ?> 217 </select></div> 218 </td> 219 </tr> 220 <?php } ?> 221 <?php $if5=(isset($name)); if($if5){?> 222 <tr> 223 <td> 224 <span><?php echo nl2br(encodeHtml(htmlentities(lang('ELEMENT_NAME')))); ?></span> 225 </td> 226 <td> 227 <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 } ?> 228 </select></div> 229 </td> 230 </tr> 231 <?php } ?> 232 <?php $if5=(isset($folderobjectid)); if($if5){?> 233 <tr> 234 <td> 235 <span><?php echo nl2br(encodeHtml(htmlentities(lang('EL_PROP_DEFAULT_FOLDEROBJECT')))); ?></span> 236 </td> 237 <td> 238 <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 } ?> 239 </select></div> 240 </td> 241 </tr> 242 <?php } ?> 243 <?php $if5=(isset($default_objectid)); if($if5){?> 244 <tr> 245 <td> 246 <span><?php echo nl2br(encodeHtml(htmlentities(lang('EL_PROP_DEFAULT_OBJECT')))); ?></span> 247 </td> 248 <td> 249 <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 } ?> 250 </select></div> 251 </td> 252 </tr> 253 <?php } ?> 254 <?php $if5=(isset($code)); if($if5){?> 255 <tr> 256 <td> 257 <span><?php echo nl2br(encodeHtml(htmlentities(lang('EL_PROP_code')))); ?></span> 258 </td> 259 <td> 260 <div class="inputholder"><textarea class="inputarea" name="<?php if ('') echo ''.'_' ?>code<?php if (false) echo '_disabled' ?>"><?php echo Text::encodeHtml($code) ?></textarea></div> 261 </td> 262 </tr> 263 <?php } ?> 264 <tr> 265 <td colspan="2" class="act"> 266 <div class="invisible"><input type="submit" name="ok" class="%class%" 267 title="?button_ok_DESC?" 268 value=" ?button_ok? " /> 269 </div> 270 </td> 271 </tr> 272 <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>