本文整理汇总了PHP中image::getImgProd方法的典型用法代码示例。如果您正苦于以下问题:PHP image::getImgProd方法的具体用法?PHP image::getImgProd怎么用?PHP image::getImgProd使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类image
的用法示例。
在下文中一共展示了image::getImgProd方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: image
}
/*
* RICHIESTA STAMPA IMMAGINI TEMPORANEE E NON -----------------------------------------------------------------------
*/
if (isset($_POST['printImg'])) {
@(require_once MAIN_IMG);
$image = new image($db_conn, t_img);
$image->path_img = $path_img;
$image->path_img_temp = $path_img_temp;
$image->_dir = DIR;
/*
Se mi trovo in modalità "modifica articolo", aggiungo le immagini esistenti
e che non sono segnate con richiesta di cancellazione.
*/
if (isset($_SESSION['articolo']) && $_SESSION['articolo']['op'] == 'edit') {
echo $image->getImgProd($_SESSION['articolo']['id'], $_SESSION['to_del_imgs']);
}
foreach ($_SESSION['upload_imgs'] as $key => $img) {
?>
<li class="ui-state-default" id="sortemp_<?php
echo $key;
?>
">
<div class="singleImg">
<div class="delImgAnn">
<img src="pix/delete.png"
alt="cancella"
title="cancella immagine"
onclick="delImgTemp('<?php
echo $key;
?>
示例2:
<!-- UPLOADER JSCRIPT -->
<script src="js/jquery/fileUploader/jquery-ui-1.8.14.custom.min.js" type="text/javascript"></script>
<script src="js/jquery/fileUploader/jquery.fileUploader.js" type="text/javascript"></script>
<script src="js/image_upload.js" type="text/javascript" type="text/javascript"></script>
<!-- /UPLOADER JSCRIPT -->
</head>
<body>
<form action="upload_image.php" method="post" enctype="multipart/form-data" id="uploadform">
<input type="file" name="img_file" class="fileUpload" multiple />
<input type="hidden" name="op" value="upload" />
<button id="px-submit" type="submit">Upload</button>
<button id="px-clear" type="reset">Clear</button>
</form>
<div id="img_temp" style="padding-top:5px; border-top:1px dotted #CCC; margin-top:20px">
<?php
echo $image->getImgProd($id_art, $_SESSION['to_del_imgs']);
?>
</div>
<div style="clear:both"></div>
<form action="" method="post" style="margin-top:20px">
<input type="hidden" name="new_art" value="new_art" />
<input type="submit" name="submit" value="Crea articolo" />
</form>
</body>
</html>