Пример #1
0
        </div>
		<div class="col-md-6">
            <div class="panel panel-default">
                <div class="panel-heading"><a href="stats"><i class="fa fa-bar-chart-o"></i> <?php 
echo lang('DASHBOARD_ticket_stats');
?>
</a></div>
                <div class="panel-body">
                    <div class="row">

                        <div class="col-md-4 col-xs-4"><center>    <strong class="text-danger"  style="font-weight: bold; font-style: normal; font-variant: normal; font-size: 20px;" data-toggle="tooltip" data-placement="top" title="<?php 
echo lang('DASHBOARD_ticket_in_desc');
?>
">
                                    <a class="text-danger" href="list?in" id="d_label_1"><?php 
echo get_total_tickets_free();
?>
</a>
                                </strong><br><small><i class="fa fa-download"></i> <?php 
echo lang('DASHBOARD_ticket_in');
?>
	</small>	</center></div>

                        <div class="col-md-4 col-xs-4"><center>	<strong class="text-warning" style="font-weight: bold; font-style: normal; font-variant: normal; font-size: 20px;" data-toggle="tooltip" data-placement="top" title="<?php 
echo lang('DASHBOARD_ticket_lock_desc');
?>
" id="d_label_2"><?php 
echo get_total_tickets_lock();
?>
</strong><br><small><i class='fa fa-lock'></i> <?php 
echo lang('DASHBOARD_ticket_lock');
Пример #2
0
                    $ec = explode(",", $row['unit']);
                    $result = array_intersect($ee, $ec);
                    if ($result) {
                        ?>

<tr>
                    <td style="width: 200px;"><small><?php 
                        echo name_of_user_ret($row['id']);
                        ?>
</small></td>
                    <td style=""><small class="text-danger"><center><?php 
                        echo get_user_status($row['id']);
                        ?>
</center></small></td>
                    <td style=""><small class="text-danger"><center><?php 
                        echo get_total_tickets_free($row['id']);
                        ?>
</center></small></td>
                    <td style=""><small class="text-warning"><center><?php 
                        echo get_total_tickets_lock($row['id']);
                        ?>
</center></small></td>
                    <td style=""><small class="text-success"><center><?php 
                        echo get_total_tickets_ok($row['id']);
                        ?>
</center></small></td>
                    <td style=""><small class=""><center><?php 
                        echo get_total_tickets_out($row['id']);
                        ?>
</center></small></td>
                    <td style=""><small class=""><center><?php 
Пример #3
0
     }
 }
 if ($mode == "get_unit_id") {
     $uid = $_POST['uid'];
     $u = unit_of_user($uid);
     $units = explode(",", $u);
     echo $units[0];
 }
 if ($mode == "get_ticket_body") {
 }
 if ($mode == "update_dashboard_labels") {
     $results[] = array('a' => get_total_tickets_free(), 'b' => get_total_tickets_lock(), 'c' => get_total_tickets_out_and_success());
     print json_encode($results);
 }
 if ($mode == "update_list_labels") {
     $newt = get_total_tickets_free();
     if ($newt != 0) {
         $newtickets = "(" . $newt . ")";
     }
     if ($newt == 0) {
         $newtickets = "";
     }
     $outt = get_total_tickets_out_and_success();
     if ($outt != 0) {
         $out_tickets = "(" . $outt . ")";
     }
     if ($outt == 0) {
         $out_tickets = "";
     }
     $results[] = array('in' => $newtickets, 'out' => $out_tickets);
     print json_encode($results);