forked from jobberbase/jobberbase
/
page_cities.php
30 lines (23 loc) · 982 Bytes
/
page_cities.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
/**
* jobber job board platform
*
* @author Chronos <http://chronoscripts.com> <chronos@chronoscripts.com>
* @license You are free to edit and use this work, but it would be nice if you always referenced the original author ;)
* (see license.txt).
*/
$city_array = get_cities_cloud();
$smarty->assign('cities_overview', $city_array);
$numberOfJobsInOtherCities = $job->GetNumberOfJobsInOtherCities();
$smarty->assign('jobs_count_in_other_cities', $numberOfJobsInOtherCities);
$smarty->assign('jobs_count_in_other_cities_tag_height', get_cloud_tag_height($numberOfJobsInOtherCities));
$totalNumberOfJobs = 0;
foreach ($city_array as $city_job_data)
{
$totalNumberOfJobs += $city_job_data['count'];
}
$totalNumberOfJobs += $numberOfJobsInOtherCities;
$smarty->assign('total_number_of_jobs', $totalNumberOfJobs);
$html_title = $translations['jobscity']['page_title'];
$template = 'cities.tpl';
?>