editorframe.php
来自「国外很不错的一个开源OA系统Group-Office」· PHP 代码 · 共 71 行
PHP
71 行
<?php/** * The frame that contains the image to be edited. * @author $Author: mschering $ * @version $Id: editorFrame.php,v 1.1 2006/03/23 10:01:26 mschering Exp $ * @package ImageManager */require_once('config.inc.php');require_once('Classes/ImageManager.php');require_once('Classes/ImageEditor.php');$manager = new ImageManager($IMConfig);$editor = new ImageEditor($manager);$imageInfo = $editor->processImage();?><html><head> <title></title><link href="assets/editorFrame.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="assets/wz_jsgraphics.js"></script><script type="text/javascript" src="assets/EditorContent.js"></script><script type="text/javascript">if(window.top) I18N = window.top.I18N;function i18n(str) { if(I18N) return (I18N[str] || str); else return str;}; var mode = "<?php echo $editor->getAction(); ?>" //crop, scale, measurevar currentImageFile = "<?php if(count($imageInfo)>0) echo rawurlencode($imageInfo['file']); ?>";<?php if ($editor->isFileSaved() == 1) { ?> alert(i18n('File saved.')); parent.opener.location=parent.opener.location;<?php } else if ($editor->isFileSaved() == -1) { ?> alert(i18n('File was not saved.'));<?php } ?></script><script type="text/javascript" src="assets/editorFrame.js"></script></head><body><div id="status"></div><div id="ant" class="selection" style="visibility:hidden"><img src="img/spacer.gif" width="0" height="0" border="0" alt="" id="cropContent"></div><?php if ($editor->isGDEditable() == -1) { ?> <div style="text-align:center; padding:10px;"><span class="error">GIF format is not supported, image editing not supported.</span></div><?php } ?><table height="100%" width="100%"> <tr> <td><?php if(count($imageInfo) > 0 && is_file($imageInfo['fullpath'])) { ?> <span id="imgCanvas" class="crop"><img src="<?php echo $imageInfo['src']; ?>" <?php echo $imageInfo['dimensions']; ?> alt="" id="theImage" name="theImage"></span><?php } else { ?> <span class="error">No Image Available</span><?php } ?> </td> </tr></table></body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?