├── .github └── workflows │ └── php.yml ├── Address-Book ├── README.md ├── add_contact.php ├── address_book.sql ├── config │ └── config.php ├── contacts.php ├── core │ └── init.php ├── css │ ├── bootstrap.css │ └── custom.css ├── delete_contact.php ├── edit_contact.php ├── fonts │ ├── glyphicons-halflings-regular.eot │ ├── glyphicons-halflings-regular.svg │ ├── glyphicons-halflings-regular.ttf │ ├── glyphicons-halflings-regular.woff │ └── glyphicons-halflings-regular.woff2 ├── footer.php ├── header.php ├── helpers │ └── system_helper.php ├── images │ ├── avatars │ │ ├── avatar1.jpg │ │ ├── avatar2.jpg │ │ └── noimage.png │ ├── icon.ico │ └── loader.gif ├── index.php ├── js │ ├── bootstrap.js │ ├── jquery.min.js │ └── script.js └── libraries │ └── Database.php ├── Homino-Elnaz ├── README.md ├── admin_edit_footer.php ├── admin_employee.php ├── admin_employee_reserved_times.php ├── admin_groups.php ├── admin_login.php ├── admin_messages.php ├── admin_panel.php ├── admin_report1.php ├── admin_report2.php ├── admin_report3.php ├── admin_report4.php ├── admin_report5.php ├── admin_times.php ├── admin_user_reserve_history.php ├── admin_users.php ├── css │ ├── bootstrap-theme.css │ ├── bootstrap-theme.min.css │ ├── bootstrap.css │ ├── bootstrap.min.css │ ├── custom.css │ ├── font-awesome.css │ ├── font-awesome.min.css │ ├── fontiran.css │ └── jquery.Bootstrap-PersianDateTimePicker.css ├── database.php ├── employee_add_time.php ├── employee_information.php ├── employee_panel.php ├── employee_reserved_time_details.php ├── employee_reserved_times.php ├── employee_send_mail.php ├── fonts │ ├── FontAwesome.otf │ ├── eot │ │ ├── IRANSansWeb.eot │ │ ├── IRANSansWeb_Bold.eot │ │ ├── IRANSansWeb_Light.eot │ │ ├── IRANSansWeb_Medium.eot │ │ └── IRANSansWeb_UltraLight.eot │ ├── fontawesome-webfont.eot │ ├── fontawesome-webfont.svg │ ├── fontawesome-webfont.ttf │ ├── fontawesome-webfont.woff │ ├── fontawesome-webfont.woff2 │ ├── ttf │ │ ├── IRANSansWeb.ttf │ │ ├── IRANSansWeb_Bold.ttf │ │ ├── IRANSansWeb_Light.ttf │ │ ├── IRANSansWeb_Medium.ttf │ │ └── IRANSansWeb_UltraLight.ttf │ ├── woff │ │ ├── IRANSansWeb.woff │ │ ├── IRANSansWeb_Bold.woff │ │ ├── IRANSansWeb_Light.woff │ │ ├── IRANSansWeb_Medium.woff │ │ └── IRANSansWeb_UltraLight.woff │ └── woff2 │ │ ├── IRANSansWeb.woff2 │ │ ├── IRANSansWeb_Bold.woff2 │ │ ├── IRANSansWeb_Light.woff2 │ │ ├── IRANSansWeb_Medium.woff2 │ │ └── IRANSansWeb_UltraLight.woff2 ├── header.php ├── homino.sql ├── images │ ├── 1.png │ ├── 2.png │ ├── 3.png │ ├── 4.png │ ├── icon.ico │ └── slider │ │ ├── slider1.jpg │ │ ├── slider2.jpg │ │ └── slider3.jpg ├── index.php ├── jdf.php ├── js │ ├── bootstrap.js │ ├── bootstrap.min.js │ ├── chart.min.js │ ├── jalaali.js │ ├── jquery-3.3.1.min.js │ ├── jquery.Bootstrap-PersianDateTimePicker.js │ ├── just persian.js │ ├── loader.js │ ├── npm.js │ ├── persianumber.js │ ├── persianumber.min.js │ ├── topbutton.js │ └── with english.js ├── login.php ├── logout.php ├── phpmailer │ ├── Exception.php │ ├── OAuth.php │ ├── PHPMailer.php │ ├── POP3.php │ └── SMTP.php ├── register.php ├── times.php ├── user_information.php ├── user_panel.php ├── user_reserved_times.php ├── user_send_mail.php └── user_send_message.php ├── Mashhad-Taxi ├── README.md ├── about_us.php ├── add_car_admin.php ├── admin_panel.php ├── cars_admin.php ├── css │ ├── bootstrap-theme.css │ ├── bootstrap-theme.css.map │ ├── bootstrap-theme.min.css │ ├── bootstrap-theme.min.css.map │ ├── bootstrap.css │ ├── bootstrap.css.map │ ├── custom.css │ ├── font-awesome.css │ └── font-awesome.min.css ├── database.php ├── edit_information_taxi.php ├── edit_information_user.php ├── fonts │ ├── FontAwesome.otf │ ├── fontawesome-webfont.eot │ ├── fontawesome-webfont.svg │ ├── fontawesome-webfont.ttf │ ├── fontawesome-webfont.woff │ ├── fontawesome-webfont.woff2 │ ├── glyphicons-halflings-regular.eot │ ├── glyphicons-halflings-regular.svg │ ├── glyphicons-halflings-regular.ttf │ ├── glyphicons-halflings-regular.woff │ └── glyphicons-halflings-regular.woff2 ├── footer.php ├── functions.php ├── get_new_service.php ├── get_taxies_location.php ├── header.php ├── images │ ├── ScreenShot.jpg │ ├── cars.png │ ├── icon.ico │ ├── taxi.jpg │ ├── taxi.png │ ├── taxi1.png │ ├── taxi2.png │ ├── taxies.png │ ├── taxies │ │ └── noimage.png │ ├── users.png │ └── users │ │ ├── besco.jpg │ │ ├── noimage.png │ │ └── sajjad.jpg ├── index.php ├── js │ ├── bootstrap.js │ ├── bootstrap.min.js │ ├── jquery.min.js │ ├── npm.js │ └── typed.js ├── login.php ├── logout.php ├── mashhad_taxi.sql ├── register.php ├── service_is_done.php ├── service_request.php ├── service_submit.php ├── taxi_location_admin.php ├── taxi_panel.php ├── taxies_admin.php ├── update_taxi_location_in_database.php ├── update_user_location_in_database.php ├── user_panel.php └── users_admin.php ├── Mgh-Social-Network ├── README.md ├── add_category_admin.php ├── categories_admin.php ├── core │ ├── functions.php │ └── init.php ├── create.php ├── css │ ├── bootstrap.css │ └── custom.css ├── dashboard.php ├── fonts │ ├── glyphicons-halflings-regular.eot │ ├── glyphicons-halflings-regular.svg │ ├── glyphicons-halflings-regular.ttf │ ├── glyphicons-halflings-regular.woff │ └── glyphicons-halflings-regular.woff2 ├── footer.php ├── header.php ├── images │ ├── avatars │ │ ├── avatar2.jpg │ │ └── noimage.png │ ├── category.jpg │ ├── icon.ico │ ├── links │ │ ├── facebook.png │ │ ├── google-plus.png │ │ ├── html5.png │ │ ├── instagram.png │ │ ├── rss.png │ │ ├── skype.png │ │ ├── twitter.png │ │ └── viber.png │ ├── topic.jpg │ ├── unregistered_user.png │ ├── user.png │ └── yas.png ├── index.php ├── js │ ├── bootstrap.js │ ├── bootstrap.min.js │ └── npm.js ├── libraries │ ├── Category.php │ ├── Database.php │ ├── Topic.php │ └── User.php ├── login.php ├── logout.php ├── mgh.sql ├── profile.php ├── profile_unregistered.php ├── register.php ├── topic.php ├── topics_admin.php ├── unregisteredusers_admin.php └── users_admin.php ├── Momeni-Storage ├── README.md ├── add_category_admin.php ├── add_kala.php ├── add_unit_admin.php ├── categories_admin.php ├── contact_us.php ├── css │ ├── bootstrap-theme.css │ ├── bootstrap-theme.css.map │ ├── bootstrap-theme.min.css │ ├── bootstrap-theme.min.css.map │ ├── bootstrap.css │ ├── bootstrap.css.map │ ├── custom.css │ ├── font-awesome.css │ └── font-awesome.min.css ├── database.php ├── factor_add.php ├── factor_remove.php ├── fonts │ ├── FontAwesome.otf │ ├── IRAN │ │ ├── IRANSansWeb.woff │ │ ├── IRANSansWeb_Bold.woff │ │ ├── IRANSansWeb_Light.woff │ │ ├── IRANSansWeb_Medium.woff │ │ └── IRANSansWeb_UltraLight.woff │ ├── fontawesome-webfont.eot │ ├── fontawesome-webfont.svg │ ├── fontawesome-webfont.ttf │ ├── fontawesome-webfont.woff │ ├── fontawesome-webfont.woff2 │ ├── glyphicons-halflings-regular.eot │ ├── glyphicons-halflings-regular.svg │ ├── glyphicons-halflings-regular.ttf │ ├── glyphicons-halflings-regular.woff │ └── glyphicons-halflings-regular.woff2 ├── functions.php ├── header.php ├── images │ ├── background.jpg │ ├── category.png │ ├── kala.ico │ ├── kala.png │ ├── kalas │ │ ├── 1.jpg │ │ ├── 10.jpg │ │ ├── 11.jpg │ │ ├── 12.jpg │ │ ├── 13.jpg │ │ ├── 14.jpg │ │ ├── 15.jpg │ │ ├── 2.jpg │ │ ├── 3.jpg │ │ ├── 4.jpg │ │ ├── 5.jpg │ │ ├── 6.jpg │ │ ├── 7.jpg │ │ ├── 8.jpg │ │ └── 9.jpg │ ├── report.png │ ├── storage keeper.png │ ├── storage_keppers │ │ ├── ahmad.jpg │ │ ├── ali.jpg │ │ └── noimage.png │ ├── top.png │ └── unit.png ├── increase_credit.php ├── index.php ├── js │ ├── bootstrap.js │ ├── bootstrap.min.js │ ├── jquery.min.js │ └── topbutton.js ├── kala.php ├── login.php ├── logout.php ├── main.php ├── panel_admin.php ├── register.php ├── remove_kala.php ├── reports_admin.php ├── statistics.php ├── storage.sql ├── storage_keepers_admin.php └── units_admin.php └── README.md /.github/workflows/php.yml: -------------------------------------------------------------------------------- 1 | name: PHP Composer 2 | 3 | on: 4 | push: 5 | branches: [ "main" ] 6 | pull_request: 7 | branches: [ "main" ] 8 | 9 | permissions: 10 | contents: read 11 | 12 | jobs: 13 | build: 14 | 15 | runs-on: ubuntu-latest 16 | 17 | steps: 18 | - uses: actions/checkout@v3 19 | 20 | - name: Validate composer.json and composer.lock 21 | run: composer validate --strict 22 | 23 | - name: Cache Composer packages 24 | id: composer-cache 25 | uses: actions/cache@v3 26 | with: 27 | path: vendor 28 | key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} 29 | restore-keys: | 30 | ${{ runner.os }}-php- 31 | 32 | - name: Install dependencies 33 | run: composer install --prefer-dist --no-progress 34 | 35 | # Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit" 36 | # Docs: https://getcomposer.org/doc/articles/scripts.md 37 | 38 | # - name: Run test suite 39 | # run: composer run-script test 40 | -------------------------------------------------------------------------------- /Address-Book/README.md: -------------------------------------------------------------------------------- 1 | # Address-Book 2 | Address Book website for add, edit and delete contacts with PHP 3 | -------------------------------------------------------------------------------- /Address-Book/add_contact.php: -------------------------------------------------------------------------------- 1 | 2 | numOfRows() + 1; 18 | 19 | if($_FILES["avatar"]["size"] > 1) 20 | { 21 | move_uploaded_file($_FILES["avatar"]["tmp_name"],"images/avatars/"."avatar".$id.".jpg"); 22 | $avatar = "avatar".$id.".jpg"; 23 | } 24 | else 25 | { 26 | $avatar = "noimage.png"; 27 | } 28 | $query = "INSERT INTO contacts (first_name, last_name, email, phone_number, address, contact_group, state, avatar, note) 29 | VALUES('$first_name', '$last_name', '$email', '$phone_number', '$address', '$contact_group', '$state', '$avatar', '$note')"; 30 | 31 | $insert_row = $db->insert($query); 32 | 33 | header("Location: index.php"); 34 | exit(); 35 | } 36 | ?> -------------------------------------------------------------------------------- /Address-Book/address_book.sql: -------------------------------------------------------------------------------- 1 | -- phpMyAdmin SQL Dump 2 | -- version 4.6.4 3 | -- https://www.phpmyadmin.net/ 4 | -- 5 | -- Host: 127.0.0.1 6 | -- Generation Time: Sep 02, 2018 at 11:18 AM 7 | -- Server version: 5.7.14 8 | -- PHP Version: 5.6.25 9 | 10 | SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; 11 | SET time_zone = "+00:00"; 12 | 13 | 14 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 15 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 16 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 17 | /*!40101 SET NAMES utf8mb4 */; 18 | 19 | -- 20 | -- Database: `address_book` 21 | -- 22 | 23 | -- -------------------------------------------------------- 24 | 25 | -- 26 | -- Table structure for table `contacts` 27 | -- 28 | 29 | CREATE TABLE `contacts` ( 30 | `id` int(11) NOT NULL, 31 | `first_name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL, 32 | `last_name` varchar(100) CHARACTER SET latin1 NOT NULL, 33 | `email` varchar(100) CHARACTER SET latin1 NOT NULL, 34 | `phone_number` varchar(50) CHARACTER SET latin1 NOT NULL, 35 | `address` varchar(100) CHARACTER SET latin1 NOT NULL, 36 | `contact_group` varchar(100) CHARACTER SET latin1 NOT NULL, 37 | `state` varchar(100) CHARACTER SET latin1 NOT NULL, 38 | `note` text COLLATE utf8mb4_unicode_ci NOT NULL, 39 | `avatar` varchar(100) CHARACTER SET latin1 NOT NULL, 40 | `date_added` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP 41 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=COMPACT; 42 | 43 | -- 44 | -- Dumping data for table `contacts` 45 | -- 46 | 47 | INSERT INTO `contacts` (`id`, `first_name`, `last_name`, `email`, `phone_number`, `address`, `contact_group`, `state`, `note`, `avatar`, `date_added`) VALUES 48 | (4, 'Sajjad', 'Aemmi', 'sajjadaemmi@gmail.com', '09150471487', '', 'Family', 'Khorasan', '', 'avatar1.jpg', '2015-07-12 22:10:57'), 49 | (5, 'Maryam', 'Nazeran', 'maryamnazeran73@gmail.com', '09151245974', 'Torghabe', 'Family', 'Khorasan', 'i love you ;)', 'avatar2.jpg', '2018-09-02 11:09:57'); 50 | 51 | -- 52 | -- Indexes for dumped tables 53 | -- 54 | 55 | -- 56 | -- Indexes for table `contacts` 57 | -- 58 | ALTER TABLE `contacts` 59 | ADD PRIMARY KEY (`id`); 60 | 61 | -- 62 | -- AUTO_INCREMENT for dumped tables 63 | -- 64 | 65 | -- 66 | -- AUTO_INCREMENT for table `contacts` 67 | -- 68 | ALTER TABLE `contacts` 69 | MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; 70 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 71 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 72 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 73 | -------------------------------------------------------------------------------- /Address-Book/config/config.php: -------------------------------------------------------------------------------- 1 | sem malesuada magna mollis euismod. Cras mattis consectetur purus sit amet fermentum. Aenean lacinia bibendum nulla sed consectetur.'; 9 | ?> -------------------------------------------------------------------------------- /Address-Book/core/init.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Address-Book/css/custom.css: -------------------------------------------------------------------------------- 1 | html 2 | { 3 | position: relative; 4 | min-height: 100%; 5 | } 6 | body 7 | { 8 | background-color: white; 9 | font-size: 15px; 10 | font-family: arial; 11 | font-weight: bold; 12 | //direction: rtl; 13 | margin-bottom: 50px; 14 | } 15 | .navbar { 16 | border-radius: 0px; 17 | } 18 | a 19 | { 20 | color: #5c5b69; 21 | } 22 | ul 23 | { 24 | padding: 0px; 25 | margin: 0px; 26 | list-style: none; 27 | } 28 | hr 29 | { 30 | margin: 10px 0px 15px 0px; 31 | } 32 | h3 33 | { 34 | margin-bottom: 5px; 35 | } 36 | .block 37 | { 38 | background-color: #ffffff; 39 | border-radius: 5px; 40 | padding: 15px 20px; 41 | margin-bottom: 10px; 42 | } 43 | #loader img 44 | { 45 | position: absolute; 46 | top: 80px; 47 | left: 48%; 48 | width: 5%; 49 | margin: 50px auto 50px auto; 50 | } 51 | #editbutton 52 | { 53 | margin-bottom: 7px; 54 | } 55 | .thumbnail 56 | { 57 | width: 100px; 58 | } 59 | /* 60 | * Footer 61 | */ 62 | 63 | .blog-footer 64 | { 65 | font-family: arial; 66 | padding: 15px 0; 67 | color: rgb(119, 119, 119); 68 | text-align: center; 69 | border-top: 1px solid #e5e5e5; 70 | bottom: 0px; 71 | position: absolute; 72 | overflow: hidden; 73 | white-space: nowrap; 74 | width: 100%; 75 | background-color: rgb(248, 248, 248); 76 | border-top-color: rgb(231, 231, 231); 77 | } 78 | .blog-footer p:last-child 79 | { 80 | margin-bottom: 0; 81 | } 82 | .blog-footer a:hover 83 | { 84 | color: #ffffff; 85 | text-decoration: none; 86 | } -------------------------------------------------------------------------------- /Address-Book/delete_contact.php: -------------------------------------------------------------------------------- 1 | 2 | delete($query); 15 | 16 | header("Location: index.php"); 17 | exit(); 18 | } 19 | ?> -------------------------------------------------------------------------------- /Address-Book/edit_contact.php: -------------------------------------------------------------------------------- 1 | 2 | 1) 19 | { 20 | unlink("images/avatars/"."avatar".$id.".jpg"); 21 | move_uploaded_file($_FILES["avatar"]["tmp_name"],"images/avatars/"."avatar".$id.".jpg"); 22 | $avatar = "avatar".$id.".jpg"; 23 | 24 | $query = "UPDATE contacts SET first_name='$first_name', last_name='$last_name', email='$email', phone_number='$phone_number', address='$address', contact_group='$contact_group', state='$state', note='$note', avatar='$avatar' 25 | WHERE id='$id'"; 26 | } 27 | else 28 | { 29 | $query = "UPDATE contacts SET first_name='$first_name', last_name='$last_name', email='$email', phone_number='$phone_number', address='$address', contact_group='$contact_group', state='$state', note='$note' 30 | WHERE id='$id'"; 31 | } 32 | 33 | $insert_row = $db->update($query); 34 | 35 | header("Location: index.php"); 36 | exit(); 37 | } 38 | ?> -------------------------------------------------------------------------------- /Address-Book/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Address-Book/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /Address-Book/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Address-Book/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /Address-Book/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Address-Book/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /Address-Book/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Address-Book/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /Address-Book/footer.php: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Address-Book/header.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Address Book 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /Address-Book/helpers/system_helper.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Address-Book/images/avatars/avatar1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Address-Book/images/avatars/avatar1.jpg -------------------------------------------------------------------------------- /Address-Book/images/avatars/avatar2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Address-Book/images/avatars/avatar2.jpg -------------------------------------------------------------------------------- /Address-Book/images/avatars/noimage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Address-Book/images/avatars/noimage.png -------------------------------------------------------------------------------- /Address-Book/images/icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Address-Book/images/icon.ico -------------------------------------------------------------------------------- /Address-Book/images/loader.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Address-Book/images/loader.gif -------------------------------------------------------------------------------- /Address-Book/js/script.js: -------------------------------------------------------------------------------- 1 | $(document).ready(function(){ 2 | //show image loader 3 | $('loader').show(); 4 | 5 | //show contacts on page load 6 | showContacts(); 7 | }); 8 | 9 | function showContacts() { 10 | console.log('showing...'); 11 | setTimeout("$('#content').load('contacts.php',function(){$('loader').hide();})",1000); 12 | } -------------------------------------------------------------------------------- /Address-Book/libraries/Database.php: -------------------------------------------------------------------------------- 1 | connect(); 18 | } 19 | 20 | private function connect() 21 | { 22 | $this->link = new mysqli($this->host, $this->username, $this->password, $this->name); 23 | 24 | if(!$this->link) 25 | { 26 | $this->error = "Connection Failed: " . $this->link->connect_error; 27 | } 28 | } 29 | 30 | public function numOfRows() 31 | { 32 | $query = "SELECT * FROM contacts"; 33 | $result = $this->link->query($query) or die($this->link->error.__LINE__); 34 | return $result->num_rows; 35 | } 36 | 37 | public function select($query) 38 | { 39 | $result = $this->link->query($query) or die($this->link->error.__LINE__); 40 | 41 | if($result->num_rows > 0) 42 | return $result; 43 | else 44 | return false; 45 | } 46 | 47 | public function insert($query) 48 | { 49 | $insert_row = $this->link->query($query) or die($this->link->error.__LINE__); 50 | 51 | if($insert_row) 52 | { 53 | header('Location: index.php?msg='.urlencode('Record Added')); 54 | exit(); 55 | } 56 | else 57 | { 58 | die('Error: ('. $this->link->errno.')'.$this->link->error); 59 | } 60 | } 61 | 62 | public function update($query) 63 | { 64 | $update_row = $this->link->query($query) or die($this->link->error.__LINE__); 65 | 66 | if($update_row) 67 | { 68 | header('Location: index.php?msg='.urlencode('Record updated')); 69 | exit(); 70 | } 71 | else 72 | { 73 | die('Error: ('. $this->link->errno.')'.$this->link->error); 74 | } 75 | } 76 | 77 | public function delete($query) 78 | { 79 | $delete_row = $this->link->query($query) or die($this->link->error.__LINE__); 80 | 81 | if($delete_row) 82 | { 83 | header('Location: index.php?msg='.urlencode('Record deleted')); 84 | exit(); 85 | } 86 | else 87 | { 88 | die('Error: ('. $this->link->errno.')'.$this->link->error); 89 | } 90 | } 91 | } -------------------------------------------------------------------------------- /Homino-Elnaz/README.md: -------------------------------------------------------------------------------- 1 | # Homino 2 | Reserve cleaner and worker for home with PHP 3 | -------------------------------------------------------------------------------- /Homino-Elnaz/admin_edit_footer.php: -------------------------------------------------------------------------------- 1 | 2 | 25 | 26 |
27 |
28 |
29 |
30 | 31 | 32 |
33 |
34 | 35 | 36 |
37 |
38 | 39 | " class="form-control" placeholder="نام کاربری خود را وارد نمایید"> 40 |
41 | 42 | 43 |
44 |
45 |
46 | 47 | 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /Homino-Elnaz/admin_employee.php: -------------------------------------------------------------------------------- 1 | 2 | 27 | 28 |
29 |
30 |
اطلاعات سرویس دهندگان
31 |
32 |
33 |
34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 64 | 67 | 68 | 69 |
نامنام کاربریشماره همراه جنسیت رزومه
52 |
53 | "> 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 |
63 |
65 | " class="btn btn-success btn-block">سوابق رزرو 66 |
70 |
71 |
72 |
73 |
74 |
75 | 76 | 77 | 78 | 79 | -------------------------------------------------------------------------------- /Homino-Elnaz/admin_employee_reserved_times.php: -------------------------------------------------------------------------------- 1 | 2 | 33 | 34 |
35 |
36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 |
نام سفارش دهنده گروه کاری وضعیت رزرو تاریخ امتیاز داده شده
59 |
60 |
61 | 62 | 63 | 64 | 65 | 66 | 67 | -------------------------------------------------------------------------------- /Homino-Elnaz/admin_login.php: -------------------------------------------------------------------------------- 1 | 22 | 23 | 24 |
25 |
26 |
27 |
28 |
29 | 30 | 31 |
32 |
33 | 34 | 35 |
36 | 37 | 38 |
39 |
40 |
41 |
42 | 43 | -------------------------------------------------------------------------------- /Homino-Elnaz/admin_messages.php: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 |
13 |
14 |
پیام های ارسالی
15 |
16 |
17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 |
نام کاربریپیامتاریخ
34 |
35 |
36 |
37 |
38 |
39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /Homino-Elnaz/admin_panel.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 |
7 | 26 |
27 | 28 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /Homino-Elnaz/admin_report1.php: -------------------------------------------------------------------------------- 1 | 2 | 14 | 15 |
16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 |
عنوان دسته بندیتعداد سفارشات
32 | 33 |
34 |
35 | 36 |
37 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /Homino-Elnaz/admin_report3.php: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 |
13 |
14 |
15 |
16 | گزارشات بر حسب تاریخ 17 |
18 |
19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 |
تاریختعداد سفارشات
35 | 36 |
37 |
38 |
39 | 40 | 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /Homino-Elnaz/admin_report4.php: -------------------------------------------------------------------------------- 1 | 2 | 14 | 15 |
16 |
17 |
18 |
19 | گزارش سفارشات بر حسب سرویس دهنده 20 |
21 |
22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 |
نام سرویس دهندهتعداد سفارشات
38 | 39 |
40 |
41 |
42 | 43 | 44 | 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /Homino-Elnaz/admin_report5.php: -------------------------------------------------------------------------------- 1 | 2 | 14 | 15 |
16 |
17 |
18 |
19 | گزارش سفارشات بر حسب سرویس دهنده 20 |
21 |
22 |
23 | 24 | 25 | 26 |
27 |
28 |
29 | 30 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | -------------------------------------------------------------------------------- /Homino-Elnaz/admin_times.php: -------------------------------------------------------------------------------- 1 | 2 | 13 | 14 |
15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 |
ساعت شروعساعت پایانتاریخ نام سرویس دهنده گروه کاری
38 | 39 |
40 |
41 | 42 | 43 | 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /Homino-Elnaz/admin_users.php: -------------------------------------------------------------------------------- 1 | 2 | 22 | 23 |
24 |
25 |
اطلاعات کاربران
26 |
27 |
28 |
29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 57 | 60 | 61 | 62 |
نامنام خانوادگینام کاربریشماره همراه آدرس
46 |
47 | "> 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 |
56 |
58 | " class="btn btn-success btn-block">سوابق رزرو 59 |
63 |
64 |
65 |
66 |
67 |
68 | 69 | 70 | 71 | 72 | 73 | -------------------------------------------------------------------------------- /Homino-Elnaz/css/custom.css: -------------------------------------------------------------------------------- 1 | @import url(fontiran.css); 2 | 3 | body 4 | { 5 | background: linear-gradient(-30deg, rgba(255, 255, 255, .1) 100px, transparent 0), linear-gradient(30deg, rgba(255, 255, 255, .1) 100px, transparent 0), linear-gradient(-30deg, rgba(255, 255, 255, .1) 300px, transparent 0), linear-gradient(30deg, rgba(255, 255, 255, .1) 300px, transparent 0), linear-gradient(0deg, #008d7f 150px, rgba(35, 47, 57, 0.87)); 6 | font-family: IRANSans !important; 7 | background-position: center center; 8 | background-repeat: no-repeat; 9 | background-attachment:fixed; 10 | background-size: 100% 100%; 11 | } 12 | 13 | .font{ 14 | color: white; 15 | } 16 | .service 17 | { 18 | min-height: 300px; 19 | } 20 | 21 | .footer 22 | { 23 | background-color:#101010; 24 | height: auto; 25 | color: white; 26 | } 27 | .b 28 | { 29 | color: black; 30 | } 31 | 32 | #kamrang 33 | { 34 | background-color: rgb(255,255,255,0.5); 35 | } 36 | -------------------------------------------------------------------------------- /Homino-Elnaz/css/fontiran.css: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Name: IRAN Sans-Serif Font 4 | * Version: 4.0 5 | * Author: Moslem Ebrahimi (moslemebrahimi.com) 6 | * Created on: Dec 25, 2012 7 | * Updated on: Dec 12, 2015 8 | * Website: http://fontiran.com 9 | * Copyright: Commercial/Proprietary Software 10 | -------------------------------------------------------------------------------------- 11 | فونت های ایران سن سریف یک نرم افزار مالکیتی محسوب می شود. جهت آگاهی از قوانین استفاده از این فونت ها لطفا به وب سایت (فونت ایران دات کام) مراجعه نمایید 12 | -------------------------------------------------------------------------------------- 13 | IRAN Sans-serif fonts are considered a proprietary software. To gain information about the laws regarding the use of these fonts, please visit www.fontiran.com 14 | -------------------------------------------------------------------------------------- 15 | This set of fonts are used in this project under the license: (.....) 16 | -------------------------------------------------------------------------------------- 17 | * 18 | **/ 19 | @font-face { 20 | font-family: IRANSans; 21 | font-style: normal; 22 | font-weight: bold; 23 | src: url('../fonts/eot/IRANSansWeb_Bold.eot'); 24 | src: url('../fonts/eot/IRANSansWeb_Bold.eot?#iefix') format('embedded-opentype'), /* IE6-8 */ 25 | url('../fonts/woff2/IRANSansWeb_Bold.woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/ 26 | url('../fonts/woff/IRANSansWeb_Bold.woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/ 27 | url('../fonts/ttf/IRANSansWeb_Bold.ttf') format('truetype'); 28 | } 29 | @font-face { 30 | font-family: IRANSans; 31 | font-style: normal; 32 | font-weight: 500; 33 | src: url('../fonts/eot/IRANSansWeb_Medium.eot'); 34 | src: url('../fonts/eot/IRANSansWeb_Medium.eot?#iefix') format('embedded-opentype'), /* IE6-8 */ 35 | url('../fonts/woff2/IRANSansWeb_Medium.woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/ 36 | url('../fonts/woff/IRANSansWeb_Medium.woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/ 37 | url('../fonts/ttf/IRANSansWeb_Medium.ttf') format('truetype'); 38 | } 39 | @font-face { 40 | font-family: IRANSans; 41 | font-style: normal; 42 | font-weight: 300; 43 | src: url('../fonts/eot/IRANSansWeb_Light.eot'); 44 | src: url('../fonts/eot/IRANSansWeb_Light.eot?#iefix') format('embedded-opentype'), /* IE6-8 */ 45 | url('../fonts/woff2/IRANSansWeb_Light.woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/ 46 | url('../fonts/woff/IRANSansWeb_Light.woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/ 47 | url('../fonts/ttf/IRANSansWeb_Light.ttf') format('truetype'); 48 | } 49 | @font-face { 50 | font-family: IRANSans; 51 | font-style: normal; 52 | font-weight: 200; 53 | src: url('../fonts/eot/IRANSansWeb_UltraLight.eot'); 54 | src: url('../fonts/eot/IRANSansWeb_UltraLight.eot?#iefix') format('embedded-opentype'), /* IE6-8 */ 55 | url('../fonts/woff2/IRANSansWeb_UltraLight.woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/ 56 | url('../fonts/woff/IRANSansWeb_UltraLight.woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/ 57 | url('../fonts/ttf/IRANSansWeb_UltraLight.ttf') format('truetype'); 58 | } 59 | @font-face { 60 | font-family: IRANSans; 61 | font-style: normal; 62 | font-weight: normal; 63 | src: url('../fonts/eot/IRANSansWeb.eot'); 64 | src: url('../fonts/eot/IRANSansWeb.eot?#iefix') format('embedded-opentype'), /* IE6-8 */ 65 | url('../fonts/woff2/IRANSansWeb.woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/ 66 | url('../fonts/woff/IRANSansWeb.woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/ 67 | url('../fonts/ttf/IRANSansWeb.ttf') format('truetype'); 68 | } 69 | -------------------------------------------------------------------------------- /Homino-Elnaz/css/jquery.Bootstrap-PersianDateTimePicker.css: -------------------------------------------------------------------------------- 1 | [data-name="md-datetimepicker-popovercontent"] { 2 | padding: 5px 6px; 3 | } 4 | 5 | [data-name="md-datetimepicker-popovercontent"] a[data-name="go-today"] { 6 | color: #333; 7 | width: 100%; 8 | display: block; 9 | text-decoration: none; 10 | } 11 | 12 | [data-name="md-datetimepicker-title"] { 13 | direction: rtl; 14 | text-align: center; 15 | font-family: Tahoma; 16 | font-size: 12px; 17 | } 18 | 19 | [data-name="md-persiandatetimepicker"] { 20 | min-width: 230px; 21 | } 22 | 23 | [data-name="md-persiandatetimepicker"] button { 24 | font-size: 12px; 25 | } 26 | 27 | [data-name="md-persiandatetimepicker"] table.table-striped { 28 | margin-bottom: 0; 29 | direction: rtl; 30 | } 31 | 32 | [data-name="md-persiandatetimepicker"] table.table td { 33 | text-align: center; 34 | padding: 2px; 35 | font-size: 12px; 36 | } 37 | 38 | [data-name="md-persiandatetimepicker"] table[data-name="md-persiandatetimepicker-timepicker"].table, 39 | [data-name="md-persiandatetimepicker"] table[data-name="md-persiandatetimepicker-headertable"].table { 40 | width: 100%; 41 | margin: 0 auto; 42 | direction: ltr; 43 | } 44 | 45 | [data-name="md-persiandatetimepicker"] table[data-name="md-persiandatetimepicker-headertable"] .dropdown-menu[aria-labelledby="dropdownMenuPersianYear"] { 46 | height: 200px; 47 | overflow: auto; 48 | } 49 | 50 | [data-name="md-persiandatetimepicker"] table[data-name="md-persiandatetimepicker-headertable"] .dropdown-menu li{ 51 | text-align: center; 52 | } 53 | 54 | [data-name="md-persiandatetimepicker"] table[data-name="md-persiandatetimepicker-timepicker"].table td, 55 | [data-name="md-persiandatetimepicker"] table[data-name="md-persiandatetimepicker-headertable"].table td { 56 | text-align: center; 57 | vertical-align: middle; 58 | border: 0; 59 | } 60 | 61 | [data-name="md-persiandatetimepicker-titlemonth"], 62 | [data-name="md-persiandatetimepicker-titleyear"] { 63 | width: 100%; 64 | padding-top: 0; 65 | padding-bottom: 0; 66 | border: none; 67 | font-weight: bold; 68 | } 69 | 70 | [aria-labelledby="dropdownMenuPersianmonths"] li > a, 71 | [aria-labelledby="dropdownMenuPersianyear"] li > a { 72 | margin: 0; 73 | padding: 0 10px 0 10px; 74 | text-align: center; 75 | } 76 | 77 | [aria-labelledby="dropdownMenuPersianmonths"] .divider { 78 | margin: 1px; 79 | padding: 0; 80 | } 81 | 82 | [data-name="md-persiandatetimepicker"] table.table tr[data-name="md-persiandatetimepicker-weekdaysnames"] td { 83 | font-size: 13px; 84 | font-weight: bold; 85 | } 86 | 87 | [data-name="disabled-day"] { 88 | color: #ccc; 89 | } 90 | 91 | [data-name="day"], [data-name="today"] { 92 | cursor: pointer; 93 | padding: 2px; 94 | } 95 | 96 | [data-name="day"]:not([class^="text"]) { 97 | color: #333; 98 | } 99 | 100 | [data-name="day"]:hover { 101 | background: #eee; 102 | } 103 | 104 | [data-name="today"]:hover { 105 | background: #73acdc; 106 | } 107 | 108 | [data-name="md-persiandatetimepicker-timepicker"] [data-name="clock-hour"], 109 | [data-name="md-persiandatetimepicker-timepicker"] [data-name="clock-minute"], 110 | [data-name="md-persiandatetimepicker-timepicker"] [data-name="clock-second"] { 111 | font-size: 12px; 112 | width: 50px; 113 | padding: 2px; 114 | direction: ltr; 115 | text-align: center; 116 | height: auto; 117 | display: inline-block; 118 | } 119 | 120 | /* by Sina-Soltani66 */ 121 | .zIndexCorrected { 122 | z-index: 100000; 123 | } 124 | -------------------------------------------------------------------------------- /Homino-Elnaz/database.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Homino-Elnaz/employee_add_time.php: -------------------------------------------------------------------------------- 1 | 2 | 24 | 25 |
26 |
27 |
28 |
29 | 30 | 31 | 32 |
33 |
34 | 35 | 36 |
37 | 38 |
39 | 40 |
41 |
42 | 43 |
44 | 46 |
47 |
48 | 49 | 50 | 51 |
52 | 57 | 58 |
59 | 60 |
61 | 62 |
63 |
64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | -------------------------------------------------------------------------------- /Homino-Elnaz/employee_panel.php: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 | 16 |
17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /Homino-Elnaz/employee_reserved_time_details.php: -------------------------------------------------------------------------------- 1 | 2 | 28 | 29 |
30 |
31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 |
ساعت شروع کارساعت پایان کارتاریخ کار تاریخ رزرو گروه کاری وضعیت رزرو
53 | 54 |
55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 |
نام سفارش دهنده شماره تماس آدرس
72 | 73 |
74 |
75 | 76 |
77 | 78 | 79 | 80 | 81 | -------------------------------------------------------------------------------- /Homino-Elnaz/employee_reserved_times.php: -------------------------------------------------------------------------------- 1 | 2 | 39 | 40 |
41 |
42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | "> 60 | 61 | 64 | 67 | 68 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 |
نام سفارش دهنده گروه کاری وضعیت رزرو
" class="btn btn-info btn-block">مشاهده جزییات
62 | 63 | 65 | 66 | 69 | 70 |
79 |
80 |
81 | 82 | 83 | 84 | 85 | 86 | 87 | -------------------------------------------------------------------------------- /Homino-Elnaz/employee_send_mail.php: -------------------------------------------------------------------------------- 1 | 2 | IsSMTP(); 38 | 39 | try 40 | { 41 | $mail->SMTPDebug = 2; 42 | $mail->Host = 'smtp.gmail.com'; 43 | $mail->SMTPAuth = true; 44 | $mail->SMTPSecure = 'tls'; 45 | $mail->Port = 587; 46 | $mail->Username = 'sajjadaemmi@gmail.com'; 47 | $mail->Password = ''; 48 | $mail->SetFrom('sajjadaemmi@gmail.com', 'سجاد ائمی'); 49 | 50 | $mail->AddAddress($email); 51 | $mail->Subject = 'New Password'; 52 | $mail->CharSet = 'UTF-8'; 53 | $mail->ContentType = 'text/htm'; 54 | $mail->MsgHTML($message); 55 | $mail->Send(); 56 | } 57 | catch(phpmailerException $e) 58 | { 59 | echo $e->errorMessage(); 60 | } 61 | catch(Exception $e) 62 | { 63 | echo "----------------------------\n"; 64 | echo $e->getMessage(); 65 | } 66 | 67 | $_SESSION['message'] = 1; 68 | $_SESSION['message_text'] = "کلمه عبور جدید به ایمیل شما فرستاده شد"; 69 | 70 | header("location: login.php"); 71 | } 72 | } 73 | 74 | ?> -------------------------------------------------------------------------------- /Homino-Elnaz/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Homino-Elnaz/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /Homino-Elnaz/fonts/eot/IRANSansWeb.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Homino-Elnaz/fonts/eot/IRANSansWeb.eot -------------------------------------------------------------------------------- /Homino-Elnaz/fonts/eot/IRANSansWeb_Bold.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Homino-Elnaz/fonts/eot/IRANSansWeb_Bold.eot -------------------------------------------------------------------------------- /Homino-Elnaz/fonts/eot/IRANSansWeb_Light.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Homino-Elnaz/fonts/eot/IRANSansWeb_Light.eot -------------------------------------------------------------------------------- /Homino-Elnaz/fonts/eot/IRANSansWeb_Medium.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Homino-Elnaz/fonts/eot/IRANSansWeb_Medium.eot -------------------------------------------------------------------------------- /Homino-Elnaz/fonts/eot/IRANSansWeb_UltraLight.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Homino-Elnaz/fonts/eot/IRANSansWeb_UltraLight.eot -------------------------------------------------------------------------------- /Homino-Elnaz/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Homino-Elnaz/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /Homino-Elnaz/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Homino-Elnaz/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /Homino-Elnaz/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Homino-Elnaz/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /Homino-Elnaz/fonts/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Homino-Elnaz/fonts/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /Homino-Elnaz/fonts/ttf/IRANSansWeb.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Homino-Elnaz/fonts/ttf/IRANSansWeb.ttf -------------------------------------------------------------------------------- /Homino-Elnaz/fonts/ttf/IRANSansWeb_Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Homino-Elnaz/fonts/ttf/IRANSansWeb_Bold.ttf -------------------------------------------------------------------------------- /Homino-Elnaz/fonts/ttf/IRANSansWeb_Light.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Homino-Elnaz/fonts/ttf/IRANSansWeb_Light.ttf -------------------------------------------------------------------------------- /Homino-Elnaz/fonts/ttf/IRANSansWeb_Medium.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Homino-Elnaz/fonts/ttf/IRANSansWeb_Medium.ttf -------------------------------------------------------------------------------- /Homino-Elnaz/fonts/ttf/IRANSansWeb_UltraLight.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Homino-Elnaz/fonts/ttf/IRANSansWeb_UltraLight.ttf -------------------------------------------------------------------------------- /Homino-Elnaz/fonts/woff/IRANSansWeb.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Homino-Elnaz/fonts/woff/IRANSansWeb.woff -------------------------------------------------------------------------------- /Homino-Elnaz/fonts/woff/IRANSansWeb_Bold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Homino-Elnaz/fonts/woff/IRANSansWeb_Bold.woff -------------------------------------------------------------------------------- /Homino-Elnaz/fonts/woff/IRANSansWeb_Light.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Homino-Elnaz/fonts/woff/IRANSansWeb_Light.woff -------------------------------------------------------------------------------- /Homino-Elnaz/fonts/woff/IRANSansWeb_Medium.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Homino-Elnaz/fonts/woff/IRANSansWeb_Medium.woff -------------------------------------------------------------------------------- /Homino-Elnaz/fonts/woff/IRANSansWeb_UltraLight.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Homino-Elnaz/fonts/woff/IRANSansWeb_UltraLight.woff -------------------------------------------------------------------------------- /Homino-Elnaz/fonts/woff2/IRANSansWeb.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Homino-Elnaz/fonts/woff2/IRANSansWeb.woff2 -------------------------------------------------------------------------------- /Homino-Elnaz/fonts/woff2/IRANSansWeb_Bold.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Homino-Elnaz/fonts/woff2/IRANSansWeb_Bold.woff2 -------------------------------------------------------------------------------- /Homino-Elnaz/fonts/woff2/IRANSansWeb_Light.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Homino-Elnaz/fonts/woff2/IRANSansWeb_Light.woff2 -------------------------------------------------------------------------------- /Homino-Elnaz/fonts/woff2/IRANSansWeb_Medium.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Homino-Elnaz/fonts/woff2/IRANSansWeb_Medium.woff2 -------------------------------------------------------------------------------- /Homino-Elnaz/fonts/woff2/IRANSansWeb_UltraLight.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Homino-Elnaz/fonts/woff2/IRANSansWeb_UltraLight.woff2 -------------------------------------------------------------------------------- /Homino-Elnaz/images/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Homino-Elnaz/images/1.png -------------------------------------------------------------------------------- /Homino-Elnaz/images/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Homino-Elnaz/images/2.png -------------------------------------------------------------------------------- /Homino-Elnaz/images/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Homino-Elnaz/images/3.png -------------------------------------------------------------------------------- /Homino-Elnaz/images/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Homino-Elnaz/images/4.png -------------------------------------------------------------------------------- /Homino-Elnaz/images/icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Homino-Elnaz/images/icon.ico -------------------------------------------------------------------------------- /Homino-Elnaz/images/slider/slider1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Homino-Elnaz/images/slider/slider1.jpg -------------------------------------------------------------------------------- /Homino-Elnaz/images/slider/slider2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Homino-Elnaz/images/slider/slider2.jpg -------------------------------------------------------------------------------- /Homino-Elnaz/images/slider/slider3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Homino-Elnaz/images/slider/slider3.jpg -------------------------------------------------------------------------------- /Homino-Elnaz/js/just persian.js: -------------------------------------------------------------------------------- 1 | String.prototype.toPersianDigit = function (a) { return this.replace(/\d+/g, function (digit) { var enDigitArr = [], peDigitArr = []; for (var i = 0; i < digit.length; i++) { enDigitArr.push(digit.charCodeAt(i)); } for (var j = 0; j < enDigitArr.length; j++) { peDigitArr.push(String.fromCharCode(enDigitArr[j] + ((!!a && a == true) ? 1584 : 1728))); } return peDigitArr.join(''); }); }; function TraceNodes(Node) { if (Node.nodeType == 3) //TextNode Node.nodeValue = Node.nodeValue.toPersianDigit(); else for (var i = 0; i < Node.childNodes.length; i++) TraceNodes(Node.childNodes[i]); } TraceNodes(document); -------------------------------------------------------------------------------- /Homino-Elnaz/js/npm.js: -------------------------------------------------------------------------------- 1 | // This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment. 2 | require('../../js/transition.js') 3 | require('../../js/alert.js') 4 | require('../../js/button.js') 5 | require('../../js/carousel.js') 6 | require('../../js/collapse.js') 7 | require('../../js/dropdown.js') 8 | require('../../js/modal.js') 9 | require('../../js/tooltip.js') 10 | require('../../js/popover.js') 11 | require('../../js/scrollspy.js') 12 | require('../../js/tab.js') 13 | require('../../js/affix.js') -------------------------------------------------------------------------------- /Homino-Elnaz/js/persianumber.js: -------------------------------------------------------------------------------- 1 | var defaultSettings = 'fa'; 2 | (function( $ ){ 3 | 4 | $.fn.persiaNumber = function(settings) { 5 | if(typeof(settings) == 'string' && settings.length > 0) 6 | defaultSettings = settings; 7 | var range = 1728; 8 | if(settings == 'ar'){ 9 | range = 1584; 10 | } 11 | window.persiaNumberedDOM = this; 12 | convert(this, range); 13 | $(document).ajaxComplete(function(){ 14 | var thisObj = window.persiaNumberedDOM; 15 | convert(thisObj, range); 16 | }); 17 | function convert(obj, range){ 18 | obj.find("*").andSelf().contents().each(function() { 19 | if (this.nodeType === 3 && this.parentNode.localName != "style" && this.parentNode.localName != "script") { 20 | this.nodeValue = this.nodeValue.replace(this.nodeValue.match(/[0-9]*\.[0-9]+/), function(txt){ 21 | return txt.replace(/\./,','); 22 | }); 23 | this.nodeValue = this.nodeValue.replace(/\d/g, function(v) { 24 | return String.fromCharCode(v.charCodeAt(0) + range); 25 | }); 26 | } 27 | }); 28 | } 29 | }; 30 | })( jQuery ); 31 | origParseInt = parseInt; 32 | parseInt = function(str) { 33 | str = str && str.toString().replace(/[\u06F0\u06F1\u06F2\u06F3\u06F4\u06F5\u06F6\u06F7\u06F8\u06F9]/g, function(v){return String.fromCharCode(v.charCodeAt(0) - 1728)}).replace(/[\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669]/g, function(v){return String.fromCharCode(v.charCodeAt(0) - 1584)}).replace(/[\u066B]/g, '.'); 34 | return origParseInt(str); 35 | }; 36 | origParseFloat = parseFloat; 37 | parseFloat = function(str) { 38 | str = str && str.toString().replace(/[\u06F0\u06F1\u06F2\u06F3\u06F4\u06F5\u06F6\u06F7\u06F8\u06F9]/g, function(v){return String.fromCharCode(v.charCodeAt(0) - 1728)}).replace(/[\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669]/g, function(v){return String.fromCharCode(v.charCodeAt(0) - 1584)}).replace(/[\u066B]/g, '.'); 39 | return origParseFloat(str); 40 | }; 41 | -------------------------------------------------------------------------------- /Homino-Elnaz/js/persianumber.min.js: -------------------------------------------------------------------------------- 1 | var defaultSettings="fa";(function(e){e.fn.persiaNumber=function(t){function r(e,t){e.find("*").andSelf().contents().each(function(){if(this.nodeType===3&&this.parentNode.localName!="style"&&this.parentNode.localName!="script"){this.nodeValue=this.nodeValue.replace(this.nodeValue.match(/[0-9]*\.[0-9]+/),function(e){return e.replace(/\./,",")});this.nodeValue=this.nodeValue.replace(/\d/g,function(e){return String.fromCharCode(e.charCodeAt(0)+t)})}})}if(typeof t=="string"&&t.length>0)defaultSettings=t;var n=1728;if(t=="ar"){n=1584}window.persiaNumberedDOM=this;r(this,n);e(document).ajaxComplete(function(){var e=window.persiaNumberedDOM;r(e,n)})}})(jQuery);origParseInt=parseInt;parseInt=function(e){e=e&&e.toString().replace(/[\u06F0\u06F1\u06F2\u06F3\u06F4\u06F5\u06F6\u06F7\u06F8\u06F9]/g,function(e){return String.fromCharCode(e.charCodeAt(0)-1728)}).replace(/[\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669]/g,function(e){return String.fromCharCode(e.charCodeAt(0)-1584)}).replace(/[\u066B]/g,".");return origParseInt(e)};origParseFloat=parseFloat;parseFloat=function(e){e=e&&e.toString().replace(/[\u06F0\u06F1\u06F2\u06F3\u06F4\u06F5\u06F6\u06F7\u06F8\u06F9]/g,function(e){return String.fromCharCode(e.charCodeAt(0)-1728)}).replace(/[\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669]/g,function(e){return String.fromCharCode(e.charCodeAt(0)-1584)}).replace(/[\u066B]/g,".");return origParseFloat(e)} -------------------------------------------------------------------------------- /Homino-Elnaz/js/topbutton.js: -------------------------------------------------------------------------------- 1 | jQuery(document).ready(function($){ 2 | var offset = 100; 3 | var speed = 500; 4 | var duration = 500; 5 | $(window).scroll(function(){ 6 | if ($(this).scrollTop() < offset) { 7 | $('.topbutton') .fadeOut(duration); 8 | } else { 9 | $('.topbutton') .fadeIn(duration); 10 | } 11 | }); 12 | $('.topbutton').on('click', function(){ 13 | $('html, body').animate({scrollTop:0}, speed); 14 | return false; 15 | }); 16 | }); -------------------------------------------------------------------------------- /Homino-Elnaz/js/with english.js: -------------------------------------------------------------------------------- 1 | function getParentLang(node) { var defaultLang = 'fa'; var currLang = null; while(currLang === null && node.parentNode) { if (node.getAttribute && node.getAttribute('lang')) { currLang = node.getAttribute('lang'); } node = node.parentNode; } return currLang || defaultLang; } function TraceNodes(e) { if (e.nodeType == 3 && getParentLang(e) === 'fa' /* Persian */) { e.nodeValue = e.nodeValue.toPersianDigit(); } else { for (var t = 0; t < e.childNodes.length; t++) { TraceNodes(e.childNodes[t]); } } } String.prototype.toPersianDigit = function(e) { return this.replace(/\d+/g, function(t) { var n = [], r = []; for (var i = 0; i < t.length; i++) { n.push(t.charCodeAt(i)) } for (var s = 0; s < n.length; s++) { r.push(String.fromCharCode(n[s] + (!!e && e == true ? 1584 : 1728))) } return r.join("") }) }; TraceNodes(document); -------------------------------------------------------------------------------- /Homino-Elnaz/logout.php: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /Homino-Elnaz/phpmailer/Exception.php: -------------------------------------------------------------------------------- 1 | 9 | * @author Jim Jagielski (jimjag) 10 | * @author Andy Prevost (codeworxtech) 11 | * @author Brent R. Matzelle (original founder) 12 | * @copyright 2012 - 2017 Marcus Bointon 13 | * @copyright 2010 - 2012 Jim Jagielski 14 | * @copyright 2004 - 2009 Andy Prevost 15 | * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License 16 | * @note This program is distributed in the hope that it will be useful - WITHOUT 17 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 18 | * FITNESS FOR A PARTICULAR PURPOSE. 19 | */ 20 | 21 | namespace PHPMailer\PHPMailer; 22 | 23 | /** 24 | * PHPMailer exception handler. 25 | * 26 | * @author Marcus Bointon 27 | */ 28 | class Exception extends \Exception 29 | { 30 | /** 31 | * Prettify error message output. 32 | * 33 | * @return string 34 | */ 35 | public function errorMessage() 36 | { 37 | return '' . htmlspecialchars($this->getMessage()) . "
\n"; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /Homino-Elnaz/times.php: -------------------------------------------------------------------------------- 1 | 2 | 45 | 46 |
47 |
48 |
49 |
50 | 55 |
56 | 57 |
58 |
59 | 0): ?> 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 85 | 86 | 87 | 88 |
ساعت شروعساعت پایانتاریخ نام سرویس دهنده گروه کاری
80 |
81 | "> 82 | 83 |
84 |
89 | 90 |

