Source for file editorFrame.php

Documentation is available at editorFrame.php

  1. <?php
  2.  
  3. /**
  4.  * The frame that contains the image to be edited.
  5.  * @author $Author$
  6.  * @version $Id$
  7.  * @package ImageManager
  8.  */
  9.  
  10. require_once('config.inc.php');
  11. require_once('Classes/ImageManager.php');
  12. require_once('Classes/ImageEditor.php');
  13.  
  14. $manager new ImageManager($IMConfig);
  15. $editor new ImageEditor($manager);
  16. $imageInfo $editor->processImage();
  17.  
  18. ?>
  19.  
  20. <html>
  21. <head>
  22.     <title></title>
  23. <link href="assets/editorFrame.css" rel="stylesheet" type="text/css" />    
  24. <script type="text/javascript" src="assets/wz_jsgraphics.js"></script>
  25. <script type="text/javascript" src="assets/EditorContent.js"></script>
  26. <script type="text/javascript">
  27. //if(window.top)
  28. //    I18N = window.top.I18N;
  29.  
  30. function i18n(str) {
  31. //    if(I18N)
  32. //        return (I18N[str] || str);
  33. //    else
  34.         return str;
  35. };
  36.     
  37.     var mode = "<?php echo $editor->getAction()?>" //crop, scale, measure
  38.  
  39. var currentImageFile = "<?php if(count($imageInfo)>0echo rawurlencode($imageInfo['file'])?>";
  40.  
  41. <?php if ($editor->isFileSaved(== 1?>
  42.     alert('File saved.');
  43. <?php else if ($editor->isFileSaved(== -1?>
  44.     alert('File was not saved.');
  45. <?php ?>
  46.  
  47. </script>
  48. <script type="text/javascript" src="assets/editorFrame.js"></script>
  49. </head>
  50.  
  51. <body>
  52. <div id="status"></div>
  53. <div id="ant" class="selection" style="visibility:hidden"><img src="img/spacer.gif" width="0" height="0" border="0" alt="" id="cropContent"></div>
  54. <table height="100%" width="100%">
  55.     <tr>
  56.         <td>
  57. <?php if(count($imageInfo&& is_file($imageInfo['fullpath'])) ?>
  58.     <span id="imgCanvas" class="crop"><img src="<?php echo $imageInfo['src']?><?php echo $imageInfo['dimensions']?> alt="" id="theImage" name="theImage"></span>
  59. <?php else ?>
  60.     <span class="error">No Image Available(<?php echo $imageInfo['fullpath']?></span>
  61. <?php ?>
  62.         </td>
  63.     </tr>
  64. </table>
  65. </body>
  66. </html>

Documentation generated on Mon, 05 May 2008 16:19:18 +0400 by phpDocumentor 1.4.0