當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。