از دسته بندی انتخاب شده، زمان خالی موجود نمی باشد

91 | 92 |
93 |
94 | 95 | 96 | 97 | 98 | -------------------------------------------------------------------------------- /Homino-Elnaz/user_panel.php: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 | 13 |
14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Homino-Elnaz/user_send_mail.php: -------------------------------------------------------------------------------- 1 | 2 | IsSMTP(); 38 | 39 | try 40 | { 41 | $mail->SMTPDebug = 2; 42 | $mail->Host = 'smtp.gmail.com'; 43 | $mail->SMTPAuth = true; 44 | $mail->SMTPSecure = 'tls'; 45 | $mail->Port = 587; 46 | $mail->Username = 'sajjadaemmi@gmail.com'; 47 | $mail->Password = ''; 48 | $mail->SetFrom('sajjadaemmi@gmail.com', 'سجاد ائمی'); 49 | 50 | $mail->AddAddress($email); 51 | $mail->Subject = 'New Password'; 52 | $mail->CharSet = 'UTF-8'; 53 | $mail->ContentType = 'text/htm'; 54 | $mail->MsgHTML($message); 55 | $mail->Send(); 56 | } 57 | catch(phpmailerException $e) 58 | { 59 | echo $e->errorMessage(); 60 | } 61 | catch(Exception $e) 62 | { 63 | echo "----------------------------\n"; 64 | echo $e->getMessage(); 65 | } 66 | 67 | $_SESSION['message'] = 1; 68 | $_SESSION['message_text'] = "کلمه عبور جدید به ایمیل شما فرستاده شد"; 69 | 70 | header("location: login.php"); 71 | } 72 | } 73 | 74 | ?> -------------------------------------------------------------------------------- /Homino-Elnaz/user_send_message.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 19 | 20 |
21 |
22 |
23 |
24 | 25 | 26 |
27 | 28 |
29 |
30 |
31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /Mashhad-Taxi/README.md: -------------------------------------------------------------------------------- 1 | # Mashhad-Taxi 2 | 3 | Mashhad-Taxi is an Iranian vehicle for hire company. Users can request a ride via the web application, by indicating their location and destination. The price of the trip is set beforehand, to eliminate bargaining. this is a popular ride-hailing platform in Iran. This website uses PHP as back-end programming language. 4 | 5 | 6 | ## usage 7 | 1- Import mashhad_taxi.sql in phpMyAdmin. 8 | 9 | 2- open index.php in browser: 10 | ``` 11 | localhost/Mashhad-Taxi/index.php 12 | ``` 13 | Login as Admin with 14 | ``` 15 | username: admin 16 | password: 1234 17 | ``` 18 | 19 | ![Screen SHot](images/ScreenShot.jpg) 20 | -------------------------------------------------------------------------------- /Mashhad-Taxi/about_us.php: -------------------------------------------------------------------------------- 1 | 6 | 7 |
8 | 9 |
10 |
11 |
12 | 13 |
14 |
15 |
16 |
17 |

