/
index_fa.php
36 lines (27 loc) · 1.19 KB
/
index_fa.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
31
32
33
34
35
36
<?php
error_reporting(E_ALL ^ E_NOTICE);
require_once('app/moduls.php');
//showunder();
$template['page'] = $template['menu_url'] = get_page();
if($template['page'] == 'projects_list_fa'){
$template['menu_url'] = 'projects';
$template['projects_arr'] = db_getrows('portfolio','*',"category=$_GET[cat]",'sort',30);
$template['projects'] = gen_projects_list($template['projects_arr']);
}
else if($template['page'] == 'our-customers_fa'){
$template['customers_arr'] = db_getrows('customers','*',true,'page',15);
$template['customers'] = gen_customers_list($template['customers_arr']);
}
else if($template['page'] == 'home_fa'){
// Home page slider
$template['home_slider_arr'] = db_getrows('home_slider','*',true,'sort',15);
$template['home_slider'] = gen_home_list($template['home_slider_arr']);
// Last project
$last_project = db_getrows('last_project');
$template['last_project']=$last_project[0];
$project_id = $template['last_project']['project_id'];
$target_project = db_getrows('portfolio','*',"id='$project_id'");
$template['last_project']['target_project']=$target_project[0];
} $template['last_project_html'] = gen_last_project($template['last_project']);
inc("view",'app');
finalise();