当前位置: 首页>>代码示例>>PHP>>正文


PHP image::getImgProd方法代码示例

本文整理汇总了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;
        ?>
开发者ID:gambric,项目名称:ceramichesofia,代码行数:31,代码来源:upload_image.php

示例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>
开发者ID:gambric,项目名称:ceramichesofia,代码行数:31,代码来源:addImg.php


注:本文中的image::getImgProd方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。