示例#1
0
<?php

/**
 * $Id$
 *
 * Popupwindow that displays a image resource
 *
 * todo:
 * - display ajax loading wheel in place of image
 * - hover mouse over image to highlight controls: cut, resize, rotate, convert, etc
 */
if (empty($_GET['id']) || !is_numeric($_GET['id'])) {
    die;
}
$fileId = $_GET['id'];
require_once 'find_config.php';
$header = new xhtml_header();
echo $header->render();
echo '<img id="popup_img" src="' . coredev_webroot() . 'api/file.php?id=' . $fileId . '"/>';
?>
<script type="text/javascript">
if (image_loaded('popup_img')) resize_wnd_to_img('popup_img');
</script>
示例#2
0
<?php

$header = new xhtml_header();
$header->addCss('css/site.css');
echo $header->render();
?>
<div id="top">
    <div id="top-logo"></div>
    <div id="top-items">
        <?php 
echo xhtmlForm();
?>
        <a href="<?php 
echo $config['app']['web_root'];
?>
wiki.php">Wiki</a>
        <a href="<?php 
echo $config['app']['web_root'];
?>
new_issue.php">New issue</a>
        Search <?php 
echo xhtmlInput('search', '', 8);
?>
        <?php 
echo xhtmlFormClose();
?>
    </div>
</div>


<div id="leftmenu">