advanced.php (7104B)
1 <?php if (!defined('OR_TITLE')) die('Forbidden'); ?> 2 <form name="" target="_self" data-target="view" action="./" data-method="edit" data-action="folder" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" class="or-form folder" 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="folder" /><input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="edit" /><input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo OR_ID ?>" /> 3 <div class="or-table-wrapper"><div class="or-table-filter"><input type="search" name="filter" placeholder="<?php echo lang('SEARCH_FILTER') ?>" /></div><div class="or-table-area"><table width="100%"> 4 <tr class="headline"> 5 <td class="help"> 6 <?php { $tmpname = 'checkall';$default = false;$readonly = false;$required = false; 7 if ( isset($$tmpname) ) 8 $checked = $$tmpname; 9 else 10 $checked = $default; 11 12 ?><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 13 14 if ( $readonly && $checked ) 15 { 16 ?><input type="hidden" name="<?php echo $tmpname ?>" value="1" /><?php 17 } 18 } ?> 19 </td> 20 <td class="help"> 21 <span><?php echo nl2br(encodeHtml(htmlentities(lang(''.'GLOBAL_TYPE'.'')))); ?></span> 22 <span><?php echo nl2br(' / '); ?></span> 23 <span><?php echo nl2br(encodeHtml(htmlentities(lang(''.'GLOBAL_NAME'.'')))); ?></span> 24 </td> 25 </tr> 26 <?php foreach($object as $list_key=>$list_value){ ?><?php extract($list_value) ?> 27 <tr class="data"> 28 <td width="1%"> 29 <?php $if7=($writable); if($if7){?> 30 <?php { $tmpname = $id;$default = false;$readonly = false;$required = false; 31 if ( isset($$tmpname) ) 32 $checked = $$tmpname; 33 else 34 $checked = $default; 35 36 ?><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 37 38 if ( $readonly && $checked ) 39 { 40 ?><input type="hidden" name="<?php echo $tmpname ?>" value="1" /><?php 41 } 42 } ?> 43 <?php } ?> 44 <?php $if7=(!'writable'); if($if7){?> 45 <span><?php echo nl2br(' '); ?></span> 46 <?php } ?> 47 </td> 48 <td class="clickable"> 49 <label for="<?php echo REQUEST_ID ?>_<?php echo $id ?>" class="label"> 50 <a target="_self" date-name="<?php echo $name ?>" name="<?php echo $name ?>" data-type="open" data-action="<?php echo $type ?>" data-method="advanced" data-id="<?php echo $objectid ?>" data-extra="[]" href="./#/<?php echo $type ?>/<?php echo $objectid ?>"> 51 <i class="image-icon image-icon--action-<?php echo $icon ?>"></i> 52 <span><?php echo nl2br(encodeHtml(htmlentities(Text::maxLength( $name,40,'..',constant('STR_PAD_BOTH') )))); ?></span> 53 <span><?php echo nl2br(' '); ?></span> 54 </a> 55 </label> 56 </td> 57 </tr> 58 <?php } ?> 59 <?php $if4=(($object)==FALSE); if($if4){?> 60 <tr> 61 <td colspan="2"> 62 <span><?php echo nl2br(encodeHtml(htmlentities(lang('GLOBAL_NOT_FOUND')))); ?></span> 63 </td> 64 </tr> 65 <?php } ?> 66 <tr class="data"> 67 <td> 68 <span><?php echo nl2br(' '); ?></span> 69 </td> 70 <td colspan="2" class="clickable"> 71 <a target="_self" data-type="dialog" data-action="folder" data-method="create" data-id="<?php echo OR_ID ?>" data-extra="{'dialogAction':'folder','dialogMethod':'create'}" href="./#/folder/"> 72 <i class="image-icon image-icon--method-add"></i> 73 <span><?php echo nl2br(encodeHtml(htmlentities(lang(''.'menu_folder_create'.'')))); ?></span> 74 </a> 75 </td> 76 </tr> 77 </table></div></div> 78 <fieldset class="toggle-open-close<?php echo true?" open":" closed" ?><?php echo true?" show":"" ?>"><legend class="on-click-open-close"><div class="arrow arrow-right on-closed"></div><div class="arrow arrow-down on-open"></div><?php echo lang('options') ?></legend><div class="closable"> 79 <?php $type= $defaulttype; ?> 80 <?php foreach($actionlist as $list_key=>$actiontype){ ?> 81 <div class="line"> 82 <div class="label"> 83 </div> 84 <div class="input"> 85 <input class="" type="radio" id="<?php echo REQUEST_ID ?>_type_<?php echo $actiontype ?>" name="<?php if ('') echo ''.'_' ?>type<?php if (false) echo '_disabled' ?>" value="<?php echo $actiontype ?>"<?php if($actiontype==@$type)echo ' checked="checked"' ?> /> 86 <label for="<?php echo REQUEST_ID ?>_type_<?php echo $actiontype ?>" class="label"> 87 <span><?php echo nl2br(' '); ?></span> 88 <span><?php echo nl2br(encodeHtml(htmlentities(lang('FOLDER_SELECT_'.$actiontype.'')))); ?></span> 89 </label> 90 </div> 91 </div> 92 <?php } ?> 93 <div class="line"> 94 <div class="label"> 95 </div> 96 <div class="input"> 97 <span><?php echo nl2br(' '); ?></span> 98 <?php { $tmpname = 'confirm';$default = false;$readonly = false;$required = true; 99 if ( isset($$tmpname) ) 100 $checked = $$tmpname; 101 else 102 $checked = $default; 103 104 ?><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 105 106 if ( $readonly && $checked ) 107 { 108 ?><input type="hidden" name="<?php echo $tmpname ?>" value="1" /><?php 109 } 110 } ?> 111 <label for="<?php echo REQUEST_ID ?>_confirm" class="label"> 112 <span><?php echo nl2br(encodeHtml(htmlentities(lang(''.'CONFIRM_DELETE'.'')))); ?></span> 113 </label> 114 </div> 115 </div> 116 <div class="line"> 117 <div class="label"> 118 <span><?php echo nl2br(encodeHtml(htmlentities(lang(''.'FOLDER_SELECT_TARGET_FOLDER'.'')))); ?></span> 119 </div> 120 <div class="input"> 121 <div class="selector"> 122 <div class="inputholder or-droppable"> 123 <input type="hidden" class="or-selector-link-value" name="targetobjectid" value="<?php echo $rootfolderid ?>" /> 124 <input type="text" class="or-selector-link-name" value="<?php echo $rootfoldername ?>" placeholder="<?php echo $rootfoldername ?>" /> 125 </div> 126 <div class="dropdown"></div> 127 <div class="tree selector" data-types="{types}" data-init-id="<?php echo $rootfolderid ?>" data-init-folderid="<?php echo $rootfolderid ?>"> 128 </div> 129 </div> 130 </div> 131 </div> 132 </div></fieldset> 133 <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>