Пример #1
0
    $myText = new HAW_text($arrGWeb['name'] . '欢迎您!');
    $objHaw->add_text($myText);
    include_once 'include/foot.php';
    exit;
}
$intID = intval($_GET['id']);
$arrInfo = $objWebInit->getInfo($intID, '*', 1, true);
include_once 'include/title.php';
include_once 'include/head.php';
$myText = new HAW_text("标题:" . $arrInfo['title']);
$objHaw->add_text($myText);
if (!empty($arrInfo['photo']) && $intCPage == 1) {
    $strWapPhoto = $arrGPic['FileSavePath'] . 'wap/' . $arrInfo['photo'];
    if (!is_file($strWapPhoto)) {
        //生成压缩图
        check::make_dir($strWapPhoto);
        copy($arrGPic['FileSavePath'] . '/b/' . $arrInfo['photo'], $strWapPhoto);
        $objGDImage = new GDImage();
        if ($objGDImage->makePRThumb($strWapPhoto, 0, $arrMHaw['image_width'], $arrMHaw['image_height'])) {
            $myImage = new HAW_image("photo.wbmp", $arrGPic['FileCallPath'] . 'wap/' . $arrInfo['photo'], $arrInfo['title']);
            $myImage->set_br(1);
            $myImage->set_html_width($arrMHaw['image_width']);
            $objHaw->add_image($myImage);
        }
    } else {
        $myImage = new HAW_image("photo.wbmp", $arrGPic['FileCallPath'] . 'wap/' . $arrInfo['photo'], $arrInfo['title']);
        $myImage->set_br(1);
        $myImage->set_html_width($arrMHaw['image_width']);
        $objHaw->add_image($myImage);
    }
}