-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
193 lines (180 loc) · 7.32 KB
/
index.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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
<?php
$title="index.php";
// connect file it includes connection with mysqli
require_once "db.php";
// header file it includes styles and other head tags
include "includes/header.php";
?>
<!-- body html of index page -->
<!-- start <body> -->
<nav class="navbar navbar-expand-sm bg-dark navbar-light">
<div class="container">
<a href="#" class="navbar-brand">تدويناتي</a>
<button class="navbar-toggler" data-toggle="collapse" data-target="#menu">
<span class="navbar-toggler-icon"></span>
</button>
<div id="menu" class="collapse navbar-collapse">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a href="#" class="nav-link">عن المدونة</a>
</li>
<li class="nav-item">
<a href="#" class="nav-link">شروحات</a>
</li>
<li class="nav-item">
<a href="#" class="nav-link">منوعات</a>
</li>
<li class="nav-item">
<a href="#" class="nav-link">تواصل معنا</a>
</li>
<li class="nav-item">
<a href="login.php" class="nav-link">Dashbaord Admin</a>
</li>
</ul>
</div>
</div>
</nav>
<div class="content">
<div class="container">
<div class="row">
<div class="col-md-9">
<div class="post">
<div class="post-image">
<img src="images/inspect-element.jpg" alt="">
</div>
<div class="post-title">
<h4>
ذا النص هو مثال لنص يمكن أن يستبدل في نفس المساحة
</h4>
</div>
<div class="post-details">
<p class="post-info">
<span><i class="fas fa-user">عبدالله محمد</i></span>
<span><i class="far fa-calendar-alt"></i>28/08/2019</span>
<span><i class="fas fa-tags"></i>بلوجر</span>
</p>
<p>
هذا النص هو مثال لنص يمكن أن يستبدل في نفس المساحة، لقد تم توليد هذا النص من مولد النص العربى، حيث يمكنك أن تولد مثل هذا النص أو العديد من النصوص الأخرى إضافة إلى زيادة عدد الحروف التى يولدها التطبيق.
إذا كنت تحتاج إلى عدد أكبر من الفقرات يتيح لك مولد النص العربى زيادة عدد الفقرات كما تريد
</p>
<button class="btn btn-custom">إقرأ المزيد</button>
</div>
</div>
</div>
<div class="col-md-3">
<!-- Categories -->
<div class="categories">
<h4 class="head">التصنيفات</h4>
<ul>
<li>
<a href="" alt="">
<span><i class="fas fa-tags"></i></span>
<span class="title" >بلوجر</span>
</a>
</li>
<li>
<a href="" alt="">
<span><i class="fas fa-tags"></i></span>
<span class="title">ويب</span>
</a>
</li>
<li>
<a href="" alt="">
<span><i class="fas fa-tags"></i></span>
<span class="title" >دورات</span>
</a>
</li>
</ul>
</div>
<!--End CATEGORY-->
<div class="last-posts">
<h4>أحدث المنشورات</h4>
<ul>
<li>
<a href="" alt="">
<span>
<img src="images/images.jfif" alt="" style="width:80px;height:60px;">
</span>
<span>
<a href="">
العديد من النصوص
</a>
</span>
</a>
</li>
<li>
<a href="" alt="">
<span>
<img src="images/images.jfif" alt="" style="width:80px;height:60px;">
</span>
<span>
<a href="">
العديد من النصوص
</a>
</span>
</a>
</li>
<li>
<a href="" alt="">
<span>
<img src="images/images.jfif" alt="" style="width:80px;height:60px;">
</span>
<span>
<a href="">
العديد من النصوص
</a>
</span>
</a>
</li>
</ul>
</div>
</div>
</div>
<?php
$posts=array();
$result= mysqli_query($con,"SELECT * FROM posts");
while($row=mysqli_fetch_array($result)){
array_push( $posts,$row);
}
foreach($posts as $key=>$post){
// echo $post[4]."<br>";
// echo $post[3]."<br>";
// echo $post[2]."<br>";
// echo $post[1]."<br>";
?>
<div class="row">
<div class="col-md-9">
<div class="post">
<div class="post-image">
<img src="images/<?php echo $post[3]?>" alt="">
</div>
<div class="post-title">
<h4>
<?php echo $post[4]?>
</h4>
</div>
<div class="post-details">
<p class="post-info">
<span><i class="fas fa-user">عبدالله محمد</i></span>
<span><i class="far fa-calendar-alt"></i>24/02/2020</span>
<span><i class="fas fa-tags"></i>تكنزلوجي#</span>
</p>
<p>
<?php echo $post[2]?>
</p>
<button class="btn btn-custom">إقرأ المزيد</button>
</div>
</div>
</div>
<?php }
?>
</div>
</div>
</div>
<footer>
<p>جميع الحقوق محفوظة © 2019</p>
</footer>
<!-- Footer File it includes scripts -->
<?php include "includes/footer.php"; ?>
<!-- end body of index page -->
<!-- </body> </html> -->