Skip to content

Commit

Permalink
Added Readme And Fixed Bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
AmirezaEb committed May 27, 2024
1 parent a12e607 commit cecae91
Show file tree
Hide file tree
Showing 8 changed files with 92 additions and 9 deletions.
4 changes: 2 additions & 2 deletions Contact-Us-Form-English/admin/contacts.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,15 @@
<nav aria-label="Page navigation example">
<ul class="pagination justify-content-center">
<li class="<?= ($page == 1) ? "page-item disabled" : "page-item" ?>">
<a class="page-link" href="<?= "contacts.php?page=" . $page - 1 ?>">Previous</a>
<a class="page-link" href="<?= "contacts.php?page=" . ($page - 1) ?>">Previous</a>
</li>
<?php for ($pages = 1; $pages <= $pagination; $pages++) { ?>
<li class="<?= ($page == $pages) ? "page-item disabled" : "page-item" ?>">
<a class="page-link" href="<?= "contacts.php?page=$pages" ?>"><?= $pages ?></a>
</li>
<?php } ?>
<li class="<?= ($pagination <= $page) ? "page-item disabled" : "page-item" ?>">
<a class="page-link" href="<?= "contacts.php?page=" . $page + 1 ?>">Next</a>
<a class="page-link" href="<?= "contacts.php?page=" . ($page + 1) ?>">Next</a>
</li>
</ul>
</nav>
Expand Down
6 changes: 6 additions & 0 deletions Contact-Us-Form-English/assets/css/loginAdmin.css
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,12 @@ label {
outline: none;
}

@media screen and (max-width: 576px) {
.login-btm {
font-size: 1.9vw!important;
}
}

