Exemplo n.º 1
0
  <div class="panel-body">
	<h3 style=" margin-top: 0px; "><?php 
            echo make_html($fio['title']);
            ?>
</h3>
	<p><?php 
            echo $fio['message'];
            ?>
</p>
	<hr>
	
	<p class="text-right"><small class="text-muted"><?php 
            echo lang('HELPER_pub');
            ?>
: <?php 
            echo nameshort(name_of_user_ret($fio['user_init_id']));
            ?>
</small><br><small class="text-muted"><?php 
            echo lang('HELPER_date');
            ?>
: <?php 
            echo $fio['dt'];
            ?>
</small>
	<br><a id="print_t" class="btn btn-default btn-xs"> <i class="fa fa-print"></i> <?php 
            echo lang('HELPER_print');
            ?>
</a>
    	</p>
  </div>
</div>
Exemplo n.º 2
0
            if (get_user_status_text($row['value']) == "online") {
                $s = "status-online-icon";
            } else {
                if (get_user_status_text($row['value']) == "offline") {
                    $s = "status-offline-icon";
                }
            }
            ?>
                    <option data-foo="<?php 
            echo $s;
            ?>
" value="<?php 
            echo $row['value'];
            ?>
"><?php 
            echo nameshort($row['label']);
            ?>
 </option>

                <?php 
        }
        ?>
    </select>
            

        </div>

    </div>


Exemplo n.º 3
0
                    echo $row['date_create'];
                    ?>
"></time></center></small></td>
                        <td style=" vertical-align: middle; "><small><?php 
                    echo nameshort(name_of_user_ret($row['user_init_id']));
                    ?>
</small></td>

                        <td style=" vertical-align: middle; "><small>
                                <?php 
                    echo $to_text;
                    ?>
                            </small></td>
                        <td style=" vertical-align: middle; "><small>
                                <?php 
                    echo nameshort(name_of_user_ret($row['ok_by']));
                    ?>
                            </small></td>
                        <td style=" vertical-align: middle; "><small><center>
                        <time id="c" datetime="<?php 
                    echo $row['ok_date'];
                    ?>
"></time>
                        </center></small></td>
                    </tr>
                <?php 
                }
                ?>
                </tbody>
            </table>
        <?php 
Exemplo n.º 4
0
            ?>

            <div class="alert alert-success"><i class="fa fa-check"></i> <?php 
            echo lang('TICKET_msg_unlock');
            ?>
