Changeset 111 for trunk/plugins/ImageManager/manager.php
- Timestamp:
- 05/04/05 07:08:32 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/ImageManager/manager.php
r60 r111 1 <? 1 <?php 2 2 /** 3 3 * The main GUI for the ImageManager. … … 22 22 <script type="text/javascript"> 23 23 24 <? // temporary. An ImageManager rewrite will take care of this kludge. ?>24 <?php // temporary. An ImageManager rewrite will take care of this kludge. ?> 25 25 26 _backend_url = "<? print $IMConfig['backend_url']; ?>";26 _backend_url = "<?php print $IMConfig['backend_url']; ?>"; 27 27 </script> 28 28 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 29 <link href="<? print $IMConfig['base_url'];?>assets/manager.css" rel="stylesheet" type="text/css" />30 <script type="text/javascript" src=" <? print $IMConfig['base_url'];?>assets/popup.js"></script>31 <script type="text/javascript" src="<? print $IMConfig['base_url'];?>assets/dialog.js"></script>29 <link href="<?php print $IMConfig['base_url'];?>assets/manager.css" rel="stylesheet" type="text/css" /> 30 <script type="text/javascript" src="../../popups/popup.js"></script> 31 <script type="text/javascript" src="<?php print $IMConfig['base_url'];?>assets/dialog.js"></script> 32 32 <script type="text/javascript"> 33 33 /*<![CDATA[*/ … … 37 37 HTMLArea = window.opener.HTMLArea; 38 38 39 var thumbdir = "<? echo $IMConfig['thumbnail_dir']; ?>";40 var base_url = "<? echo $manager->getImagesURL(); ?>";39 var thumbdir = "<?php echo $IMConfig['thumbnail_dir']; ?>"; 40 var base_url = "<?php echo $manager->getImagesURL(); ?>"; 41 41 /*]]>*/ 42 42 </script> 43 <script type="text/javascript" src="<? print $IMConfig['base_url'];?>assets/manager.js"></script>43 <script type="text/javascript" src="<?php print $IMConfig['base_url'];?>assets/manager.js"></script> 44 44 </head> 45 45 <body> 46 46 <div class="title">Insert Image</div> 47 <form action="<? print $IMConfig['backend_url'] ?>" id="uploadForm" method="post" enctype="multipart/form-data">47 <form action="<?php print $IMConfig['backend_url'] ?>" id="uploadForm" method="post" enctype="multipart/form-data"> 48 48 49 <? // we have to propagate our values through forms ?>49 <?php // we have to propagate our values through forms ?> 50 50 51 51 <input type="hidden" name="__plugin" value="ImageManager"> … … 57 57 <select name="dir" class="dirWidth" id="dirPath" onchange="updateDir(this)"> 58 58 <option value="/">/</option> 59 <? foreach($dirs as $relative=>$fullpath) { ?>60 <option value="<? echo rawurlencode($relative); ?>"><?echo $relative; ?></option>61 <? } ?>59 <?php foreach($dirs as $relative=>$fullpath) { ?> 60 <option value="<?php echo rawurlencode($relative); ?>"><?php echo $relative; ?></option> 61 <?php } ?> 62 62 </select> 63 <a href="#" onclick="javascript: goUpDir();" title="Directory Up"><img src="<? print $IMConfig['base_url']; ?>img/btnFolderUp.gif" height="15" width="15" alt="Directory Up" /></a>64 <? if($IMConfig['safe_mode'] == false && $IMConfig['allow_new_dir']) { ?>65 <a href="#" onclick="newFolder();" title="New Folder"><img src="<? print $IMConfig['base_url']; ?>img/btnFolderNew.gif" height="15" width="15" alt="New Folder" /></a>66 <? } ?>67 <div id="messages" style="display: none;"><span id="message"></span><img SRC="<? print $IMConfig['base_url']; ?>img/dots.gif" width="22" height="12" alt="..." /></div>68 <iframe src="<? print $IMConfig['backend_url']; ?>__function=images" name="imgManager" id="imgManager" class="imageFrame" scrolling="auto" title="Image Selection" frameborder="0"></iframe>63 <a href="#" onclick="javascript: goUpDir();" title="Directory Up"><img src="<?php print $IMConfig['base_url']; ?>img/btnFolderUp.gif" height="15" width="15" alt="Directory Up" /></a> 64 <?php if($IMConfig['safe_mode'] == false && $IMConfig['allow_new_dir']) { ?> 65 <a href="#" onclick="newFolder();" title="New Folder"><img src="<?php print $IMConfig['base_url']; ?>img/btnFolderNew.gif" height="15" width="15" alt="New Folder" /></a> 66 <?php } ?> 67 <div id="messages" style="display: none;"><span id="message"></span><img SRC="<?php print $IMConfig['base_url']; ?>img/dots.gif" width="22" height="12" alt="..." /></div> 68 <iframe src="<?php print $IMConfig['backend_url']; ?>__function=images" name="imgManager" id="imgManager" class="imageFrame" scrolling="auto" title="Image Selection" frameborder="0"></iframe> 69 69 </div> 70 70 </fieldset> … … 77 77 <td align="right"><label for="f_width">Width</label></td> 78 78 <td><input type="text" id="f_width" class="smallWidth" value="" onchange="javascript:checkConstrains('width');"/></td> 79 <td rowspan="2" align="right"><img src="<? print $IMConfig['base_url']; ?>img/locked.gif" id="imgLock" width="25" height="32" alt="Constrained Proportions" /></td>79 <td rowspan="2" align="right"><img src="<?php print $IMConfig['base_url']; ?>img/locked.gif" id="imgLock" width="25" height="32" alt="Constrained Proportions" /></td> 80 80 <td rowspan="3" align="right"> </td> 81 81 <td align="right"><label for="f_vert">V Space</label></td> … … 91 91 </tr> 92 92 <tr> 93 <? if($IMConfig['allow_upload'] == true) { ?>93 <?php if($IMConfig['allow_upload'] == true) { ?> 94 94 <td align="right"><label for="upload">Upload</label></td> 95 95 <td> … … 101 101 </table> 102 102 </td> 103 <? } else { ?>103 <?php } else { ?> 104 104 <td colspan="2"></td> 105 <? } ?>106 <td align="right"><label for="f_align">Align </label></td>105 <?php } ?> 106 <td align="right"><label for="f_align">Alignment:</label></td> 107 107 <td colspan="2"> 108 108 <select size="1" id="f_align" title="Positioning of this image"> 109 <option value="" >Not Set</option>109 <option value="" >Not set</option> 110 110 <option value="left" >Left</option> 111 111 <option value="right" >Right</option>
Note: See TracChangeset
for help on using the changeset viewer.