echo $lang['active']; ?> </th> <?php if ($_SESSION['user_level'] >= $_SESSION['permission']['edit']['playet']) { echo '<th><i class="fa fa-pencil"></i><div class="hidden-xs"> ' . $lang['edit'] . '</div></th>'; } ?> </tr> </thead> <tbody> <?php while ($row = mysqli_fetch_assoc($result_of_query)) { echo "<tr>"; echo "<td>" . nameID($row["pid"]) . "</td>"; echo "<td>" . carName($row["classname"]) . "</td>"; echo "<td class='hidden-xs'>" . carType($row["type"], $lang) . "</td>"; echo "<td class='hidden-xs'>" . $row["plate"] . "</td>"; echo "<td class='hidden-xs'>" . yesNo($row["alive"], $lang) . "</td>"; echo "<td class='hidden-xs'>" . yesNo($row["active"], $lang) . "</td>"; if ($_SESSION['user_level'] >= P_EDIT_VEHICLES) { echo "<td><a class='btn btn-primary btn-xs' href='" . $settings['url'] . "editVeh/" . $row["id"] . "'>"; echo "<i class='fa fa-pencil'></i></a></td>"; } echo "</tr>"; } echo "</tbody></table>"; if (isset($search)) { $total_pages = ceil($total_records / $_SESSION['items']); if ($total_pages > 1) { echo "<center><a class='btn btn-primary' href='" . $settings['url'] . "vehicles/" . $search . "?page=1'>" . $lang['first'] . "</a> ";
<?php $sql = "SELECT `classname`,`type`,`id`,`plate` FROM `vehicles` WHERE `pid` = '" . $player->playerid . "' ORDER BY `id` DESC LIMIT 8"; $result_of_query = $db_link->query($sql); if ($result_of_query->num_rows > 0) { $veh = $result_of_query->fetch_object(); echo '<table class="table table-bordered table-hover table-striped" style="margin-bottom: 0px;">'; echo '<thead><tr>'; echo '<th>' . $lang['class'] . '</th>'; echo '<th class="hidden-xs">' . $lang['type'] . '</th>'; echo '<th class="hidden-xs">' . $lang['plate'] . '</th>'; if ($_SESSION['permissions']['edit']['vehicles']) { echo "<th>" . $lang['edit'] . "</th>"; } echo '</tr></thead><tbody'; echo '<tr>'; echo '<td>' . carName($veh->classname) . '</td>'; echo '<td class="hidden-xs">' . carType($veh->type, $lang) . '</td>'; echo '<td class="hidden-xs">' . $veh->plate . '</td>'; if ($_SESSION['permissions']['edit']['vehicles']) { echo "<td><a class='btn btn-primary btn-xs' href='" . $settings['url'] . "editVeh/" . $veh->id . "'>"; echo "<i class='fa fa-pencil'></i></a></td>"; } echo '</tr></tbody></table>'; echo '<a style="float: right; padding-right:15px;" href="' . $settings['url'] . 'vehicles/' . $player->playerid . '"><h4>' . $lang['more'] . ' <i class="fa fa-arrow-circle-right"></i></h4></a>'; } else { echo '<h4>' . errorMessage(32, $lang) . '</h4>'; } ?> </div> </div> <?php
echo "Chief Medic"; break; } ?> </p> <table> <thead><tr> <th>Civilian vehicles: </th><th>Police vehicles:</th> </tr></thead> <tbody> <tr> <td> <ul style="width:30%; float:left;"> <?php foreach ($row1 as $ccar) { echo "<li>" . carName($ccar) . "</li><br>"; } ?> </ul> </td><td> <p> <ul style="width:30%; float:left;"> <?php foreach ($row2 as $ccar) { echo "<li>" . carName($ccar) . "</li><br>"; } ?> </ul></td></tbody></table> </div> </div> <?php include "footer.php"; ?>
<div class="panel panel-default"> <div class="panel-heading"> <h2 class="panel-title"><i class="fa fa-child fa-fw"></i><?php echo nameID($veh->pid, $db_link) . "'s " . carName($veh->classname); ?> </h2> </div> <div class="panel-body"> <?php $carPic = getPic($veh->classname); echo '<center><img src="' . $settings['url'] . 'assets/img/cars/' . $carPic . '.jpg" class="img-responsive" alt="' . $veh->classname . '">'; ?> <?php echo "<h4>" . $lang['owner'] . ": <a href='" . $settings['url'] . "editPlayer/" . uID($veh->pid, $db_link) . "'>" . nameID($veh->pid, $db_link) . "</a></h4>"; echo "<h4>" . $lang['class'] . ": " . carName($veh->classname) . "</h4>"; echo "<h4>" . $lang['plate'] . ": " . $veh->plate . "</h4>"; if ($veh->alive == false) { echo "<h4><span class='label label-danger'>" . $lang["not"] . " " . $lang["alive"] . "</span></h4>"; } else { echo "<h4><span class='label label-success'>" . $lang["alive"] . "</span></h4> "; } if ($veh->active == false) { echo " <h4><span class='label label-danger'>" . $lang["not"] . " " . $lang["active"] . "</span></h4>"; } else { echo " <h4><span class='label label-success'>" . $lang["active"] . "</span></h4>"; } if ($_SESSION['permissions']['edit']['vehicles']) { echo ' <div style="float: right;"> <a data-toggle="modal" href="#edit_veh" class="btn btn-primary btn-xs" style="margin-right:3px">
<h2 class="panel-title"><i class="fa fa-child fa-fw"></i><?php echo nameID($row["pid"]) . "'s " . carName($row["classname"]); ?> </h2> </div> <div class="panel-body"> <?php $carPic = getPic($row["classname"]); ?> <center><img src="assets/img/cars/<?php echo $carPic; ?> .jpg" /> <?php echo "<h4>" . $lang['owner'] . ": " . nameID($row["pid"]) . "</h4>"; echo "<h4>" . $lang['class'] . ": " . carName($row["classname"]) . "</h4>"; echo "<h4>" . $lang['plate'] . ": " . $row["plate"] . "</h4>"; if ($row["alive"] == false) { echo "<h4><span class='label label-danger'>" . $lang["not"] . " " . $lang["alive"] . "</span> "; } else { echo "<h4><span class='label label-success'>" . $lang["alive"] . "</span> "; } if ($row["active"] == false) { echo " <span class='label label-danger'>" . $lang["not"] . " " . $lang["active"] . "</span></h4>"; } else { echo " <span class='label label-success'>" . $lang["active"] . "</span></h4>"; } ?> <div style="float: right;"> <a data-toggle="modal" href="#edit_veh" class="btn btn-primary btn-xs" style="margin-right:3px"> <i class="fa fa-pencil"></i>