lang->line('qslcard_string_your_are_using'); ?> lang->line('qslcard_string_disk_space'); ?>
session->userdata('user_date_format')) {
// If Logged in and session exists
$custom_date_format = $this->session->userdata('user_date_format');
} else {
// Get Default date format from /config/cloudlog.php
$custom_date_format = $this->config->item('qso_date_format');
}
if (is_array($qslarray->result())) {
echo '
'.$this->lang->line('gen_hamradio_callsign').'
'.$this->lang->line('gen_hamradio_mode').'
'.$this->lang->line('general_word_date').'
'.$this->lang->line('general_word_time').'
'.$this->lang->line('gen_hamradio_band').'
'.$this->lang->line('gen_hamradio_qsl').'
';
foreach ($qslarray->result() as $qsl) {
echo '';
echo '' . str_replace("0","Ø",$qsl->COL_CALL) . ' ';
echo '';
echo $qsl->COL_SUBMODE==null?$qsl->COL_MODE:$qsl->COL_SUBMODE;
echo ' ';
echo '';
$timestamp = strtotime($qsl->COL_TIME_ON); echo date($custom_date_format, $timestamp);
echo ' ';
echo '';
$timestamp = strtotime($qsl->COL_TIME_ON); echo date('H:i', $timestamp);
echo ' ';
echo '';
if($qsl->COL_SAT_NAME != null) { echo $qsl->COL_SAT_NAME; } else { echo strtolower($qsl->COL_BAND); };
echo ' ';
echo '' . $qsl->image_file . ' ';
echo 'View ';
echo ' ';
}
echo '
';
}
?>
result())) {
foreach ($qslarray->result() as $qsl) {
if ($thumb_generations >=0) {
$src = $folder_name.'/'.$qsl->image_file;
$dest = $folder_name.'/_'.$qsl->image_file;
if (!file_exists($folder_name.'/_'.$qsl->image_file)) {
$thumb_generations--;
/* read the source image */
$data = file_get_contents( $src );
$source_image = imagecreatefromstring( $data );
$width = imagesx( $source_image );
$height = imagesy( $source_image );
/* find the "desired height" of this thumbnail, relative to the desired width */
$desired_height = floor( $height * ( $desired_width / $width ) );
/* create a new, "virtual" image */
$virtual_image = imagecreatetruecolor( $desired_width, $desired_height );
/* copy source image at a resized size */
imagecopyresampled( $virtual_image, $source_image, 0, 0, 0, 0, $desired_width, $desired_height, $width, $height );
/* create the physical thumbnail image to its destination */
imagejpeg( $virtual_image, $dest, 60 );
}
echo '
';
}
}
}
} else {
echo 'Gallery requires GD libraries to be installed
https://www.php.net/manual/en/image.installation.php ';
}
?>