Ejemplo n.º 1
0
<?
require_once($_SERVER['DOCUMENT_ROOT'] . "/classes/clients.php");
$cl = new clients();
$clients = $cl->getClients('RANDOM()', 5);
if (!count($clients)) $clients = array();

$searchLinkFlag = 0;
if (get_uid(false)) {
    if ( $_SESSION["role"][0] != '1') {
        $searchLinkFlag = 1;
    }
}
?>
<div style="position:absolute;top:260px; width:100%;margin-top:<?php 
echo $extraMarginTop;
?>
px">
<div style="margin:0 auto;	min-width:1000px;	max-width:1280px;">
<div class="b-promo b-promo_main">
    <table class="b-layout__table b-layout__table_width_full" cellpadding="0" cellspacing="0" border="0">
        <tr class="b-layout__tr">
            <td class="b-layout__one b-layout__one_width_50ps b-layout__one_padtb_20">
                <table class="b-layout__table b-layout__table_width_full" cellpadding="0" cellspacing="0" border="0" style="max-width:620px; min-width:500px; float:right;">
                    <tr class="b-layout__tr">
                        <td class="b-layout__one b-layout__one_padleft_20">
                            <div class="b-promo__txt b-promo__txt_fontsize_34 b-promo__txt_bold b-promo__txt_lineheight_1"><?php 
echo $pUStat['u']['count'];
?>
</div>
                            <div class="b-promo__txt"><?php 
echo $pUStat['u']['phrase'];
Ejemplo n.º 2
0
                $logo = new CFile($_FILES['logo']);
            }
            if ($name && $link && (!$_FILES['logo']['name'] || $logo->size)) {
                $link = str_replace("http://", "", $link);
                $link = "http://" . $link;
                $clnt->editClient($name, $link, $logo, $cid, $error_edit);
            } else {
                $error_edit = "Заполнены не все поля";
            }
            if (!$error_edit) {
                if ($logo) {
                    $logo_tmp = new CFile($_POST['logo_tmp']);
                    $logo_tmp->Delete($logo_tmp->id);
                }
                header("Location: /clients/?a=1{$upage}");
                die;
            }
            break;
    }
    $limit = 10;
    // Сколько на одной странице выдавать
    $clients = $clnt->getAdminClients($page, $count, $limit);
} else {
    $clients = $clnt->getClients();
}
$content = "content.php";
$header = "../header.php";
$footer = "../footer.html";
$freelancers_catalog = true;
$css_file = array('main.css', 'nav.css');
include "../template2.php";