Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
Clubphp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Clubphp
Commits
78ab767e
Commit
78ab767e
authored
Apr 11, 2026
by
Mahmoud Aglan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fghjf
parent
ffa74159
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
28 deletions
+25
-28
branding.php
app/Modules/Settings/Views/branding.php
+25
-28
No files found.
app/Modules/Settings/Views/branding.php
View file @
78ab767e
...
@@ -43,6 +43,7 @@ $rd = $receiptDesign;
...
@@ -43,6 +43,7 @@ $rd = $receiptDesign;
</div>
</div>
<div
class=
"card-body"
>
<div
class=
"card-body"
>
<div
class=
"logo-upload-area"
id=
"logo-upload-area"
>
<div
class=
"logo-upload-area"
id=
"logo-upload-area"
>
<div
id=
"logo-display"
>
<?php
if
(
$logo
)
:
?>
<?php
if
(
$logo
)
:
?>
<div
class=
"logo-preview"
id=
"logo-preview"
>
<div
class=
"logo-preview"
id=
"logo-preview"
>
<img
src=
"
<?=
e
(
$logo
)
?>
"
alt=
"شعار النادي"
id=
"logo-preview-img"
>
<img
src=
"
<?=
e
(
$logo
)
?>
"
alt=
"شعار النادي"
id=
"logo-preview-img"
>
...
@@ -59,6 +60,7 @@ $rd = $receiptDesign;
...
@@ -59,6 +60,7 @@ $rd = $receiptDesign;
<small>
PNG, JPG, SVG, WebP — أقصى حجم 2MB
</small>
<small>
PNG, JPG, SVG, WebP — أقصى حجم 2MB
</small>
</div>
</div>
<?php
endif
;
?>
<?php
endif
;
?>
</div>
<input
type=
"file"
name=
"logo_file"
id=
"logo_file"
accept=
"image/png,image/jpeg,image/svg+xml,image/webp"
style=
"display:none;"
onchange=
"previewLogo(this)"
>
<input
type=
"file"
name=
"logo_file"
id=
"logo_file"
accept=
"image/png,image/jpeg,image/svg+xml,image/webp"
style=
"display:none;"
onchange=
"previewLogo(this)"
>
<input
type=
"hidden"
name=
"remove_logo"
id=
"remove_logo"
value=
"0"
>
<input
type=
"hidden"
name=
"remove_logo"
id=
"remove_logo"
value=
"0"
>
</div>
</div>
...
@@ -412,31 +414,26 @@ function previewLogo(input) {
...
@@ -412,31 +414,26 @@ function previewLogo(input) {
}
}
var
reader
=
new
FileReader
();
var
reader
=
new
FileReader
();
reader
.
onload
=
function
(
e
)
{
reader
.
onload
=
function
(
e
)
{
var
area
=
document
.
getElementById
(
'logo-upload-area
'
);
var
display
=
document
.
getElementById
(
'logo-display
'
);
area
.
innerHTML
=
'<div class="logo-preview" id="logo-preview">'
+
display
.
innerHTML
=
'<div class="logo-preview" id="logo-preview">'
+
'<img src="'
+
e
.
target
.
result
+
'" alt="معاينة" id="logo-preview-img">'
+
'<img src="'
+
e
.
target
.
result
+
'" alt="معاينة" id="logo-preview-img">'
+
'<div class="logo-preview-overlay">'
+
'<div class="logo-preview-overlay">'
+
'<button type="button" class="btn btn-sm btn-danger" onclick="removeLogo()">'
+
'<button type="button" class="btn btn-sm btn-danger" onclick="removeLogo()">'
+
'<i data-lucide="trash-2"></i> حذف</button></div></div>'
;
'<i data-lucide="trash-2"></i> حذف</button></div></div>'
;
// Re-append the hidden inputs
document
.
getElementById
(
'remove_logo'
).
value
=
'0'
;
var
fileInput
=
document
.
getElementById
(
'logo_file'
);
var
removeInput
=
document
.
getElementById
(
'remove_logo'
);
if
(
!
area
.
contains
(
fileInput
))
area
.
appendChild
(
fileInput
);
if
(
!
area
.
contains
(
removeInput
))
area
.
appendChild
(
removeInput
);
removeInput
.
value
=
'0'
;
lucide
.
createIcons
();
lucide
.
createIcons
();
};
};
reader
.
readAsDataURL
(
file
);
reader
.
readAsDataURL
(
file
);
}
}
function
removeLogo
()
{
function
removeLogo
()
{
var
area
=
document
.
getElementById
(
'logo-upload-area
'
);
var
display
=
document
.
getElementById
(
'logo-display
'
);
area
.
innerHTML
=
'<div class="logo-placeholder" id="logo-placeholder" onclick="document.getElementById(
\'
logo_file
\'
).click()">'
+
display
.
innerHTML
=
'<div class="logo-placeholder" id="logo-placeholder" onclick="document.getElementById(
\'
logo_file
\'
).click()">'
+
'<i data-lucide="image-plus"></i>'
+
'<i data-lucide="image-plus"></i>'
+
'<p>اضغط لرفع الشعار</p>'
+
'<p>اضغط لرفع الشعار</p>'
+
'<small>PNG, JPG, SVG, WebP — أقصى حجم 2MB</small></div>'
+
'<small>PNG, JPG, SVG, WebP — أقصى حجم 2MB</small></div>'
;
'<input type="file" name="logo_file" id="logo_file" accept="image/png,image/jpeg,image/svg+xml,image/webp" style="display:none;" onchange="previewLogo(this)">'
+
document
.
getElementById
(
'logo_file'
).
value
=
''
;
'<input type="hidden" name="remove_logo" id="remove_logo" value="1">
'
;
document
.
getElementById
(
'remove_logo'
).
value
=
'1
'
;
lucide
.
createIcons
();
lucide
.
createIcons
();
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment