-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshowstorseal.php
137 lines (98 loc) · 4.8 KB
/
showstorseal.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<?php require 'ini/confg.php';?>
<?php require 'topheader.php';?>
<?php require 'headernav.php';?>
<?php
if(isset($_SESSION['is_admin']) == 3 or isset($_SESSION['viwestor'])){ ?>
<div class="container-fluid">
<div class="row clearfix">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="card" style="height:auto;direction: rtl;margin-top: 70px">
<div class="header">
<h2>
عرض بيانات فواتير الشراء الخاصه بالمتجر
</h2>
</div>
<div class="session">
<?php
if(isset( $_SESSION['delstorseal'])){
echo msg::setmsg("تم حذف البيانات بنجاح","success");
unset( $_SESSION['delstorseal']);
}
if(isset( $_SESSION['noching'])){
echo msg::setmsg("لم تقم بأى تغيرات","info");
unset( $_SESSION['noching']);
}
if(isset( $_SESSION['upstor'])){
echo msg::setmsg("تم تحديث البيانات بنجاح","success");
unset( $_SESSION['upstor']);
}
?>
</div>
<div class="body">
<div class="table-responsive">
<table class="table table-striped table-hover dataTable js-exportable" style="background-color: #fff;">
<thead style="color:#000">
<tr>
<th style="color:#000">#</th>
<th>اسم المنتج</th>
<th>السعر</th>
<th>العدد</th>
<th>الاجمالى</th>
<th>التاريخ</th>
<th>تعديل</th>
<th>حذف</th>
</tr>
</thead>
<tfoot>
<tr>
<th style="color:#000">#</th>
<th>اسم المنتج</th>
<th>السعر</th>
<th>العدد</th>
<th>الاجمالى</th>
<th>التاريخ</th>
<th>تعديل</th>
<th>حذف</th>
</tr>
</tfoot>
<tbody class="">
<?php
$get = new storseal();
$getdat=$get->showdatastor();
if($getdat !== null){
$nuber = 1;
foreach ($getdat as $data){ ?>
<tr>
<th scope="row"><?=$nuber ++ ;?></th>
<td ><?=$data['prodectname'];?></td>
<td ><?php echo $data['price'] ?></td>
<td><?php echo $data['count'] ?></td>
<td ><?php echo $data['total'] ?></td>
<td><?php echo $data['date'] ?></td>
<td>
<?php
echo '<a href="editstorseal.php?getstorid='.$data['stor_id'].'" class="btn btn-success "><i class="material-icons">create</i></a>';
?>
</td>
<td>
<?php
echo '<a href="deletestorseal.php?getstorid='.$data['stor_id'].'" class="btn btn-danger del33"
><i class="material-icons">delete_forever</i></a>' ;
}
} ?>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<!-- #END# Exportable Table -->
</div>
<?php } else {
header("Location:error404.php");
exit();
}
?>
<?php require 'lassfooter.php';?>