} /* * 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; ?>
<!-- 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>