وب سایت درخواست تاکسی آنلاین - مشهد تاکسی

18 |
19 |
20 |

21 | مشهد تاکسی (Mashhad Taxi) سامانه هوشمند درخواست تاکسی است که در حال حاضر در شهر مشهد خدمات خود را ارائه می‌دهد. مشهد تاکسی از طریق وبسایت و پنل سازمانی، شما را با سفیران (رانندگان) مرتبط می‌سازد. شما به راحتی، با دو کلیک می‌توانید درخواست خودرو دهید و سفری با کیفیت، ایمن و ارزان را تجربه کنید. 22 |

23 |

24 | هوایی پاکیزه‌تر، خیابان‌هایی خلوت‌تر، شهری آرام‌تر و آسمانی آبی‌تر داشته باشیم. 25 |

26 |

27 | ایمیل مدیر سایت: vaziri@gmail.com 28 |

29 | 30 |
31 |
32 |
33 |
34 | 35 | -------------------------------------------------------------------------------- /Mashhad-Taxi/add_car_admin.php: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 28 |
29 |
30 |
31 | 32 |
33 |
34 |
35 |

افزودن پست جدید

36 |
37 |
38 |
39 |
40 | 41 | 42 |
43 |
44 |
45 |
46 | 47 |
48 |
49 |
50 |
51 |
52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | -------------------------------------------------------------------------------- /Mashhad-Taxi/cars_admin.php: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 20 | 21 | 28 |
29 |
30 |
31 |
32 |
33 |

لیست اتومبیل ها

34 |
35 |
36 | 37 |
    38 |
  • 39 | افزودن اتومبیل جدید 40 |
  • 41 | 42 | 43 |
  • 44 |
    45 |
    46 | 47 |
    48 |
    49 |
    50 | 51 | 52 |
    53 |
    54 |
    55 |
  • 56 | 57 | 58 |

    هیچ اتومبیلی وجود ندارد

    59 | 60 |
61 |
62 |
63 |
64 |
65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | -------------------------------------------------------------------------------- /Mashhad-Taxi/css/custom.css: -------------------------------------------------------------------------------- 1 | body 2 | { 3 | background-color: #000000; 4 | font-size: 15px; 5 | font-family: IRANSans !important; 6 | } 7 | a 8 | { 9 | color: #5c5b69; 10 | } 11 | ul 12 | { 13 | padding: 0px; 14 | margin: 0px; 15 | list-style: none; 16 | } 17 | hr 18 | { 19 | margin: 10px 0px 15px 0px; 20 | } 21 | nav , .dropdown-menu 22 | { 23 | color: #000000 !important; 24 | background-color: #FFD700 !important; 25 | } 26 | nav a 27 | { 28 | color: #000000 !important; 29 | } 30 | h3 31 | { 32 | margin-bottom: 5px; 33 | } 34 | .topic 35 | { 36 | margin-bottom: 10px; 37 | padding: 10px; 38 | border-bottom: #eee solid 1px; 39 | } 40 | .topic-content 41 | { 42 | width: 100%; 43 | } 44 | img.avatar 45 | { 46 | width: 100%; 47 | } 48 | #main-topic 49 | { 50 | background-color: #f4f4f4; 51 | padding: 10px; 52 | } 53 | .user-info 54 | { 55 | border:#ddd solid 1px; 56 | padding: 5px; 57 | overflow: hidden; 58 | font-size: 13px; 59 | } 60 | .user-info img 61 | { 62 | display: block; 63 | margin-bottom: 5px; 64 | } 65 | .user-info ul 66 | { 67 | list-style: none; 68 | margin: 10px 0 05px; 69 | } 70 | .user-info li 71 | { 72 | line-height: 1.6em; 73 | } 74 | 75 | /* 76 | * Footer 77 | */ 78 | 79 | .user-login 80 | { 81 | border:#ddd solid 1px; 82 | padding: 5px; 83 | overflow: hidden; 84 | } 85 | .user-login img 86 | { 87 | display: block; 88 | } 89 | 90 | .blog-footer 91 | { 92 | padding: 20px 0; 93 | color: #000000; 94 | text-align: center; 95 | background-color: #FFD700; 96 | border-radius: 4px; 97 | } 98 | .blog-footer p:last-child 99 | { 100 | margin-bottom: 0; 101 | } 102 | .blog-footer a:hover 103 | { 104 | color: #ffffff; 105 | text-decoration: none; 106 | } 107 | .blog-footer .link 108 | { 109 | margin: 5px; 110 | width: 40px; 111 | } -------------------------------------------------------------------------------- /Mashhad-Taxi/database.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Mashhad-Taxi/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Mashhad-Taxi/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /Mashhad-Taxi/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Mashhad-Taxi/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /Mashhad-Taxi/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Mashhad-Taxi/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /Mashhad-Taxi/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Mashhad-Taxi/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /Mashhad-Taxi/fonts/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Mashhad-Taxi/fonts/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /Mashhad-Taxi/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Mashhad-Taxi/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /Mashhad-Taxi/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Mashhad-Taxi/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /Mashhad-Taxi/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Mashhad-Taxi/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /Mashhad-Taxi/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Mashhad-Taxi/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /Mashhad-Taxi/footer.php: -------------------------------------------------------------------------------- 1 | 14 |
15 | 16 |
17 |
18 |
19 |

آمار مشهد تاکسی

20 |
21 |
22 | 23 |
    24 |
  • 25 |

    تعداد سرویس ها:

    26 |
  • 27 |
  • 28 |

    تعداد تاکسی ها:

    29 |
  • 30 |
  • 31 |

    تعداد کاربران:

    32 |
  • 33 |
34 |
35 |
36 |
37 |
38 | 39 |
40 |
41 |
42 |

مشهد تاکسی | Mashhad Taxi

43 |

44 | سیده عاطفه وزیری - سیده سمانه سجادی 45 |

46 |
47 |

48 | copyright 2017 49 |

50 |
51 |
52 |
53 | 54 |
55 | 56 | 57 | 58 | 59 | -------------------------------------------------------------------------------- /Mashhad-Taxi/functions.php: -------------------------------------------------------------------------------- 1 | '.$message.''; 42 | } 43 | else 44 | { 45 | echo '
'.$message.'
'; 46 | } 47 | } 48 | unset($_SESSION['message']); 49 | unset($_SESSION['message_type']); 50 | } 51 | else 52 | { 53 | echo ''; 54 | } 55 | } -------------------------------------------------------------------------------- /Mashhad-Taxi/get_new_service.php: -------------------------------------------------------------------------------- 1 | 0) 15 | { 16 | $new_service = mysqli_fetch_assoc($new_service_table); 17 | 18 | echo json_encode($new_service); 19 | } 20 | else 21 | { 22 | echo "NULL"; 23 | } 24 | ?> -------------------------------------------------------------------------------- /Mashhad-Taxi/get_taxies_location.php: -------------------------------------------------------------------------------- 1 | 0) 15 | { 16 | $user = mysqli_fetch_assoc($user); 17 | 18 | $_SESSION['is_logged_in'] = true; 19 | $_SESSION['user_id'] = $user['id']; 20 | $_SESSION['username'] = $user['username']; 21 | $_SESSION['name'] = $user['name']; 22 | $_SESSION['login_type'] = "user"; 23 | 24 | redirect('user_panel.php', 'شما وارد شدید', 'success'); 25 | return true; 26 | } 27 | else 28 | { 29 | redirect('index.php', 'خطا در ورود! دوباره تلاش نمایید!', 'error'); 30 | return false; 31 | } 32 | } 33 | elseif(isset($_POST['login_taxi'])) 34 | { 35 | $username = $_POST['username']; 36 | $password = MD5($_POST['password']); 37 | 38 | $query = "SELECT * FROM taxies WHERE username = '$username' AND password = '$password'"; 39 | 40 | $taxi = mysqli_query($connection, $query); 41 | 42 | if(mysqli_num_rows($taxi) > 0) 43 | { 44 | $taxi = mysqli_fetch_assoc($taxi); 45 | 46 | $_SESSION['is_logged_in'] = true; 47 | $_SESSION['taxi_id'] = $taxi['id']; 48 | $_SESSION['username'] = $taxi['username']; 49 | $_SESSION['name'] = $taxi['name']; 50 | $_SESSION['login_type'] = "taxi"; 51 | 52 | redirect('taxi_panel.php', 'شما وارد شدید', 'success'); 53 | return true; 54 | } 55 | else 56 | { 57 | redirect('index.php', 'خطا در ورود! دوباره تلاش نمایید!', 'error'); 58 | return false; 59 | } 60 | } 61 | elseif(isset($_POST['login_admin'])) 62 | { 63 | $username = $_POST['username']; 64 | $password = MD5($_POST['password']); 65 | 66 | if($username == 'admin' && $password == MD5('1234')) 67 | { 68 | $_SESSION['is_logged_in'] = true; 69 | $_SESSION['name'] = "مدیریت"; 70 | $_SESSION['login_type'] = "admin"; 71 | 72 | redirect('admin_panel.php', 'درود بر ادمین!', 'success'); 73 | } 74 | } 75 | else 76 | { 77 | redirect('index.php'); 78 | } -------------------------------------------------------------------------------- /Mashhad-Taxi/logout.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Mashhad-Taxi/service_is_done.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Mashhad-Taxi/service_submit.php: -------------------------------------------------------------------------------- 1 | '$time_now'"; 20 | } 21 | else 22 | { 23 | $query = "SELECT * FROM taxies WHERE start_time < '$time_now' AND end_time > '$time_now' AND car_id = '$car_id'"; 24 | } 25 | 26 | $taxies = mysqli_query($connection, $query); 27 | 28 | if(mysqli_num_rows($taxies) > 0) 29 | { 30 | $min_distance = 1000; 31 | 32 | foreach($taxies as $taxi) 33 | { 34 | if(sqrt(pow(abs($taxi['location_lat'] - $begin_lat),2) + pow(abs($taxi['location_lng'] - $begin_lng),2)) < $min_distance) 35 | { 36 | $min_distance = sqrt(pow(abs($taxi['location_lat'] - $begin_lat),2) + pow(abs($taxi['location_lng'] - $begin_lng),2)); 37 | 38 | $nearest_taxi = $taxi; 39 | } 40 | } 41 | 42 | //تبدیل طول و عرض جغرافیایی به کیلومتر 43 | // قیمت هر کیلومتر 3000 تومان 44 | $price = round(($min_distance * 100) * 3000); 45 | 46 | $user_id = $_SESSION['user_id']; 47 | $taxi_id = $nearest_taxi['id']; 48 | 49 | $query = "INSERT INTO services (user_id, taxi_id, price , begin_lat, begin_lng, destination_lat, destination_lng) VALUES ('$user_id', '$taxi_id', '$price' , '$begin_lat', '$begin_lng', '$destination_lat', '$destination_lng')"; 50 | 51 | mysqli_query($connection, $query); 52 | 53 | // قسمت کردن شماره پلاک برای نشان دادن در جدول 54 | list($part1, $part2, $part3, $part4) = explode(' ', $nearest_taxi['pelak']); 55 | 56 | $message = "درخواست سرویس با موفقیت انجام شد!
" . "هزینه سفر شما " . ' ' . $price . ' ' . " تومان می باشد.
"; 57 | $message = $message . "لطفا صبور باشید تا راننده تاکسی با شما تماس بگیرد.

"; 58 | $message = $message . "نام راننده تاکسی: " . $nearest_taxi['name'] . "
"; 59 | $message = $message . "شماره پلاک تاکسی: " . 60 | 61 | ' 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 |
' . $part1 . '' . $part2 . '' . $part3 . ' | ' . $part4 . '
' . "
"; 71 | 72 | $message = $message . "شماره تماس با تاکسی: " . $nearest_taxi['phone_number'] . "

"; 73 | $message = $message . 'با راننده تماس بگیرید'; 74 | 75 | redirect('user_panel.php', $message, 'success'); 76 | 77 | } 78 | else 79 | { 80 | $message = "متاسفانه در حال حاضر تاکسی فعالی موجود نمی باشد! بعدا دوباره تلاش نمایید!

"; 81 | $message = $message . 'با 133 تماس بگیرید'; 82 | 83 | redirect('user_panel.php', $message , 'error'); 84 | } 85 | } -------------------------------------------------------------------------------- /Mashhad-Taxi/taxi_location_admin.php: -------------------------------------------------------------------------------- 1 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 25 |
26 |
27 |
28 |
29 | 30 |
31 |
32 |

مکان تاکسی روی نقشه

33 |
34 | 35 |
36 |
37 |
38 | 48 | 49 | 51 |
52 |
53 |
54 |
55 |
56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | -------------------------------------------------------------------------------- /Mashhad-Taxi/update_taxi_location_in_database.php: -------------------------------------------------------------------------------- 1 | 5 | 82 | 83 | 84 | 85 | 86 | 87 |
88 |
89 |
90 |
91 |
92 |

مکان شما روی نقشه

93 |
94 | 95 |
96 |
97 |
98 |
99 | 100 |
101 |
102 |
103 |
104 | 107 |
108 |
109 |
110 |
111 |
112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | -------------------------------------------------------------------------------- /Mashhad-Taxi/users_admin.php: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 20 | 21 | 28 |
29 |
30 |
31 |
32 |
33 |

لیست کاربران

34 |
35 |
36 | 37 |
    38 | 39 |
  • 40 |
    41 |
    42 | 43 |
    44 |
    45 |

    46 |
    47 |

    نام کاربری:

    48 | 49 |
    50 |

    شماره همراه:

    51 | 52 |
    53 |
    54 | 55 |
    56 | 57 | 58 |
    59 | 60 |
    61 |
    62 |
  • 63 | 64 |
65 | 66 |

کاربری جهت نمایش وجود ندارد

67 | 68 |
69 |
70 |
71 |
72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | -------------------------------------------------------------------------------- /Mgh-Social-Network/README.md: -------------------------------------------------------------------------------- 1 | # Mgh-Social-Network 2 | Social Network website with PHP 3 | -------------------------------------------------------------------------------- /Mgh-Social-Network/add_category_admin.php: -------------------------------------------------------------------------------- 1 | 2 | query("SET CHARACTER SET utf8"); 10 | $db->execute(); 11 | 12 | if(isset($_POST['add'])) 13 | { 14 | $data = array(); 15 | $data['name'] = $_POST['name']; 16 | 17 | $category->add($data); 18 | 19 | redirect('categories_admin.php', 'New Category Added', 'success'); 20 | exit(); 21 | } 22 | 23 | $totalCategories = $topic->getTotalCategories(); 24 | $totalTopics = $topic->getTotalTopics(); 25 | ?> 26 | 27 | 28 |

Back to Admin Panel

29 |
30 |
31 | 32 | 33 |
34 |
35 |
36 |
37 | 38 |
39 | 40 | -------------------------------------------------------------------------------- /Mgh-Social-Network/categories_admin.php: -------------------------------------------------------------------------------- 1 | 2 | query("SET CHARACTER SET utf8"); 10 | $db->execute(); 11 | 12 | if(isset($_POST['delete'])) 13 | { 14 | $id = $_POST['id']; 15 | 16 | $delete = $category->delete($id); 17 | } 18 | 19 | $categories = $category->getAllCategories(); 20 | $totalTopics = $topic->getTotalTopics(); 21 | ?> 22 | 23 | 24 |

Back to Admin Panel

25 |
    26 |
  • 27 |
    28 |
    29 |
    30 |

    New Category

    31 |
    32 |
    33 |
    34 | Add 35 |
    36 |
    37 |
  • 38 | 39 | 40 |
  • 41 |
    42 |
    43 |
    44 |

    name; ?>

    45 |
    46 |
    47 |
    48 |
    49 | 50 | 51 |
    52 |
    53 |
    54 |
  • 55 | 56 | 57 |

    No Categories!

    58 | 59 |
60 | -------------------------------------------------------------------------------- /Mgh-Social-Network/core/init.php: -------------------------------------------------------------------------------- 1 | Yas Social Network!'); 10 | 11 | define('BASE_URI','http://'.$_SERVER['SERVER_NAME'].'/mgh/'); 12 | 13 | require_once('core/functions.php'); 14 | 15 | function __autoload($class_name) 16 | { 17 | require_once('libraries/'.$class_name.'.php'); 18 | } 19 | ?> -------------------------------------------------------------------------------- /Mgh-Social-Network/create.php: -------------------------------------------------------------------------------- 1 | 2 | query("SET CHARACTER SET utf8"); 8 | $db->execute(); 9 | 10 | if(isset($_POST['create'])) 11 | { 12 | $data = array(); 13 | $data['title'] = $_POST['title']; 14 | $data['body'] = $_POST['body']; 15 | $data['category_id'] = $_POST['category']; 16 | $data['user_id'] = getUser()['user_id']; 17 | $data['create_date'] = date("Y-m-d H:j:s"); 18 | 19 | if($user->isblock($data['user_id']) == false) 20 | { 21 | if($topic->uplodeImage(basename($_FILES["image"]["name"]))) 22 | { 23 | $data['image'] = basename($_FILES["image"]["name"]); 24 | } 25 | else 26 | { 27 | $data['image'] = 0; 28 | } 29 | $topic->create($data); 30 | redirect('index.php', 'Your topic has been posted', 'success'); 31 | } 32 | else 33 | { 34 | redirect('create.php', 'You Are Reported!', 'error'); 35 | } 36 | } 37 | 38 | $topics = $topic->getAllTopics(); 39 | $totalTopics = $topic->getTotalTopics(); 40 | $totalCategories = $topic->getTotalCategories(); 41 | $totalUsers = $user->getTotalUsers(); 42 | 43 | ?> 44 | 45 | 46 |
47 |
48 | 49 | 50 |
51 |
52 | 53 | 58 |
59 |
60 | 61 | 62 | 63 |
64 |
65 | 66 | 67 |

68 |
69 |
70 |
71 |
72 | 73 |
74 | 75 | -------------------------------------------------------------------------------- /Mgh-Social-Network/css/custom.css: -------------------------------------------------------------------------------- 1 | body 2 | { 3 | padding-top: 60px; 4 | background-color: #ffaab0; 5 | font-size: 15px; 6 | } 7 | a 8 | { 9 | color: #5c5b69; 10 | } 11 | ul 12 | { 13 | padding: 0px; 14 | margin: 0px; 15 | list-style: none; 16 | } 17 | hr 18 | { 19 | margin: 10px 0px 15px 0px; 20 | } 21 | nav 22 | { 23 | color: #ffffff !important; 24 | background-color: #99102c !important; 25 | } 26 | nav a 27 | { 28 | color: #ffffff !important; 29 | } 30 | h3 31 | { 32 | margin-bottom: 5px; 33 | } 34 | .block 35 | { 36 | background-color: #ffffff; 37 | border-radius: 5px; 38 | padding: 15px 20px; 39 | margin-bottom: 20px; 40 | } 41 | .main-col 42 | { 43 | overflow: auto; 44 | } 45 | .main-col h4 46 | { 47 | font-size: 16px; 48 | margin: 5px 0 0 0; 49 | padding: 0px; 50 | } 51 | .main-col h1 52 | { 53 | font-size: 22px; 54 | margin: 22px 0 0 0; 55 | padding: 0px; 56 | } 57 | .sidebar .block h3 58 | { 59 | margin: 0 0 10px 0; 60 | padding-bottom: 10px; 61 | border-bottom: #eee solid 1px; 62 | } 63 | .topic 64 | { 65 | margin-bottom: 10px; 66 | padding: 10px; 67 | border-bottom: #eee solid 1px; 68 | } 69 | .topic-content 70 | { 71 | width: 100%; 72 | } 73 | img.avatar 74 | { 75 | width: 100%; 76 | } 77 | #main-topic 78 | { 79 | background-color: #f4f4f4; 80 | padding: 10px; 81 | } 82 | .user-info 83 | { 84 | border:#ddd solid 1px; 85 | padding: 5px; 86 | overflow: hidden; 87 | font-size: 13px; 88 | } 89 | .user-info img 90 | { 91 | display: block; 92 | margin-bottom: 5px; 93 | } 94 | .user-info ul 95 | { 96 | list-style: none; 97 | margin: 10px 0 05px; 98 | } 99 | .user-info li 100 | { 101 | line-height: 1.6em; 102 | } 103 | 104 | /* 105 | * Footer 106 | */ 107 | 108 | .user-login 109 | { 110 | border:#ddd solid 1px; 111 | padding: 5px; 112 | overflow: hidden; 113 | } 114 | .user-login img 115 | { 116 | display: block; 117 | } 118 | 119 | .blog-footer 120 | { 121 | padding: 20px 0; 122 | color: #ffffff; 123 | text-align: center; 124 | background-color: #99102c; 125 | border-top: 1px solid #e5e5e5; 126 | } 127 | .blog-footer p:last-child 128 | { 129 | margin-bottom: 0; 130 | } 131 | .blog-footer a:hover 132 | { 133 | color: #ffffff; 134 | text-decoration: none; 135 | } 136 | .blog-footer .link 137 | { 138 | margin: 5px; 139 | width: 40px; 140 | } -------------------------------------------------------------------------------- /Mgh-Social-Network/dashboard.php: -------------------------------------------------------------------------------- 1 | 2 | query("SET CHARACTER SET utf8"); 10 | $db->execute(); 11 | 12 | $totalCategories = $topic->getTotalCategories(); 13 | $totalUsers = $user->getTotalUsers(); 14 | $totalUnregisteredUsers = $user->getTotalUnregisteredUsers(); 15 | $totalTopics = $topic->getTotalTopics(); 16 | $totalCategories = $topic->getTotalCategories(); 17 | ?> 18 | 19 | 20 |

Admin Panel

21 |
22 |
    23 |
  • 24 |
    25 |
    26 | 27 |
    28 |
    29 |
    30 |

    Unregistered Users

    31 | 32 |
    33 |
    34 |
    35 |
  • 36 |
  • 37 |
    38 |
    39 | 40 |
    41 |
    42 |
    43 |

    Users

    44 | 45 |
    46 |
    47 |
    48 |
  • 49 |
  • 50 |
    51 |
    52 | 53 |
    54 |
    55 |
    56 |

    Topics

    57 | 58 |
    59 |
    60 |
    61 |
  • 62 | 63 |
  • 64 |
    65 |
    66 | 67 |
    68 |
    69 |
    70 |

    Categories

    71 | 72 |
    73 |
    74 |
    75 |
  • 76 |
77 | -------------------------------------------------------------------------------- /Mgh-Social-Network/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Mgh-Social-Network/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /Mgh-Social-Network/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Mgh-Social-Network/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /Mgh-Social-Network/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Mgh-Social-Network/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /Mgh-Social-Network/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Mgh-Social-Network/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /Mgh-Social-Network/footer.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
5 | 60 |
61 | 62 | 63 | 64 |
65 |
66 |

Yas Social Network © 2016

67 |

68 | Mahbube Moghimi 69 |

70 | 71 | 72 | 73 |
74 | 75 | 76 | 77 |
78 | 79 | 80 |
81 |
82 | 83 | 84 | 85 | -------------------------------------------------------------------------------- /Mgh-Social-Network/header.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Yas 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 57 | 58 |
59 | 60 |
61 |
62 |
63 |
64 |

65 |

a PHP forum engine

66 |
67 |
68 | -------------------------------------------------------------------------------- /Mgh-Social-Network/images/avatars/avatar2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Mgh-Social-Network/images/avatars/avatar2.jpg -------------------------------------------------------------------------------- /Mgh-Social-Network/images/avatars/noimage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Mgh-Social-Network/images/avatars/noimage.png -------------------------------------------------------------------------------- /Mgh-Social-Network/images/category.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Mgh-Social-Network/images/category.jpg -------------------------------------------------------------------------------- /Mgh-Social-Network/images/icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Mgh-Social-Network/images/icon.ico -------------------------------------------------------------------------------- /Mgh-Social-Network/images/links/facebook.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Mgh-Social-Network/images/links/facebook.png -------------------------------------------------------------------------------- /Mgh-Social-Network/images/links/google-plus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Mgh-Social-Network/images/links/google-plus.png -------------------------------------------------------------------------------- /Mgh-Social-Network/images/links/html5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Mgh-Social-Network/images/links/html5.png -------------------------------------------------------------------------------- /Mgh-Social-Network/images/links/instagram.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Mgh-Social-Network/images/links/instagram.png -------------------------------------------------------------------------------- /Mgh-Social-Network/images/links/rss.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Mgh-Social-Network/images/links/rss.png -------------------------------------------------------------------------------- /Mgh-Social-Network/images/links/skype.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Mgh-Social-Network/images/links/skype.png -------------------------------------------------------------------------------- /Mgh-Social-Network/images/links/twitter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Mgh-Social-Network/images/links/twitter.png -------------------------------------------------------------------------------- /Mgh-Social-Network/images/links/viber.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Mgh-Social-Network/images/links/viber.png -------------------------------------------------------------------------------- /Mgh-Social-Network/images/topic.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Mgh-Social-Network/images/topic.jpg -------------------------------------------------------------------------------- /Mgh-Social-Network/images/unregistered_user.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Mgh-Social-Network/images/unregistered_user.png -------------------------------------------------------------------------------- /Mgh-Social-Network/images/user.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Mgh-Social-Network/images/user.png -------------------------------------------------------------------------------- /Mgh-Social-Network/images/yas.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Mgh-Social-Network/images/yas.png -------------------------------------------------------------------------------- /Mgh-Social-Network/index.php: -------------------------------------------------------------------------------- 1 | 2 | query("SET CHARACTER SET utf8"); 8 | $db->execute(); 9 | 10 | $category = isset($_GET['category']) ? $_GET['category'] : null; 11 | 12 | $user_id = isset($_GET['user']) ? $_GET['user'] : null; 13 | 14 | if(isset($category)) 15 | { 16 | $topics = $topic->getByCategory($category); 17 | $title = 'Posts In "'.$topic->getCategory($category)->name.'"'; 18 | } 19 | 20 | if(isset($user_id)) 21 | { 22 | $topics = $topic->getByUser($user_id); 23 | $title = $user->getUser($user_id)->username."'s posts"; 24 | } 25 | 26 | if(!isset($category) && !isset($user_id)) 27 | { 28 | $topics = $topic->getAllTopics(); 29 | } 30 | 31 | $totalTopics = $topic->getTotalTopics(); 32 | $totalCategories = $topic->getTotalCategories(); 33 | $totalUsers = $user->getTotalUsers(); 34 | ?> 35 | 36 | 37 | 38 | 39 |
    40 | 41 |
  • 42 |
    43 |
    44 | 45 |
    46 |
    47 |
    48 |

    title; ?>

    49 |
    50 | name; ?> - username; ?> - create_date; ?> 51 | Replies: id); ?> 52 |
    53 |
    54 |
    55 |
    56 |
  • 57 | 58 |
59 | 60 |

No Topic To Display

61 | 62 |

Forum Statistics

63 |
    64 |
  • Number of Topics:
  • 65 |
  • Number of Users:
  • 66 |
  • Number of Categories:
  • 67 |
68 | -------------------------------------------------------------------------------- /Mgh-Social-Network/js/npm.js: -------------------------------------------------------------------------------- 1 | // This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment. 2 | require('../../js/transition.js') 3 | require('../../js/alert.js') 4 | require('../../js/button.js') 5 | require('../../js/carousel.js') 6 | require('../../js/collapse.js') 7 | require('../../js/dropdown.js') 8 | require('../../js/modal.js') 9 | require('../../js/tooltip.js') 10 | require('../../js/popover.js') 11 | require('../../js/scrollspy.js') 12 | require('../../js/tab.js') 13 | require('../../js/affix.js') -------------------------------------------------------------------------------- /Mgh-Social-Network/libraries/Category.php: -------------------------------------------------------------------------------- 1 | db = new Database; 9 | $this->db->query("SET CHARACTER SET utf8"); 10 | $this->db->execute(); 11 | } 12 | 13 | public function add($data) 14 | { 15 | $this->db->query("SET CHARACTER SET utf8"); 16 | $this->db->execute(); 17 | 18 | $this->db->query('INSERT INTO categories (name) VALUES (:name)'); 19 | 20 | $this->db->bind(':name', $data['name']); 21 | 22 | if($this->db->execute()) 23 | { 24 | return true; 25 | } 26 | else 27 | { 28 | return false; 29 | } 30 | } 31 | 32 | public function getTotalCategories() 33 | { 34 | $this->db->query('SELECT * FROM categories'); 35 | $rows = $this->db->resultset(); 36 | return $this->db->rowCount(); 37 | } 38 | 39 | public function getAllCategories() 40 | { 41 | $this->db->query('SELECT * FROM categories'); 42 | 43 | $results = $this->db->resultset(); 44 | return $results; 45 | } 46 | 47 | public function delete($id) 48 | { 49 | $this->db->query("SET CHARACTER SET utf8"); 50 | $this->db->execute(); 51 | 52 | $this->db->query('DELETE FROM categories WHERE id = :id'); 53 | $this->db->bind(':id', $id); 54 | 55 | if($this->db->execute()) 56 | { 57 | return true; 58 | } 59 | else 60 | { 61 | return false; 62 | } 63 | } 64 | } 65 | ?> -------------------------------------------------------------------------------- /Mgh-Social-Network/login.php: -------------------------------------------------------------------------------- 1 | 2 | login($username, $password)) 16 | { 17 | redirect('index.php', 'You logged in', 'success'); 18 | } 19 | else 20 | { 21 | redirect('index.php', 'Error login!', 'error'); 22 | } 23 | } 24 | else 25 | { 26 | redirect('index.php'); 27 | } 28 | ?> -------------------------------------------------------------------------------- /Mgh-Social-Network/logout.php: -------------------------------------------------------------------------------- 1 | 2 | logout()) 8 | { 9 | redirect('index.php', 'You are now logged out', 'success'); 10 | } 11 | } 12 | else 13 | { 14 | redirect('index.php'); 15 | } 16 | ?> -------------------------------------------------------------------------------- /Mgh-Social-Network/profile.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | query("SET CHARACTER SET utf8"); 13 | $db->execute(); 14 | 15 | $user = $user->getUser($user_id); 16 | 17 | $totalTopics = $topic->getTotalTopics(); 18 | $totalCategories = $topic->getTotalCategories(); 19 | 20 | ?> 21 | 22 | 23 | 24 | 42 | 43 | -------------------------------------------------------------------------------- /Mgh-Social-Network/profile_unregistered.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | query("SET CHARACTER SET utf8"); 13 | $db->execute(); 14 | 15 | $user = $user->getUnregisteredUser($user_id); 16 | 17 | $totalTopics = $topic->getTotalTopics(); 18 | $totalCategories = $topic->getTotalCategories(); 19 | ?> 20 | 21 | 22 | 23 | 24 | 42 | 43 | -------------------------------------------------------------------------------- /Mgh-Social-Network/register.php: -------------------------------------------------------------------------------- 1 | 2 | uplodeAvatar($data['username'])) 20 | { 21 | $data['avatar'] = $data['username'] . ".jpg"; 22 | } 23 | else 24 | { 25 | $data['avatar'] = 'noimage.png'; 26 | } 27 | 28 | $user->register($data); 29 | redirect('index.php', 'You are registered and Please wait Until Admin Accpet you!', 'success'); 30 | } 31 | else 32 | { 33 | redirect('register.php', 'Passwords Not Matched!', 'error'); 34 | } 35 | } 36 | 37 | $totalTopics = $topic->getTotalTopics(); 38 | $totalCategories = $topic->getTotalCategories(); 39 | ?> 40 | 41 | 42 |
43 |
44 | 45 | 46 |
47 |
48 | 49 | 50 |
51 |
52 | 53 | 54 |
55 |
56 | 57 | 58 |
59 |
60 | 61 | 62 |
63 |
64 | 65 | 66 |

67 |
68 |
69 | 70 | 71 |
72 |
73 |
74 |
75 | 76 |
77 | 78 | -------------------------------------------------------------------------------- /Mgh-Social-Network/topic.php: -------------------------------------------------------------------------------- 1 | 2 | query("SET CHARACTER SET utf8"); 7 | $db->execute(); 8 | 9 | $topic_id = $_GET['id']; 10 | 11 | if(isset($_POST['reply'])) 12 | { 13 | $data = array(); 14 | $data['topic_id'] = $topic_id; 15 | $data['body'] = $_POST['body']; 16 | $data['user_id'] = getUser()['user_id']; 17 | 18 | $topic->reply($data); 19 | redirect('topic.php?id='.$topic_id, 'Your reply sent', 'success'); 20 | } 21 | 22 | $replies = $topic->getReplies($topic_id); 23 | $title = $topic->getTopic($topic_id)->title; 24 | $totalTopics = $topic->getTotalTopics(); 25 | $totalCategories = $topic->getTotalCategories(); 26 | $topic = $topic->getTopic($topic_id); 27 | ?> 28 | 29 | 30 | 31 |
    32 |
  • 33 |
    34 |
    35 | 43 |
    44 |
    45 | image != "0"): ?> 46 |
    47 |
    48 | 49 |
    50 |
    51 | 52 |
    53 |

    54 | body; ?> 55 |

    56 |
    57 |
    58 |
    59 | 60 |
  • 61 |
    62 |
    63 | 71 |
    72 |
    73 |
    74 | body; ?> 75 |
    76 |
    77 |
    78 |
  • 79 | 80 |
