Esempio n. 1
0
		<p>Выбор курьера для отправителя</p>
	</div>
	<table class="table">
		<thead>
			<tr>
				<th>Курьер</th>
				<th>Адрес</th>
				<th>Выполнено / В процессе</th>
				<th>Выбрать</th>
			</tr>
		</thead>
		<tbody>
<?php 
$q = "SELECT * FROM `shops` ORDER BY `shop_name`";
$shops = $db->query($q);
$drops = getUsersListRank(3);
foreach ($drops as $drop) {
    // смотрим было ли что-то выбрано?
    $q = "SELECT * FROM `drops2shippers` WHERE `drop_id` = " . $drop->id . " AND `shipper_id` = " . $route->param;
    $dropshopselector = $db->query($q);
    if (isset($dropshopselector[0])) {
        $isdropselected = 'btn-success';
        $isShowShops = 'table-row';
    } else {
        $isdropselected = 'btn-info';
        $isShowShops = 'none';
    }
    $totalPackages = getDropCompleatePkgs($drop->id) + getDropInworkPkgs($drop->id);
    echo '<tr><td>' . $drop->first_name . ' ' . $drop->middle_name . ' ' . $drop->last_name . '</td><td>' . $drop->address . ' ' . $drop->city . ' ' . $drop->state . ' ' . $drop->zip . ' ' . $drop->country . '</td><td align=center>' . $totalPackages . '</td><td align=center><span class="btn ' . $isdropselected . ' btn-xs btnSelectDrop' . $drop->id . '" onclick="enableDrop(' . $drop->id . ');">select</span></td></tr>';
    echo '<tr id="dropShopSelect_' . $drop->id . '" style="display:' . $isShowShops . ';"><td colspan=4>';
    if (isset($shops[0])) {
Esempio n. 2
0
	<?php 
if ($user['rankname'] == 'shipper') {
    $q = "\tSELECT u.*, d2s.shop_id, s.shop_name FROM `drops2shippers` AS d2s\n\t\t\t\t\tLEFT JOIN `users` AS u ON u.id = d2s.drop_id\n\t\t\t\t\tLEFT JOIN `shops` AS s ON s.id = d2s.shop_id\n\t\t\t\t\tWHERE d2s.shipper_id = " . $user['id'];
    $res = $db->query($q);
    $usersList = array();
    if (isset($res[0])) {
        foreach ($res as $r) {
            if (!isset($usersList[$r->id])) {
                $usersList[$r->id] = $r;
            }
            $usersList[$r->id]->shops[] = array('id' => $r->shop_id, 'name' => $r->shop_name);
        }
    }
    //debug($usersList);
} else {
    $usersList = getUsersListRank(3);
}
if ($usersList !== false) {
    foreach ($usersList as $k => $v) {
        ?>
					<tr data-user-id="<?php 
        echo $v->id;
        ?>
">
						<?php 
        if ($user['rankname'] == 'admin' || $user['rankname'] == 'support') {
            ?>
						<td style="cursor:pointer;color:<?php 
            echo getUserColor($v->id);
            ?>
" onclick="showUserFullInfo(<?php 
Esempio n. 3
0
	<thead>
		<tr>
			<th>#</th>
			<th>Логин</th>
			<!--<th>ФИО</th>-->
			<th>Email</th>
			<!--<th>Страна</th>
			<th>Штат</th>-->
			<!--<th>Status</th>-->
			<th>Дата регистрации</th>
			<th class='text-center'>Действия</th>
		</tr>
	</thead>
	<tbody>
	<?php 
$usersList = getUsersListRank(6);
if ($usersList !== false) {
    foreach ($usersList as $k => $v) {
        ?>
					<tr data-user-id="<?php 
        echo $v->id;
        ?>
">
						<td><?php 
        echo $v->id;
        ?>
</td>
						<td><a href="<?php 
        echo $cfg['options']['siteurl'];
        ?>
/userInfo/<?php 
Esempio n. 4
0
<div style="clear: both"></div>

<div class="table-responsive">
<table class="table table-striped">
	<thead>
		<tr>
			<th>#</th>
			<th>Имя</th>
			<th>Jabber</th>			
			<th>Дата регистарции</th>
			<th class='text-center'>Действия</th>
		</tr>
	</thead>
	<tbody>
	<?php 
$usersList = getUsersListRank(2);
if ($usersList !== false) {
    foreach ($usersList as $k => $v) {
        ?>
					<tr data-user-id="<?php 
        echo $v->id;
        ?>
">
						<td><?php 
        echo $v->id;
        ?>
</td>
						<td><?php 
        echo $v->first_name . ' ' . $v->middle_name . ' ' . $v->last_name;
        ?>
</td>
Esempio n. 5
0
</td><td>Всего:</td><td><?php 
echo count(getUsersListRank(3));
?>
</td></tr>
			<tr><td>Покупатели:</td><td><?php 
echo getUsersTypeOnline(5);
?>
</td><td>Всего:</td><td><?php 
echo count(getUsersListRank(5));
?>
</td></tr>
			<tr><td>Отправители:</td><td><?php 
echo getUsersTypeOnline(2);
?>
</td><td>Всего:</td><td><?php 
echo count(getUsersListRank(2));
?>
</td></tr>
		</tbody>
	</table>
</div>

<div class="table-responsive">
	<h2>Статистика товаров </h2>
	<table class="table table-bordered table-striped table-hover table-condensed">
		<thead>
			<tr>
				<th>Тип</th>
				<th>Значение</th>
			</tr>
		</thead>