<?php $start = microtime(true);?>
<!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" dir="ltr" lang="<?php echo str_replace('_', '-', osc_current_user_locale()); ?>">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title></title>
<meta name="title" content="" />
<?php if( meta_description() != '' ) { ?>
<meta name="description" content="<?php echo osc_esc_html(meta_description()); ?>" />
<?php } ?>
<meta name="keywords" content="к" />
<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="Expires" content="Fri, Jan 01 1970 00:00:00 GMT" />
<link rel="icon" type="image/png" href="/favicon.png" />
<link href="<?php echo osc_current_web_theme_url('style.css') ; ?>" rel="stylesheet" type="text/css" />
<meta name="robots" content="index, follow" />
<meta name="googlebot" content="index, follow" />
<script type="text/javascript" src="oc-includes/osclass/assets/js/jquery.min.js"></script>
</head>
<body>
<!-- container -->
<div class="container">
<!-- header -->
<div id="header">
<a id="logo" href="<?php echo osc_base_url() ; ?>"><?php echo logo_header(); ?></a>
<div id="user_menu">
<ul>
<?php if(osc_users_enabled()) { ?>
<?php if( osc_is_web_user_logged_in() ) { ?>
<li class="first logged">
<?php echo sprintf(__('Привет, %s', 'modern'), osc_logged_user_name()); ?> ·
<strong><a href="<?php echo osc_user_dashboard_url() ; ?>"><?php _e('My account', 'modern') ; ?></a></strong> ·
<a href="<?php echo osc_user_logout_url() ; ?>"><?php _e('Logout', 'modern') ; ?></a>
</li>
<?php } else { ?>
<li class="first">
<a id="login_open" href="<?php echo osc_user_login_url(); ?>"><?php _e('Login', 'modern') ; ?></a>
<?php if(osc_user_registration_enabled()) { ?>
·
<a href="<?php echo osc_register_account_url() ; ?>"><?php _e('Register for a free account', 'modern'); ?></a>
<?php }; ?>
<form id="login" action="<?php echo osc_base_url(true) ; ?>" method="post">
<fieldset>
<input type="hidden" name="page" value="login" />
<input type="hidden" name="action" value="login_post" />
<label for="email"><?php _e('E-mail', 'modern') ; ?></label><br/>
<?php UserForm::email_login_text() ; ?><br/>
<label for="password"><?php _e('Password', 'modern') ; ?></label><br/>
<?php UserForm::password_login_text() ; ?>
<p class="checkbox"><?php UserForm::rememberme_login_checkbox();?> <label for="rememberMe"><?php _e('Remember me', 'modern') ; ?></label></p>
<button type="submit"><?php _e('Log in', 'modern') ; ?></button>
<div class="forgot">
<a href="<?php echo osc_recover_user_password_url() ; ?>"><?php _e("Forgot password?", 'modern');?></a>
</div>
</fieldset>
</form>
</li>
<?php } ?>
<?php } ?>
<?php if ( osc_count_web_enabled_locales() > 1) { ?>
<?php osc_goto_first_locale() ; ?>
<li class="last with_sub">
<strong><?php _e("Language", 'modern') ; ?></strong>
<ul>
<?php $i = 0 ; ?>
<?php while ( osc_has_web_enabled_locales() ) { ?>
<li <?php if( $i == 0 ) { echo "class='first'" ; } ?>><a id="<?php echo osc_locale_code() ; ?>" href="<?php echo osc_change_language_url ( osc_locale_code() ) ; ?>"><?php echo osc_locale_name() ; ?></a></li>
<?php $i++ ; ?>
<?php } ?>
</ul>
</li>
<?php } ?>
</ul>
<?php if( osc_users_enabled() || ( !osc_users_enabled() && !osc_reg_user_post() )) { ?>
<div class="form_publish">
<strong class="publish_button"><a href="<?php echo osc_item_post_url_in_category() ; ?>"><?php _e("Publish your ad for free", 'modern');?></a></strong>
</div>
<?php } ?>
<div class="empty"></div>
</div>
</div>
<div class="clear"></div>
<div class="forcemessages-inline">
<?php osc_show_flash_message(); ?>
</div>
<!-- /header -->
<div class="content home">
<?php osc_run_hook('search_form', osc_search_category_id()) ;?>
<div id="main">
<div class="categories">
<?php include_once 'files-include/category_on_main.php';?>
</div>
<!--Вывод премиум-->
<div class="categories">
<?php while ( osc_has_categories() ) { ?>
<?php if ( osc_count_subcategories() > 0 ) { ?>
<?php while ( osc_has_subcategories() ) {?>
<div class="latest_ads">
<?php osc_get_premiums();
if(osc_count_premiums()>0 ) ?>
<table border="0" cellspacing="0">
<tbody>
<?php $class = "even" ; ?>
<?php while(osc_has_premiums()) {
if (osc_premium_category_id() == osc_category_id()) {?>
<h1><strong>Рекомендуемые <?php echo osc_category_name(); ?></strong></h1>
<tr class="premium_<?php echo $class; ?>">
<?php if( osc_images_enabled_at_items() ) { ?>
<td class="photo">
<?php if(osc_count_premium_resources()) { ?>
<a href="<?php echo osc_premium_url() ; ?>"><img src="<?php echo osc_resource_thumbnail_url() ; ?>" width="75" height="56" title="<?php echo osc_item_title(); ?>" alt="<?php echo osc_item_title(); ?>" /></a>
<?php } else { ?>
<img src="<?php echo osc_current_web_theme_url('images/no_photo.gif') ; ?>" title="" alt="" />
<?php } ?>
</td>
<?php } ?>
<td class="text">
<h3>
<span style="float:left;"><a href="<?php echo osc_premium_url() ; ?>"><?php echo osc_highlight( strip_tags( osc_premium_title() ) ); ?></a></span><span style="float:right;"><?php _e("Sponsored ad", "italia"); ?></span>
</h3>
<p style="clear: left;">
<strong><?php if( osc_price_enabled_at_items() ) { echo osc_premium_formated_price() ; ?> - <?php } echo osc_premium_city(); ?> (<?php echo osc_premium_region(); ?>) - <?php echo osc_format_date(osc_premium_pub_date()); ?></strong>
</p>
<p><?php echo osc_highlight( strip_tags( osc_premium_description() ) ) ; ?></p>
</td>
</tr>
<?php $class = ($class == 'even') ? 'odd' : 'even' ; ?>
<?php } ?>
<?php } ?>
</tbody>
</table>
</div>
<?php } ?>
<?php } ?>
<?php } ?>
</div>
<!--END-->
</div>
<div id="sidebar">
<div id="ads">
<object type=application/x-shockwave-flash data=http://idperm.ru/oc-content/flash/idPerm_345.swf width=345 height=345>
<param name=movie value=http://idperm.ru/oc-content/flash/idPerm_345.swf></object>
<!--<a href="#" target="blank" style="float:right; margin: 2px 5px; color:#c5c5c5; font-size:11px; border-bottom: 1px dotted #c5c5c5;">Реклама на сайте</a>-->
</div>
</div>
</div>
<?php osc_current_web_theme_path('footer.php'); ?>
<?php $time = microtime(true) - $start;
if (osc_logged_admin_id()) printf('Скрипт выполнялся %.4F сек.', $time);?>
</body>
</html>