81 | 82 | 83 |

Reply to topic

84 |
85 |
86 | 87 | 88 |
89 | 90 |
91 | 92 | -------------------------------------------------------------------------------- /Mgh-Social-Network/topics_admin.php: -------------------------------------------------------------------------------- 1 | 2 | query("SET CHARACTER SET utf8"); 10 | $db->execute(); 11 | 12 | $category = isset($_GET['category']) ? $_GET['category'] : null; 13 | 14 | $user_id = isset($_GET['user']) ? $_GET['user'] : null; 15 | 16 | if(isset($_POST['delete'])) 17 | { 18 | $id = $_POST['id']; 19 | $delete_topic = $topic->delete($id); 20 | } 21 | 22 | $topics = $topic->getAllTopics(); 23 | $totalCategories = $topic->getTotalCategories(); 24 | 25 | $totalTopics = $topic->getTotalTopics(); 26 | $totalCategories = $topic->getTotalCategories(); 27 | $totalUsers = $user->getTotalUsers(); 28 | ?> 29 | 30 | 31 |

Back to Admin Panel

32 | 33 |
    34 | 35 |
  • 36 |
    37 |
    38 | 39 |
    40 |
    41 |
    42 |

    title; ?>

    43 |
    44 | name; ?> - create_date; ?> - username; ?> 45 |
    46 | Replies: id); ?> 47 |
    48 |
    49 |
    50 |
    51 |
    52 | 53 | 54 |
    55 |
    56 |
    57 |
  • 58 | 59 |
60 | 61 |

No Topics!

62 | 63 |

Yas Information:

64 |
    65 |
  • Topics:
  • 66 |
  • Users:
  • 67 |
  • Categories:
  • 68 |
69 | -------------------------------------------------------------------------------- /Mgh-Social-Network/unregisteredusers_admin.php: -------------------------------------------------------------------------------- 1 | 2 | query("SET CHARACTER SET utf8"); 10 | $db->execute(); 11 | 12 | if(isset($_POST['accept'])) 13 | { 14 | $id = $_POST['id']; 15 | 16 | $accept_user = $user->accept($id); 17 | } 18 | 19 | else if(isset($_POST['delete'])) 20 | { 21 | $id = $_POST['id']; 22 | $delete_user = $user->delete_unregistered($id); 23 | } 24 | 25 | $users = $user->getAllUnregisteredUsers(); 26 | 27 | $totalTopics = $topic->getTotalTopics(); 28 | $totalCategories = $topic->getTotalCategories(); 29 | $totalUsers = $user->getTotalUsers(); 30 | ?> 31 | 32 | 33 |

Back to Admin Panel

34 | 35 |
    36 | 37 |
  • 38 |
    39 |
    40 | 41 |
    42 |
    43 |
    44 |

    name; ?> New!

    45 |
    46 | username; ?> 47 | 48 |

    View Profile

    49 |
    50 |
    51 |
    52 |
    53 |
    54 | 55 | 56 | 57 |
    58 |
    59 |
    60 |
  • 61 | 62 |
63 | 64 |

No Users!

65 | 66 |

Yas Information:

67 |
    68 |
  • Topics:
  • 69 |
  • Users:
  • 70 |
  • Categories:
  • 71 |
72 | -------------------------------------------------------------------------------- /Mgh-Social-Network/users_admin.php: -------------------------------------------------------------------------------- 1 | 2 | query("SET CHARACTER SET utf8"); 11 | $db->execute(); 12 | 13 | if(isset($_POST['block_user'])) 14 | { 15 | $id = $_POST['id']; 16 | 17 | $delete_user = $user->block($id); 18 | } 19 | else if(isset($_POST['unblock_user'])) 20 | { 21 | $id = $_POST['id']; 22 | 23 | $delete_user = $user->unblock($id); 24 | } 25 | else if(isset($_POST['delete'])) 26 | { 27 | $id = $_POST['id']; 28 | $delete_user = $user->delete($id); 29 | } 30 | 31 | $users = $user->getAllUsers(); 32 | $User = $User; 33 | $totalTopics = $topic->getTotalTopics(); 34 | $totalCategories = $topic->getTotalCategories(); 35 | $totalUsers = $user->getTotalUsers(); 36 | ?> 37 | 38 | 39 |

Back to Admin Panel

40 | 41 |
    42 | 43 | id != 0): ?> 44 |
  • 45 |
    46 |
    47 | 48 |
    49 |
    50 |
    51 |

    name; ?>

    52 |
    53 |

    username; ?>

    54 | 55 |

    View Profile

    56 | 57 |

    View Topics

    58 | 59 | Topics: getTopicsCount($user->id); ?> 60 |
    61 |
    62 |
    63 |
    64 | 65 |
    66 | 67 | block == 0): ?> 68 | 69 | 70 | 71 | 72 | 73 |
    74 | 75 |
    76 |
    77 |
  • 78 | 79 | 80 |
81 | 82 |

No Users!

83 | 84 |

Yas Information:

85 |
    86 |
  • Topics:
  • 87 |
  • Users:
  • 88 |
  • Categories:
  • 89 |
90 | -------------------------------------------------------------------------------- /Momeni-Storage/README.md: -------------------------------------------------------------------------------- 1 | # Momeni-Storage 2 | Storage Factor website with PHP 3 | -------------------------------------------------------------------------------- /Momeni-Storage/add_category_admin.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 18 | 19 | 20 | 21 | 22 | 23 |
24 |

25 | بازگشت به پنل ادمین 26 | 27 |

28 |
29 |
30 |

افزودن دسته بندی جدید

31 |
32 |
33 |
34 |
35 | 36 | 37 |
38 | 39 |
40 |
41 |
42 |
43 | 44 |
45 |
46 | 47 | 48 | 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /Momeni-Storage/add_unit_admin.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 18 | 19 | 20 | 21 | 22 | 23 |
24 |

25 | بازگشت به پنل ادمین 26 | 27 |

28 |
29 |
30 |

افزودن واحد جدید

31 |
32 |
33 |
34 |
35 | 36 | 37 |
38 | 39 |
40 |
41 |
42 |
43 | 44 |
45 |
46 | 47 | 48 | 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /Momeni-Storage/categories_admin.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 15 | 16 | 17 | 18 | 19 | 20 |
21 |

بازگشت به پنل ادمین

22 |
23 |
24 |

دسته بندی های انبار

25 |
26 |
27 | 28 |
    29 |
  • 30 | افزودن دسته بندی جدید 31 |
  • 32 | 33 | 34 |
  • 35 |
    36 |
    37 |

    38 |
    39 |
    40 |
    41 | 42 | 43 |
    44 |
    45 |
    46 |
  • 47 | 48 | 49 |

    هیچ دسته بندی وجود ندارد

    50 | 51 |
52 |
53 |
54 |
55 |
56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | -------------------------------------------------------------------------------- /Momeni-Storage/contact_us.php: -------------------------------------------------------------------------------- 1 | 2 | query("SET CHARACTER SET utf8"); 10 | $db->execute(); 11 | 12 | if(isset($_POST['send'])) 13 | { 14 | $data = array(); 15 | $data['name'] = $_POST['name']; 16 | $data['email'] = $_POST['email']; 17 | $data['body'] = $_POST['body']; 18 | 19 | if($user->sendMessage($data)) 20 | { 21 | redirect('contact_us.php', 'پیام شما با موفقیت ارسال شد', 'success'); 22 | } 23 | else 24 | { 25 | redirect('contact_us.php', 'مشکلی رخ داد. لطفا دوباره تلاش نمایید', 'error'); 26 | } 27 | } 28 | 29 | $totalCookies = $cooky->getTotalCookies(); 30 | $totalCategories = $cooky->getTotalCategories(); 31 | ?> 32 | 33 | 34 | 35 | 38 | 41 | 44 | 45 |
46 | 47 |
48 | 49 | 50 |
51 |
52 | 53 | 54 |
55 |
56 | 57 | 58 | 59 |
60 | 61 |
62 |
63 |
64 | 65 |
66 | 67 | -------------------------------------------------------------------------------- /Momeni-Storage/css/custom.css: -------------------------------------------------------------------------------- 1 | @font-face 2 | { 3 | font-family: IRANSans; 4 | src: url(fonts/IRAN/IRANSansWeb.woff); 5 | } 6 | body 7 | { 8 | padding-top: 70px; 9 | background: radial-gradient(50% 50%, #00BFFF , #00CED1); 10 | font-size: 15px; 11 | font-family: IRANSans; 12 | 13 | background-image: url(../images/background.jpg); 14 | background-position: center center; 15 | background-repeat: no-repeat; 16 | background-attachment:fixed; 17 | background-size: cover; 18 | background-color: #464646; 19 | 20 | } 21 | nav , .dropdown-menu 22 | { 23 | color: #FFFFFF !important; 24 | background-color: #337ab7 !important; 25 | } 26 | nav a 27 | { 28 | color: #FFFFFF !important; 29 | } 30 | nav .active a 31 | { 32 | background-color: #5cb85c !important; 33 | } 34 | .topbutton 35 | { 36 | height:50px; 37 | width:50px; 38 | position:fixed; 39 | right:20px; 40 | bottom:20px; 41 | z-index:100; 42 | background-repeat:no-repeat; 43 | display:none; 44 | } 45 | 46 | .panel 47 | { 48 | background-color: rgba(255,255,255,0.8); 49 | } 50 | 51 | -------------------------------------------------------------------------------- /Momeni-Storage/database.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Momeni-Storage/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Momeni-Storage/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /Momeni-Storage/fonts/IRAN/IRANSansWeb.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Momeni-Storage/fonts/IRAN/IRANSansWeb.woff -------------------------------------------------------------------------------- /Momeni-Storage/fonts/IRAN/IRANSansWeb_Bold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Momeni-Storage/fonts/IRAN/IRANSansWeb_Bold.woff -------------------------------------------------------------------------------- /Momeni-Storage/fonts/IRAN/IRANSansWeb_Light.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Momeni-Storage/fonts/IRAN/IRANSansWeb_Light.woff -------------------------------------------------------------------------------- /Momeni-Storage/fonts/IRAN/IRANSansWeb_Medium.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Momeni-Storage/fonts/IRAN/IRANSansWeb_Medium.woff -------------------------------------------------------------------------------- /Momeni-Storage/fonts/IRAN/IRANSansWeb_UltraLight.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Momeni-Storage/fonts/IRAN/IRANSansWeb_UltraLight.woff -------------------------------------------------------------------------------- /Momeni-Storage/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Momeni-Storage/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /Momeni-Storage/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Momeni-Storage/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /Momeni-Storage/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Momeni-Storage/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /Momeni-Storage/fonts/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Momeni-Storage/fonts/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /Momeni-Storage/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Momeni-Storage/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /Momeni-Storage/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Momeni-Storage/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /Momeni-Storage/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Momeni-Storage/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /Momeni-Storage/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Momeni-Storage/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /Momeni-Storage/functions.php: -------------------------------------------------------------------------------- 1 | 39 | '.$message.''; 40 | 41 | } 42 | unset($_SESSION['message']); 43 | unset($_SESSION['message_type']); 44 | } 45 | else 46 | { 47 | echo ''; 48 | } 49 | } 50 | ?> -------------------------------------------------------------------------------- /Momeni-Storage/header.php: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | انبار کالا 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 64 | 65 | 66 | 67 |
68 |
69 |
70 | 71 |
-------------------------------------------------------------------------------- /Momeni-Storage/images/background.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Momeni-Storage/images/background.jpg -------------------------------------------------------------------------------- /Momeni-Storage/images/category.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Momeni-Storage/images/category.png -------------------------------------------------------------------------------- /Momeni-Storage/images/kala.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Momeni-Storage/images/kala.ico -------------------------------------------------------------------------------- /Momeni-Storage/images/kala.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Momeni-Storage/images/kala.png -------------------------------------------------------------------------------- /Momeni-Storage/images/kalas/1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Momeni-Storage/images/kalas/1.jpg -------------------------------------------------------------------------------- /Momeni-Storage/images/kalas/10.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Momeni-Storage/images/kalas/10.jpg -------------------------------------------------------------------------------- /Momeni-Storage/images/kalas/11.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Momeni-Storage/images/kalas/11.jpg -------------------------------------------------------------------------------- /Momeni-Storage/images/kalas/12.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Momeni-Storage/images/kalas/12.jpg -------------------------------------------------------------------------------- /Momeni-Storage/images/kalas/13.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Momeni-Storage/images/kalas/13.jpg -------------------------------------------------------------------------------- /Momeni-Storage/images/kalas/14.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Momeni-Storage/images/kalas/14.jpg -------------------------------------------------------------------------------- /Momeni-Storage/images/kalas/15.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Momeni-Storage/images/kalas/15.jpg -------------------------------------------------------------------------------- /Momeni-Storage/images/kalas/2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Momeni-Storage/images/kalas/2.jpg -------------------------------------------------------------------------------- /Momeni-Storage/images/kalas/3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Momeni-Storage/images/kalas/3.jpg -------------------------------------------------------------------------------- /Momeni-Storage/images/kalas/4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Momeni-Storage/images/kalas/4.jpg -------------------------------------------------------------------------------- /Momeni-Storage/images/kalas/5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Momeni-Storage/images/kalas/5.jpg -------------------------------------------------------------------------------- /Momeni-Storage/images/kalas/6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Momeni-Storage/images/kalas/6.jpg -------------------------------------------------------------------------------- /Momeni-Storage/images/kalas/7.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Momeni-Storage/images/kalas/7.jpg -------------------------------------------------------------------------------- /Momeni-Storage/images/kalas/8.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Momeni-Storage/images/kalas/8.jpg -------------------------------------------------------------------------------- /Momeni-Storage/images/kalas/9.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Momeni-Storage/images/kalas/9.jpg -------------------------------------------------------------------------------- /Momeni-Storage/images/report.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Momeni-Storage/images/report.png -------------------------------------------------------------------------------- /Momeni-Storage/images/storage keeper.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Momeni-Storage/images/storage keeper.png -------------------------------------------------------------------------------- /Momeni-Storage/images/storage_keppers/ahmad.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Momeni-Storage/images/storage_keppers/ahmad.jpg -------------------------------------------------------------------------------- /Momeni-Storage/images/storage_keppers/ali.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Momeni-Storage/images/storage_keppers/ali.jpg -------------------------------------------------------------------------------- /Momeni-Storage/images/storage_keppers/noimage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Momeni-Storage/images/storage_keppers/noimage.png -------------------------------------------------------------------------------- /Momeni-Storage/images/top.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Momeni-Storage/images/top.png -------------------------------------------------------------------------------- /Momeni-Storage/images/unit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Momeni-Storage/images/unit.png -------------------------------------------------------------------------------- /Momeni-Storage/increase_credit.php: -------------------------------------------------------------------------------- 1 | 2 | query("SET CHARACTER SET utf8"); 8 | $db->execute(); 9 | 10 | if(isset($_POST['submit'])) 11 | { 12 | $data = array(); 13 | $data['user_id'] = getUser()['user_id']; 14 | $data['credit'] = $_POST['credit']; 15 | 16 | $user->increaseCredit($data); 17 | $_SESSION['credit'] = $user->getUser($data['user_id'])->credit; 18 | redirect('index.php', 'افزایش اعتبار با موفقیت انجام شد', 'success'); 19 | } 20 | 21 | $totalCookies = $cooky->getTotalCookies(); 22 | $totalCategories = $cooky->getTotalCategories(); 23 | ?> 24 | 25 | 26 |
27 | 28 |
29 | 30 | 31 |
32 |
33 | 34 | 35 |
36 |
37 | 38 | 39 |
40 |
41 | 42 |
43 | 44 |
$
45 |
46 |
47 | 48 |
49 | 50 | -------------------------------------------------------------------------------- /Momeni-Storage/index.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
10 |
11 |

فرم ورود

12 |
13 |
14 | 15 |
16 |
17 | 18 | 22 |
23 |
24 | 25 | 26 |
27 |
28 | 29 | 30 |
31 | 32 | 33 | ثبت نام 34 |
35 |
36 |
37 |
38 |

سجاد مومنی - بابک مافی | Copyright 2017

39 |
40 | 41 |
42 |
43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /Momeni-Storage/js/topbutton.js: -------------------------------------------------------------------------------- 1 | jQuery(document).ready(function($){ 2 | var offset = 100; 3 | var speed = 500; 4 | var duration = 500; 5 | $(window).scroll(function(){ 6 | if ($(this).scrollTop() < offset) { 7 | $('.topbutton') .fadeOut(duration); 8 | } else { 9 | $('.topbutton') .fadeIn(duration); 10 | } 11 | }); 12 | $('.topbutton').on('click', function(){ 13 | $('html, body').animate({scrollTop:0}, speed); 14 | return false; 15 | }); 16 | }); -------------------------------------------------------------------------------- /Momeni-Storage/kala.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16 | 17 | 18 | 19 |
    20 |
    21 | image != "0"): ?> 22 |
    23 |
    24 | 25 |
    26 |
    27 | 28 | 29 |
    30 | 33 | 36 | 39 | 40 |
    41 |
    42 |
    43 | body; ?> 44 |
    45 |
    46 |
    47 | 48 | 49 |
    50 |
    51 | 52 | 53 | 54 | 55 | 56 | 83 | 84 |
    85 |
    86 |
    87 |
    88 |
89 | 90 | -------------------------------------------------------------------------------- /Momeni-Storage/login.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 0) 30 | { 31 | $storage_keeper = mysqli_fetch_assoc($storage_keeper); 32 | 33 | $_SESSION['is_logged_in'] = true; 34 | $_SESSION['user_id'] = $storage_keeper['id']; 35 | $_SESSION['username'] = $storage_keeper['username']; 36 | $_SESSION['name'] = $storage_keeper['name']; 37 | $_SESSION['login_type'] = "storage_keeper"; 38 | 39 | redirect('main.php', 'شما وارد شدید', 'success'); 40 | } 41 | else 42 | { 43 | redirect('index.php', 'خطا در ورود! دوباره تلاش نمایید!', 'danger'); 44 | } 45 | } 46 | else 47 | { 48 | redirect('index.php', 'شما وارد نشدید!', 'danger'); 49 | } 50 | } 51 | else 52 | { 53 | redirect('index.php'); 54 | } 55 | ?> -------------------------------------------------------------------------------- /Momeni-Storage/logout.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /Momeni-Storage/statistics.php: -------------------------------------------------------------------------------- 1 | 2 | query("SET CHARACTER SET utf8"); 10 | $db->execute(); 11 | 12 | $cookies = $cooky->getAllCookies(); 13 | 14 | $maxCookyId = 0; 15 | $maxCookyOrder = 0; 16 | 17 | foreach($cookies as $myCooky): 18 | 19 | if($maxCookyOrder < $cooky->getCookyCountOrdered($myCooky->id)) 20 | { 21 | $maxCookyId = $myCooky->id; 22 | $maxCookyOrder = $cooky->getCookyCountOrdered($myCooky->id); 23 | } 24 | 25 | endforeach; 26 | 27 | $users = $user->getAllUsers(); 28 | 29 | $maxUserId = 0; 30 | $maxUserOrder = 0; 31 | 32 | foreach($users as $myUser): 33 | 34 | if($maxUserOrder < $user->getUserCountOrdered($myUser->id)) 35 | { 36 | $maxUserId = $myUser->id; 37 | $maxUserOrder = $user->getUserCountOrdered($myUser->id); 38 | } 39 | 40 | endforeach; 41 | 42 | $maxCooky = $cooky->getCooky($maxCookyId); 43 | $maxUser = $user->getUser($maxUserId); 44 | $maxCookyOrder = $maxCookyOrder; 45 | $maxUserOrder = $maxUserOrder; 46 | 47 | $totalOrders = $cooky->getSumOrders(); 48 | $totalUsers = $user->getTotalUsers(); 49 | $totalCookies = $cooky->getTotalCookies(); 50 | $totalCategories = $cooky->getTotalCategories(); 51 | ?> 52 | 53 | 54 | 55 |
    56 |
    57 | 60 | image != "0"): ?> 61 |
    62 |
    63 | 64 |
    65 |
    66 | 67 | 68 |
    69 | 72 | 73 |
    74 |
    75 |
    76 | body; ?> 77 |
    78 |
    79 |
    80 | 81 | 82 | 85 |
    86 |
    87 | 88 |
    89 | 92 |
    93 |
    94 | 95 |
    96 |
    97 |
    98 | 101 | 104 | 107 |
    108 |
    109 | 110 |
    111 | 114 |
    115 | 118 |
    119 |
    120 |
121 | 122 | -------------------------------------------------------------------------------- /Momeni-Storage/storage_keepers_admin.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16 | 17 | 18 | 19 | 20 | 21 |
22 |

23 | 24 | بازگشت به پنل ادمین 25 | 26 |

27 |
28 |
29 |

لیست کاربران

30 |
31 |
32 | 33 |
    34 | 35 |
  • 36 |
    37 |
    38 | 39 |
    40 |
    41 |

    42 |
    43 |

    نام کاربری:

    44 | 45 |
    46 |

    شماره همراه:

    47 | 48 |
    49 |
    50 | 51 |
    52 | 53 | 54 |
    55 | 56 |
    57 |
    58 |
  • 59 | 60 |
61 | 62 |

انبارداری جهت نمایش وجود ندارد

63 | 64 |
65 |
66 |
67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | -------------------------------------------------------------------------------- /Momeni-Storage/units_admin.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 15 | 16 | 17 | 18 | 19 | 20 |
21 |

بازگشت به پنل ادمین

22 |
23 |
24 |

واحد های انبار

25 |
26 |
27 | 28 |
    29 |
  • 30 | افزودن واحد جدید 31 |
  • 32 | 33 | 34 |
  • 35 |
    36 |
    37 |

    38 |
    39 |
    40 |
    41 | 42 | 43 |
    44 |
    45 |
    46 |
  • 47 | 48 | 49 |

    هیچ موردی وجود ندارد

    50 | 51 |
52 |
53 |
54 |
55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # PHP-Examples 2 | 3 | [![PHP Composer](https://github.com/SajjadAemmi/PHP-Mini-Websites/actions/workflows/php.yml/badge.svg)](https://github.com/SajjadAemmi/PHP-Mini-Websites/actions/workflows/php.yml) 4 | 5 | Some useful website projects created by php from scratch. 6 | 7 | ## [Address Book](Address-Book) 8 | A website for add, edit and delete contacts 9 | 10 | ## [Homino-Elnaz](Homino-Elnaz) 11 | A website for reserve cleaner and worker for home 12 | 13 | ## [Mashhad-Taxi](Mashhad-Taxi) 14 | An Iranian ridesharing website for carpooling 15 | 16 | ## [Mgh-Social-Network](Mgh-Social-Network) 17 | A simple Social Network website 18 | 19 | ## [Momeni-Storage](Momeni-Storage) 20 | A storage manager website with dashboard for generate factors 21 | --------------------------------------------------------------------------------