Ignore:
Timestamp:
05/04/05 07:08:32 (15 years ago)
Author:
niko
Message:

#225
several ImageManager? fixes, see #225 for details

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/ImageManager/manager.php

    r60 r111  
    1 <? 
     1<?php 
    22/** 
    33 * The main GUI for the ImageManager. 
     
    2222<script type="text/javascript"> 
    2323 
    24 <? // temporary. An ImageManager rewrite will take care of this kludge. ?> 
     24<?php // temporary. An ImageManager rewrite will take care of this kludge. ?> 
    2525 
    26 _backend_url = "<? print $IMConfig['backend_url']; ?>"; 
     26_backend_url = "<?php print $IMConfig['backend_url']; ?>"; 
    2727</script> 
    2828  <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> 
    3232<script type="text/javascript"> 
    3333/*<![CDATA[*/ 
     
    3737                HTMLArea = window.opener.HTMLArea; 
    3838 
    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(); ?>"; 
    4141/*]]>*/ 
    4242</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> 
    4444</head> 
    4545<body> 
    4646<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"> 
    4848 
    49 <? // we have to propagate our values through forms ?> 
     49<?php // we have to propagate our values through forms ?> 
    5050 
    5151<input type="hidden" name="__plugin" value="ImageManager"> 
     
    5757        <select name="dir" class="dirWidth" id="dirPath" onchange="updateDir(this)"> 
    5858        <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 } ?> 
    6262        </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> 
    6969</div> 
    7070</fieldset> 
     
    7777                        <td align="right"><label for="f_width">Width</label></td> 
    7878                        <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> 
    8080                        <td rowspan="3" align="right">&nbsp;</td> 
    8181                        <td align="right"><label for="f_vert">V Space</label></td> 
     
    9191                </tr> 
    9292                <tr> 
    93 <? if($IMConfig['allow_upload'] == true) { ?> 
     93<?php if($IMConfig['allow_upload'] == true) { ?> 
    9494                        <td align="right"><label for="upload">Upload</label></td> 
    9595                        <td> 
     
    101101                </table> 
    102102                        </td> 
    103 <? } else { ?> 
     103<?php } else { ?> 
    104104                        <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> 
    107107                        <td colspan="2"> 
    108108                                <select size="1" id="f_align"  title="Positioning of this image"> 
    109                                   <option value=""                             >Not Set</option> 
     109                                  <option value=""                             >Not set</option> 
    110110                                  <option value="left"                         >Left</option> 
    111111                                  <option value="right"                        >Right</option> 
Note: See TracChangeset for help on using the changeset viewer.