Esempio n. 1
0
/**
 *图片水印
 * @param int $id
 * @return string
 */
function doWaterPic($id)
{
    $rows = getProImgsById($id);
    foreach ($rows as $row) {
        $filename = "../image_800/" . $row['albumPath'];
        waterPic($filename);
    }
    $mes = "操作成功";
    return $mes;
}
Esempio n. 2
0
/**
 *图片水印
 * @param int $id
 * @return string
 */
function doWaterPic($id)
{
    $rows = getProImgsById($id);
    if ($rows) {
        foreach ($rows as $row) {
            $filename = "../image_800/" . $row['albumPath'];
            waterPic($filename);
            /* waterPic() --image.func.php 图片水印*/
        }
        //$mes="操作成功";
        alertMes("添加图片水印成功!", "listProImages.php");
    } else {
        alertMes("添加图片水印失败!", "listProImages.php");
    }
    return $mes;
}
Esempio n. 3
0
<?php

require_once 'include.php';
$id = $_REQUEST['id'];
$proInfo = getProById($id);
$proImgs = getProImgsById($id);
if (!($proImgs && is_array($proImgs))) {
    alertMes("商品图片错误", "index.php");
}
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>商品介绍</title>
<link type="text/css" rel="stylesheet" href="styles/reset.css">
<link type="text/css" rel="stylesheet" href="styles/main.css">
<link type="text/css" rel="stylesheet" media="all" href="styles/jquery.jqzoom.css"/>
<script src="scripts/jquery-1.6.js" type="text/javascript"></script>
<script src="scripts/jquery.jqzoom-core.js" type="text/javascript"></script>
<!--[if IE 6]>
<script type="text/javascript" src="js/DD_belatedPNG_0.0.8a-min.js"></script>
<script type="text/javascript" src="js/ie6Fixpng.js"></script>
<![endif]-->
<script type="text/javascript">
$(document).ready(function() {
	$('.jqzoom').jqzoom({
            zoomType: 'standard',
            lens:true,
            preloadImages: false,
            alwaysOn:false,