20 lines
348 B
PHP
20 lines
348 B
PHP
<?php
|
|
/**
|
|
* url image book
|
|
*/
|
|
|
|
function picbook($item, $width, $height) {
|
|
|
|
$id = $item['price_id'];
|
|
$img = $item['priceimg'];
|
|
|
|
if (in_array($img, array('jpg', 'jpeg', 'gif', 'png', 'JPG'))){
|
|
$fileimg = $id . '.' . $img;
|
|
}
|
|
else
|
|
$fileimg = $img;
|
|
|
|
|
|
return IMGSRV.'price/'.$width.'x'.$height.'/'.$fileimg;
|
|
|
|
} |