Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <title>Admin Dealership - <?php echo Config::$_SITE_NAME; ?></title>
- <?php
- if(!defined('panel'))
- die('Nope.');
- ?>
- </div>
- <div class="main-content">
- <div class="breadcrumbs" id="breadcrumbs">
- <script type="text/javascript">
- try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
- </script>
- <ul class="breadcrumb">
- <li>
- <i class="ace-icon fa fa-home home-icon"></i>
- <a href="<?php echo Config::$_PAGE_URL; ?>">Home</a>
- </li>
- <li class="active">Admin dealership</li>
- </ul><!-- /.breadcrumb -->
- <div class="nav-search" id="nav-search">
- <form method="POST" action="search">
- <span class="input-icon">
- <input type="text" placeholder="Search ..." name="sname" id="username" type="submit" class="nav-search-input" autocomplete="on">
- <i class="ace-icon fa fa-search nav-search-icon"></i>
- </span>
- </form>
- </div> <!-- /.nav-search -->
- </div>
- <?php if(isset($_POST['functie']) && Config::getData('users','Admin',$_SESSION['user']) >= 4) {
- if(!$_POST['functie']) echo '<div class="alert alert-danger">Ai lasat campuri necompletate.</div>';
- else {
- echo '<div class="alert alert-success">Pretul a fost schimbat cu succes.
- <button type="button" class="close" data-dismiss="alert">
- <i class="icon-remove"></i>
- </button></div>';
- $q = Config::$g_con->prepare('UPDATE `stock` SET `Price` = ? WHERE `Car` = ?');
- $q->execute(array(Config::getData('stock','Price',$row->Car)+$_POST['functie'],$row->Car));
- echo '<meta http-equiv="refresh" content="2">';
- }
- } ?>
- <div class="page-content">
- <div class="row-fluid"><div class="span12">
- <h3>Dealership Vehicles</h3>
- <div class="table-responsive">
- <table id="login-table" class="table table-striped table-hover table-bordered">
- <thead>
- <tr>
- <td><b>Image</b></td>
- <td><b>Vehicle Name</b></td>
- <td><b>Top speed</b></td>
- <td><b>Dealership Price</b></td>
- <td><b>Stoc dealership</b></td>
- </tr>
- </thead>
- <tbody>
- <?php
- $q = Config::$g_con->prepare('SELECT * FROM `stock` ORDER BY `id` ASC LIMIT 95');
- $q->execute();
- while($row = $q->fetch(PDO::FETCH_OBJ)) { ?>
- <tr>
- <td class="center"><img src="<?php echo Config::$_PAGE_URL ?>assets/images/vehicles/Vehicle_<?php echo $row->vid ?>.jpg" style="height: 50px"/></td>
- <td><?php echo Config::$namevehicles[$row->vid]; ?></td>
- <td><?php echo $row->speed ?> km/h</td>
- <td>Pret actual: <p>$<?php echo number_format($row->Price,0,'.','.'); ?>"</p>
- <form method="post">
- <textarea class="form-control" rows="5" name="functie" cols="250">$<?php echo number_format($row->Price,0,'.','.'); ?></textarea>
- </div>
- <brr>
- <div class="col-sm-5">
- <br>
- <input type="submit" name="schimba" class="btn btn-small btn-success" value="Modifica">
- </form>
- </form>
- </td>
- <td><?php echo $row->Stock ?></td>
- </tr>
- <?php } ?>
- </tbody>
- </table>
- <h3>Premium Vehicles</h3>
- <table class="table table-striped table-bordered">
- <thead>
- <tr>
- <th>Image</th>
- <th class="hidden-480">Vehicle Name</th>
- <th class="hidden-100">Price</th>
- <th class="center">Top speed</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td class="center">
- <img src="<?php echo Config::$_PAGE_URL ?>assets/images/vehicles/Vehicle_469.jpg" alt="264" title="264" style="height: 50px"/>
- </td>
- <td>
- Sparrow
- </td>
- <td>
- 220 premium points
- </td>
- <td>
- 77 km/h
- </td>
- </tr>
- <tr>
- <td class="center">
- <img src="<?php echo Config::$_PAGE_URL ?>assets/images/vehicles/Vehicle_503.jpg" alt="218" title="218" style="height: 50px"/>
- </td>
- <td>
- Hotring Racer B
- </td>
- <td>
- 250 premium points
- </td>
- <td>
- 191 km/h
- </td>
- </tr>
- <tr>
- <td class="center">
- <img src="<?php echo Config::$_PAGE_URL ?>assets/images/vehicles/Vehicle_502.jpg" alt="217" title="217" style="height: 50px"/>
- </td>
- <td>
- Hotring Racer A
- </td>
- <td>
- 250 premium points
- </td>
- <td>
- 191 km/h
- </td>
- </tr>
- <tr>
- <td class="center">
- <img src="<?php echo Config::$_PAGE_URL ?>assets/images/vehicles/Vehicle_539.jpg" alt="277" title="277" style="height: 50px"/>
- </td>
- <td>
- Vortex
- </td>
- <td>
- 250 premium points
- </td>
- <td>
- 88 km/h
- </td>
- </tr>
- <tr>
- <td class="center">
- <img src="<?php echo Config::$_PAGE_URL ?>assets/images/vehicles/Vehicle_494.jpg" alt="214" title="214" style="height: 50px"/>
- </td>
- <td>
- Hotring Racer
- </td>
- <td>
- 250 premium points
- </td>
- <td>
- 191 km/h
- </td>
- </tr>
- <tr>
- <td class="center">
- <img src="<?php echo Config::$_PAGE_URL ?>assets/images/vehicles/Vehicle_487.jpg" alt="215" title="215" style="height: 50px"/>
- </td>
- <td>
- Maverick
- </td>
- <td>
- 300 premium points
- </td>
- <td>
- 150 km/h
- </td>
- </tr>
- <tr>
- <tr>
- <td class="center">
- <img src="<?php echo Config::$_PAGE_URL ?>assets/images/vehicles/Vehicle_409.jpg" alt="215" title="215" style="height: 50px"/>
- </td>
- <td>
- Stretch
- </td>
- <td>
- 300 premium points
- </td>
- <td>
- 140 km/h
- </td>
- </tr>
- </tbody>
- </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement