-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproject_details.php
144 lines (139 loc) · 7.59 KB
/
project_details.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
<?php
require_once("includes/db.php");
if(isset($_GET["link"])){
$select_link = $_GET["link"];
$select_projects_query = query("SELECT * FROM projects WHERE `slug` = '{$select_link}';");
confirm($select_projects_query);
while($project_row = fetch_array($select_projects_query)){
$select_project_name = $project_row['project_name_' . $_SESSION["lan"]];
$select_cover_image = $project_row['cover_image'];
$select_display_image = $project_row['display_image'];
$select_project_description = $project_row['project_description_' . $_SESSION["lan"]];
$select_project_category_id = $project_row['project_category'];
$select_seo_id = $project_row['seo_id'];
}
if (!strcmp($select_seo_id, "0")) {
$select_seo_id = 1;
}
$select_seo_page_title = $select_project_name;
$select_seo_page_image = $select_cover_image;
$select_seo_query = query("SELECT * FROM seo WHERE id = '{$select_seo_id}'");
confirm($select_seo_query);
while ($seo_row = fetch_array($select_seo_query)) {
$select_seo_page_description = $seo_row['page_description'];
$select_seo_page_keywords = $seo_row['page_keywords'];
}
$select_project_category_query = query("SELECT * FROM project_categories WHERE `id` = '{$select_project_category_id}';");
confirm($select_project_category_query);
$project_category_row = fetch_array($select_project_category_query);
$project_category = $project_category_row['category_name_' . $_SESSION["lan"]];
}else{
redirect("projects");
}
include "includes/header.php";
?>
<!-- Main Body - Start
================================================== -->
<main class="page_content">
<!-- Content Section - Start
================================================== -->
<section class="details_section blog_details first_section_space_lg">
<div class="container">
<div class="row justify-content-center">
<div class="col col-lg-12">
<div class="details_content">
<div class="blog_post_meta">
<ul class="category_list unordered_list">
<li><a href="#!"><?php echo $project_category; ?></a></li>
</ul>
</div>
<h1 class="details_item_title">
<?php echo $select_project_name; ?>
</h1>
<div class="project_description_container">
<?php
$new_project_content = str_replace('<img src="../', '<img src="', $select_project_description);
echo $new_project_content;
?>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Content Section - End
================================================== -->
<!-- Site Footer - Start
================================================== -->
<footer class="site_footer style_3">
<div class="calltoaction_section style_5">
<div class="container">
<div class="content_box bg_primary decoration_wrap text-center">
<div class="row justify-content-center">
<div class="col col-lg-7">
<div class="section_heading text-white">
<h2 class="heading_title mb-0">
Reach Out to Us.
</h2>
</div>
<form action="#">
<div class="row">
<div class="col col-md-6">
<div class="form-group m-0">
<input class="form-control" type="text" name="name" placeholder="Name">
</div>
</div>
<div class="col col-md-6">
<div class="form-group m-0">
<input class="form-control" type="email" name="email" placeholder="Email Address">
</div>
</div>
<div class="col col-md-6">
<div class="form-group m-0">
<input class="form-control" type="text" name="phone" placeholder="Phone Nunmber">
</div>
</div>
<div class="col col-md-6">
<div class="select_option m-0">
<select>
<option data-display="Subject">Select Subject</option>
<option value="development">Website Development</option>
<option value="design">UX/UI Design</option>
<option value="development">App Development</option>
<option value="editing">Video Editing</option>
<option value="programming">Programming & Tech</option>
<option value="business">Business Consuting</option>
</select>
</div>
</div>
<div class="col">
<div class="form-group">
<textarea class="page-form-control" name="message" placeholder="Write your Message"></textarea>
</div>
<button type="submit" class="bd-btn-link yellow">
<span class="bd-button-content-wrapper">
<span class="bd-button-icon">
<i class="fa-light fa-arrow-right-long"></i>
</span>
<span class="pd-animation-flip">
<span class="bd-btn-anim-wrapp">
<span class="bd-button-text">Send Now</span>
<span class="bd-button-text">Send Now</span>
</span>
</span>
</span>
</button>
</div>
</div>
</form>
</div>
</div>
<div class="deco_item shape_2">
<img class="wow fadeInUp" data-wow-delay=".2s" src="uploads/shapes/symbol_white.png" alt="Paradox Illustration Image">
</div>
</div>
</div>
</div>
<?php
include "includes/footer.php";
?>