Changeset 567 for trunk/plugins/ExtendedFileManager/manager.php
- Timestamp:
- 09/13/06 19:24:04 (7 years ago)
- Files:
-
- 1 modified
-
trunk/plugins/ExtendedFileManager/manager.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/ExtendedFileManager/manager.php
r525 r567 94 94 </table> 95 95 </fieldset> 96 <!-- temp -->97 <!-- /temp -->98 96 <!-- image properties --> 99 97 <table class="inputTable"> … … 101 99 <td align="right" nowrap><label for="f_url"><?php if($insertMode=='image') echo 'File Name'; else echo 'URL';?></label></td> 102 100 <td colspan="5"><input type="text" id="<?php if($insertMode=='image') echo 'f_url'; else echo 'f_href';?>" class="largelWidth" value="" /></td> 103 <td rowspan="5" colspan="2" valign="top"><?php if($insertMode=='image') { ?> 101 <?php // calculate number of table rows to span for the preview cell 102 $num_rows = 3; // filename & upload & disk info message 103 if ($insertMode == 'image' && $IMConfig['images_enable_alt']) 104 $num_rows++; 105 if ($insertMode == 'link' || $IMConfig['images_enable_title']) 106 $num_rows++; 107 ?> 108 <td rowspan="<?php echo $num_rows ?>" colspan="2" valign="top"><?php if($insertMode=='image') { ?> 104 109 <div style="padding:4px;background-color:#CCC;border:1px inset;width: 100px; height: 100px;"> 105 110 <img src="" id="f_preview" /> … … 114 119 <input type="text" name="f_other_target" id="f_other_target" style="visibility:hidden; width:120px;" /> 115 120 <?php } ?></td> 116 </tr> 117 <tr> 118 <td align="right"><label for="f_alt"><?php if($insertMode=='image') echo 'Alt'; else echo 'Title (tooltip)';?></label></td> 119 <td colspan="5"><input type="text" id="<?php if($insertMode=='image') echo 'f_alt'; else echo 'f_title';?>" class="largelWidth" value="" /></td> 120 </tr> 121 </tr> 122 <?php if($insertMode == 'image' && $IMConfig['images_enable_alt']) { ?> 123 <tr> 124 <td align="right"><label for="f_alt">Alt</label></td> 125 <td colspan="5"><input type="text" id="f_alt" class="largelWidth" value="" /></td> 126 </tr> 127 <?php } else { 128 $hidden_fields[] = 'f_alt'; 129 } 130 if ($insertMode == 'link' || $IMConfig['images_enable_title']) { ?> 131 <tr> 132 <td align="right"><label for="f_title">Title (tooltip)</label></td> 133 <td colspan="5"><input type="text" id="f_title" class="largelWidth" value="" /></td> 134 </tr> 135 <?php } else { 136 $hidden_fields[] = 'f_title'; 137 } ?> 121 138 <tr> 122 139 <?php … … 141 158 </tr> 142 159 <tr> 143 <td> </td>144 <td colspan="5"> <span id="diskmesg"></span></td>160 <td>tu<?php if (!empty($hidden_fields)) foreach ($hidden_fields as $hf) echo "<input type=\"hidden\" id=\"{$hf}\" name=\"{$hf}\" value=\"\" />"; ?></td> 161 <td colspan="5"><span id="diskmesg"></span></td> 145 162 </tr> 146 163 <tr> 147 164 <td align="right"><?php if($insertMode=='image') { ?> <label for="f_width">Width</label><?php }?></td> 148 165 149 <td><?php if($insertMode=='image') { ?> <input type="text" id="f_width" class="smallWidth" value="" onchange="javascript:checkConstrains('width');"/><?php } else echo "        ";?></td>166 <td><?php if($insertMode=='image') { ?> <input type="text" id="f_width" class="smallWidth" value="" onchange="javascript:checkConstrains('width');"/><?php } else echo " ";?></td> 150 167 151 168 <td rowspan="2"><?php if($insertMode=='image') { ?><img src="<?php print $IMConfig['base_url'];?>img/locked.gif" id="imgLock" width="25" height="32" alt="Constrained Proportions" />
