$j_date_to = $_POST['job_date_to_' . $i]; $j_name = $_POST['job_name_' . $i]; $j_address = $_POST['job_address_' . $i]; // echo('!' . $j_date_to . $j_date_to . $j_name . $j_address . '!'); if (strlen($j_date_to) + strlen($j_date_to) + strlen($j_name) + strlen($j_address) > 0) { if (strlen($job_tbl_rows) > 0) { $job_tbl_rows .= ', '; } $job_tbl_rows .= '"' . $j_date_from . '", "' . $j_date_to . '", "' . $j_name . '", "' . $j_address . '"'; } } //echo($job_tbl_rows); $tpl->set('{job_tbl_rows}', $job_tbl_rows); $tpl->set('{skin}', $config['skin']); $tpl->compile('content'); removeOldFiles(realpath('./uploads/forms_images/'), 30); // FUNCTIONS function txtCenter($image, $size, $angle, $left, $top, $color, $font, $text, $max_width) { $tb = imagettfbbox($size, $angle, $font, $text); $x = ceil(($max_width - $tb[2]) / 2) + $left; imagettftext($image, $size, $angle, $x, $top, $tc, $font, mb_strtoupper($text, 'utf-8')); } function wrap($fontSize, $angle, $fontFace, $string, $width) { $ret = ""; $arr = explode(' ', $string); foreach ($arr as $word) { $teststring = $ret . ' ' . $word; $testbox = imagettfbbox($fontSize, $angle, $fontFace, $teststring); if ($testbox[2] > $width) {
} // Detect server name $server_name = getenv('SERVER_NAME'); if ($server_name === false) { $server_name = 'localhost'; } // Construct base URL $base_url = sprintf('%s://%s%s%s', $protocol, $server_name, $port, dirname(getenv('SCRIPT_NAME'))); return $base_url; } // Only read files if the feature is enabled if ($settings['listfiles']) { $file_array = createArrayFromPath($data['uploaddir']); // Removing old files if ($settings['time_limit'] > 0) { removeOldFiles($data['uploaddir']); } $file_array = createArrayFromPath($data['uploaddir']); } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $settings['lang']; ?> " lang="<?php echo $settings['lang']; ?> " dir="<?php echo $settings['lang_dir']; ?> ">