示例#1
0
            $image->readImage($setting['image_output'] . $row2['ID'] . "." . $row2['FILE']);
            $image->setFormat("jpg");
            $image->setImageCompression(Imagick::COMPRESSION_JPEG);
            $image->setImageCompressionQuality($setting['thumbnail_quality']);
            $image->thumbnailImage($setting['thumbnail_size'], 0);
            $image->writeImage($thumb_fn);
            $image->clear();
        }
        //$output = $image->getImageBlob();
        echo '<a href="image.php?id=' . $row2['ID'] . '"><div class="image" style="background-image: url(' . $setting['image_output_htmlsafe'] . 'thumbnails/' . $row2['ID'] . '.jpg);">';
        if (time() - 24 * 60 * 60 <= $row2['DATEADD']) {
            echo '<div class="new_banner">NEW</div>';
        }
        echo '<div class="info">
										<div class="i_l">
											<span style="color: ' . getRatingColor($row2['RATING']) . '; padding-left: 10px;">' . getRating($row2['RATING']) . '</span>
										</div>
										<div class="i_r">
											<span style="color: #add1ff; padding-right: 10px;">◉ ' . $row2['VIEWS'] . '</span>
											<span style="color: #ffa5be; padding-right: 10px;">❤ ' . $favorites . '</span>
											<span style="color: #ffeaa5; padding-right: 10px;">◆ -</span>
										</div>
									</div>
								</div></a>';
    }
} else {
    echo 'This user does not exist.';
}
?>
				</div>
			</div>
示例#2
0
文件: edit.php 项目: HardSkript/3_126
echo $res;
?>
<br/><br/>
					<strong>File type</strong><br/>
					<?php 
echo $ext;
?>
<br/><br/>
					<strong>File size</strong><br/>
					<?php 
echo round($size / 1024) . "KB";
?>
<br/><br/>
					<strong>Rating</strong><br/>
					<span style="color: <?php 
echo getRatingColor($rating);
?>
;"><?php 
echo getRating($rating);
?>
</span>
					<br/><br/>
					<a href="<?php 
echo $source;
?>
" style="font-size: 11pt;"><strong>Source</strong></a><br/>
				</div>
			</div>
			<?php 
$query = "SELECT * FROM image_db WHERE ID=" . $_GET['id'];
$result = mysqli_query($mysqli, $query);