├── README.md
├── assets
├── css
│ └── style.css
└── images
│ ├── codingstatus-icon.jpg
│ ├── codingstatus-logo.jpg
│ ├── icon.jpg
│ └── logo.png
├── config
├── admin_panel.sql
├── database.php
└── tables
│ ├── admin_profile.sql
│ ├── categories.sql
│ ├── color_setting.sql
│ ├── contact_details.sql
│ ├── contact_email.sql
│ ├── contacts.sql
│ ├── home_content.sql
│ ├── theme_setting.sql
│ └── website_setting.sql
├── contact
├── contact-details.php
├── contact-email.php
└── contact-us-message.php
├── dashboard.php
├── home.php
├── index.php
├── logout.php
├── partials
├── header.php
└── sidebar.php
├── scripts
├── admin-login.php
├── ajax-script.js
├── backend-script.php
├── dynamic-page.php
└── multilevel-script.php
├── setting
├── admin-panel.php
├── color-setting.php
└── text-color.php
├── website-admin
├── admin-profile.php
└── change-password.php
├── website-content
├── home-content.php
└── page-content.php
└── website-setting
├── theme-setting.php
├── website-menu.php
└── website-setting.php
/README.md:
--------------------------------------------------------------------------------
1 | # php-admin-panel-template
--------------------------------------------------------------------------------
/assets/css/style.css:
--------------------------------------------------------------------------------
1 | .nav li a{color:white;
2 | margin-top:5px;}
3 | .nav li a.shortname{
4 | background-color: white;
5 | color: black;
6 | border-radius: 50%;
7 | width: 40px;
8 | height: 40px;
9 | margin: 5px 0px;
10 | padding: 8px 0px 0px 14px;
11 |
12 | }
13 | .sidebar{
14 | background-color: #6c757d!important;
15 | height: 92.4vh !important;
16 | /* position: absolute; */
17 | margin-left: -15px;
18 | height: 92.4vh;
19 | /* position: absolute; */
20 | margin-left: -15px;
21 | min-height: 100%;
22 | position: fixed;
23 | left: 0px;
24 | width: 16%;
25 | }
26 | .sidebar .sidebar-list{
27 | position: absolute;
28 | top: 8%;
29 | left: 40px;
30 | }
31 | .sidebar .navbar-nav li a{
32 | color: white;
33 | border-bottom: 1px solid #959696;
34 | }
35 | .form{
36 | width: 79%;
37 | border: 1px solid lightgray;
38 | padding: 40px;
39 | }
40 | #alertBox{
41 | display: none;
42 | position: absolute;
43 | left: 26%;
44 | top: 58px;
45 | z-index: 99;
46 |
47 |
48 | }
49 | .content-box{
50 | width: 98%;
51 | border: 1px solid lightgray;
52 | padding: 40px;
53 | }
54 | #alertBox .success{
55 | box-shadow: 0px 0px 15px #00000042;
56 |
57 | color: white;
58 | background: green;
59 | padding: 10px 5px;
60 | font-size: 15px;
61 | }
62 | #alertBox .fail{
63 | box-shadow: 0px 0px 15px #00000042;
64 | color: white;
65 | background: red;
66 | padding: 10px 5px;
67 | font-size: 15px;
68 | }
69 |
70 | #confirmBox{
71 | position: fixed;
72 | left: 40%;
73 | top: 100px;
74 | background: white;
75 | box-shadow: 0px 0px 15px #0000003b;
76 | z-index: 99;
77 | padding: 11px;
78 | width: 30%;
79 | text-align: center;
80 | height: 150px;
81 | display: none;
82 | }
83 | #confirmBox p{
84 | color: #dc3545;
85 | font-size: 20px;
86 | position: relative;
87 | top: 15px
88 | }
89 | #confirmBox button{
90 | border: 0px;
91 | margin: 30px;
92 | padding: 2px 30px;
93 | background: #dc3545;
94 | color: white;
95 | }
96 | #hide i{
97 | font-size: 25px; margin: 10px 0px
98 | }
99 | .description li a{
100 | padding: 0px 0px;
101 | margin: 0px;
102 | color: #ffc0c6;
103 | border-bottom: 0px !important;
104 | }
105 | .sidebar-list i {
106 | font-size: 15px;
107 | }
108 | .sidebar .description.navbar-nav li a{
109 | color: #cccccc;
110 | position: relative;
111 | left: -5px;
112 | margin-bottom: 8px;
113 | }
114 | label::after{
115 | color: #ffffff !important;
116 | background-color: #dc3545 !important;
117 | }
118 | .accordion-content .description {
119 |
120 | color: #4f4f4f;
121 | cursor: pointer;
122 | padding: 5px 5px 5px 25px;
123 | max-width: 100%;
124 | outline: none;
125 | font-size: 14px;
126 | margin: 4px 0px;
127 | position: relative;}
128 | .accordion-content .description p {
129 | margin:0px;
130 | color:gray;}
131 | .accordion-content .title {
132 | margin: 10px 0px;
133 | font-weight: normal;
134 |
135 | padding: 0px 0px;
136 | cursor: pointer;
137 | font-size: 15px;
138 | color: white;}
139 | .accordion-content {
140 | color: white;
141 | border-bottom: 1px solid #959696;
142 | position: relative;
143 | }
144 | .accordion-content.show .description{
145 | display:block;}
146 | .accordion-content.hide .description{
147 | display:none;}
148 | .accordion-content.hide .title::after{
149 | content: " ";
150 |
151 |
152 | padding: 0px 0px;
153 | font-size: 22px;
154 |
155 | font-size: 19px;
156 | font-weight: normal;
157 | /* float: right; */
158 | position: absolute;
159 | top: 6px;
160 | right: -47px;}
161 | .accordion-content.show .title::after{
162 | content: " ";
163 |
164 |
165 | padding: 0px 0px;
166 | font-size: 22px;
167 |
168 | font-size: 19px;
169 | font-weight: normal;
170 |
171 | position: absolute;
172 | top: 6px;
173 | right: -47px;}
--------------------------------------------------------------------------------
/assets/images/codingstatus-icon.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingstatus/php-admin-panel-template/f3b3996888917e555198ca03402475fa31390ce7/assets/images/codingstatus-icon.jpg
--------------------------------------------------------------------------------
/assets/images/codingstatus-logo.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingstatus/php-admin-panel-template/f3b3996888917e555198ca03402475fa31390ce7/assets/images/codingstatus-logo.jpg
--------------------------------------------------------------------------------
/assets/images/icon.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingstatus/php-admin-panel-template/f3b3996888917e555198ca03402475fa31390ce7/assets/images/icon.jpg
--------------------------------------------------------------------------------
/assets/images/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingstatus/php-admin-panel-template/f3b3996888917e555198ca03402475fa31390ce7/assets/images/logo.png
--------------------------------------------------------------------------------
/config/admin_panel.sql:
--------------------------------------------------------------------------------
1 | -- phpMyAdmin SQL Dump
2 | -- version 4.8.5
3 | -- https://www.phpmyadmin.net/
4 | --
5 | -- Host: 127.0.0.1
6 | -- Generation Time: Jun 17, 2020 at 09:20 PM
7 | -- Server version: 10.1.39-MariaDB
8 | -- PHP Version: 7.3.5
9 |
10 | SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
11 | SET AUTOCOMMIT = 0;
12 | START TRANSACTION;
13 | SET time_zone = "+00:00";
14 |
15 |
16 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
17 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
18 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
19 | /*!40101 SET NAMES utf8mb4 */;
20 |
21 | --
22 | -- Database: `admin_panel`
23 | --
24 |
25 | -- --------------------------------------------------------
26 |
27 | --
28 | -- Table structure for table `admin_profile`
29 | --
30 |
31 | CREATE TABLE `admin_profile` (
32 | `id` int(10) NOT NULL,
33 | `full_name` varchar(255) NOT NULL,
34 | `email` varchar(255) NOT NULL,
35 | `mobile` varchar(255) NOT NULL,
36 | `address` varchar(255) NOT NULL,
37 | `password` varchar(255) NOT NULL,
38 | `status` int(10) NOT NULL DEFAULT '0',
39 | `created_at` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6)
40 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
41 |
42 | --
43 | -- Dumping data for table `admin_profile`
44 | --
45 |
46 | INSERT INTO `admin_profile` (`id`, `full_name`, `email`, `mobile`, `address`, `password`, `status`, `created_at`) VALUES
47 | (10, 'Super Admin', 'superadmin@gmail.com', '1234567890', 'Noida', '0192023a7bbd73250516f069df18b500', 1, '2020-06-17 18:38:43.432266'),
48 | (11, 'Test admin', 'testadmin@gmail.com', '1234567890', 'New Delhi', '0192023a7bbd73250516f069df18b500', 1, '2020-06-17 18:39:14.874271'),
49 | (12, 'temp admin', 'tempadmin@gmail.com', '12', 'Noida', '0192023a7bbd73250516f069df18b500', 1, '2020-06-17 18:39:52.830541');
50 |
51 | -- --------------------------------------------------------
52 |
53 | --
54 | -- Table structure for table `categories`
55 | --
56 |
57 | CREATE TABLE `categories` (
58 | `id` int(10) NOT NULL,
59 | `parent_id` int(10) DEFAULT '0',
60 | `category_name` varchar(255) NOT NULL,
61 | `menu_link` varchar(255) NOT NULL,
62 | `header_menu` int(10) NOT NULL,
63 | `footer_menu` int(10) NOT NULL,
64 | `description` text NOT NULL
65 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
66 |
67 | --
68 | -- Dumping data for table `categories`
69 | --
70 |
71 | INSERT INTO `categories` (`id`, `parent_id`, `category_name`, `menu_link`, `header_menu`, `footer_menu`, `description`) VALUES
72 | (63, 64, 'second', '', 1, 0, ' off\r\n \r\nda'),
73 | (64, 63, 'first-chid', '', 1, 0, ' \r\n '),
74 | (65, 0, 'first', 'first', 1, 0, ''),
75 | (66, 0, 'first child 1', '', 1, 0, ' \r\n \r\n \r\n '),
76 | (67, 65, 'first cat', 'first-cat', 1, 1, ' \r\n '),
77 | (68, 0, 'k', 'mm', 1, 0, ' \r\n ');
78 |
79 | -- --------------------------------------------------------
80 |
81 | --
82 | -- Table structure for table `color_setting`
83 | --
84 |
85 | CREATE TABLE `color_setting` (
86 | `id` int(10) NOT NULL,
87 | `navbar_background` varchar(255) NOT NULL,
88 | `sidebar_background` varchar(255) NOT NULL,
89 | `text_color` varchar(255) NOT NULL,
90 | `save_button_color` varchar(255) NOT NULL,
91 | `edit_button_color` varchar(255) NOT NULL,
92 | `delete_button_color` varchar(255) NOT NULL,
93 | `view_button_color` varchar(255) NOT NULL,
94 | `label_text_color` varchar(255) NOT NULL
95 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
96 |
97 | --
98 | -- Dumping data for table `color_setting`
99 | --
100 |
101 | INSERT INTO `color_setting` (`id`, `navbar_background`, `sidebar_background`, `text_color`, `save_button_color`, `edit_button_color`, `delete_button_color`, `view_button_color`, `label_text_color`) VALUES
102 | (1, '#0763c5', '#0f40b3', '#dad7d7', '#049a2a', '#11ac2b', '#c60c0c', '#6c6a6a', '#434242');
103 |
104 | -- --------------------------------------------------------
105 |
106 | --
107 | -- Table structure for table `contacts`
108 | --
109 |
110 | CREATE TABLE `contacts` (
111 | `id` int(10) NOT NULL,
112 | `full_name` varchar(255) NOT NULL,
113 | `email` varchar(255) NOT NULL,
114 | `mobile` varchar(255) NOT NULL,
115 | `subject` varchar(255) NOT NULL,
116 | `message` text NOT NULL,
117 | `created_at` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6)
118 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
119 |
120 | -- --------------------------------------------------------
121 |
122 | --
123 | -- Table structure for table `contact_details`
124 | --
125 |
126 | CREATE TABLE `contact_details` (
127 | `id` int(10) NOT NULL,
128 | `email` varchar(255) NOT NULL,
129 | `mobile` varchar(255) NOT NULL,
130 | `address` varchar(255) NOT NULL,
131 | `google_map` text NOT NULL,
132 | `facebook` varchar(255) NOT NULL,
133 | `google_plus` varchar(255) NOT NULL,
134 | `twitter` varchar(255) NOT NULL,
135 | `linkedin` varchar(255) NOT NULL,
136 | `youtube` varchar(255) NOT NULL,
137 | `instagram` varchar(255) NOT NULL
138 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
139 |
140 | --
141 | -- Dumping data for table `contact_details`
142 | --
143 |
144 | INSERT INTO `contact_details` (`id`, `email`, `mobile`, `address`, `google_map`, `facebook`, `google_plus`, `twitter`, `linkedin`, `youtube`, `instagram`) VALUES
145 | (1, 'youremailaddress@gmail.com', '1234567890', 'Noida, Uttar Pradesh, India', 'Enter You Google Map Code', '', '', '', '', '', '');
146 |
147 | -- --------------------------------------------------------
148 |
149 | --
150 | -- Table structure for table `contact_email`
151 | --
152 |
153 | CREATE TABLE `contact_email` (
154 | `id` int(10) NOT NULL,
155 | `email` varchar(255) NOT NULL
156 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
157 |
158 | --
159 | -- Dumping data for table `contact_email`
160 | --
161 |
162 | INSERT INTO `contact_email` (`id`, `email`) VALUES
163 | (8, 'email'),
164 | (9, 'xxxxxxx');
165 |
166 | -- --------------------------------------------------------
167 |
168 | --
169 | -- Table structure for table `contact_form_email`
170 | --
171 |
172 | CREATE TABLE `contact_form_email` (
173 | `id` int(10) NOT NULL,
174 | `email` varchar(255) NOT NULL
175 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
176 |
177 | --
178 | -- Dumping data for table `contact_form_email`
179 | --
180 |
181 | INSERT INTO `contact_form_email` (`id`, `email`) VALUES
182 | (1, 'youremail@gmail.com');
183 |
184 | -- --------------------------------------------------------
185 |
186 | --
187 | -- Table structure for table `home_content`
188 | --
189 |
190 | CREATE TABLE `home_content` (
191 | `id` int(10) NOT NULL,
192 | `content_section` varchar(255) NOT NULL,
193 | `first_title` varchar(255) NOT NULL,
194 | `second_title` varchar(255) NOT NULL,
195 | `description` varchar(2000) NOT NULL
196 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
197 |
198 | --
199 | -- Dumping data for table `home_content`
200 | --
201 |
202 | INSERT INTO `home_content` (`id`, `content_section`, `first_title`, `second_title`, `description`) VALUES
203 | (2, 'About Downloader', 'sscczxc', 'adsaczxczxc', 'dsnadasnckc aksdjasdklj asdljdls asldjsdl '),
204 | (3, 'How to Download', 'dsds', 'dsds', ' \r\ndsds');
205 |
206 | -- --------------------------------------------------------
207 |
208 | --
209 | -- Table structure for table `theme_setting`
210 | --
211 |
212 | CREATE TABLE `theme_setting` (
213 | `id` int(10) NOT NULL,
214 | `header_background` varchar(255) NOT NULL,
215 | `footer_background` varchar(255) NOT NULL,
216 | `downloader_box_background` varchar(255) NOT NULL,
217 | `downloader_box_button` varchar(255) NOT NULL,
218 | `first_title` varchar(255) NOT NULL,
219 | `second_title` varchar(255) NOT NULL,
220 | `third_title` varchar(255) NOT NULL,
221 | `footer_menu_link` varchar(255) NOT NULL,
222 | `header_menu_link` varchar(255) NOT NULL,
223 | `icon` varchar(255) NOT NULL,
224 | `paragraph` varchar(255) NOT NULL,
225 | `logo_name` varchar(255) NOT NULL
226 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
227 |
228 | --
229 | -- Dumping data for table `theme_setting`
230 | --
231 |
232 | INSERT INTO `theme_setting` (`id`, `header_background`, `footer_background`, `downloader_box_background`, `downloader_box_button`, `first_title`, `second_title`, `third_title`, `footer_menu_link`, `header_menu_link`, `icon`, `paragraph`, `logo_name`) VALUES
233 | (1, '#0a570d', '#c2c52b', '#a61c1c', '#8a7575', '#d53030', '#4d1f1f', '#1917a6', '#75c5c7', '#6ff316', '#4f24eb', '#ff0000', '#f50000');
234 |
235 | -- --------------------------------------------------------
236 |
237 | --
238 | -- Table structure for table `website_setting`
239 | --
240 |
241 | CREATE TABLE `website_setting` (
242 | `id` int(10) NOT NULL,
243 | `website_title` varchar(255) NOT NULL,
244 | `website_name` varchar(255) NOT NULL,
245 | `visible_website_name` int(10) NOT NULL DEFAULT '0',
246 | `website_logo` varchar(255) NOT NULL,
247 | `website_favicon` varchar(255) NOT NULL,
248 | `meta_keyword` varchar(255) NOT NULL,
249 | `meta_description` text NOT NULL,
250 | `google_varification_code` text NOT NULL,
251 | `google_analytics_code` text NOT NULL
252 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
253 |
254 | --
255 | -- Dumping data for table `website_setting`
256 | --
257 |
258 | INSERT INTO `website_setting` (`id`, `website_title`, `website_name`, `visible_website_name`, `website_logo`, `website_favicon`, `meta_keyword`, `meta_description`, `google_varification_code`, `google_analytics_code`) VALUES
259 | (1, 'dd', 'dd', 0, 'codingstatus-logo.jpg', 'codingstatus-icon.jpg', 'dd', 'dd', 'dd', 'dd');
260 |
261 | --
262 | -- Indexes for dumped tables
263 | --
264 |
265 | --
266 | -- Indexes for table `admin_profile`
267 | --
268 | ALTER TABLE `admin_profile`
269 | ADD PRIMARY KEY (`id`);
270 |
271 | --
272 | -- Indexes for table `categories`
273 | --
274 | ALTER TABLE `categories`
275 | ADD PRIMARY KEY (`id`);
276 |
277 | --
278 | -- Indexes for table `color_setting`
279 | --
280 | ALTER TABLE `color_setting`
281 | ADD PRIMARY KEY (`id`);
282 |
283 | --
284 | -- Indexes for table `contacts`
285 | --
286 | ALTER TABLE `contacts`
287 | ADD PRIMARY KEY (`id`);
288 |
289 | --
290 | -- Indexes for table `contact_details`
291 | --
292 | ALTER TABLE `contact_details`
293 | ADD PRIMARY KEY (`id`);
294 |
295 | --
296 | -- Indexes for table `contact_email`
297 | --
298 | ALTER TABLE `contact_email`
299 | ADD PRIMARY KEY (`id`);
300 |
301 | --
302 | -- Indexes for table `contact_form_email`
303 | --
304 | ALTER TABLE `contact_form_email`
305 | ADD PRIMARY KEY (`id`);
306 |
307 | --
308 | -- Indexes for table `home_content`
309 | --
310 | ALTER TABLE `home_content`
311 | ADD PRIMARY KEY (`id`);
312 |
313 | --
314 | -- Indexes for table `theme_setting`
315 | --
316 | ALTER TABLE `theme_setting`
317 | ADD PRIMARY KEY (`id`);
318 |
319 | --
320 | -- Indexes for table `website_setting`
321 | --
322 | ALTER TABLE `website_setting`
323 | ADD PRIMARY KEY (`id`);
324 |
325 | --
326 | -- AUTO_INCREMENT for dumped tables
327 | --
328 |
329 | --
330 | -- AUTO_INCREMENT for table `admin_profile`
331 | --
332 | ALTER TABLE `admin_profile`
333 | MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
334 |
335 | --
336 | -- AUTO_INCREMENT for table `categories`
337 | --
338 | ALTER TABLE `categories`
339 | MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=69;
340 |
341 | --
342 | -- AUTO_INCREMENT for table `color_setting`
343 | --
344 | ALTER TABLE `color_setting`
345 | MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
346 |
347 | --
348 | -- AUTO_INCREMENT for table `contacts`
349 | --
350 | ALTER TABLE `contacts`
351 | MODIFY `id` int(10) NOT NULL AUTO_INCREMENT;
352 |
353 | --
354 | -- AUTO_INCREMENT for table `contact_details`
355 | --
356 | ALTER TABLE `contact_details`
357 | MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
358 |
359 | --
360 | -- AUTO_INCREMENT for table `contact_email`
361 | --
362 | ALTER TABLE `contact_email`
363 | MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
364 |
365 | --
366 | -- AUTO_INCREMENT for table `contact_form_email`
367 | --
368 | ALTER TABLE `contact_form_email`
369 | MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
370 |
371 | --
372 | -- AUTO_INCREMENT for table `home_content`
373 | --
374 | ALTER TABLE `home_content`
375 | MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
376 |
377 | --
378 | -- AUTO_INCREMENT for table `theme_setting`
379 | --
380 | ALTER TABLE `theme_setting`
381 | MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
382 |
383 | --
384 | -- AUTO_INCREMENT for table `website_setting`
385 | --
386 | ALTER TABLE `website_setting`
387 | MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
388 | COMMIT;
389 |
390 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
391 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
392 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
393 |
--------------------------------------------------------------------------------
/config/database.php:
--------------------------------------------------------------------------------
1 | connect_error) {
12 | die("Connection failed: " . $conn->connect_error);
13 | }
14 |
15 |
16 | ?>
17 |
18 |
--------------------------------------------------------------------------------
/config/tables/admin_profile.sql:
--------------------------------------------------------------------------------
1 | -- phpMyAdmin SQL Dump
2 | -- version 4.8.5
3 | -- https://www.phpmyadmin.net/
4 | --
5 | -- Host: 127.0.0.1
6 | -- Generation Time: Jun 17, 2020 at 09:24 PM
7 | -- Server version: 10.1.39-MariaDB
8 | -- PHP Version: 7.3.5
9 |
10 | SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
11 | SET AUTOCOMMIT = 0;
12 | START TRANSACTION;
13 | SET time_zone = "+00:00";
14 |
15 |
16 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
17 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
18 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
19 | /*!40101 SET NAMES utf8mb4 */;
20 |
21 | --
22 | -- Database: `admin_panel`
23 | --
24 |
25 | -- --------------------------------------------------------
26 |
27 | --
28 | -- Table structure for table `admin_profile`
29 | --
30 |
31 | CREATE TABLE `admin_profile` (
32 | `id` int(10) NOT NULL,
33 | `full_name` varchar(255) NOT NULL,
34 | `email` varchar(255) NOT NULL,
35 | `mobile` varchar(255) NOT NULL,
36 | `address` varchar(255) NOT NULL,
37 | `password` varchar(255) NOT NULL,
38 | `status` int(10) NOT NULL DEFAULT '0',
39 | `created_at` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6)
40 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
41 |
42 | --
43 | -- Dumping data for table `admin_profile`
44 | --
45 |
46 | INSERT INTO `admin_profile` (`id`, `full_name`, `email`, `mobile`, `address`, `password`, `status`, `created_at`) VALUES
47 | (10, 'Super Admin', 'superadmin@gmail.com', '1234567890', 'Noida', '0192023a7bbd73250516f069df18b500', 1, '2020-06-17 18:38:43.432266'),
48 | (11, 'Test admin', 'testadmin@gmail.com', '1234567890', 'New Delhi', '0192023a7bbd73250516f069df18b500', 1, '2020-06-17 18:39:14.874271'),
49 | (12, 'temp admin', 'tempadmin@gmail.com', '12', 'Noida', '0192023a7bbd73250516f069df18b500', 1, '2020-06-17 18:39:52.830541');
50 |
51 | --
52 | -- Indexes for dumped tables
53 | --
54 |
55 | --
56 | -- Indexes for table `admin_profile`
57 | --
58 | ALTER TABLE `admin_profile`
59 | ADD PRIMARY KEY (`id`);
60 |
61 | --
62 | -- AUTO_INCREMENT for dumped tables
63 | --
64 |
65 | --
66 | -- AUTO_INCREMENT for table `admin_profile`
67 | --
68 | ALTER TABLE `admin_profile`
69 | MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
70 | COMMIT;
71 |
72 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
73 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
74 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
75 |
--------------------------------------------------------------------------------
/config/tables/categories.sql:
--------------------------------------------------------------------------------
1 | -- phpMyAdmin SQL Dump
2 | -- version 4.8.5
3 | -- https://www.phpmyadmin.net/
4 | --
5 | -- Host: 127.0.0.1
6 | -- Generation Time: Jun 17, 2020 at 09:24 PM
7 | -- Server version: 10.1.39-MariaDB
8 | -- PHP Version: 7.3.5
9 |
10 | SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
11 | SET AUTOCOMMIT = 0;
12 | START TRANSACTION;
13 | SET time_zone = "+00:00";
14 |
15 |
16 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
17 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
18 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
19 | /*!40101 SET NAMES utf8mb4 */;
20 |
21 | --
22 | -- Database: `admin_panel`
23 | --
24 |
25 | -- --------------------------------------------------------
26 |
27 | --
28 | -- Table structure for table `categories`
29 | --
30 |
31 | CREATE TABLE `categories` (
32 | `id` int(10) NOT NULL,
33 | `parent_id` int(10) DEFAULT '0',
34 | `category_name` varchar(255) NOT NULL,
35 | `menu_link` varchar(255) NOT NULL,
36 | `header_menu` int(10) NOT NULL,
37 | `footer_menu` int(10) NOT NULL,
38 | `description` text NOT NULL
39 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
40 |
41 | --
42 | -- Dumping data for table `categories`
43 | --
44 |
45 | INSERT INTO `categories` (`id`, `parent_id`, `category_name`, `menu_link`, `header_menu`, `footer_menu`, `description`) VALUES
46 | (63, 64, 'second', '', 1, 0, ' off\r\n \r\nda'),
47 | (64, 63, 'first-chid', '', 1, 0, ' \r\n '),
48 | (65, 0, 'first', 'first', 1, 0, ''),
49 | (66, 0, 'first child 1', '', 1, 0, ' \r\n \r\n \r\n '),
50 | (67, 65, 'first cat', 'first-cat', 1, 1, ' \r\n '),
51 | (68, 0, 'k', 'mm', 1, 0, ' \r\n ');
52 |
53 | --
54 | -- Indexes for dumped tables
55 | --
56 |
57 | --
58 | -- Indexes for table `categories`
59 | --
60 | ALTER TABLE `categories`
61 | ADD PRIMARY KEY (`id`);
62 |
63 | --
64 | -- AUTO_INCREMENT for dumped tables
65 | --
66 |
67 | --
68 | -- AUTO_INCREMENT for table `categories`
69 | --
70 | ALTER TABLE `categories`
71 | MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=69;
72 | COMMIT;
73 |
74 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
75 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
76 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
77 |
--------------------------------------------------------------------------------
/config/tables/color_setting.sql:
--------------------------------------------------------------------------------
1 | -- phpMyAdmin SQL Dump
2 | -- version 4.8.5
3 | -- https://www.phpmyadmin.net/
4 | --
5 | -- Host: 127.0.0.1
6 | -- Generation Time: Jun 17, 2020 at 09:25 PM
7 | -- Server version: 10.1.39-MariaDB
8 | -- PHP Version: 7.3.5
9 |
10 | SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
11 | SET AUTOCOMMIT = 0;
12 | START TRANSACTION;
13 | SET time_zone = "+00:00";
14 |
15 |
16 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
17 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
18 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
19 | /*!40101 SET NAMES utf8mb4 */;
20 |
21 | --
22 | -- Database: `admin_panel`
23 | --
24 |
25 | -- --------------------------------------------------------
26 |
27 | --
28 | -- Table structure for table `color_setting`
29 | --
30 |
31 | CREATE TABLE `color_setting` (
32 | `id` int(10) NOT NULL,
33 | `navbar_background` varchar(255) NOT NULL,
34 | `sidebar_background` varchar(255) NOT NULL,
35 | `text_color` varchar(255) NOT NULL,
36 | `save_button_color` varchar(255) NOT NULL,
37 | `edit_button_color` varchar(255) NOT NULL,
38 | `delete_button_color` varchar(255) NOT NULL,
39 | `view_button_color` varchar(255) NOT NULL,
40 | `label_text_color` varchar(255) NOT NULL
41 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
42 |
43 | --
44 | -- Dumping data for table `color_setting`
45 | --
46 |
47 | INSERT INTO `color_setting` (`id`, `navbar_background`, `sidebar_background`, `text_color`, `save_button_color`, `edit_button_color`, `delete_button_color`, `view_button_color`, `label_text_color`) VALUES
48 | (1, '#0763c5', '#0f40b3', '#dad7d7', '#049a2a', '#11ac2b', '#c60c0c', '#6c6a6a', '#434242');
49 |
50 | --
51 | -- Indexes for dumped tables
52 | --
53 |
54 | --
55 | -- Indexes for table `color_setting`
56 | --
57 | ALTER TABLE `color_setting`
58 | ADD PRIMARY KEY (`id`);
59 |
60 | --
61 | -- AUTO_INCREMENT for dumped tables
62 | --
63 |
64 | --
65 | -- AUTO_INCREMENT for table `color_setting`
66 | --
67 | ALTER TABLE `color_setting`
68 | MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
69 | COMMIT;
70 |
71 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
72 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
73 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
74 |
--------------------------------------------------------------------------------
/config/tables/contact_details.sql:
--------------------------------------------------------------------------------
1 | -- phpMyAdmin SQL Dump
2 | -- version 4.8.5
3 | -- https://www.phpmyadmin.net/
4 | --
5 | -- Host: 127.0.0.1
6 | -- Generation Time: Jun 17, 2020 at 09:25 PM
7 | -- Server version: 10.1.39-MariaDB
8 | -- PHP Version: 7.3.5
9 |
10 | SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
11 | SET AUTOCOMMIT = 0;
12 | START TRANSACTION;
13 | SET time_zone = "+00:00";
14 |
15 |
16 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
17 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
18 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
19 | /*!40101 SET NAMES utf8mb4 */;
20 |
21 | --
22 | -- Database: `admin_panel`
23 | --
24 |
25 | -- --------------------------------------------------------
26 |
27 | --
28 | -- Table structure for table `contact_details`
29 | --
30 |
31 | CREATE TABLE `contact_details` (
32 | `id` int(10) NOT NULL,
33 | `email` varchar(255) NOT NULL,
34 | `mobile` varchar(255) NOT NULL,
35 | `address` varchar(255) NOT NULL,
36 | `google_map` text NOT NULL,
37 | `facebook` varchar(255) NOT NULL,
38 | `google_plus` varchar(255) NOT NULL,
39 | `twitter` varchar(255) NOT NULL,
40 | `linkedin` varchar(255) NOT NULL,
41 | `youtube` varchar(255) NOT NULL,
42 | `instagram` varchar(255) NOT NULL
43 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
44 |
45 | --
46 | -- Dumping data for table `contact_details`
47 | --
48 |
49 | INSERT INTO `contact_details` (`id`, `email`, `mobile`, `address`, `google_map`, `facebook`, `google_plus`, `twitter`, `linkedin`, `youtube`, `instagram`) VALUES
50 | (1, 'youremailaddress@gmail.com', '1234567890', 'Noida, Uttar Pradesh, India', 'Enter You Google Map Code', '', '', '', '', '', '');
51 |
52 | --
53 | -- Indexes for dumped tables
54 | --
55 |
56 | --
57 | -- Indexes for table `contact_details`
58 | --
59 | ALTER TABLE `contact_details`
60 | ADD PRIMARY KEY (`id`);
61 |
62 | --
63 | -- AUTO_INCREMENT for dumped tables
64 | --
65 |
66 | --
67 | -- AUTO_INCREMENT for table `contact_details`
68 | --
69 | ALTER TABLE `contact_details`
70 | MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
71 | COMMIT;
72 |
73 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
74 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
75 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
76 |
--------------------------------------------------------------------------------
/config/tables/contact_email.sql:
--------------------------------------------------------------------------------
1 | -- phpMyAdmin SQL Dump
2 | -- version 4.8.5
3 | -- https://www.phpmyadmin.net/
4 | --
5 | -- Host: 127.0.0.1
6 | -- Generation Time: Jun 17, 2020 at 09:25 PM
7 | -- Server version: 10.1.39-MariaDB
8 | -- PHP Version: 7.3.5
9 |
10 | SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
11 | SET AUTOCOMMIT = 0;
12 | START TRANSACTION;
13 | SET time_zone = "+00:00";
14 |
15 |
16 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
17 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
18 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
19 | /*!40101 SET NAMES utf8mb4 */;
20 |
21 | --
22 | -- Database: `admin_panel`
23 | --
24 |
25 | -- --------------------------------------------------------
26 |
27 | --
28 | -- Table structure for table `contact_email`
29 | --
30 |
31 | CREATE TABLE `contact_email` (
32 | `id` int(10) NOT NULL,
33 | `email` varchar(255) NOT NULL
34 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
35 |
36 | --
37 | -- Dumping data for table `contact_email`
38 | --
39 |
40 | INSERT INTO `contact_email` (`id`, `email`) VALUES
41 | (8, 'email'),
42 | (9, 'xxxxxxx');
43 |
44 | --
45 | -- Indexes for dumped tables
46 | --
47 |
48 | --
49 | -- Indexes for table `contact_email`
50 | --
51 | ALTER TABLE `contact_email`
52 | ADD PRIMARY KEY (`id`);
53 |
54 | --
55 | -- AUTO_INCREMENT for dumped tables
56 | --
57 |
58 | --
59 | -- AUTO_INCREMENT for table `contact_email`
60 | --
61 | ALTER TABLE `contact_email`
62 | MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
63 | COMMIT;
64 |
65 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
66 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
67 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
68 |
--------------------------------------------------------------------------------
/config/tables/contacts.sql:
--------------------------------------------------------------------------------
1 | -- phpMyAdmin SQL Dump
2 | -- version 4.8.5
3 | -- https://www.phpmyadmin.net/
4 | --
5 | -- Host: 127.0.0.1
6 | -- Generation Time: Jun 17, 2020 at 09:25 PM
7 | -- Server version: 10.1.39-MariaDB
8 | -- PHP Version: 7.3.5
9 |
10 | SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
11 | SET AUTOCOMMIT = 0;
12 | START TRANSACTION;
13 | SET time_zone = "+00:00";
14 |
15 |
16 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
17 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
18 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
19 | /*!40101 SET NAMES utf8mb4 */;
20 |
21 | --
22 | -- Database: `admin_panel`
23 | --
24 |
25 | -- --------------------------------------------------------
26 |
27 | --
28 | -- Table structure for table `contacts`
29 | --
30 |
31 | CREATE TABLE `contacts` (
32 | `id` int(10) NOT NULL,
33 | `full_name` varchar(255) NOT NULL,
34 | `email` varchar(255) NOT NULL,
35 | `mobile` varchar(255) NOT NULL,
36 | `subject` varchar(255) NOT NULL,
37 | `message` text NOT NULL,
38 | `created_at` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6)
39 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
40 |
41 | --
42 | -- Indexes for dumped tables
43 | --
44 |
45 | --
46 | -- Indexes for table `contacts`
47 | --
48 | ALTER TABLE `contacts`
49 | ADD PRIMARY KEY (`id`);
50 |
51 | --
52 | -- AUTO_INCREMENT for dumped tables
53 | --
54 |
55 | --
56 | -- AUTO_INCREMENT for table `contacts`
57 | --
58 | ALTER TABLE `contacts`
59 | MODIFY `id` int(10) NOT NULL AUTO_INCREMENT;
60 | COMMIT;
61 |
62 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
63 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
64 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
65 |
--------------------------------------------------------------------------------
/config/tables/home_content.sql:
--------------------------------------------------------------------------------
1 | -- phpMyAdmin SQL Dump
2 | -- version 4.8.5
3 | -- https://www.phpmyadmin.net/
4 | --
5 | -- Host: 127.0.0.1
6 | -- Generation Time: Jun 17, 2020 at 09:25 PM
7 | -- Server version: 10.1.39-MariaDB
8 | -- PHP Version: 7.3.5
9 |
10 | SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
11 | SET AUTOCOMMIT = 0;
12 | START TRANSACTION;
13 | SET time_zone = "+00:00";
14 |
15 |
16 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
17 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
18 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
19 | /*!40101 SET NAMES utf8mb4 */;
20 |
21 | --
22 | -- Database: `admin_panel`
23 | --
24 |
25 | -- --------------------------------------------------------
26 |
27 | --
28 | -- Table structure for table `home_content`
29 | --
30 |
31 | CREATE TABLE `home_content` (
32 | `id` int(10) NOT NULL,
33 | `content_section` varchar(255) NOT NULL,
34 | `first_title` varchar(255) NOT NULL,
35 | `second_title` varchar(255) NOT NULL,
36 | `description` varchar(2000) NOT NULL
37 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
38 |
39 | --
40 | -- Dumping data for table `home_content`
41 | --
42 |
43 | INSERT INTO `home_content` (`id`, `content_section`, `first_title`, `second_title`, `description`) VALUES
44 | (2, 'About Downloader', 'sscczxc', 'adsaczxczxc', 'dsnadasnckc aksdjasdklj asdljdls asldjsdl '),
45 | (3, 'How to Download', 'dsds', 'dsds', ' \r\ndsds');
46 |
47 | --
48 | -- Indexes for dumped tables
49 | --
50 |
51 | --
52 | -- Indexes for table `home_content`
53 | --
54 | ALTER TABLE `home_content`
55 | ADD PRIMARY KEY (`id`);
56 |
57 | --
58 | -- AUTO_INCREMENT for dumped tables
59 | --
60 |
61 | --
62 | -- AUTO_INCREMENT for table `home_content`
63 | --
64 | ALTER TABLE `home_content`
65 | MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
66 | COMMIT;
67 |
68 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
69 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
70 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
71 |
--------------------------------------------------------------------------------
/config/tables/theme_setting.sql:
--------------------------------------------------------------------------------
1 | -- phpMyAdmin SQL Dump
2 | -- version 4.8.5
3 | -- https://www.phpmyadmin.net/
4 | --
5 | -- Host: 127.0.0.1
6 | -- Generation Time: Jun 17, 2020 at 09:26 PM
7 | -- Server version: 10.1.39-MariaDB
8 | -- PHP Version: 7.3.5
9 |
10 | SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
11 | SET AUTOCOMMIT = 0;
12 | START TRANSACTION;
13 | SET time_zone = "+00:00";
14 |
15 |
16 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
17 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
18 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
19 | /*!40101 SET NAMES utf8mb4 */;
20 |
21 | --
22 | -- Database: `admin_panel`
23 | --
24 |
25 | -- --------------------------------------------------------
26 |
27 | --
28 | -- Table structure for table `theme_setting`
29 | --
30 |
31 | CREATE TABLE `theme_setting` (
32 | `id` int(10) NOT NULL,
33 | `header_background` varchar(255) NOT NULL,
34 | `footer_background` varchar(255) NOT NULL,
35 | `downloader_box_background` varchar(255) NOT NULL,
36 | `downloader_box_button` varchar(255) NOT NULL,
37 | `first_title` varchar(255) NOT NULL,
38 | `second_title` varchar(255) NOT NULL,
39 | `third_title` varchar(255) NOT NULL,
40 | `footer_menu_link` varchar(255) NOT NULL,
41 | `header_menu_link` varchar(255) NOT NULL,
42 | `icon` varchar(255) NOT NULL,
43 | `paragraph` varchar(255) NOT NULL,
44 | `logo_name` varchar(255) NOT NULL
45 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
46 |
47 | --
48 | -- Dumping data for table `theme_setting`
49 | --
50 |
51 | INSERT INTO `theme_setting` (`id`, `header_background`, `footer_background`, `downloader_box_background`, `downloader_box_button`, `first_title`, `second_title`, `third_title`, `footer_menu_link`, `header_menu_link`, `icon`, `paragraph`, `logo_name`) VALUES
52 | (1, '#0a570d', '#c2c52b', '#a61c1c', '#8a7575', '#d53030', '#4d1f1f', '#1917a6', '#75c5c7', '#6ff316', '#4f24eb', '#ff0000', '#f50000');
53 |
54 | --
55 | -- Indexes for dumped tables
56 | --
57 |
58 | --
59 | -- Indexes for table `theme_setting`
60 | --
61 | ALTER TABLE `theme_setting`
62 | ADD PRIMARY KEY (`id`);
63 |
64 | --
65 | -- AUTO_INCREMENT for dumped tables
66 | --
67 |
68 | --
69 | -- AUTO_INCREMENT for table `theme_setting`
70 | --
71 | ALTER TABLE `theme_setting`
72 | MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
73 | COMMIT;
74 |
75 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
76 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
77 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
78 |
--------------------------------------------------------------------------------
/config/tables/website_setting.sql:
--------------------------------------------------------------------------------
1 | -- phpMyAdmin SQL Dump
2 | -- version 4.8.5
3 | -- https://www.phpmyadmin.net/
4 | --
5 | -- Host: 127.0.0.1
6 | -- Generation Time: Jun 17, 2020 at 09:26 PM
7 | -- Server version: 10.1.39-MariaDB
8 | -- PHP Version: 7.3.5
9 |
10 | SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
11 | SET AUTOCOMMIT = 0;
12 | START TRANSACTION;
13 | SET time_zone = "+00:00";
14 |
15 |
16 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
17 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
18 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
19 | /*!40101 SET NAMES utf8mb4 */;
20 |
21 | --
22 | -- Database: `admin_panel`
23 | --
24 |
25 | -- --------------------------------------------------------
26 |
27 | --
28 | -- Table structure for table `website_setting`
29 | --
30 |
31 | CREATE TABLE `website_setting` (
32 | `id` int(10) NOT NULL,
33 | `website_title` varchar(255) NOT NULL,
34 | `website_name` varchar(255) NOT NULL,
35 | `visible_website_name` int(10) NOT NULL DEFAULT '0',
36 | `website_logo` varchar(255) NOT NULL,
37 | `website_favicon` varchar(255) NOT NULL,
38 | `meta_keyword` varchar(255) NOT NULL,
39 | `meta_description` text NOT NULL,
40 | `google_varification_code` text NOT NULL,
41 | `google_analytics_code` text NOT NULL
42 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
43 |
44 | --
45 | -- Dumping data for table `website_setting`
46 | --
47 |
48 | INSERT INTO `website_setting` (`id`, `website_title`, `website_name`, `visible_website_name`, `website_logo`, `website_favicon`, `meta_keyword`, `meta_description`, `google_varification_code`, `google_analytics_code`) VALUES
49 | (1, 'dd', 'dd', 0, 'codingstatus-logo.jpg', 'codingstatus-icon.jpg', 'dd', 'dd', 'dd', 'dd');
50 |
51 | --
52 | -- Indexes for dumped tables
53 | --
54 |
55 | --
56 | -- Indexes for table `website_setting`
57 | --
58 | ALTER TABLE `website_setting`
59 | ADD PRIMARY KEY (`id`);
60 |
61 | --
62 | -- AUTO_INCREMENT for dumped tables
63 | --
64 |
65 | --
66 | -- AUTO_INCREMENT for table `website_setting`
67 | --
68 | ALTER TABLE `website_setting`
69 | MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
70 | COMMIT;
71 |
72 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
73 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
74 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
75 |
--------------------------------------------------------------------------------
/contact/contact-details.php:
--------------------------------------------------------------------------------
1 |
2 | query($sql1);
5 | $data = $res1->fetch_assoc();
6 | $email = !empty($data['email'])?$data['email']:'';
7 | $mobile = !empty($data['mobile'])?$data['mobile']:'';
8 | $address = !empty($data['address'])?$data['address']:'';
9 | $google_map = !empty($data['google_map'])?$data['google_map']:'';
10 | $facebook = !empty($data['facebook'])?$data['facebook']:'';
11 | $google_plus = !empty($data['google_plus'])?$data['google_plus']:'';
12 | $twitter = !empty($data['twitter'])?$data['twitter']:'';
13 | $linkedin = !empty($data['linkedin'])?$data['linkedin']:'';
14 | $youtube = !empty($data['youtube'])?$data['youtube']:'';
15 | $instagram = !empty($data['instagram'])?$data['instagram']:'';
16 | $id = !empty($data['id'])?$data['id']:'';
17 |
18 |
19 |
20 | ?>
21 |
22 |
--------------------------------------------------------------------------------
/contact/contact-email.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | query($query);
12 | $data=$res->fetch_assoc();
13 | $email=$data['email'];
14 |
15 | $upId=$data['id'];
16 | $idAttr="updateForm";
17 |
18 | }else{
19 | $email='';
20 | $upId='';
21 | $editId='';
22 | $idAttr="adminForm";
23 | }
24 |
25 | ?>
26 |
27 |
Contact Email
28 |
29 |
30 |
31 |
32 |
33 | Contact Email
34 |
35 |
36 |
37 |
38 | Save
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 | S.N
47 | Email
48 | Edit
49 | Delete
50 |
51 | query($sql1);
54 | if($res1->num_rows>0)
55 | {$i=1;
56 | while($data=$res1->fetch_assoc()){
57 | ?>
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
71 |
72 | No Message
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
--------------------------------------------------------------------------------
/contact/contact-us-message.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
Contact Us Message
6 |
7 |
8 |
9 |
10 | S.N
11 | Full Name
12 | Email
13 | Subject
14 | Message
15 | Delete
16 |
17 | query($sql1);
20 | if($res1->num_rows>0)
21 | {$i=1;
22 | while($data=$res1->fetch_assoc()){
23 | ?>
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
37 |
38 | No Message
39 |
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/dashboard.php:
--------------------------------------------------------------------------------
1 |
19 |
20 |
21 |
22 |
23 | Login Dashboard
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
36 |
37 |
Are You Sure to Delete ?
38 |
Yes No
39 |
40 | mhvmbvbm
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 | $value) {
61 | if($value==$sub[0])
62 | {
63 | continue;
64 | }
65 | $val[]=$value;
66 |
67 | }
68 |
69 | include($cat."/".implode('-',$val).".php");
70 | }else{
71 | include($cat."/".$subcat.".php");
72 | }
73 |
74 | }else{
75 | echo "
Welcome To Admin Panel ";
76 | }
77 |
78 | ?>
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
93 |
112 |
113 |
120 |
125 |
150 |
151 |
--------------------------------------------------------------------------------
/home.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Admin Panel - Front Page
5 |
6 |
7 |
8 |
9 |
10 |
11 |
14 |
28 |
29 |
30 |
31 |
32 | Website Logo
33 |
34 |
35 |
36 |
37 |
38 |
39 | Link
40 |
41 |
42 | Link
43 |
44 |
45 | Link
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
About Admin Panel
54 |
Lorem ipsum dolor sit amet, consectetur adipiscing elit. In massa urna, fermentum nec lobortis condimentum, tincidunt at est. Nullam egestas ex orci, vitae vestibulum mauris rhoncus sed. Morbi eget euismod eros. Fusce et ligula eget libero mattis vestibulum. Phasellus ac nibh nec ante imperdiet ultricies non vitae purus. Pellentesque malesuada, turpis non finibus dignissim, tortor lectus egestas turpis, nec ultricies leo orci ac purus. Proin sodales mauris at faucibus porttitor. Cras in risus quis nunc bibendum convallis vitae in odio. Fusce sed dui neque. Duis in pretium mauris, ut dictum sapien. Cras ut diam eget diam pulvinar placerat. Nullam eget pellentesque ipsum. Curabitur justo augue, fringilla eu viverra eget, aliquam in erat. Nullam eleifend hendrerit massa quis hendrerit.
55 |
56 |
57 |
58 |
59 |
Admin Features
60 |
61 |
62 |
63 |
64 |
65 |
Easy to Integrate
66 |
In this example, the navigation bar is hidden on small screens and replaced by a button in the top right corner (try to re-size this window).
67 |
Only when the button is clicked,
68 |
69 |
70 |
71 |
72 |
Ajax Based Settings
73 |
In this example, the navigation bar is hidden on small screens and replaced by a button in the top right corner (try to re-size this window).
74 |
75 |
76 |
77 |
78 |
79 |
User-friendly UI
80 |
In this example, the navigation bar is hidden on small screens and replaced by a button in the top right corner (try to re-size this window).
81 |
82 |
83 |
84 |
85 |
86 |
Absolute Free to Sourec Code
87 |
In this example, the navigation bar is hidden on small screens and replaced by a button in the top right corner (try to re-size this window).
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
109 |
110 |
111 |
112 |
113 |
114 |
--------------------------------------------------------------------------------
/index.php:
--------------------------------------------------------------------------------
1 |
13 |
14 |
15 |
16 | Admin Panel
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
--------------------------------------------------------------------------------
/logout.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/partials/header.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | query($query);
7 | echo $conn->error;
8 |
9 | $data=$result->fetch_assoc();
10 | $id=!empty($data['id'])?$data['id']:'';
11 | $navbarBackground=!empty($data['navbar_background'])?$data['navbar_background']:'';
12 | $sidebarBackground=!empty($data['sidebar_background'])?$data['sidebar_background']:'';
13 | $textColor=!empty($data['text_color'])?$data['text_color']:'';
14 | $saveButtonColor=!empty($data['save_button_color'])?$data['save_button_color']:'';
15 | $editButtonColor=!empty($data['edit_button_color'])?$data['edit_button_color']:'';
16 | $deleteButtonColor=!empty($data['delete_button_color'])?$data['delete_button_color']:'';
17 |
18 | $viewButtonColor=!empty($data['view_button_color'])?$data['view_button_color']:'';
19 | $labelTextColor=!empty($data['label_text_color'])?$data['label_text_color']:'';
20 |
21 | ?>
22 |
23 |
47 |
--------------------------------------------------------------------------------
/partials/sidebar.php:
--------------------------------------------------------------------------------
1 |
2 |
72 |
73 |
--------------------------------------------------------------------------------
/scripts/admin-login.php:
--------------------------------------------------------------------------------
1 | 0)
68 | {
69 | // checking email and password
70 | $check_user="SELECT email, password FROM admin_profile WHERE email='$email' AND password='$password'";
71 | $run_user= mysqli_query($db,$check_user);
72 | if(mysqli_num_rows($run_user)>0)
73 | {
74 | session_start();
75 | $_SESSION['email']=$email;
76 | header("location:dashboard.php");
77 | }else
78 | {
79 | return "Your Password is wrong";
80 | }
81 |
82 | }
83 | else
84 | {
85 | return "Your Email is not exist";
86 | }
87 | }else{
88 | echo $db->error;
89 | }
90 |
91 | }
92 | ?>
--------------------------------------------------------------------------------
/scripts/ajax-script.js:
--------------------------------------------------------------------------------
1 |
2 |
3 | // ============= admin rol ==============//
4 |
5 | $(document).on('click', '.adminRole', function(e){
6 |
7 | var el=$(this);
8 | var name=$(this).attr('name');
9 | var id=$(this).attr('rel');
10 | $.ajax({
11 | method:"GET",
12 | url: "scripts/backend-script.php",
13 | data:{tableName:name,id:id,role:'admin'},
14 |
15 | success: function(data){
16 |
17 | switch(data)
18 | {
19 | case 'fas fa-user-alt-slash iconRole':
20 | el.attr('class', 'text-secondary adminRole');
21 | break;
22 | case 'fas fa-user-alt iconRole':
23 | el.attr('class', 'text-success adminRole');
24 | break;
25 | }
26 |
27 | el.find('.iconRole').attr('class', data);
28 |
29 |
30 | }});
31 | });
32 |
33 | //======= Insert data through admin form==========//
34 |
35 | $(document).on('submit','#adminForm',function(e){
36 | e.preventDefault();
37 | var name=$(this).attr('name');
38 | $.ajax({
39 | method:"POST",
40 | url: "scripts/backend-script.php?name="+name,
41 | data:$(this).serialize(),
42 | beforeSend:function(){
43 | $('button[type="submit"]').attr('disabled','disabled').text('Saving..');
44 | },
45 | success: function(data){
46 |
47 | $('#adminForm').find('input').val('')
48 | $('#adminForm').find('textarea').val('');
49 | $('button[type="submit"]').removeAttr('disabled').text('Save');
50 |
51 | $('#alertBox').html(data).fadeIn();
52 |
53 | }});
54 |
55 | });
56 |
57 |
58 | //========= update data through update form============ //
59 |
60 |
61 | $(document).on('submit','#updateForm',function(e){
62 | e.preventDefault();
63 | var formData = new FormData(this);
64 | var name=$(this).attr('name');
65 | var id= $(this).attr('rel');
66 | $.ajax({
67 | method:"POST",
68 | url: "scripts/backend-script.php?name="+name+"&id="+id,
69 | data:formData,
70 | cache:false,
71 | contentType: false,
72 | processData: false,
73 | beforeSend:function(){
74 | $('button[type="submit"]').attr('disabled','disabled');
75 | },
76 | success: function(data){
77 |
78 | $('button[type="submit"]').removeAttr('disabled');
79 |
80 | $('#alertBox').html(data).fadeIn();
81 | }
82 |
83 | });
84 | });
85 |
86 |
87 |
88 | // ============= delete data from database============= //
89 | $(document).on('click','.delete',function(e){
90 |
91 | var el=$(this);
92 | var id=$(this).attr('id');
93 | var name = $(this).attr('name');
94 |
95 | if ($('#confirmBox').css("display") == "none") {
96 | $('#confirmBox').fadeIn();
97 |
98 | $('#confirmBox').find('button').on('click', function(){
99 |
100 | if($(this).val()==1){
101 |
102 | $.ajax({
103 | type: "GET",
104 | url: "scripts/backend-script.php",
105 | data:{deleteId:id, deleteData:name},
106 | dataType: "html",
107 | success: function(data){
108 |
109 | $("#showTable").html(data);
110 | $('#alertBox').html(data).fadeIn();
111 | el.parents('tr').remove();
112 |
113 | }
114 |
115 | });
116 |
117 | }
118 |
119 | $('#confirmBox').fadeOut();
120 |
121 | })
122 |
123 | }
124 |
125 | });
126 |
127 |
128 | // === display alert message within a time interval ====== //
129 | window.setInterval(function(){
130 | if ($('#alertBox').css("display") == "block") {
131 | $('#alertBox').fadeOut();
132 | }
133 | }, 3000);
134 |
135 |
136 | // ====== open page by clicking links ==============//
137 | $(document).on('click','a.content-link', function(e){
138 | e.preventDefault();
139 | history.pushState(null, '', $(this).attr('href'));
140 | var cat=getUrlParameter('cat');
141 | var subcat=getUrlParameter('subcat');
142 | var view=getUrlParameter('view');
143 | var edit=getUrlParameter('edit');
144 |
145 | if(cat!='' && subcat!=''){
146 | $.ajax({
147 | type: "GET",
148 | url: "scripts/dynamic-page.php",
149 | data:{
150 | cat:cat,
151 | subcat,
152 | view:view,
153 | edit:edit},
154 | dataType: "html",
155 | success: function(data){
156 |
157 | $('#dynamic-page').html(data);
158 |
159 |
160 |
161 | }
162 |
163 |
164 | });
165 | }else{
166 | $('#dynamic-page').html("This file does not exist");
167 | }
168 |
169 | });
170 |
171 |
172 | // get query string value from url
173 | var getUrlParameter = function getUrlParameter(sParam) {
174 | var sPageURL = window.location.search.substring(1),
175 | sURLVariables = sPageURL.split('&'),
176 | sParameterName,
177 | i;
178 |
179 | for (i = 0; i < sURLVariables.length; i++) {
180 | sParameterName = sURLVariables[i].split('=');
181 |
182 | if (sParameterName[0] === sParam) {
183 | return sParameterName[1] === undefined ? true : decodeURIComponent(sParameterName[1]);
184 | }
185 | }
186 | };
--------------------------------------------------------------------------------
/scripts/backend-script.php:
--------------------------------------------------------------------------------
1 | $navbar_background,
15 | 'sidebar_background'=>$sidebar_background,
16 | 'text_color'=>$text_color,
17 | 'save_button_color'=>$save_button_color,
18 | 'edit_button_color'=>$edit_button_color,
19 | 'delete_button_color'=>$delete_button_color,
20 | 'view_button_color'=>$view_button_color,
21 | 'label_text_color'=>$label_text_color
22 |
23 | ];
24 |
25 |
26 | $tableName=$_GET['name'];
27 | $id= $_GET['id'];
28 | echo "hh";
29 | $updateData=update_data($data,$tableName, $id);
30 | if($updateData){
31 | echo "colors was updated sucessfully ";
32 | }else{
33 | echo "Error!.. check your query ";
34 | }
35 |
36 |
37 | }
38 |
39 | //================ admin Rol==================///
40 |
41 | // update
42 | if( !empty($_GET['id']) && !empty($_GET['tableName']) && $_GET['role']=='admin'){
43 | $id=legal_input($_GET['id']);
44 | $tableName=legal_input($_GET['tableName']);
45 | $query="SELECT status FROM admin_profile WHERE id=$id";
46 | $res= $db->query($query);
47 | $role=$res->fetch_assoc();
48 | if($role['status']==1)
49 | {
50 | $data=[
51 | 'status'=>0
52 | ];
53 | $return ="fas fa-user-alt-slash iconRole";
54 | }else{
55 |
56 | $data=[
57 | 'status'=>1
58 | ];
59 | $return="fas fa-user-alt iconRole";
60 | }
61 |
62 | $updateData=update_data($data,$tableName, $id);
63 | if($updateData)
64 | {
65 | echo $return;
66 | }else{
67 | echo $db->error;
68 | }
69 |
70 | }
71 |
72 | //=========home content =================--//
73 |
74 | // insert
75 | if(empty($_GET['id']) && !empty($_GET['name']) && $_GET['name']=='home_content'){
76 | extract($_POST);
77 | if(!empty($first_title)){
78 |
79 | $data= [
80 | 'content_section'=>$content_section,
81 | 'first_title' =>$first_title,
82 | 'second_title'=>$second_title,
83 | 'description'=>$description
84 |
85 | ];
86 |
87 |
88 | $tableName=$_GET['name'];
89 |
90 | if(!empty($data) && !empty($tableName)){
91 | $insertData=insert_data($data,$tableName);
92 | if($insertData){
93 | echo "Home Content saved sucessfully ";
94 | }else{
95 | echo "Error!.. check your query ";
96 | }
97 | }
98 |
99 | }else{
100 | echo "Home Content field is empty ";
101 | }
102 |
103 | }
104 |
105 | // update
106 | if(!empty($_GET['id']) && !empty($_GET['name']) && $_GET['name']=='home_content')
107 | {
108 |
109 | extract($_POST);
110 |
111 | if(!empty($first_title)){
112 |
113 | $data= [
114 | 'content_section'=>$content_section,
115 | 'first_title' =>$first_title,
116 | 'second_title'=>$second_title,
117 | 'description'=>$description
118 |
119 | ];
120 |
121 |
122 | $tableName=$_GET['name'];
123 | $id= $_GET['id'];
124 |
125 | $updateData=update_data($data,$tableName, $id);
126 | if($updateData){
127 | echo "How content was updated sucessfully ";
128 | }else{
129 | echo "Error!.. check your query ";
130 | }
131 |
132 | }else{
133 | echo "Home Content field is empty ";
134 | }
135 | }
136 |
137 |
138 |
139 | // ======== change password ===========//
140 | if(!empty($_GET['name']) && $_GET['name']=='change_password'){
141 | $old=md5($_POST['password']);
142 | $new=md5($_POST['new_password']);
143 | if(!empty($old) && !empty($new))
144 | {
145 | $query="SELECT password FROM admin_profile WHERE password='$old'";
146 | $result=$conn->query($query);
147 | if($result->num_rows >0)
148 | {
149 | $updateq="UPDATE admins SET password='$new' WHERE password='$old'";
150 | $run= $conn->query($updateq);
151 | if($run){
152 | echo "your password was changed successfully ";
153 |
154 | }
155 |
156 | }else{
157 | echo "Old password is not exist ";
158 | }
159 |
160 | }else{
161 | echo "all fields are required ";
162 | }
163 | }
164 |
165 | // =========admin profile ================= //
166 |
167 | // insert
168 | if(empty($_GET['id']) && !empty($_GET['name']) && $_GET['name']=='admin_profile'){
169 | extract($_POST);
170 | if(!empty($full_name) & !empty($password)){
171 | if($password==$cpassword)
172 | {
173 | $data= [
174 | 'full_name' =>$full_name,
175 | 'email'=>$email,
176 | 'mobile'=>$mobile,
177 | 'address'=>$address,
178 | 'password'=>md5($password)
179 |
180 | ];
181 |
182 |
183 | $tableName=$_GET['name'];
184 |
185 | if(!empty($data) && !empty($tableName)){
186 | $insertData=insert_data($data,$tableName);
187 | if($insertData){
188 | echo "Admin Profile saved sucessfully ";
189 | }else{
190 | echo "Error!.. check your query ";
191 | }
192 | }
193 | }else{
194 | echo "confirm password is not matched ";
195 | }
196 |
197 | }else{
198 | echo "Admin Profile field is empty ";
199 | }
200 |
201 | }
202 |
203 | // update
204 | if(!empty($_GET['id']) && !empty($_GET['name']) && $_GET['name']=='admin_profile'){
205 | extract($_POST);
206 | if(!empty($full_name) & !empty($password)){
207 | if($password==$cpassword)
208 | {
209 | $data= [
210 | 'full_name' =>$full_name,
211 | 'email'=>$email,
212 | 'mobile'=>$mobile,
213 | 'address'=>$address,
214 | 'password'=>md5($password)
215 |
216 | ];
217 |
218 |
219 |
220 | $tableName=$_GET['name'];
221 | $id= $_GET['id'];
222 |
223 |
224 | if(!empty($data) && !empty($tableName)){
225 | $updateData=update_data($data,$tableName, $id);
226 |
227 | if($updateData){
228 | echo "Admin Profile saved sucessfully ";
229 | }else{
230 | echo "Error!.. check your query ";
231 | }
232 | }
233 | }else{
234 | echo "confirm password is not matched ";
235 | }
236 |
237 | }else{
238 | echo "Admin Profile field is empty ";
239 | }
240 |
241 | }
242 |
243 |
244 |
245 | // =========contact email ============== //
246 |
247 | // insert
248 | if(empty($_GET['id']) && !empty($_GET['name']) && $_GET['name']=='contact_email'){
249 | extract($_POST);
250 | if(!empty($email)){
251 | $data= [
252 | 'email' =>$email
253 |
254 | ];
255 |
256 | $tableName=$_GET['name'];
257 |
258 | if(!empty($data) && !empty($tableName)){
259 | $insertData=insert_data($data,$tableName);
260 | if($insertData){
261 | echo "Contact Email saved sucessfully ";
262 | }else{
263 | echo "Error!.. check your query ";
264 | }
265 | }
266 |
267 | }else{
268 | echo "Contact Email field is empty ";
269 | }
270 |
271 | }
272 |
273 | // update
274 | if(!empty($_GET['id']) && !empty($_GET['name']) && $_GET['name']=='contact_email')
275 | {
276 |
277 | extract($_POST);
278 | if(!empty($email)){
279 | $data= [
280 | 'email'=>$email,
281 | ];
282 |
283 | $tableName=$_GET['name'];
284 | $id= $_GET['id'];
285 |
286 | $updateData=update_data($data,$tableName, $id);
287 |
288 | if($updateData){
289 | echo "Contact Email updated sucessfully ";
290 | }else{
291 | echo "Error!.. check your query ";
292 | }
293 |
294 | }else{
295 | echo "Contact Email field is empty ";
296 | }
297 | }
298 |
299 |
300 |
301 | // ============ website setting ================//
302 |
303 | // update
304 | if(!empty($_GET['id']) && !empty($_GET['name']) && $_GET['name']=='website_setting')
305 | {
306 |
307 | extract($_POST);
308 |
309 | if(!empty($website_title) && !empty($meta_keyword) && !empty($meta_description) ){
310 | $tableName=legal_input($_GET['name']);
311 | $id=legal_input($_GET['id']);
312 | // logo image upload //
313 | $uploadTo="../assets/images/";
314 | $websiteLogo=$_FILES['website_logo']['name'];
315 | $tempWebsiteLogo=$_FILES['website_logo']['tmp_name'];
316 |
317 | // favicon image
318 | $websiteFavicon=$_FILES['website_favicon']['name'];
319 | $tempWebsiteFevicon=$_FILES['website_favicon']['tmp_name'];
320 |
321 |
322 | $websiteFeviconPath=$uploadTo.basename($websiteFavicon);
323 |
324 | $websiteLogoPath=$uploadTo.basename($websiteLogo);
325 |
326 | $websiteFeviconType= strtolower(pathinfo($websiteFeviconPath,PATHINFO_EXTENSION));
327 | // for selected file type
328 | $websiteLogoType= strtolower(pathinfo($websiteLogoPath,PATHINFO_EXTENSION));
329 | // for allowed file to upload
330 | $allowedFileType=['jpg','jpeg','png','gif'];
331 | $uploadingError="";
332 | // check allowed type file
333 | if(!in_array($websiteLogoType, $allowedFileType)){
334 | $uploadingError="Only 'jpg','jpeg','png','gif' formate of logo image are allowed";
335 | }
336 | if(!in_array($websiteFeviconType, $allowedFileType)){
337 | $uploadingError="Only 'jpg','jpeg','png','gif' formate of logo image are allowed";
338 | }
339 |
340 | // for empty file
341 | if(empty($uploadingError)){
342 | move_uploaded_file($tempWebsiteLogo,$websiteLogoPath);
343 | move_uploaded_file($tempWebsiteFevicon,$websiteFeviconPath);
344 |
345 |
346 | $data= [
347 | 'website_title' =>$website_title,
348 | 'website_name'=>$website_name,
349 | 'website_logo'=>$websiteLogo,
350 | 'website_favicon'=>$websiteFavicon,
351 | 'meta_keyword'=>$meta_keyword,
352 | 'meta_description' =>$meta_description,
353 | 'google_varification_code'=>$google_varification_code,
354 | 'google_analytics_code'=>$google_analytics_code
355 |
356 | ];
357 |
358 |
359 |
360 | $updateData=update_data($data,$tableName, $id);
361 | if($updateData){
362 | echo "logo updated sucessfully ";
363 | }else{
364 | echo "Error!.. check your query ";
365 | }
366 |
367 |
368 | }else{
369 | echo $uploadingError;
370 | }
371 |
372 |
373 | }else{
374 | echo "Website Setting fields empty ";
375 | }
376 | }
377 |
378 |
379 | // =========website menu =================--//
380 |
381 | // insert
382 | if( !empty($_GET['name']) && $_GET['name']=='categories' && empty($_GET['id'])){
383 | extract($_POST);
384 |
385 | if(!empty($category_name)){
386 | $header=!empty($header_menu)?$header_menu:0;
387 | $footer=!empty($footer_menu)?$footer_menu:0;
388 | $data= [
389 | 'parent_id' =>$parent_id,
390 | 'category_name'=>$category_name,
391 | 'menu_link'=>$menu_link,
392 | 'header_menu'=>$header,
393 | 'footer_menu'=>$footer,
394 | 'description'=>$description
395 | ];
396 |
397 |
398 | $tableName=$_GET['name'];
399 |
400 | if(!empty($data) && !empty($tableName)){
401 | $insertData=insert_data($data,$tableName);
402 | if($insertData){
403 | echo "Website menu saved sucessfully ";
404 | }else{
405 | echo "Error!.. check your query ";
406 | }
407 | }
408 |
409 | }else{
410 | echo "Website menu field is empty ";
411 | }
412 |
413 | }
414 |
415 | // update
416 | if(!empty($_GET['id']) && !empty($_GET['name']) && $_GET['name']=='categories')
417 | {
418 |
419 | extract($_POST);
420 |
421 | if(!empty($category_name)){
422 | $header=!empty($header_menu)?$header_menu:0;
423 | $footer=!empty($footer_menu)?$footer_menu:0;
424 | $data= [
425 | 'parent_id' =>$parent_id,
426 | 'category_name'=>$category_name,
427 | 'menu_link'=>$menu_link,
428 | 'header_menu'=>$header,
429 | 'footer_menu'=>$footer,
430 | 'description'=>$description
431 | ];
432 |
433 |
434 | $tableName=$_GET['name'];
435 | $id= $_GET['id'];
436 |
437 | $updateData=update_data($data,$tableName, $id);
438 | if($updateData){
439 | echo "adsense code updated sucessfully ";
440 | }else{
441 | echo "Error!.. check your query ";
442 | }
443 |
444 | }else{
445 | echo "adsense code field is empty ";
446 | }
447 | }
448 |
449 |
450 |
451 |
452 |
453 |
454 |
455 |
456 |
457 |
458 |
459 | //=========theme setting =================--//
460 |
461 | if( !empty($_GET['name']) && $_GET['name']=='theme_setting' && !empty($_GET['id'])){
462 | extract($_POST);
463 | $data= [
464 | 'header_background' =>$header_background,
465 | 'footer_background'=>$footer_background,
466 | 'downloader_box_background'=>$downloader_box_background,
467 | 'downloader_box_button'=>$downloader_box_button,
468 | 'first_title'=>$first_title,
469 | 'second_title'=>$second_title,
470 | 'third_title'=>$third_title,
471 | 'footer_menu_link'=>$footer_menu_link,
472 | 'header_menu_link'=>$header_menu_link,
473 | 'icon'=>$icon,
474 | 'paragraph'=>$paragraph,
475 | 'logo_name'=>$logo_name
476 | ];
477 |
478 |
479 | $tableName=$_GET['name'];
480 | $id=$_GET['id'];
481 |
482 | if(!empty($data) && !empty($tableName)){
483 | $updateData=update_data($data,$tableName, $id);
484 |
485 | if($updateData){
486 | echo "Theme setting updated sucessfully ";
487 | }else{
488 | echo "Error!.. check your query ";
489 | }
490 | }
491 |
492 |
493 |
494 | }
495 |
496 | //======adsense code====//
497 |
498 | //======adsense code====//
499 |
500 | // insert data
501 | if( !empty($_GET['name']) && $_GET['name']=='code'){
502 | extract($_POST);
503 | if(!empty($code) && !empty($section)){
504 | $data= [
505 | 'code' =>$code,
506 | 'section'=>$section
507 | ];
508 |
509 |
510 | $tableName='adsense_code';
511 |
512 | if(!empty($data) && !empty($tableName)){
513 | $insertData=insert_data($data,$tableName);
514 | if($insertData){
515 | echo "adsense Code saved sucessfully ";
516 | }else{
517 | echo "Error!.. check your query ";
518 | }
519 | }
520 |
521 | }else{
522 | echo "adsense code field is empty ";
523 | }
524 |
525 | }
526 |
527 | // update data
528 | if(!empty($_GET['id']) && !empty($_GET['name']) && $_GET['name']=='update_code')
529 | {
530 |
531 | $id= legal_input($_GET['id']);
532 | $name=legal_input($_GET['name']);
533 | $tableName='adsense_code';
534 | extract($_POST);
535 | if(!empty($code) && !empty($section)){
536 | $data= [
537 | 'code' =>$code,
538 | 'section'=>$section
539 | ];
540 |
541 |
542 |
543 | $updateData=update_data($data,$tableName, $id);
544 | if($updateData){
545 | echo "adsense code updated sucessfully ";
546 | }else{
547 | echo "Error!.. check your query ";
548 | }
549 |
550 | }else{
551 | echo "adsense code field is empty ";
552 | }
553 | }
554 |
555 |
556 |
557 | // ======= delete data from database ============//
558 |
559 | if(!empty($_GET['deleteId']) && !empty($_GET['deleteData']))
560 | {
561 |
562 | $id= legal_input($_GET['deleteId']);
563 | $deleteData=legal_input($_GET['deleteData']);
564 | $tableName= $deleteData;
565 |
566 | $deleteData=delete_data($tableName, $id);
567 |
568 | if($deleteData){
569 | echo "".$tableName." data was deleted ";
570 | }else{
571 | echo "Error...Check your query ";
572 | }
573 |
574 | }
575 |
576 |
577 | //======head script====//
578 |
579 | // insert data
580 | if(!empty($_GET['name']) && $_GET['name']=='head_script'){
581 | extract($_POST);
582 | if(!empty($script)){
583 | $data= [
584 | 'script' =>$script
585 | ];
586 |
587 |
588 | $tableName='head_section_script';
589 |
590 | if(!empty($data) && !empty($tableName)){
591 | $insertData=insert_data($data,$tableName);
592 | if($insertData){
593 | echo "Head Script saved sucessfully ";
594 | }else{
595 | echo "Error!.. check your query ";
596 | }
597 | }
598 |
599 | }else{
600 | echo "Head Script field is empty ";
601 | }
602 |
603 | }
604 |
605 | // update data
606 | if(!empty($_GET['id']) && !empty($_GET['name']) && $_GET['name']=='update_head_script')
607 | {
608 |
609 | $id= legal_input($_GET['id']);
610 | $name=legal_input($_GET['name']);
611 | $tableName='head_section_script';
612 | extract($_POST);
613 | if(!empty($script)){
614 | $data= [
615 | 'script' =>$script
616 | ];
617 |
618 |
619 |
620 | $updateData=update_data($data,$tableName, $id);
621 | if($updateData){
622 | echo "Head Script updated sucessfully ";
623 | }else{
624 | echo "Error!.. check your query ";
625 | }
626 |
627 | }else{
628 | echo "Head Script field is empty ";
629 | }
630 | }
631 |
632 |
633 |
634 |
635 |
636 |
637 | //======Admin====//
638 |
639 | // insert data
640 | if(!empty($_GET['name']) && $_GET['name']=='new_admin'){
641 | extract($_POST);
642 | if(!empty($full_name) && !empty($email) & !empty($password)){
643 | $data= [
644 | 'full_name' =>legal_input($full_name),
645 | 'email' =>legal_input($email),
646 | 'password'=>md5($password)
647 | ];
648 |
649 |
650 | $tableName='admins';
651 |
652 | if(!empty($data) && !empty($tableName)){
653 | $insertData=insert_data($data,$tableName);
654 | if($insertData){
655 | echo "New Admin saved sucessfully ";
656 | }else{
657 | echo "Error!.. check your query ";
658 | }
659 | }
660 |
661 | }else{
662 | echo "Title field is empty ";
663 | }
664 |
665 | }
666 |
667 | // update data
668 | if(!empty($_GET['id']) && !empty($_GET['name']) && $_GET['name']=='update_new_admin')
669 | {
670 |
671 | $id= legal_input($_GET['id']);
672 | $name=legal_input($_GET['name']);
673 | $tableName='admins';
674 | extract($_POST);
675 | if(!empty($full_name) && !empty($email) & !empty($password)){
676 | $data= [
677 | 'full_name' =>legal_input($full_name),
678 | 'email' =>legal_input($email),
679 | 'password'=>md5($password)
680 | ];
681 |
682 | $updateData=update_data($data,$tableName, $id);
683 | if($updateData){
684 | echo "Admin updated sucessfully ";
685 | }else{
686 | echo "Error!.. check your query ";
687 | }
688 |
689 | }else{
690 | echo "title field is empty ";
691 | }
692 | }
693 |
694 |
695 | // contact details
696 | // update data
697 | if(!empty($_GET['id']) && !empty($_GET['name']) && $_GET['name']=='contact_details')
698 | {
699 |
700 | $id= legal_input($_GET['id']);
701 | $name=legal_input($_GET['name']);
702 | $tableName=$_GET['name'];
703 | extract($_POST);
704 | if(!empty($email) && !empty($mobile)){
705 | $data= [
706 | 'email' =>$email,
707 | 'mobile' =>$mobile,
708 | 'address'=>$address,
709 | 'google_map'=>$google_map,
710 | 'facebook' =>$facebook,
711 | 'google_plus'=>$google_plus,
712 | 'twitter' =>$twitter,
713 | 'linkedin' =>$linkedin,
714 | 'youtube' =>$youtube,
715 | 'instagram' =>$instagram,
716 |
717 | ];
718 |
719 | $updateData=update_data($data,$tableName, $id);
720 | if($updateData){
721 | echo "Contact Details updated sucessfully ";
722 | }else{
723 | echo "Error!.. check your query ";
724 | }
725 |
726 | }else{
727 | echo "Contact details field is empty ";
728 | }
729 | }
730 |
731 |
732 |
733 |
734 | //======contact detail===//
735 |
736 |
737 |
738 |
739 | //======logo====//
740 |
741 | // insert data
742 | if(!empty($_GET['name']) && $_GET['name']=='logo'){
743 | extract($_POST);
744 | if(!empty($logo_name)){
745 | $tableName='logo';
746 |
747 | ///image
748 | $uploadTo="uploads/"; //file drectory
749 | $fileName=$_FILES['logo_image']['name'];
750 | $fileTempName=$_FILES['logo_image']['tmp_name'];
751 |
752 | $slectedFilePath=$uploadTo.basename($fileName);
753 | // for selected file type
754 |
755 |
756 | $data= [
757 | 'logo_name' =>$logo_name,
758 | 'logo_image' =>$slectedFilePath
759 |
760 | ];
761 |
762 | $slectedfileType= strtolower(pathinfo($slectedFilePath,PATHINFO_EXTENSION));
763 | // for allowed file to upload
764 | $allowedFileType=['jpg','jpeg','png','gif'];
765 | $uploadingError="";
766 | // check allowed type file
767 | if(!in_array($slectedfileType, $allowedFileType)){
768 | $uploadingError="Only 'jpg','jpeg','png','gif' file types are allowed";
769 | }
770 |
771 | // for empty file
772 | if(empty($uploadingError)){
773 |
774 | $totalRowsData=check_unique_content($tableName, $data);
775 |
776 |
777 | if($totalRowsData>0)
778 | {
779 | echo "Only one Website Title is allowed...You can update id ";
780 | }else{
781 | move_uploaded_file($fileTempName,$slectedFilePath);
782 |
783 |
784 |
785 |
786 | if(!empty($data) && !empty($tableName)){
787 | $insertData=insert_data($data,$tableName);
788 | if($insertData){
789 | echo "logo saved sucessfully ";
790 | }else{
791 | echo "Error!.. check your query ";
792 | }
793 | }
794 |
795 | }
796 |
797 |
798 | }else{
799 | echo $uploadingError;
800 | }
801 |
802 |
803 | /// image
804 |
805 |
806 | }else{
807 | echo "logo fields must be required ";
808 | }
809 |
810 | }
811 |
812 | // update data
813 | if(!empty($_GET['id']) && !empty($_GET['name']) && $_GET['name']=='update_logo')
814 | {
815 |
816 | $id= legal_input($_GET['id']);
817 | $name=legal_input($_GET['name']);
818 | $tableName='logo';
819 | extract($_POST);
820 |
821 | if(!empty($logo_name)){
822 |
823 |
824 | ///image
825 | $uploadTo="uploads/"; //file drectory
826 | $fileName=$_FILES['logo_image']['name'];
827 | $fileTempName=$_FILES['logo_image']['tmp_name'];
828 |
829 | $slectedFilePath=$uploadTo.basename($fileName);
830 | // for selected file type
831 | $slectedfileType= strtolower(pathinfo($slectedFilePath,PATHINFO_EXTENSION));
832 | // for allowed file to upload
833 | $allowedFileType=['jpg','jpeg','png','gif'];
834 | $uploadingError="";
835 | // check allowed type file
836 | if(!in_array($slectedfileType, $allowedFileType)){
837 | $uploadingError="Only 'jpg','jpeg','png','gif' file types are allowed";
838 | }
839 |
840 | // for empty file
841 | if(empty($uploadingError)){
842 | move_uploaded_file($fileTempName,$slectedFilePath);
843 |
844 |
845 | $data= [
846 | 'logo_name' =>$logo_name,
847 | 'logo_image' =>$slectedFilePath
848 | ];
849 |
850 |
851 |
852 | $updateData=update_data($data,$tableName, $id);
853 | if($updateData){
854 | echo "logo updated sucessfully ";
855 | }else{
856 | echo "Error!.. check your query ";
857 | }
858 |
859 |
860 | }else{
861 | echo $uploadingError;
862 | }
863 |
864 |
865 | /// image
866 |
867 | }else{
868 | echo "logo field is empty ";
869 | }
870 | }
871 |
872 |
873 |
874 |
875 |
876 |
877 |
878 |
879 |
880 |
881 |
882 | // MySQL Query for database operation
883 |
884 | function update_data($data, $tableName, $id){
885 |
886 | global $db;
887 | $columnsValues = '';
888 | $num = 0;
889 | foreach($data as $column=>$value){
890 |
891 | $comma = ($num > 0)?', ':'';
892 | $columnsValues.=$comma.$column." = "."'".$value."'";
893 | $num++;
894 | }
895 |
896 | $updateQuery="UPDATE ".$tableName." SET ".$columnsValues." WHERE id=".$id;
897 |
898 | $updateResult=$db->query($updateQuery);
899 | if($updateResult){
900 | return true;
901 | }else{
902 | echo "Error: " . $updateResult . " " . $db->error;
903 | }
904 |
905 |
906 | }
907 |
908 |
909 |
910 | function delete_data($tableName, $id){
911 | global $db;
912 |
913 | $query="DELETE FROM ".$tableName." WHERE id=".$id;
914 | $result= $db->query($query);
915 | if($result){
916 | return true;
917 | }else{
918 | echo "Error found in ".$db->error;
919 | }
920 |
921 | }
922 | function delete_menu($tableName, $id, $menu){
923 | global $db;
924 | if($menu=='header_menu')
925 | {
926 | $query="DELETE FROM ".$tableName." WHERE id=$id AND header_menu=1";
927 |
928 | }else if($menu=='footer_menu'){
929 | $query="DELETE FROM ".$tableName." WHERE id=$id AND footer_menu=1";
930 | }
931 |
932 | $result= $db->query($query);
933 | if($result){
934 | return true;
935 | }else{
936 | echo "Error found in ".$db->error;
937 | }
938 |
939 | }
940 | // convert illegal input value to ligal value formate
941 | function legal_input($value) {
942 | $value = trim($value);
943 | $value = stripslashes($value);
944 | $value = htmlspecialchars($value);
945 | return $value;
946 | }
947 |
948 |
949 | function insert_data(array $data, string $tableName){
950 |
951 | global $db;
952 |
953 | $tableColumns = $userValues = '';
954 | $num = 0;
955 | foreach($data as $column=>$value){
956 | $comma = ($num > 0)?', ':'';
957 | $tableColumns .= $comma.$column;
958 | $userValues .= $comma."'".$value."'";
959 | $num++;
960 | }
961 | $insertQuery="INSERT INTO ".$tableName." (".$tableColumns.") VALUES (".$userValues.")";
962 | $insertResult=$db->query($insertQuery);
963 | if($insertResult){
964 | return true;
965 | }else{
966 | return "Error: " . $insertQuery . " " . $db->error;
967 | }
968 |
969 | }
970 |
971 |
972 |
973 | function check_unique_content($tableName){
974 |
975 | global $db;
976 |
977 |
978 | $query="SELECT * FROM ".$tableName;
979 | $result= $db->query($query);
980 | $totalRows= $result->num_rows;
981 | return $totalRows;
982 |
983 |
984 |
985 |
986 |
987 | }
988 | function check_unique_menu($tableName, $menuName){
989 |
990 | global $db;
991 |
992 |
993 | $query="SELECT * FROM ".$tableName." WHERE menu_name='".$menuName."'";
994 |
995 | $result= $db->query($query);
996 | if($result)
997 | {
998 | $totalRows= $result->num_rows;
999 | return $totalRows;
1000 | }else{
1001 | return $totalRows=0;
1002 | }
1003 |
1004 | return $db->error;
1005 |
1006 |
1007 |
1008 |
1009 |
1010 | }
1011 |
1012 | ?>
--------------------------------------------------------------------------------
/scripts/dynamic-page.php:
--------------------------------------------------------------------------------
1 | $value) {
22 | if($value==$sub[0])
23 | {
24 | continue;
25 | }
26 | $val[]=$value;
27 |
28 | }
29 |
30 | include("../".$cat."/".implode('-',$val).".php");
31 | }else{
32 | include("../".$cat."/".$subcat.".php");
33 | }
34 |
35 |
36 |
37 | }else{
38 | echo "Welcome To Admin Panel ";
39 | }
40 |
41 |
42 |
43 | ?>
--------------------------------------------------------------------------------
/scripts/multilevel-script.php:
--------------------------------------------------------------------------------
1 | prepare("INSERT INTO categories (parent_id, category_name) VALUES (?,?)");
15 | $query->bind_param('is',$parent_id,$category_name);
16 | $exec= $query->execute();
17 | if($exec){
18 |
19 | $msg="Category was created sucessfully";
20 | return $msg;
21 |
22 | }else{
23 | $msg= "Error: ". $query . " " . mysqli_error($conn);
24 | }
25 | }
26 |
27 |
28 | $catData=multilevel_categories();
29 | function multilevel_categories($parent_id=0){
30 |
31 | global $conn;
32 | $query = $conn->prepare('SELECT * FROM categories WHERE parent_id=?');
33 | $query->bind_param('i',$parent_id);
34 | $query->execute();
35 | $exec=$query->get_result();
36 |
37 | $catData=[];
38 | if($exec->num_rows>0){
39 |
40 | while($row= $exec->fetch_assoc())
41 | {
42 | $catData[]=[
43 | 'id'=>$row['id'],
44 | 'parent_id'=>$row['parent_id'],
45 | 'category_name'=>$row['category_name'],
46 | 'nested_categories'=>multilevel_categories($row['id'])
47 | ];
48 | }
49 |
50 | return $catData;
51 |
52 | }else{
53 | return $catData=[];
54 | }
55 | }
56 |
57 | function display_list($nested_categories)
58 | {
59 | $list = '';
60 | foreach($nested_categories as $nested){
61 |
62 | $list .= ''.$nested['category_name'].' ';
63 |
64 | if( ! empty($nested['nested_categories'])){
65 | $list .= display_list($nested['nested_categories']);
66 | }
67 | }
68 | $list .= ' ';
69 |
70 | return $list;
71 | }
72 |
73 | function display_option($nested_categories,$mark=' ')
74 | {
75 | $option='';
76 | foreach($nested_categories as $nested){
77 |
78 | $option .= ''.$mark.$nested['category_name'].' ';
79 |
80 | if( ! empty($nested['nested_categories'])){
81 | $option .= display_option($nested['nested_categories'],$mark.'__');
82 | }
83 | }
84 | return $option;
85 | }
86 |
87 | // convert illegal input to legal input
88 | function legal_input($value) {
89 | $value = trim($value);
90 | $value = stripslashes($value);
91 | $value = htmlspecialchars($value);
92 | return $value;
93 | }
94 |
95 | ?>
96 |
--------------------------------------------------------------------------------
/setting/admin-panel.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
Admin Panel Setting
7 |
8 |
9 |
10 |
16 |
--------------------------------------------------------------------------------
/setting/color-setting.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | query($query);
7 | echo $conn->error;
8 |
9 | $data=$result->fetch_assoc();
10 | $id=!empty($data['id'])?$data['id']:'';
11 | $navbarBackground=!empty($data['navbar_background'])?$data['navbar_background']:'';
12 | $sidebarBackground=!empty($data['sidebar_background'])?$data['sidebar_background']:'';
13 | $textColor=!empty($data['text_color'])?$data['text_color']:'';
14 | $saveButtonColor=!empty($data['save_button_color'])?$data['save_button_color']:'';
15 | $editButtonColor=!empty($data['edit_button_color'])?$data['edit_button_color']:'';
16 | $deleteButtonColor=!empty($data['delete_button_color'])?$data['delete_button_color']:'';
17 |
18 | $viewButtonColor=!empty($data['view_button_color'])?$data['view_button_color']:'';
19 | $labelTextColor=!empty($data['label_text_color'])?$data['label_text_color']:'';
20 |
21 | ?>
22 |
23 |
24 |
25 |
26 |
Admin Panel Setting
27 |
28 |
29 |
30 |
31 |
32 |
33 | Navbar Background
34 |
35 |
36 |
37 |
38 |
39 | Sidebar Background
40 |
41 |
42 |
43 |
44 |
45 | Text Color
46 |
47 |
48 |
49 |
50 |
51 | Save Button Color
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 | Edit Button Color
63 |
64 |
65 |
66 |
67 |
68 | Delete Button Color
69 |
70 |
71 |
72 |
73 |
74 | View Button Color
75 |
76 |
77 |
78 |
79 |
80 | label Text Color
81 |
82 |
83 |
84 |
85 |
86 |
93 |
94 |
95 |
--------------------------------------------------------------------------------
/setting/text-color.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
Change Text Color
7 |
8 |
9 |
--------------------------------------------------------------------------------
/website-admin/admin-profile.php:
--------------------------------------------------------------------------------
1 |
2 |
3 | query($query);
11 | $editData=$res->fetch_assoc();
12 | $fullName=$editData['full_name'];
13 | $email=$editData['email'];
14 | $mobile=$editData['mobile'];
15 | $address=$editData['address'];
16 | $password=$editData['password'];
17 |
18 |
19 | $idAttr="updateForm";
20 |
21 | }else{
22 | $fullName="";
23 | $email="";
24 | $mobile="";
25 | $address="";
26 | $password="";
27 |
28 |
29 | $editId='';
30 | $idAttr="adminForm";
31 |
32 | }
33 | ?>
34 |
35 |
36 |
37 |
Admin Profile
38 |
39 |
42 |
43 |
44 |
45 |
46 |
47 |
48 | Full Name
49 |
50 |
51 |
52 |
53 |
54 | Email
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 | Mobile Number
63 |
64 |
65 |
66 |
67 |
68 | Address
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 | Password
77 |
78 |
79 |
80 |
81 |
82 | Confirm Password
83 |
84 |
85 |
86 |
87 |
88 |
98 |
99 |
100 |
101 | query($query);
106 | $viewData=$res->fetch_assoc();
107 | $backId=$viewData['id']-1;
108 | $fullName=$viewData['full_name'];
109 | $email=$viewData['email'];
110 | $mobile=$viewData['mobile'];
111 | $address=$viewData['address'];
112 | $password=$viewData['password'];
113 | ?>
114 |
121 |
122 |
123 |
124 |
125 | Full Name -
126 |
127 |
128 | Email -
129 |
130 |
131 | Mobile Number -
132 |
133 |
134 | Address -
135 |
136 |
137 | Password -
138 |
139 |
140 |
141 |
146 |
147 |
148 |
149 |
150 |
151 |
152 |
Admin Profile
153 |
154 |
157 |
158 |
159 |
160 |
161 |
162 |
163 |
164 | S.N
165 | Full Name
166 |
167 | email
168 | Status
169 | Edit
170 | Delete
171 |
172 |
173 | query($sql1);
176 | if($res1->num_rows>0)
177 | {$i=1;
178 | while($data=$res1->fetch_assoc()){
179 | ?>
180 |
181 |
182 |
183 |
184 |
185 |
186 |
187 |
188 |
191 |
192 |
193 |
194 |
195 |
196 |
197 |
198 |
199 |
200 |
201 |
202 |
203 |
204 |
209 |
210 | No Admin Profile Data
211 |
212 |
213 |
214 |
215 |
216 |
217 |
218 |
219 |
220 |
221 |
--------------------------------------------------------------------------------
/website-admin/change-password.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
Change Password
6 |
7 |
8 |
9 |
10 |
30 |
31 |
32 |
33 |
53 |
--------------------------------------------------------------------------------
/website-content/home-content.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | query($query);
12 | $editData=$res->fetch_assoc();
13 | $contentSection= $editData['content_section'];
14 | $firstTitle= $editData['first_title'];
15 | $secondTitle= $editData['second_title'];
16 | $description= $editData['description'];
17 |
18 |
19 | $idAttr="updateForm";
20 |
21 | }else{
22 | $contentSection='';
23 | $firstTitle= '';
24 | $secondTitle= '';
25 | $description= '';
26 |
27 | $editId='';
28 | $idAttr="adminForm";
29 | }
30 |
31 |
32 | ?>
33 |
34 |
35 |
36 |
Home Content
37 |
38 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 | Select Content Section
50 |
60 | How to Download
61 | About Downloader
62 | Downloader Features
63 | Downloader Details
64 |
65 |
69 | How to Download
70 | About Downloader
71 | Downloader Features
72 | Downloader Details
73 |
77 | How to Download
78 | About Downloader
79 | Downloader Features
80 | Downloader Details
81 |
85 | How to Download
86 | About Downloader
87 | Downloader Features
88 | Downloader Details
89 |
100 | How to Download
101 | About Downloader
102 | Downloader Features
103 | Downloader Details
104 |
105 |
106 |
107 |
108 |
113 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 | Save
132 |
133 |
134 |
135 |
136 |
137 |
138 |
139 |
140 | query($query);
145 | $viewData=$res->fetch_assoc();
146 | $backId=$viewData['id']-1;
147 | $firstTitle=$viewData['first_title'];
148 | $secondTitle=$viewData['second_title'];
149 | $description=$viewData['description'];
150 |
151 |
152 | ?>
153 |
154 |
155 |
156 |
157 | Menu - ".$viewData['content_section'].""; ?>
158 |
159 |
162 |
163 |
164 |
173 |
174 |
178 |
179 |
180 |
181 |
182 |
183 |
Home Content
184 |
185 |
188 |
189 |
190 |
191 |
192 |
193 |
194 |
195 | Section
196 | Content Section
197 | First Title
198 | View
199 | Edit
200 | Delete
201 |
202 | query($sql1);
205 | if($res1->num_rows>0)
206 | {$i=1;
207 | while($data=$res1->fetch_assoc()){
208 | ?>
209 |
210 |
211 |
212 |
213 |
214 |
215 |
216 |
217 |
218 |
219 |
224 |
225 | No Admin Profile Data
226 |
227 |
228 |
229 |
230 |
231 |
232 |
233 |
234 |
235 |
--------------------------------------------------------------------------------
/website-content/page-content.php:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 |
9 |
Page Content
10 |
11 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 | Select Page
22 | About Us
23 | Privacy Policy
24 | Desclaimer
25 | Terms & Conditions
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 | Save
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
Page Content
53 |
54 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 | S.N
65 | Title
66 | Page
67 | Description
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
--------------------------------------------------------------------------------
/website-setting/theme-setting.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
Theme Setting
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 | query($query);
16 | $data=$res->fetch_assoc();
17 |
18 | $id=!empty($data['id'])?$data['id']:'';
19 | $headerBackground=!empty($data['header_background'])?$data['header_background']:'';
20 | $footerBackground=!empty($data['footer_background'])?$data['footer_background']:'';
21 | $downloaderBoxBackground=!empty($data['downloader_box_background'])?$data['downloader_box_background']:'';
22 | $downloaderBoxButton=!empty($data['downloader_box_button'])?$data['downloader_box_button']:'';
23 | $firstTitle=!empty($data['first_title'])?$data['first_title']:'';
24 | $secondTitle=!empty($data['second_title'])?$data['second_title']:'';
25 | $thirdTitle=!empty($data['third_title'])?$data['third_title']:'';
26 | $footerMenuLink=!empty($data['footer_menu_link'])?$data['footer_menu_link']:'';
27 | $headerMenuLink=!empty($data['header_menu_link'])?$data['header_menu_link']:'';
28 | $icon=!empty($data['icon'])?$data['icon']:'';
29 | $paragraph=!empty($data['paragraph'])?$data['paragraph']:'';
30 | $logoName=!empty($data['logo_name'])?$data['logo_name']:'';
31 |
32 | ?>
33 |
34 |
35 |
36 |
37 | Header Background
38 |
39 |
40 |
41 |
42 |
43 | Downloader Box Background
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 | Footer Background
52 |
53 |
54 |
55 |
56 |
57 | Downloader Box Button
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 | Main Title - h1
67 |
68 |
69 |
70 |
71 |
72 |
73 | Second Title - h2
74 |
75 |
76 |
77 |
78 |
79 | Third Title - h3
80 |
81 |
82 |
83 |
84 |
85 | Footer Menu Link
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 | Icon
94 |
95 |
96 |
97 |
98 |
99 | Paragraph - P
100 |
101 |
102 |
103 |
104 |
105 | Logo Name
106 |
107 |
108 |
109 |
110 |
111 | Header Menu Link
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 | Save
121 |
122 |
123 |
124 |
125 |
--------------------------------------------------------------------------------
/website-setting/website-menu.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 | query($query);
15 | $catD=$res->fetch_assoc();
16 | $catName=$catD['category_name'];
17 | $catDesc=$catD['description'];
18 | $menuLink=$catD['menu_link'];
19 | $upId=$catD['id'];
20 | $idAttr="updateForm";
21 |
22 | }else{
23 | $menuLink='';
24 | $catName='';
25 | $catDesc='';
26 | $upId='';
27 | $editId='';
28 | $idAttr="adminForm";
29 | }
30 |
31 | ?>
32 |
33 |
34 |
35 |
36 |
37 |
38 |
Website Menu
39 |
40 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 | Header Menu
51 |
52 |
53 |
54 |
55 | Footer Menu
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 | category
64 |
65 | No Parent Category
66 |
69 |
70 |
76 |
77 |
78 |
79 |
80 |
81 | Menu Link
82 |
83 |
84 |
85 |
86 |
87 | Subcategory Category
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 | Description
98 |
99 |
102 |
103 |
104 |
105 |
106 | Save
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
120 |
121 |
122 |
123 |
124 |
125 | query($query);
129 | $catName=$res->fetch_assoc();
130 | $backId=$catName['parent_id'];
131 | if(!isset($backId))
132 | {
133 | $view='';
134 | }else{
135 | $view="&view=".$backId;
136 | }
137 | echo "
Menu - ".$catName['category_name']." ";
138 | echo "
Menu Link- ".$catName['menu_link']."
";
139 |
140 |
141 | ?>
142 |
143 |
146 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 | S.N
157 | Submenu
158 | View
159 | Edit
160 | Delete
161 |
162 | query($sql1);
165 | if($res1->num_rows>0)
166 | {
167 | $i=1;
168 | while($arr1=$res1->fetch_assoc())
169 | {
170 |
171 |
172 | ?>
173 |
174 |
175 |
176 |
177 |
178 |
179 |
180 |
181 | No Submenu Found
182 |
183 |
184 |
185 |
186 |
187 |
188 |
189 |
193 |
194 |
195 |
196 |
197 |
Header Menu
198 |
199 |
202 |
203 |
204 |
205 |
206 |
207 |
208 |
209 | S.N
210 | Menu Name
211 | View
212 | Edit
213 | Delete
214 |
215 | query($sql1);
218 | if($res1->num_rows>0)
219 | {
220 | $i=1;
221 | while($arr1=$res1->fetch_assoc())
222 | {
223 |
224 |
225 | ?>
226 |
227 |
228 |
229 |
230 |
231 |
232 |
233 |
234 | No Header Menu Found
235 |
236 |
237 |
238 |
239 |
240 |
241 |
242 |
243 |
244 |
Footer Menu
245 |
246 |
247 |
248 |
249 |
250 |
251 |
252 |
253 |
254 |
255 |
256 |
257 | S.N
258 | Menu Name
259 | View
260 | Edit
261 | Delete
262 |
263 |
264 | query($sql1);
267 | if($res1->num_rows>0)
268 | {
269 | $i=1;
270 | while($arr1=$res1->fetch_assoc())
271 | {
272 |
273 |
274 | ?>
275 |
276 |
277 |
278 |
279 |
280 |
281 |
282 |
283 | No Header Menu Found
284 |
285 |
286 |
287 |
288 |
289 |
290 |
294 |
295 |
296 |
297 |
298 |
299 |
300 |
301 |
302 |
303 |
304 |
305 |
306 |
307 |
--------------------------------------------------------------------------------
/website-setting/website-setting.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
Website Setting
7 |
8 |
9 |
10 |
11 |
12 |
13 | query($sql1);
16 | $data=$res1->fetch_assoc();
17 | $id=!empty($data['id'])?$data['id']:'';
18 | $websiteTitle=!empty($data['website_title'])?$data['website_title']:'';
19 | $websiteName=!empty($data['website_name'])?$data['website_name']:'';
20 | $websiteName=!empty($data['website_name'])?$data['website_name']:'';
21 | $websiteLogo=!empty($data['website_logo'])?$data['website_logo']:'';
22 | $websiteFavicon=!empty($data['website_favicon'])?$data['website_favicon']:'';
23 | $metaKeyword=!empty($data['meta_keyword'])?$data['meta_keyword']:'';
24 |
25 | $metaDescription=!empty($data['meta_description'])?$data['meta_description']:'';
26 | $googleVarificationCode=!empty($data['google_varification_code'])?$data['google_varification_code']:'';
27 | $googleAnalyticsCode=!empty($data['google_analytics_code'])?$data['google_varification_code']:'';
28 | ?>
29 |
30 |
31 |
32 |
33 |
34 | Website Title*
35 |
36 |
37 |
38 |
45 |
46 |
47 |
48 |
49 |
Website Logo *
50 |
51 |
52 |
53 | Choose file
54 |
55 |
58 |
59 |
60 |
Website Favicon*
61 |
62 |
63 |
64 | Choose file
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 | Meta Keyword
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 | Meta Description
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 | Google Website Varification Code
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 | Google Site Analytics Code Code
98 |
99 |
100 |
101 | Back
102 | Save
103 |
104 |
105 |
106 |
107 |
108 |
109 |
--------------------------------------------------------------------------------