Current File : /home/users/barii/public_html/finansenl.com.pl/wodki/admin/sprzedaze.php |
<?php
include_once('config.php');
$obj = new Admin();
if(isset($_GET['remove'])){
$obj->UsunZBazy($_GET['remove']);
header('location: kupione.php');
}
if(isset($_GET['status']) and isset($_GET['id'])){
$obj->zmienStatusAllegro2($_GET['id'],$_GET['status']);
}
$przyciski = '
<span class="btn btn-primary pull-right skasujdane" data-toggle="modal" data-target="#zamowPodjazd">Zamów podjazd</span> <span class="btn btn-primary pull-right skasujdane" data-toggle="modal" data-target="#modal-default" style="margin-right:8px;">Nowa przesyłka</span>';
if(isset($_GET['realizacja'])) $title = 'Do realizacji';
elseif(isset($_GET['wazne'])) $title = 'Ważne transakcje';
elseif(isset($_GET['poterminie'])) $title = 'Transakcje po terminie';
else $title = 'Wszystkie transakcje';
include('_header.php');
$version = '2.9.0';
if (isset($_POST['zamow_podjazd'])) {
if ($_POST['rodzaj_kuriera'] == 'ups') {
$row = $mysql->sqlRow("*", "all_sprzedaze", "WHERE (dostawa = 'Allegro Odbiór w Punkcie UPS' OR dostawa = 'Allegro Kurier UPS' OR dostawa = 'Allegro One Box, UPS' OR dostawa = 'Allegro One Punkt, UPS') and numerwysylki != '' and numerwysylki IS NOT NULL and numerwysylki != 0 ORDER BY ID DESC");
} elseif($_POST['rodzaj_kuriera'] == 'dpd') {
$row = $mysql->sqlRow("*", "all_sprzedaze", "WHERE dostawa = 'Allegro One Box, DPD' and numer_wysylki != '' and numerwysylki IS NOT NULL and numerwysylki != 0 ORDER BY ID DESC");
} else {
$row = $mysql->sqlRow("*", "all_sprzedaze", "WHERE (dostawa = 'Allegro Przesyłka polecona' OR dostawa = 'Allegro Pocztex Kurier 48' OR dostawa = ''Allegro Kurier Pocztex' OR dostawa = 'Allegro MiniPrzesyłka') and numerwysylki != '' and numerwysylki IS NOT NULL and numerwysylki != 0 ORDER BY ID DESC");
}
//print_r($row);
}
?>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css" integrity="sha512-SnH5WK+bZxgPHs44uWIX+LLJAJ9/2PkPKZ5QiAj6Ta86w+fsb2TkcmfRyVX3pBnMFcV7oQPJkl9QevSCWr3W6A==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" type="text/css" href="the_assets/css/style2.css?ver=<?php echo $version; ?>">
<link rel="stylesheet" type="text/css" href="the_assets/css/vendors/datatables.css?ver=<?php echo $version; ?>">
<link rel="stylesheet" type="text/css" href="the_assets/css/vendors/daterange-picker.css?ver=<?php echo $version; ?>">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.12.4/css/bootstrap-select.min.css">
<div class="container-fluid section-orders">
<div class="table-filter-bar card" style="margin-bottom:10px;">
<div class="order-filter-blocks-container">
<div class="order-filter-date-container">
<div>
<input class="form-control" id="reportrange" type="text">
</div>
</div>
<div class="m-checkbox-inline custom-radio-ml">
<input type="radio" class="btn-check" id="statusOption0" autocomplete="off" name="statusOption" value="" checked>
<label class="btn btn-outline-primary btn-xs badge label-pending" for="statusOption0">Wszystkie</label><br>
<input type="radio" class="btn-check" id="statusOption1" autocomplete="off" name="statusOption" value="PENDING">
<label class="btn btn-outline-primary btn-xs badge label-pending" for="statusOption1">oczekiwanie (<?php echo $obj->SprawdzStatusyIlosc(0); ?>)</label><br>
<input type="radio" class="btn-check" id="statusOption2" autocomplete="off" name="statusOption" value="IN_TRANSIT">
<label class="btn btn-outline-primary btn-xs badge label-intransit" for="statusOption2">w drodze (<?php echo $obj->SprawdzStatusyIlosc(2); ?>)</label><br>
<input type="radio" class="btn-check" id="statusOption3" autocomplete="off" name="statusOption" value="RELEASED_FOR_DELIVERY">
<label class="btn btn-outline-primary btn-xs badge label-releasedfordelivery" for="statusOption3">w doręczeniu (<?php echo $obj->SprawdzStatusyIlosc(3); ?>)</label><br>
<input type="radio" class="btn-check" id="statusOption4" autocomplete="off" name="statusOption" value="AVAILABLE_FOR_PICKUP">
<label class="btn btn-outline-primary btn-xs badge label-availableforpickup" for="statusOption4">do odbioru (<?php echo $obj->SprawdzStatusyIlosc(4); ?>)</label><br>
<input type="radio" class="btn-check" id="statusOption5" autocomplete="off" name="statusOption" value="DELIVERED">
<label class="btn btn-outline-primary btn-xs badge label-delivered" for="statusOption5">dostarczono (<?php echo $obj->SprawdzStatusyIlosc(5); ?>)</label><br>
<input type="radio" class="btn-check" id="statusOption6" autocomplete="off" name="statusOption" value="RETURNED">
<label class="btn btn-outline-primary btn-xs badge label-returned" for="statusOption6">zwrot (<?php echo $obj->SprawdzStatusyIlosc(6); ?>)</label><br>
<input type="radio" class="btn-check" id="statusOption7" autocomplete="off" name="statusOption" value="NADANE">
<label class="btn btn-outline-primary btn-xs badge label-issue" for="statusOption7">w nadaniu (<?php echo $obj->SprawdzStatusyIlosc(7); ?>)</label><br>
</div>
</div>
</div>
<div class="table-responsive">
<table class="display" id="basicx">
<thead>
<tr>
<th>ID</th>
<th>Data</th>
<th>Kupujący</th>
<th>Konto</th>
<th>Produkty</th>
<th>Kwota</th>
<th>Status</th>
<th>Dostawa</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<!-- Zero Configuration Ends-->
</div>
</div>
<div class="modal fade" id="responseModal" tabindex="-1" role="dialog" aria-labelledby="modalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="modalLabel">Odpowiedź serwera</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<!-- Miejsce na odpowiedź serwera -->
</div>
</div>
</div>
</div>
<?php include('_footer2.php');?>