function get_thumb($id_imagen, $height, $width) { $cnx = new DB(); $sql = "SELECT vin_imagen FROM vinculacion WHERE vin_id='" . $id_imagen . "'"; $registro = $cnx->get_registro($sql); $image_path = "../../sistema/images/vinculacion/" . $registro->vin_imagen; //debug($image_path);exit(); // $image_path = "../../sistema/images/vinculacion/1.png"; /* $arreglo = array("images","no_disponible.jpg");//Si el archivo no existe if(file_exists("../".$imagen)) { $arreglo = explode("/",$imagen); } else { $imagen = implode ("/",$arreglo); } */ $images = new Imagenes(); $images->set_height($height); $images->set_width($width); $images->set_path_file($image_path); return $images->get_thumb(); }
function get_thumb($id_galeria, $height, $width) { $sql = "SELECT img_ruta FROM imagenes_galeria WHERE img_id='" . $id_galeria . "' AND img_eliminado IS NULL"; $registro = $this->get_registro($sql); $image_path = "../../sistema/images/galerias/" . $registro->img_ruta; $images = new Imagenes(); $images->set_height($height); $images->set_width($width); $images->set_path_file($image_path); return $images->get_thumb(); }