// например, вставить "|" между ссылками
        if ($j != $pages_count) {
            echo ' ';
        }
        $page = $page + 6;
    }
    return true;
}
if ($page > $pages_count) {
    $page = $pages_count;
}
$per = 6;
$pages_count = ceil($block_count_tovar / $per);
// Количество страниц
echo "<div style='clear:both; position:relative;margin-top:20px; display:inline-block; width:100%;text-align:center'>\n    <ul style='position: relative;margin: 0 auto;width:50%;'>";
link_bar(0, $pages_count);
echo "</ul></div>";
include "./core/pagination.php";
?>
                          
        </div>



	<div id="body_center_right_column">
            <div id="add_advert">
               <a href="/market/addtovargift"><img src="/public/images/market/add.png" onmouseover="this.src='/public/images/market/add_active.png';" onmouseout="this.src='/public/images/market/add.png';"></a>
            </div>
            <div id="filtr">
                 <form method="post" class="form_filtr" action="/market/filtr/">
                    <h4 class="header_filtr"> <input type="submit" value="ПОИСК ТОВАРОВ" style="font-weight: 700;width:80%;color:#4C07BB;"></h4><ul class="radio-group"> <br>
Example #2
0
    }
    ?>
</div>
	<div id="ads-pages">
		<?php 
    $pagesname = "";
    if (isset($_SERVER['REQUEST_URI'])) {
        if (mb_strpos($_SERVER['REQUEST_URI'], 'search.php') !== false) {
            $pagesname = "/search.php?str=" . $_REQUEST['str'] . "&page=";
        }
    }
    if ($pagesname == "") {
        $pagesname = "/adspage-";
    }
    //   search.php?str=+права&catid=[]&page=[]
    link_bar($page, $pages_count, $pagesname);
    ?>
	</div>
</div>
<?php 
}
if (isset($adsId)) {
    ?>
<div class="page-container">
	<div class="ads-art">
		<a class="single_image"  href="<?php 
    if ($adsId['photo'] != FALSE) {
        echo UPDIR . $adsId['photo'];
    }
    ?>
">
Example #3
0
   You can modify the following defines to change the color scheme of the
   calendar
*/
define('SEPCOLOR', '#000000');
define('BG_COLOR1', '#FFFFFF');
define('BG_COLOR2', 'gray');
define('BG_COLOR3', 'silver');
define('BG_COLOR4', '#CCCCCC');
define('BG_PAST', 'silver');
define('BG_FUTURE', 'white');
define('TEXTCOLOR1', '#000000');
define('TEXTCOLOR2', '#FFFFFF');
/*
 * Do not modify anything under this point
 */
define('IN_PHPC', true);
if (!empty($_GET['action']) && $_GET['action'] == 'style') {
    require_once $phpc_root_path . 'includes/style.php';
    exit;
}
require_once $phpc_root_path . 'includes/calendar.php';
require_once $phpc_root_path . 'includes/setup.php';
require_once $phpc_root_path . 'includes/globals.php';
$legal_actions = array('event_form', 'event_delete', 'display', 'event_submit', 'search', 'login', 'logout', 'admin', 'options_submit', 'new_user_submit');
if (!in_array($action, $legal_actions, true)) {
    soft_error(_('Invalid action'));
}
require_once $phpc_root_path . "includes/{$action}.php";
eval("\$output = {$action}();");
$html = tag('html', attributes("lang=\"{$lang}\""), tag('head', tag('title', $config['calendar_title']), tag('link', attributes('rel="stylesheet" type="text/css"' . " href=\"{$phpc_script}?action=style\""))), tag('body', tag('h1', $config['calendar_title']), navbar(), $output, link_bar()));
echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">', "\n", $html->toString();