/*
Developed by Hero Expert
Telegram channel: @HeroExpert_ir
Expand Down
18 changes: 18 additions & 0 deletions Contact-Us-Form-English/assets/css/panelAdmin.css
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,15 @@ tbody th {
.page-link {
font-size: 1.5vw !important;
}
.HeroExpert span {
font-size: 2vw;
}
.message {
width: 90%;
}
.close{
padding: 1vh 2vw;
}
}

@media screen and (max-width: 576px) {
Expand All @@ -366,6 +375,15 @@ tbody th {
.page-link {
font-size: 2vw !important;
}
.HeroExpert span {
font-size: 2.5vw;
}
.message {
font-size: 1.8vw;
}
.close{
font-size: 2vw;
}
}

/*
Expand Down
4 changes: 2 additions & 2 deletions Contact-Us-Form-Persian/admin/contacts.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,15 @@

<nav aria-label="Page navigation example">
<div class="pagination justify-content-center">
<a href="<?= "contacts.php?page=" . $page - 1 ?>" class="<?= ($page == 1) ? "page-item page-link disabled" : "page-item page-link" ?>">
<a href="<?= "contacts.php?page=" . ($page - 1) ?>" class="<?= ($page == 1) ? "page-item page-link disabled" : "page-item page-link" ?>">
قبل
</a>
<?php for ($pages = 1; $pages <= $pagination; $pages++) { ?>
<a href="<?= "contacts.php?page=$pages" ?>" class="<?= ($page == $pages) ? "page-item page-link disabled" : "page-item page-link" ?>">
<?= $pages ?>
</a>
<?php } ?>
<a href="<?= "contacts.php?page=" . $page + 1 ?>" class="<?= ($pagination <= $page) ? "page-item page-link disabled" : "page-item page-link" ?>">
<a href="<?= "contacts.php?page=" . ($page + 1) ?>" class="<?= ($pagination <= $page) ? "page-item page-link disabled" : "page-item page-link" ?>">
بعد
</a>
</div>
Expand Down
4 changes: 2 additions & 2 deletions Contact-Us-Form-Persian/admin/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<i class="fa fa-key" aria-hidden="true"></i>
</div>
<div class="col-lg-12 login-title">
پنل ادمین
پنل مدیریت
</div>

<div class="col-lg-12 login-form">
Expand All @@ -64,7 +64,7 @@
<!-- -->
<p class="login-btm login-text">
<?php if (isset($_GET['Error']) && $_GET['Error'] == 'NotFoundAdmin') {
echo "No Admin Was Found With This Email And Password !";
echo "مدیری با این مشخصات پیدا نشد!";
} ?>
</p>
<div class="col-lg-12 text-center login-btm login-button">
Expand Down
9 changes: 8 additions & 1 deletion Contact-Us-Form-Persian/assets/css/loginAdmin.css
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ input:focus {
}
}


label {
margin-bottom: 0px;
}
Expand Down Expand Up @@ -161,7 +162,7 @@ label {
}

.login-text {
text-align: left;
text-align: right!important;
color: #c83000;
visibility: visible;
opacity: 1;
Expand All @@ -178,6 +179,12 @@ label {
outline: none;
}

@media screen and (max-width: 576px) {
.login-btm {
font-size: 1.9vw!important;
}
}

/*
Developed by Hero Expert
Telegram channel: @HeroExpert_ir
Expand Down
21 changes: 19 additions & 2 deletions Contact-Us-Form-Persian/assets/css/panelAdmin.css
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,8 @@ tbody th {

.close {
text-align: center;
left: 50%;
margin: 13px auto;
width: 20%;
padding: 1vh 2vw;
right: 10px;
}

Expand Down Expand Up @@ -382,6 +381,15 @@ tbody th {
.page-link {
font-size: 1.5vw !important;
}
.HeroExpert span {
font-size: 2vw;
}
.message {
width: 90%;
}
.close{
padding: 1vh 2vw;
}
}

@media screen and (max-width: 576px) {
Expand All @@ -393,6 +401,15 @@ tbody th {
.page-link {
font-size: 2vw !important;
}
.HeroExpert span {
font-size: 2.5vw;
}
.message {
font-size: 1.8vw;
}
.close{
font-size: 2vw;
}
}

/*
Expand Down
35 changes: 35 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<p align="center"><img src="https://HeroExpert.ir/GitHub/Preview.png" width="300"></p>

<p align="center">Contact Us Form Response</p>

## About Contact Us Form

A Stylish And Simple Contact Us Form Made By Following Languages

![HTML5 Badge](https://img.shields.io/badge/HTML5-E34F26?logo=html5&logoColor=fff&style=flat)
![CSS3 Badge](https://img.shields.io/badge/CSS3-1572B6?logo=css3&logoColor=fff&style=flat)
![JavaScript Badge](https://img.shields.io/badge/JavaScript-F7DF1E?logo=javascript&logoColor=000&style=flat)
![PHP Badge](https://img.shields.io/badge/PHP-777BB4?logo=php&logoColor=fff&style=flat)
![MySQL Badge](https://img.shields.io/badge/MySQL-4479A1?logo=mysql&logoColor=fff&style=flat)


![Tinre](https://HeroExpert.ir/GitHub/Contact-Us-Form/Preview.gif)


## Requirements
* PHP 7.3+
* Apache
* MySQL


## Installation

1. Support this repository `Star`
2. Update the `config.php` variables in the `config` folder.
3. From the `Sql` folder, import the `contacts.sql` file into the database to create all the tables.
4. To go to the admin panel, just add the word `admin` to the end of the url address

##

<a href="https://t.me/HeroExpert_ir">![Telegram Badge](https://img.shields.io/badge/Telegram-26A5E4?logo=telegram&logoColor=fff&style=flat)</a>
<a href="https://www.linkedin.com/in/amirreza-ebrahimi-9623052a9">![LinkedIn Badge](https://img.shields.io/badge/LinkedIn-0A66C2?logo=linkedin&logoColor=fff&style=flat)</a>

0 comments on commit cecae91

Please sign in to comment.