id, $page_content->type, $page_content->url, $_SERVER['HTTP_REFERER'], $_SERVER['HTTP_USER_AGENT'], $_SERVER['REMOTE_ADDR'], gethostbyaddr($_SERVER['REMOTE_ADDR'])); $title = get_lang('title_'); $content = get_lang('content_'); $aditional_content = Get_Lang('aditional_content_'); $files = array(); $files_counter = 0; echo '
'; echo '
'; echo '

'.$page_content->$title.'

'; echo '
'; echo '
'; echo 'Sva korišćena vozila'; echo '
'; echo '
'; echo '
'; echo '
'; echo '
'; $multimedias = Multimedia::find_by_page($page_content->id); if(count($multimedias) > 0) { $text = Get_Lang('text_'); echo '
'.PHP_EOL; echo '
'.PHP_EOL; echo ''.PHP_EOL; echo ''.PHP_EOL; echo '
'.PHP_EOL; foreach ($multimedias as $multimedia) { if (!empty($multimedia->file)) { if($multimedia->type == 'youtube') { echo '
'.PHP_EOL; echo ''.PHP_EOL; echo '
'.PHP_EOL; echo ''.PHP_EOL; echo ''.PHP_EOL; echo '
'.PHP_EOL; echo '
'.PHP_EOL; } if($multimedia->type == 'vimeo') { $hash = unserialize(file_get_contents("http://vimeo.com/api/v2/video/".htmlspecialchars($multimedia->file).".php")); echo '
'.PHP_EOL; echo ''.PHP_EOL; echo '
'.PHP_EOL; echo ''.PHP_EOL; echo ''.PHP_EOL; echo '
'.PHP_EOL; echo '
'.PHP_EOL; } if($multimedia->type == 'image') { echo '
'.PHP_EOL; echo ''.PHP_EOL; echo ''.PHP_EOL; echo '
'.PHP_EOL; } if($multimedia->type == 'file') { $files[] = array( 'counter' => ++$files_counter, 'file' => $multimedia->file, ); } } } echo '
'.PHP_EOL; echo '
'.PHP_EOL; echo '
'.PHP_EOL; //echo ''.PHP_EOL; echo ''.PHP_EOL; echo '
'.PHP_EOL; foreach ($multimedias as $multimedia) { if (!empty($multimedia->file)) { if($multimedia->type == 'youtube') { echo '
'.PHP_EOL; //echo ''.PHP_EOL; echo ''.PHP_EOL; //echo ''.PHP_EOL; echo '
'.PHP_EOL; } if($multimedia->type == 'vimeo') { $hash = unserialize(file_get_contents("http://vimeo.com/api/v2/video/".htmlspecialchars($multimedia->file).".php")); echo '
'.PHP_EOL; //echo ''.PHP_EOL; echo ''.PHP_EOL; //echo ''.PHP_EOL; echo '
'.PHP_EOL; } if($multimedia->type == 'image') { echo '
'.PHP_EOL; //echo ''.PHP_EOL; echo ''.PHP_EOL; //echo ''.PHP_EOL; echo '
'.PHP_EOL; } } } echo '
'.PHP_EOL; } else { if($page_content->image) { echo '
'.PHP_EOL; echo '
'.PHP_EOL; echo ''.PHP_EOL; echo ''.PHP_EOL; echo '
'.PHP_EOL; echo '
'.PHP_EOL; } } echo '
'; echo '
'; echo '
'; echo '
'; echo '
'; $queryFields = "SELECT * FROM page_fields WHERE page_id = '$page_content->id' ORDER BY id ASC"; $resultFields = $db->query($queryFields); if ($resultFields) { $i = 0; while ($rowFields = $resultFields->fetch_assoc()) { echo '
'; echo '
'; if ($i % 2 == 0 ) { echo '
'.$rowFields['name'].' :
'; } else { echo '
'.$rowFields['name'].' :
'; } echo '
'; echo '
'; if ($i % 2 == 0 ) { echo '
'.$rowFields['value'].' :
'; } else { echo '
'.$rowFields['value'].' :
'; } echo '
'; echo '
'; $i++; } } echo '
'; echo '
'; echo '
CIJENA: '.$page_content->price.' KM
'; echo '
'; echo '
'; echo '
'; echo '
'; echo '
'; echo $page_content->$content; echo '
'; echo '
'; if (!empty($files)) { echo '
'; $i = 0; foreach ($files as $file) { echo '
'; echo '
'; if ($i % 2 == 0 ) { echo '
'; } else { echo '
'; } @$file_extension = end(explode('.', $file['file'])); if($file_extension == 'rar' OR $file_extension == 'zip') { echo "\"".$file_extension."\"\n"; echo '   '; } else if($file_extension == 'doc' OR $file_extension == 'docx') { echo "\"".$file_extension."\"\n"; echo '   '; } else if($file_extension == 'pdf' ) { echo "\"".$file_extension."\"\n"; echo '   '; } else { echo "\"".$file_extension."\"\n"; echo '   '; } echo ''; echo $file['file']; echo ''; echo '
'; echo '
'; $i++; } } } // list posts else { echo '
'; echo '
'; echo '

Korišćena vozila

'; echo '
'; echo '
'; //echo 'Sva korišćena vozila'; echo '
'; echo '
'; echo '
'; $all_posts = Pages::find_all_active($_SESSION['lang'], 'articles', $start, 'order_id', 'DESC', 1, PAGINATION_PER_PAGE); @page_view('5', 'articles', 'articles', $_SERVER['HTTP_REFERER'], $_SERVER['HTTP_USER_AGENT'], $_SERVER['REMOTE_ADDR'], gethostbyaddr($_SERVER['REMOTE_ADDR'])); if($all_posts) { $i = 0; $paggingCounter = 1; foreach ($all_posts as $all_posts) { $title = Get_Lang('title_'); $content = Get_Lang('content_'); list($created_date, $created_time) = explode(" ", $all_posts->created_date); list($created_year, $created_month, $created_day) = explode("-", $created_date); if ($paggingCounter % 2 == 0 ) { echo '
'; } echo ''; if ($paggingCounter % 2 == 0 AND $paggingCounter > 0) { echo '
'; } $paggingCounter++; } } else { echo '
'; echo '
'; echo '

Trenutno nema postova u ovoj kategoriji.

'; echo '
'; echo '
'; } echo '
'; echo '
'; echo display_pagination('articles', 'koriscena-vozila', $start, PAGINATION_PER_PAGE, true).PHP_EOL; echo '
'; echo '
'; } ?>