</div>

        <?php 
        }
        if ($mode == "update_to") {
            $tid = $_POST['ticket_id'];
            $to = $_POST['to'];
            $tou = $_POST['tou'];
            $tom = $_POST['tom'];
            if (strlen($tom) > 2) {
                $x_refer_comment = '<small class=\\"text-muted\\">' . nameshort(name_of_user_ret($_SESSION['helpdesk_user_id'])) . ' ' . lang('REFER_comment_add') . ' (' . date(' d.m.Y h:i:s') . '):</small> ' . strip_tags(xss_clean($_POST['tom']));
                $stmt = $dbConnection->prepare('update tickets set 
            unit_id=:to, 
            user_to_id=:tou, 
            msg=concat(msg,:br,:x_refer_comment), 
            lock_by=:n, 
            last_update=now() where id=:tid');
                $stmt->execute(array(':to' => $to, ':tou' => $tou, ':br' => '<br>', ':x_refer_comment' => $x_refer_comment, ':tid' => $tid, ':n' => '0'));
            } else {
                if (strlen($tom) <= 2) {
                    $stmt = $dbConnection->prepare('update tickets set 
            unit_id=:to, 
            user_to_id=:tou, 
            lock_by=:n, 
            last_update=now() where id=:tid');
                    $stmt->execute(array(':to' => $to, ':tou' => $tou, ':tid' => $tid, ':n' => '0'));
Exemplo n.º 5
0
function get_last_action_ticket($ticket_id)
{
    global $dbConnection;
    $stmt = $dbConnection->prepare('select date_op, msg, init_user_id, to_user_id, to_unit_id from ticket_log where ticket_id=:ticket_id order by date_op DESC limit 1');
    $stmt->execute(array(':ticket_id' => $ticket_id));
    $fio = $stmt->fetch(PDO::FETCH_ASSOC);
    $r = $fio['msg'];
    $uss = nameshort(name_of_user_ret($fio['init_user_id']));
    $uss_to = nameshort(name_of_user_ret($fio['to_user_id']));
    $unit_to = get_unit_name_return4news($fio['to_unit_id']);
    if ($r == 'refer') {
        $red = '<i class=\'fa fa-long-arrow-right\'></i> ' . lang('TICKET_ACTION_refer') . ' <em>' . $uss . '</em> ' . lang('TICKET_ACTION_refer_to') . ' ' . $unit_to . ' ' . $uss_to;
    }
    if ($r == 'ok') {
        $red = '<i class=\'fa fa-check-circle-o\'></i> ' . lang('TICKET_ACTION_ok') . ' <em>' . $uss . '</em>';
    }
    if ($r == 'no_ok') {
        $red = '<i class=\'fa fa-circle-o\'></i> ' . lang('TICKET_ACTION_nook') . ' <em>' . $uss . '</em>';
    }
    if ($r == 'lock') {
        $red = '<i class=\'fa fa-lock\'></i> ' . lang('TICKET_ACTION_lock') . ' <em>' . $uss . '</em>';
    }
    if ($r == 'unlock') {
        $red = '<i class=\'fa fa-unlock\'></i> ' . lang('TICKET_ACTION_unlock') . ' <em>' . $uss . '</em>';
    }
    if ($r == 'create') {
        $red = '<i class=\'fa fa-star-o\'></i> ' . lang('TICKET_ACTION_create') . ' <em>' . $uss . '</em>';
    }
    if ($r == 'edit_msg') {
        $red = '<i class=\'fa fa-pencil-square\'></i> ' . lang('TICKET_ACTION_edit') . ' <em>' . $uss . '</em>';
    }
    if ($r == 'edit_prio') {
        $red = '<i class=\'fa fa-pencil-square\'></i> ' . lang('TICKET_ACTION_edit') . ' <em>' . $uss . '</em>';
    }
    if ($r == 'edit_subj') {
        $red = '<i class=\'fa fa-pencil-square\'></i> ' . lang('TICKET_ACTION_edit') . ' <em>' . $uss . '</em>';
    }
    if ($r == 'comment') {
        $red = '<i class=\'fa fa-comment\'></i> ' . lang('TICKET_ACTION_comment') . ' <em>' . $uss . '</em>';
    }
    if ($r == 'arch') {
        $red = '<i class=\'fa fa-archive\'></i> ' . lang('TICKET_ACTION_arch') . '';
    }
    return $red;
}
Exemplo n.º 6
0
 $res1 = $stmt->fetchAll();
 if (!empty($res1)) {
     foreach ($res1 as $row) {
         $lock_by = $row['lock_by'];
         $ok_by = $row['ok_by'];
         $ok_date = $row['ok_date'];
         $cid = $row['client_id'];
         $tid = $row['id'];
         $arch = $row['arch'];
         $status_ok = $row['status'];
         if ($arch == 1) {
             $st = "<span class=\"label label-default\"><i class=\"fa fa-archive\"></i> " . lang('TICKET_status_arch') . "</span>";
         }
         if ($arch == 0) {
             if ($status_ok == 1) {
                 $st = "<span class=\"label label-success\"><i class=\"fa fa-check-circle\"></i> " . lang('TICKET_status_ok') . " " . nameshort(name_of_user_ret($ok_by)) . "</span>";
             }
             if ($status_ok == 0) {
                 if ($lock_by != 0) {
                     $st = "<span class=\"label label-warning\"><i class=\"fa fa-gavel\"></i> " . lang('TICKET_status_lock') . " " . name_of_user_ret($lock_by) . "</span>";
                 }
                 if ($lock_by == 0) {
                     $st = "<span class=\"label label-primary\"><i class=\"fa fa-clock-o\"></i> " . lang('TICKET_status_new') . "</span>";
                 }
             }
         }
         if ($row['user_to_id'] != 0) {
             $to_text = "<div class=''>" . name_of_user_ret($row['user_to_id']) . "</div>";
         }
         if ($row['user_to_id'] == 0) {
             $to_text = "<strong>" . lang('t_list_a_all') . "</strong> " . lang('T_from') . " " . view_array(get_unit_name_return($row['unit_id']));
Exemplo n.º 7
0
            </li>


        </ul>
        </li>

        <?php 
}
?>
        </ul>
        <ul class="nav navbar-nav navbar-right">

            <li class="dropdown">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-user"></i> <?php 
echo nameshort(name_of_user_ret($_SESSION['helpdesk_user_id']));
?>
 <b class="caret"></b></a>
                <ul class="dropdown-menu">
                    <!--li <?php 
echo echoActiveClassIfRequestMatches("clients.php");
?>
 ><a href="clients.php"><i class="fa fa-users"></i> Клієнти</a></li-->
                    <li <?php 
echo echoActiveClassIfRequestMatches("profile");
?>
><a href="<?php 
echo $CONF['hostname'];
?>
profile"><i class="fa fa-cogs"></i> <?php 
echo lang('NAVBAR_profile');