├── Ecommerce-website-PHP
├── Website
│ └── admin
│ │ ├── includes
│ │ ├── languages
│ │ │ ├── arabic.php
│ │ │ └── english.php
│ │ ├── templates
│ │ │ ├── header.php
│ │ │ ├── footer.php
│ │ │ └── navbar.php
│ │ └── functions
│ │ │ └── functions.php
│ │ ├── layout
│ │ ├── fonts
│ │ │ ├── FontAwesome.otf
│ │ │ ├── fontawesome-webfont.eot
│ │ │ ├── fontawesome-webfont.ttf
│ │ │ ├── fontawesome-webfont.woff
│ │ │ ├── fontawesome-webfont.woff2
│ │ │ ├── glyphicons-halflings-regular.eot
│ │ │ └── glyphicons-halflings-regular.ttf
│ │ └── css
│ │ │ ├── images
│ │ │ ├── ui-icons_444444_256x240.png
│ │ │ ├── ui-icons_555555_256x240.png
│ │ │ ├── ui-icons_777620_256x240.png
│ │ │ ├── ui-icons_777777_256x240.png
│ │ │ ├── ui-icons_cc0000_256x240.png
│ │ │ └── ui-icons_ffffff_256x240.png
│ │ │ ├── backend.css
│ │ │ ├── jquery.selectBoxIt.css
│ │ │ └── font-awesome.min.css
│ │ ├── connect.php
│ │ ├── init.php
│ │ ├── copy_template.php
│ │ ├── index.php
│ │ ├── comments.php
│ │ ├── dashboard.php
│ │ └── categories.php
├── README.md
└── DataBase
│ └── shop.sql
├── Chatbot-PHP
├── PHP-chatbot
│ ├── administrator
│ │ └── components
│ │ │ └── com_chatter
│ │ │ ├── update.sql
│ │ │ ├── uninstall.sql
│ │ │ ├── index.html
│ │ │ ├── chatter.php
│ │ │ ├── controller.php
│ │ │ └── install.sql
│ ├── media
│ │ ├── index.html
│ │ ├── js
│ │ │ ├── index.html
│ │ │ └── frontend.js
│ │ ├── css
│ │ │ ├── index.html
│ │ │ └── chatter.css
│ │ └── images
│ │ │ └── index.html
│ ├── components
│ │ └── com_chatter
│ │ │ ├── index.html
│ │ │ ├── views
│ │ │ └── chatter
│ │ │ │ ├── tmpl
│ │ │ │ ├── default_guest_view.php
│ │ │ │ └── default.php
│ │ │ │ └── view.html.php
│ │ │ ├── chatter.php
│ │ │ ├── models
│ │ │ └── chatter.php
│ │ │ └── controller.php
│ └── chatter.xml
└── README.md
├── Star-Rating-System-PHP
├── inc
│ ├── header.php
│ ├── index_content.php
│ ├── navbar.php
│ └── product_detail_content.php
├── image
│ ├── frog.png
│ ├── home.png
│ ├── chicken.png
│ ├── product-detail.png
│ └── product-rating.png
├── index.php
├── product_detail.php
├── db
│ ├── product_users.sql
│ ├── product.sql
│ └── product_rating.sql
├── action.php
├── README.md
├── layout
│ └── app.php
├── js
│ └── rating.js
├── css
│ └── style.css
└── class
│ └── Rating.php
├── Student-management-system
├── logout.php
├── dataimg
│ ├── abc.bmp
│ └── image (2).png
├── Admin
│ ├── header.php
│ ├── titleheader.php
│ ├── deleteform.php
│ ├── admindash.php
│ ├── updatedata.php
│ ├── updateform.php
│ ├── deletestudent.php
│ ├── updatestudent.php
│ └── addstudent.php
├── dbcon.php
├── css
│ └── style.css
├── README.md
├── function.php
├── login.php
└── index.php
└── Email-System-Php
├── connect.php
├── navbar.php
├── register
└── register.php
├── index.php
├── createTable.php
├── README.md
├── License.md
├── styleFile
├── inbox.css
├── newMessage.css
├── style.css
└── navbar.css
├── homepage
└── homepage.php
├── MYSQL FILES
├── jack.sql
├── users_july.sql
├── oliver.sql
└── furkan.sql
├── add.php
├── pages
├── Inbox.php
└── newMessage.php
└── loginPage
└── login.php
/Ecommerce-website-PHP/Website/admin/includes/languages/arabic.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Chatbot-PHP/PHP-chatbot/administrator/components/com_chatter/update.sql:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Star-Rating-System-PHP/inc/header.php:
--------------------------------------------------------------------------------
1 |
2 |
5 |
--------------------------------------------------------------------------------
/Star-Rating-System-PHP/image/frog.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/engineers-planet/PHP_Free_Downloads/HEAD/Star-Rating-System-PHP/image/frog.png
--------------------------------------------------------------------------------
/Star-Rating-System-PHP/image/home.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/engineers-planet/PHP_Free_Downloads/HEAD/Star-Rating-System-PHP/image/home.png
--------------------------------------------------------------------------------
/Student-management-system/logout.php:
--------------------------------------------------------------------------------
1 |
7 |
--------------------------------------------------------------------------------
/Chatbot-PHP/PHP-chatbot/media/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/Chatbot-PHP/PHP-chatbot/media/js/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/Star-Rating-System-PHP/image/chicken.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/engineers-planet/PHP_Free_Downloads/HEAD/Star-Rating-System-PHP/image/chicken.png
--------------------------------------------------------------------------------
/Student-management-system/dataimg/abc.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/engineers-planet/PHP_Free_Downloads/HEAD/Student-management-system/dataimg/abc.bmp
--------------------------------------------------------------------------------
/Chatbot-PHP/PHP-chatbot/media/css/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/Chatbot-PHP/PHP-chatbot/media/images/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/Chatbot-PHP/PHP-chatbot/administrator/components/com_chatter/uninstall.sql:
--------------------------------------------------------------------------------
1 | DROP TABLE IF EXISTS `#__chatter_msgs`;
2 |
3 | DROP TABLE IF EXISTS `#__chatter_block_usr`;
--------------------------------------------------------------------------------
/Chatbot-PHP/PHP-chatbot/components/com_chatter/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/Star-Rating-System-PHP/image/product-detail.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/engineers-planet/PHP_Free_Downloads/HEAD/Star-Rating-System-PHP/image/product-detail.png
--------------------------------------------------------------------------------
/Star-Rating-System-PHP/image/product-rating.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/engineers-planet/PHP_Free_Downloads/HEAD/Star-Rating-System-PHP/image/product-rating.png
--------------------------------------------------------------------------------
/Star-Rating-System-PHP/index.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
--------------------------------------------------------------------------------
/Student-management-system/dataimg/image (2).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/engineers-planet/PHP_Free_Downloads/HEAD/Student-management-system/dataimg/image (2).png
--------------------------------------------------------------------------------
/Chatbot-PHP/PHP-chatbot/administrator/components/com_chatter/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/Ecommerce-website-PHP/Website/admin/layout/fonts/FontAwesome.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/engineers-planet/PHP_Free_Downloads/HEAD/Ecommerce-website-PHP/Website/admin/layout/fonts/FontAwesome.otf
--------------------------------------------------------------------------------
/Star-Rating-System-PHP/product_detail.php:
--------------------------------------------------------------------------------
1 |
2 |
7 |
--------------------------------------------------------------------------------
/Ecommerce-website-PHP/Website/admin/layout/fonts/fontawesome-webfont.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/engineers-planet/PHP_Free_Downloads/HEAD/Ecommerce-website-PHP/Website/admin/layout/fonts/fontawesome-webfont.eot
--------------------------------------------------------------------------------
/Ecommerce-website-PHP/Website/admin/layout/fonts/fontawesome-webfont.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/engineers-planet/PHP_Free_Downloads/HEAD/Ecommerce-website-PHP/Website/admin/layout/fonts/fontawesome-webfont.ttf
--------------------------------------------------------------------------------
/Ecommerce-website-PHP/Website/admin/layout/fonts/fontawesome-webfont.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/engineers-planet/PHP_Free_Downloads/HEAD/Ecommerce-website-PHP/Website/admin/layout/fonts/fontawesome-webfont.woff
--------------------------------------------------------------------------------
/Ecommerce-website-PHP/Website/admin/layout/fonts/fontawesome-webfont.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/engineers-planet/PHP_Free_Downloads/HEAD/Ecommerce-website-PHP/Website/admin/layout/fonts/fontawesome-webfont.woff2
--------------------------------------------------------------------------------
/Ecommerce-website-PHP/Website/admin/layout/css/images/ui-icons_444444_256x240.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/engineers-planet/PHP_Free_Downloads/HEAD/Ecommerce-website-PHP/Website/admin/layout/css/images/ui-icons_444444_256x240.png
--------------------------------------------------------------------------------
/Ecommerce-website-PHP/Website/admin/layout/css/images/ui-icons_555555_256x240.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/engineers-planet/PHP_Free_Downloads/HEAD/Ecommerce-website-PHP/Website/admin/layout/css/images/ui-icons_555555_256x240.png
--------------------------------------------------------------------------------
/Ecommerce-website-PHP/Website/admin/layout/css/images/ui-icons_777620_256x240.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/engineers-planet/PHP_Free_Downloads/HEAD/Ecommerce-website-PHP/Website/admin/layout/css/images/ui-icons_777620_256x240.png
--------------------------------------------------------------------------------
/Ecommerce-website-PHP/Website/admin/layout/css/images/ui-icons_777777_256x240.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/engineers-planet/PHP_Free_Downloads/HEAD/Ecommerce-website-PHP/Website/admin/layout/css/images/ui-icons_777777_256x240.png
--------------------------------------------------------------------------------
/Ecommerce-website-PHP/Website/admin/layout/css/images/ui-icons_cc0000_256x240.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/engineers-planet/PHP_Free_Downloads/HEAD/Ecommerce-website-PHP/Website/admin/layout/css/images/ui-icons_cc0000_256x240.png
--------------------------------------------------------------------------------
/Ecommerce-website-PHP/Website/admin/layout/css/images/ui-icons_ffffff_256x240.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/engineers-planet/PHP_Free_Downloads/HEAD/Ecommerce-website-PHP/Website/admin/layout/css/images/ui-icons_ffffff_256x240.png
--------------------------------------------------------------------------------
/Ecommerce-website-PHP/Website/admin/layout/fonts/glyphicons-halflings-regular.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/engineers-planet/PHP_Free_Downloads/HEAD/Ecommerce-website-PHP/Website/admin/layout/fonts/glyphicons-halflings-regular.eot
--------------------------------------------------------------------------------
/Ecommerce-website-PHP/Website/admin/layout/fonts/glyphicons-halflings-regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/engineers-planet/PHP_Free_Downloads/HEAD/Ecommerce-website-PHP/Website/admin/layout/fonts/glyphicons-halflings-regular.ttf
--------------------------------------------------------------------------------
/Student-management-system/Admin/header.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/Student-management-system/dbcon.php:
--------------------------------------------------------------------------------
1 |
11 |
--------------------------------------------------------------------------------
/Chatbot-PHP/PHP-chatbot/components/com_chatter/views/chatter/tmpl/default_guest_view.php:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 |
Please login first!
8 |
9 |
--------------------------------------------------------------------------------
/Email-System-Php/connect.php:
--------------------------------------------------------------------------------
1 | ';
7 | echo $e->getMessage();
8 | die();
9 | };
10 |
11 | ?>
--------------------------------------------------------------------------------
/Chatbot-PHP/PHP-chatbot/components/com_chatter/chatter.php:
--------------------------------------------------------------------------------
1 | execute(JRequest::getCmd('task'));
10 |
11 | $controller->redirect();
--------------------------------------------------------------------------------
/Chatbot-PHP/PHP-chatbot/administrator/components/com_chatter/chatter.php:
--------------------------------------------------------------------------------
1 | execute(JRequest::getCMd('task'));
10 |
11 | $controller->redirect();
--------------------------------------------------------------------------------
/Student-management-system/Admin/titleheader.php:
--------------------------------------------------------------------------------
1 |
2 |
5 |
Welcome To Admin Dashboard
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Ecommerce-website-PHP/Website/admin/connect.php:
--------------------------------------------------------------------------------
1 | 'SET NAMES utf8',
8 | );
9 |
10 | try {
11 | $con = new PDO($dsn, $user, $pass, $option);
12 | $con->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
13 | }
14 |
15 | catch(PDOException $e) {
16 | echo 'Failed To Connect' . $e->getMessage();
17 | }
--------------------------------------------------------------------------------
/Student-management-system/Admin/deleteform.php:
--------------------------------------------------------------------------------
1 |
13 |
17 |
21 |
--------------------------------------------------------------------------------
/Student-management-system/css/style.css:
--------------------------------------------------------------------------------
1 | .admintitle{
2 | background-color: #530602;
3 | color: #fff;
4 | margin-left: 50px;
5 | margin-right: 50px;
6 | height: 140px;
7 | line-height: 140px;
8 | }
9 |
10 |
11 | .dashboard{
12 | background-color: #1DEFEF;
13 | color:#000;
14 | margin-left:50px;
15 | margin-right: 50px;
16 | height: 140px;
17 | font-size: 25px;
18 |
19 | }
20 |
21 | body{
22 | background-color: antiquewhite;
23 | }
24 |
--------------------------------------------------------------------------------
/Chatbot-PHP/README.md:
--------------------------------------------------------------------------------
1 | # PHP-chatbot
2 | Chatbot created using php-ajax in Joomla Framework.
3 |
4 | Current features added to chatbot are -
5 |
6 | 1. Greetings (Eg. - Hi)
7 | 2. Abouts (Eg. - How are you?).
8 | 3. Who's (Eg. Who are you?)
9 | 4. Date, time or day (Eg. Day today, current time or day today)
10 | 5. Current Geo-location (Eg. Where am I?)
11 | 6. Current temperature (Eg. Current weather)
12 | 7. Basic arithmetic caclulation (Eg. calc 3 + 2)
13 | 8. Search for anything (Eg. Search Potato)
14 | 9. Byes (Eg. Goodbye)
15 |
--------------------------------------------------------------------------------
/Chatbot-PHP/PHP-chatbot/administrator/components/com_chatter/controller.php:
--------------------------------------------------------------------------------
1 | id > 0)
14 | {
15 | $tpl = null;
16 | }
17 | else
18 | {
19 | $tpl = 'guest_view';
20 | }
21 |
22 | parent::display($tpl);
23 | }
24 | }
--------------------------------------------------------------------------------
/Chatbot-PHP/PHP-chatbot/administrator/components/com_chatter/install.sql:
--------------------------------------------------------------------------------
1 | -- Tables to be created - 1. Messeges, 2. Blocked Users --
2 |
3 | CREATE TABLE IF NOT EXISTS `#__chatter_msgs`(
4 | id INT(10) NOT NULL AUTO_INCREMENT PRIMARY KEY,
5 | userid INT(10) NOT NULL,
6 | msgs TEXT,
7 | datime TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
8 | );
9 |
10 | CREATE TABLE IF NOT EXISTS `#__chatter_block_usr`(
11 | id INT(10) NOT NULL AUTO_INCREMENT PRIMARY KEY,
12 | userid INT(10) NOT NULL,
13 | datime TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
14 | );
--------------------------------------------------------------------------------
/Ecommerce-website-PHP/Website/admin/includes/languages/english.php:
--------------------------------------------------------------------------------
1 | 'Home',
10 | 'CATEGORIES' => 'Categories',
11 | 'ITEMS' => 'Items',
12 | 'MEMBERS' => 'Members',
13 | 'FEEDBACKS' => 'Feedbacks',
14 | 'STATISTICS' => 'Statistics',
15 | 'LOGS' => 'Logs',
16 | '' => '',
17 | '' => '',
18 | '' => '',
19 | '' => '',
20 | '' => ''
21 | );
22 |
23 | return $lang[$phrase];
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/Ecommerce-website-PHP/Website/admin/includes/templates/header.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/Email-System-Php/navbar.php:
--------------------------------------------------------------------------------
1 |
15 |
16 |
--------------------------------------------------------------------------------
/Star-Rating-System-PHP/db/product_users.sql:
--------------------------------------------------------------------------------
1 | --
2 | -- Table structure for table `product_users`
3 | --
4 |
5 | CREATE TABLE `product_users` (
6 | `id` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
7 | `username` varchar(255) NOT NULL,
8 | `password` varchar(255) NOT NULL,
9 | `avatar` varchar(255) NOT NULL
10 |
11 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
12 |
13 | --
14 | -- Dumping data for table `product_users`
15 | --
16 |
17 | INSERT INTO `product_users` (`id`, `username`, `password`, `avatar`) VALUES
18 | (1, 'joseph', '123', 'user1.jpg'),
19 | (2, 'mary', '123', 'user2.jpg'),
20 | (3, 'lisa', '123', 'user6.jpg');
21 |
--------------------------------------------------------------------------------
/Email-System-Php/register/register.php:
--------------------------------------------------------------------------------
1 |
2 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/Ecommerce-website-PHP/Website/admin/init.php:
--------------------------------------------------------------------------------
1 |
6 |
7 |
ChatBot!
8 |
name;?> is Typing.....
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 | Send
19 |
20 |
--------------------------------------------------------------------------------
/Email-System-Php/index.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Ecommerce-website-PHP/Website/admin/includes/templates/footer.php:
--------------------------------------------------------------------------------
1 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/Email-System-Php/createTable.php:
--------------------------------------------------------------------------------
1 | setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
16 |
17 | $sqlQuery = "CREATE TABLE $cookie (
18 | messages_id INT(11) UNSIGNED AUTO_INCREMENT PRIMARY KEY,
19 | messages_sender VARCHAR(100) NOT NULL,
20 | messages_content VARCHAR(5000) NOT NULL,
21 | messages_date TIMESTAMP
22 | )";
23 |
24 | $connection->exec($sqlQuery);
25 |
26 | }
27 | catch(PDOException $e){
28 | $sqlQuery . " " . $e->getMessage();
29 | };
30 |
31 | $db = null;
32 | session_destroy();
33 | header('Location: index.php');
34 | ?>
--------------------------------------------------------------------------------
/Email-System-Php/README.md:
--------------------------------------------------------------------------------
1 | # phpEmailSystem
2 | Simple PHP Email System
3 |
4 |
5 | **Used technologies:**
6 |
7 | - HTML
8 | - CSS
9 | - JAVASCRIPT
10 | - PHP
11 | - MYSQL
12 | - phpmyadmin
13 |
14 | I designed a simple mail system from this project. In this mail system, I checked the features of adding, deleting and changing data via mysql using PHP's PDO structure.
15 |
16 | ---
17 |
18 | > I made this project while learning php. So I may have a certain mistake. You can help me by doing the following tasks or correcting the code here.
19 |
20 | - [ ] Find and fix vulnerabilities in the login and registration sections.
21 | - [x] Add the "remember me" option to the login section and code it accordingly.
22 | - [ ] Include a page with sent emails.
23 | - [ ] Add delete feature to sent and received messages in database.
24 | - [ ] Write an algorithm that detects spam messages.
25 | - [ ] Add a page that contains spam messages.
26 |
--------------------------------------------------------------------------------
/Student-management-system/README.md:
--------------------------------------------------------------------------------
1 | # Management-system-students
2 |
3 |
4 |
5 | It allows students to see their records by entering the standard and the roll.no.
6 |
7 | As per the admin privilages,
8 |
9 | Id: Admin
10 | Password: Admin
11 |
12 | In admin dashboard, you can
13 |
14 | 1. Insert student records,
15 |
16 | 2. Update student records,
17 |
18 | 3. Deleting student records.
19 |
20 |
21 | I created MySql database in PHP My Admin and hence if you wish to use the code, create a database in my case,
22 |
23 | database name : sms
24 |
25 | Create two table one for student and one for admin. In my case the table names are,
26 |
27 | Admin,Student
28 |
29 |
30 | Also, I have used WAMP server and for using PHP My Admin, my username was root and password was"" .
31 | In case you have a different one, edit it in the dbcon.php file.
32 |
33 |
--------------------------------------------------------------------------------
/Ecommerce-website-PHP/Website/admin/copy_template.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Star-Rating-System-PHP/db/product.sql:
--------------------------------------------------------------------------------
1 | CREATE TABLE `product` (
2 | `id` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
3 | `name` varchar(256) NOT NULL,
4 | `description` text NOT NULL,
5 | `price` int(255) NOT NULL,
6 | `image` varchar(255) NOT NULL,
7 | `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
8 | `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
9 |
10 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
11 |
12 |
13 | INSERT INTO `product` (`id`, `name`, `description`, `price`, `image`, `created_at`, `updated_at`) VALUES
14 | (1, 'Frog Toy', '\r\n Built-in voice box \r\n soft and great for cuddling \r\n Special Design \r\n ', 12, 'frog.png', '2019-01-19 14:13:04', '2019-01-19 14:13:04'),
15 | (2, 'Chicken Toy', '\r\n Built-in voice box \r\n soft and great for cuddling \r\n Special Design \r\n ', 21, 'chicken.png', '2019-01-19 14:13:04', '2019-01-19 14:13:04');
16 |
--------------------------------------------------------------------------------
/Student-management-system/Admin/admindash.php:
--------------------------------------------------------------------------------
1 |
15 |
16 |
17 |
Welcome To Admin Dashboard
18 |
19 |
20 |
21 |
22 |
23 |
24 | 1. Insert Student
25 |
26 |
27 |
28 | 2. Update Student
29 |
30 |
31 | 3. Delete Student
32 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/Student-management-system/Admin/updatedata.php:
--------------------------------------------------------------------------------
1 |
27 |
31 |
35 |
--------------------------------------------------------------------------------
/Email-System-Php/License.md:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2019 Codeblogger
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
--------------------------------------------------------------------------------
/Email-System-Php/styleFile/inbox.css:
--------------------------------------------------------------------------------
1 | * {box-sizing: border-box}
2 | body {font-family: "Lato", sans-serif; overflow: hidden;}
3 |
4 | /* Style the tab */
5 | .tab {
6 | float: left;
7 | border: none;
8 | background-color: #CB7C74;
9 | width: 25%;
10 | height: 90%;
11 | }
12 |
13 | /* Style the buttons inside the tab */
14 | .tab button {
15 | display: block;
16 | background-color: inherit;
17 | color: black;
18 | padding: 22px 16px;
19 | width: 100%;
20 | border: none;
21 | outline: none;
22 | text-align: left;
23 | cursor: pointer;
24 | transition: 0.3s;
25 | font-size: 17px;
26 | border-bottom: 2px solid rgba(0,0,0,.5);
27 | box-sizing: border-box
28 | }
29 |
30 | h1{
31 | float: left;
32 | font-weight: bold;
33 | }
34 |
35 | h4{
36 | float: right;
37 | }
38 |
39 | p,hr{
40 | clear: both;
41 | }
42 |
43 | /* Change background color of buttons on hover */
44 | .tab button:hover {
45 | background-color: #ddd;
46 | }
47 |
48 | /* Create an active/current "tab button" class */
49 | .tab button.active {
50 | background-color: #ccc;
51 | }
52 |
53 | /* Style the tab content */
54 | .tabcontent {
55 | display: none;
56 | float: left;
57 | padding: 0px 12px;
58 | width: 70%;
59 | border-left: none;
60 | height: 100%;
61 | }
--------------------------------------------------------------------------------
/Email-System-Php/styleFile/newMessage.css:
--------------------------------------------------------------------------------
1 | * {
2 | box-sizing: border-box;
3 | }
4 |
5 | input[type=text], select, textarea {
6 | width: 100%;
7 | padding: 12px;
8 | border: 1px solid #ccc;
9 | border-radius: 4px;
10 | resize: vertical;
11 | }
12 |
13 | label {
14 | padding: 12px 12px 12px 0;
15 | display: inline-block;
16 | }
17 |
18 | input[type=submit] {
19 | background-color: #900C3F;
20 | color: white;
21 | padding: 12px 20px;
22 | border: none;
23 | border-radius: 4px;
24 | cursor: pointer;
25 | width: 100%;
26 | margin-top: 20px;
27 | transition: .5s;
28 | font-size: 20px;
29 | }
30 |
31 | input[type=submit]:hover {
32 | background-color: black;
33 | }
34 |
35 | .container {
36 | border-radius: 5px;
37 | padding: 20px;
38 | }
39 |
40 | .col-25 {
41 | float: left;
42 | width: 25%;
43 | margin-top: 6px;
44 | }
45 |
46 | .col-75 {
47 | float: left;
48 | width: 75%;
49 | margin-top: 6px;
50 | }
51 |
52 | /* Clear floats after the columns */
53 | .row:after {
54 | content: "";
55 | display: table;
56 | clear: both;
57 | }
58 |
59 | /* Responsive layout - when the screen is less than 600px wide, make the two columns stack on top of each other instead of next to each other */
60 | @media screen and (max-width: 600px) {
61 | .col-25, .col-75, input[type=submit] {
62 | width: 100%;
63 | margin-top: 0;
64 | }
65 | }
--------------------------------------------------------------------------------
/Star-Rating-System-PHP/action.php:
--------------------------------------------------------------------------------
1 | userLogin($user, $pass);
11 | $loginStatus = 0;
12 | $userName = "";
13 | if (!empty($loginDetails)) {
14 | $loginStatus = 1;
15 | //store user id, username, avatar in session
16 | $_SESSION['userid'] = $loginDetails[0]['id'];
17 | $_SESSION['username'] = $loginDetails[0]['username'];
18 | $_SESSION['avatar'] = $loginDetails[0]['avatar'];
19 | $userName = $loginDetails[0]['username'];
20 | }
21 | $data = array(
22 | "username" => $userName,
23 | "success" => $loginStatus,
24 | );
25 | echo json_encode($data);
26 | }
27 |
28 |
29 | //Save Rating validation
30 | if(!empty($_POST['action']) && $_POST['action'] == 'saveRating'
31 | //&& !empty($_SESSION['user_id'])
32 | && !empty($_POST['rating'])
33 | && !empty($_POST['product_id'])) {
34 |
35 |
36 | $rating->saveRating($_POST);
37 | $data = array(
38 | "success" => 1,
39 | );
40 | echo json_encode($data);
41 | }
42 | if(!empty($_GET['action']) && $_GET['action'] == 'logout') {
43 | session_unset();
44 | session_destroy();
45 | header("Location:index.php");
46 | }
47 | ?>
48 |
--------------------------------------------------------------------------------
/Email-System-Php/homepage/homepage.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | Document
11 |
12 |
13 |
14 |
15 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/Star-Rating-System-PHP/README.md:
--------------------------------------------------------------------------------
1 | # Star Rating Review System
2 |
3 | This is a product star rating system that can be integtated with you PHP framework (Laravel, Cakephp, etc)
4 |
5 | 
6 | 
7 | 
8 |
9 |
10 |
11 |
12 | ## Prerequisites
13 |
14 | * Apache Web Server
15 | * PHP7.2
16 | * MySql
17 |
18 |
19 | ## Installation
20 |
21 | * Install Apache Server
22 |
23 | * Install PHP
24 | * `brew search php`
25 | * `brew install php@7.2`
26 |
27 | * Install MySql
28 | * `brew install mysql@5.7`
29 |
30 |
31 | ## Development set up and run the app
32 |
33 | 1. Import sql files into mysql databse
34 | `mysql -u username -p databsename < product.sql`
35 | `mysql -u username -p databsename < product_rating.sql`
36 | `mysql -u username -p databsename < product_users.sql`
37 | 2. Set up local Apache development server
38 | * After insatll apache, put the project in the apache web directory
39 | * run `sudo apachectl start` you can access the webpage by visiting http://localhost .
40 |
41 | 3. Configuration
42 | * Option 1: Customer need login to make a comment or rating
43 | * go to class/Rating.php, change $settingClass = 'loginRequired'
44 | * Option2: Customer doesn't need login to make a comment or rating
45 | * go to class/Rating.php, change $settingClass = ''
46 |
47 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/Chatbot-PHP/PHP-chatbot/media/css/chatter.css:
--------------------------------------------------------------------------------
1 | .chat-div
2 | {
3 | padding: 20px;
4 | background: #e6e6e6;
5 | border-radius: 10px;
6 | }
7 |
8 | .chat-app-title
9 | {
10 | color: #0caf50;
11 | }
12 |
13 | .msg-input
14 | {
15 | height: 60px;
16 | width: inherit;
17 | padding: 10px;
18 | border-radius: 10px;
19 | }
20 |
21 | .send-btn
22 | {
23 | background: #000000;
24 | color: #ffffff;
25 | padding: 6px;
26 | border-radius: 5px;
27 | border-color: #000000;
28 | }
29 |
30 | .msg-disp
31 | {
32 | padding: 10px;
33 | background: #ffffff;
34 | color: #1a1a1a;
35 | border: 1px solid skyblue;
36 | border-radius: 10px;
37 | min-height: 300px;
38 | max-height: 300px;
39 | width: inherit;
40 | overflow: scroll;
41 | }
42 |
43 | .msg-sender
44 | {
45 | font-weight: bold;
46 | color: skyblue;
47 | }
48 |
49 | .bot-resp
50 | {
51 | font-weight: bold;
52 | color: lime;
53 | }
54 |
55 | .the-msg-text
56 | {
57 | text-align: right;
58 | background-color: #ccffff;
59 | padding: 10px;
60 | margin-left: 50%;
61 | margin-bottom: 4px;
62 | border-radius: 10px;
63 | }
64 | .the-resp
65 | {
66 | background-color: #b3ffb3;
67 | padding: 10px;
68 | margin-right: 50%;
69 | margin-bottom: 4px;
70 | border-radius: 10px;
71 | }
72 |
73 | .msg-sender, .msg-content, .bot-resp
74 | {
75 | text-align: left;
76 | }
77 |
78 | .msg-sender
79 | {
80 | border-bottom: 1px solid skyblue;
81 | }
82 |
83 | .bot-resp
84 | {
85 | border-bottom: 1px solid lime;
86 | }
87 |
--------------------------------------------------------------------------------
/Email-System-Php/styleFile/style.css:
--------------------------------------------------------------------------------
1 | body{
2 | background:url("https://images.unsplash.com/photo-1460355976672-71c3f0a4bdac?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1350&q=80");
3 | background-size:cover;
4 | background-position: top right;
5 |
6 | }
7 | .box{
8 | width:400px;
9 | height:50px;
10 | text-align:center;
11 | position:absolute;
12 | top:50%;
13 | left:50%;
14 | transform:translate(-50%,-50%);
15 | }
16 | .box a{
17 | font-size:24px;margin-right:20px
18 | }
19 | #form{
20 | width: 400px;
21 | height: 200px;
22 | position: absolute;
23 | top: 50%;
24 | left: 50%;
25 | transform: translate(-50%,-50%);
26 | }
27 | #form input{
28 | padding: 10px 15px;
29 | border-radius: 5px;
30 | width: 100%;
31 | box-sizing: border-box;
32 | border: none;
33 | font-size: 20px;
34 | outline: none;
35 | color: #262626;
36 | margin-bottom: 10px;
37 | text-align: center;
38 | }
39 | #form button{
40 | width: 100%;
41 | padding: 10px 15px;
42 | font-size: 20px;
43 | background: mediumslateblue;
44 | color: #262626;
45 | border: none;
46 | font-weight: bold;
47 | }
48 | #form a{
49 | display: block;
50 | text-align: center;
51 | font-size: 16px;
52 | color: #ccc;
53 | text-decoration: none;
54 | position: relative;
55 | margin-top: 12px;
56 | opacity: .75;
57 |
58 | }
59 | #form label{
60 | display: inline-block;
61 | color: rgba(255,255,255,.5);
62 | }
63 | #form label input{
64 | border-radius: 5px;
65 | width: 20px;
66 | }
67 |
--------------------------------------------------------------------------------
/Chatbot-PHP/PHP-chatbot/components/com_chatter/models/chatter.php:
--------------------------------------------------------------------------------
1 | setQuery($query);
27 | if($db->query())
28 | {
29 | return $db->insertid();
30 | }
31 | else
32 | {
33 | return false;
34 | }
35 | }
36 |
37 |
38 | /**
39 | * Function to select last inserted chat msg w.r.t last inserted ID.
40 | *
41 | * @param int $id
42 | * The last inserted row ID returned from the above function 'insert'.
43 | *
44 | * @return array $lastInsData
45 | * Array containing the message, user id w.r.t last inserted id.
46 | */
47 | function selectLastInserted($id)
48 | {
49 | $id = (INT)$id;
50 |
51 | $db = JFactory::getDBO();
52 | $query = "SELECT M.msgs, U.name FROM `#__chatter_msgs` AS M LEFT JOIN `#__users` as U ON M.userId=U.id WHERE M.id=$id LIMIT 1;";
53 | $lastInsData=$db->setQuery($query)->loadObject();
54 |
55 | return $lastInsData;
56 | }
57 | }
--------------------------------------------------------------------------------
/Ecommerce-website-PHP/Website/admin/includes/templates/navbar.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
11 |
12 |
18 |
19 |
20 | Admin
21 |
26 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/Student-management-system/function.php:
--------------------------------------------------------------------------------
1 | 0){
12 | $data = mysqli_fetch_assoc($run);
13 | ?>
14 |
15 |
16 | Student Details
17 |
18 |
19 |
20 | Roll No
21 |
22 |
23 |
24 |
25 | Name
26 |
27 |
28 |
29 | City
30 |
31 |
32 |
33 | Parents Contact no.
34 |
35 |
36 |
37 | Standard
38 |
39 |
40 |
41 |
42 | alert('No Student Found'); ";
51 | }
52 | }
53 |
54 |
55 | ?>
56 |
--------------------------------------------------------------------------------
/Star-Rating-System-PHP/inc/index_content.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
Star Rating System
5 | getProductList();
11 | foreach($productList as $product){
12 | $average = $rating->getRatingAverage($product["id"]);
13 | $count = $rating->getRatingTotal($product['id']);
14 | ?>
15 |
16 |
17 |
" style="width:200px;height:200px;padding:20px;">
18 |
19 |
20 |
21 |
22 | ';
35 |
36 | }
37 | echo $count . ' Reviews';
38 | ?>
39 |
40 | ';
42 | echo '
$'.$product["price"].'
';
43 | echo $product["description"];
44 |
45 | ?>
46 |
47 |
48 |
49 |
50 |
51 |
--------------------------------------------------------------------------------
/Star-Rating-System-PHP/inc/navbar.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Ecommerce
6 |
7 |
8 |
32 |
33 |
34 |
35 |
39 |
40 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/Ecommerce-website-PHP/Website/admin/index.php:
--------------------------------------------------------------------------------
1 | prepare("SELECT
23 | UserID, Username, Password
24 | FROM
25 | users
26 | WHERE
27 | Username = ?
28 | AND
29 | Password = ?
30 | AND
31 | GroupID = 1
32 | LIMIT 1");
33 |
34 | $stmt->execute(array($username, $hashedPass));
35 | $row = $stmt->fetch();
36 | $count = $stmt->rowCount();
37 |
38 | // If Count > 0 This Mean The Database Contain Record About This Username
39 |
40 | if ($count > 0) {
41 | $_SESSION['Username'] = $username; // Register Session Name
42 | $_SESSION['ID'] = $row['UserID']; // Register Session ID
43 | header('Location: dashboard.php'); // Redirect To Dashboard Page
44 | exit();
45 | }
46 |
47 | }
48 |
49 | ?>
50 |
51 |
57 |
58 |
--------------------------------------------------------------------------------
/Chatbot-PHP/PHP-chatbot/chatter.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | com_chatter
4 | Harshawardhan Natu
5 | 1.0.0
6 | This is chat component
7 |
8 |
9 | images
10 | css
11 | js
12 | index.html
13 |
14 |
15 |
16 | chatter.php
17 | index.html
18 | controller.php
19 | simple_html_dom.php
20 | views
21 | models
22 |
23 |
24 |
25 |
26 | install.sql
27 |
28 |
29 |
30 |
31 |
32 | uninstall.sql
33 |
34 |
35 |
36 |
37 |
38 | update.sql
39 |
40 |
41 |
42 |
43 |
44 |
45 | chatter.php
46 | index.html
47 | controller.php
48 | install.sql
49 | uninstall.sql
50 | update.sql
51 |
52 |
53 | Chat Options
54 |
55 |
56 | Chat History
57 | Block User
58 |
59 |
60 |
61 |
--------------------------------------------------------------------------------
/Email-System-Php/MYSQL FILES/jack.sql:
--------------------------------------------------------------------------------
1 | -- phpMyAdmin SQL Dump
2 | -- version 4.8.5
3 | -- https://www.phpmyadmin.net/
4 | --
5 | -- Anamakine: 127.0.0.1
6 | -- Üretim Zamanı: 17 Tem 2019, 21:00:03
7 | -- Sunucu sürümü: 10.1.39-MariaDB
8 | -- PHP Sürümü: 7.3.5
9 |
10 | SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
11 | SET AUTOCOMMIT = 0;
12 | START TRANSACTION;
13 | SET time_zone = "+00:00";
14 |
15 |
16 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
17 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
18 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
19 | /*!40101 SET NAMES utf8mb4 */;
20 |
21 | --
22 | -- Veritabanı: `phptutorial`
23 | --
24 |
25 | -- --------------------------------------------------------
26 |
27 | --
28 | -- Tablo için tablo yapısı `jack`
29 | --
30 |
31 | CREATE TABLE `jack` (
32 | `messages_id` int(11) UNSIGNED NOT NULL,
33 | `header` varchar(100) NOT NULL,
34 | `messages_sender` varchar(100) NOT NULL,
35 | `messages_content` varchar(5000) NOT NULL,
36 | `messages_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
37 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
38 |
39 | --
40 | -- Dökümü yapılmış tablolar için indeksler
41 | --
42 |
43 | --
44 | -- Tablo için indeksler `jack`
45 | --
46 | ALTER TABLE `jack`
47 | ADD PRIMARY KEY (`messages_id`);
48 |
49 | --
50 | -- Dökümü yapılmış tablolar için AUTO_INCREMENT değeri
51 | --
52 |
53 | --
54 | -- Tablo için AUTO_INCREMENT değeri `jack`
55 | --
56 | ALTER TABLE `jack`
57 | MODIFY `messages_id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;
58 | COMMIT;
59 |
60 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
61 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
62 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
63 |
--------------------------------------------------------------------------------
/Star-Rating-System-PHP/layout/app.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 |
--------------------------------------------------------------------------------
/Email-System-Php/add.php:
--------------------------------------------------------------------------------
1 | query('SELECT * FROM users_july',PDO::FETCH_ASSOC);
14 | if($getData){
15 | foreach($getData as $data){
16 | $dat[] = $data;
17 | };
18 | };
19 | for($i=0;$iprepare('INSERT INTO users_july(person_fullname,person_email,person_username,person_password)
39 | VALUES(:person_fullname,:person_email,:person_username,:person_password)');
40 | $execute->bindParam(':person_fullname',$fullname,PDO::PARAM_STR);
41 | $execute->bindParam(':person_email',$email,PDO::PARAM_STR);
42 | $execute->bindParam(':person_username',$username,PDO::PARAM_STR);
43 | $execute->bindParam(':person_password',$password,PDO::PARAM_STR);
44 | $execute->execute();
45 | if($execute){
46 | $_SESSION['username'] = $username;
47 | header("Location: createTable.php");
48 | echo 'başarılı';
49 | }else{
50 | echo 'başarısız';
51 | };
52 |
53 | }
54 |
55 | $db = null;
56 |
57 |
58 |
59 | ?>
--------------------------------------------------------------------------------
/Email-System-Php/pages/Inbox.php:
--------------------------------------------------------------------------------
1 | query("SELECT * FROM $session_username",PDO::FETCH_ASSOC);
11 | ?>
12 |
13 |
14 |
18 |
19 |
23 |
24 |
25 | query("SELECT * FROM $session_username",PDO::FETCH_ASSOC);
27 | if($myTable):
28 | foreach($myTable as $val): ?>
29 |
30 |
31 |
38 |
39 |
40 |
45 |
46 |
47 |
48 |
64 |
65 |
--------------------------------------------------------------------------------
/Star-Rating-System-PHP/db/product_rating.sql:
--------------------------------------------------------------------------------
1 | --
2 | -- Table structure for table `product_rating`
3 | --
4 |
5 |
6 |
7 | CREATE TABLE `product_rating` (
8 | `id` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
9 | `product_id` int(11) NOT NULL,
10 | `user_id` int(11) DEFAULT NULL,
11 | `rating_score` int(11) NOT NULL,
12 | `title` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
13 | `comment` text COLLATE utf8_unicode_ci,
14 | `reviewer` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
15 | `email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
16 | `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '1 = Block, 0 = Unblock',
17 | `created_at` datetime NOT NULL,
18 | `updated_at` datetime NOT NULL
19 |
20 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
21 |
22 |
23 | --
24 | -- Dumping data for table `product_rating`
25 | --
26 |
27 | INSERT INTO `product_rating` (`id`, `product_id`, `user_id`, `rating_score`, `title`, `comment`, `reviewer`, `email`, `status`, `created_at`, `updated_at`) VALUES
28 | (1, 1, 1, 4, 'its awesome', 'It''s awesome!!!','Joseph', 'joseph123@gmail.com',1, '2018-08-19 09:13:01', '2018-08-19 09:13:01'),
29 | (2, 2, 2, 5, 'Nice product', 'Really quality product!','Mary', 'mary123@gmail.com',1, '2018-08-19 09:13:37', '2018-08-19 09:13:37'),
30 | (3, 1, 3, 3, 'I like it', 'its''s best but item.', 'John', 'john123@gmail.com', 1,'2018-08-19 09:14:19', '2018-08-19 09:14:19'),
31 | (4, 1, 4, 3, 'super awesome ', 'i think its supper products','lisa', 'lisa123@gmail.com', 1, '2018-08-19 09:18:00', '2018-08-19 09:18:00'),
32 | (5, 2, 5, 1, 'Good idea', 'Nice', 'Daniel', 'Daniel123@gmail.com',1, '2019-01-20 17:00:58', '2019-01-20 17:00:58'),
33 | (6, 2, 5, 5, 'Nice product', 'this is nice!', 'Lee', 'Lee23@gmail.com',1, '2019-01-20 17:01:37', '2019-01-20 17:01:37'),
34 | (7, 1, 3, 4, 'really nice', 'Good!', 'Michael', 'Michael23@gmail.com', 1,'2019-01-20 21:06:48', '2019-01-20 21:06:48');
35 |
36 |
37 |
38 |
39 |
40 |
41 | ALTER TABLE `product_rating` CHANGE `user_id` `user_id` INT(11) NULL DEFAULT NULL;
42 |
--------------------------------------------------------------------------------
/Student-management-system/login.php:
--------------------------------------------------------------------------------
1 |
10 |
11 |
12 |
13 | Admin Login
14 |
15 |
16 |
17 | Admin Login
18 |
34 |
35 |
36 |
37 | =1)
53 | {
54 | $data = mysqli_fetch_assoc($run);
55 | $id = $data['id'];
56 |
57 |
58 |
59 | $_SESSION['uid']=$id;
60 |
61 | header('location:admin/admindash.php');
62 |
63 | }
64 | else
65 | {
66 | ?>
67 |
71 |
--------------------------------------------------------------------------------
/Student-management-system/Admin/updateform.php:
--------------------------------------------------------------------------------
1 |
12 |
13 |
26 |
27 | Edit The Data
28 |
63 |
--------------------------------------------------------------------------------
/Email-System-Php/MYSQL FILES/users_july.sql:
--------------------------------------------------------------------------------
1 | -- phpMyAdmin SQL Dump
2 | -- version 4.8.5
3 | -- https://www.phpmyadmin.net/
4 | --
5 | -- Anamakine: 127.0.0.1
6 | -- Üretim Zamanı: 17 Tem 2019, 21:00:34
7 | -- Sunucu sürümü: 10.1.39-MariaDB
8 | -- PHP Sürümü: 7.3.5
9 |
10 | SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
11 | SET AUTOCOMMIT = 0;
12 | START TRANSACTION;
13 | SET time_zone = "+00:00";
14 |
15 |
16 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
17 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
18 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
19 | /*!40101 SET NAMES utf8mb4 */;
20 |
21 | --
22 | -- Veritabanı: `phptutorial`
23 | --
24 |
25 | -- --------------------------------------------------------
26 |
27 | --
28 | -- Tablo için tablo yapısı `users_july`
29 | --
30 |
31 | CREATE TABLE `users_july` (
32 | `person_id` int(6) UNSIGNED NOT NULL,
33 | `person_fullname` varchar(30) NOT NULL,
34 | `person_email` varchar(30) NOT NULL,
35 | `person_username` varchar(30) NOT NULL,
36 | `person_password` varchar(30) NOT NULL
37 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
38 |
39 | --
40 | -- Tablo döküm verisi `users_july`
41 | --
42 |
43 | INSERT INTO `users_july` (`person_id`, `person_fullname`, `person_email`, `person_username`, `person_password`) VALUES
44 | (1, 'furkan gulsen', 'furkan@gmail.com', 'furkan', 'furkan123'),
45 | (2, 'oliver allen', 'oliver@gmail.com', 'oliver', 'oliver123'),
46 | (3, 'jack queen', 'jack@gmail.com', 'jack', 'jack123');
47 |
48 | --
49 | -- Dökümü yapılmış tablolar için indeksler
50 | --
51 |
52 | --
53 | -- Tablo için indeksler `users_july`
54 | --
55 | ALTER TABLE `users_july`
56 | ADD PRIMARY KEY (`person_id`);
57 |
58 | --
59 | -- Dökümü yapılmış tablolar için AUTO_INCREMENT değeri
60 | --
61 |
62 | --
63 | -- Tablo için AUTO_INCREMENT değeri `users_july`
64 | --
65 | ALTER TABLE `users_july`
66 | MODIFY `person_id` int(6) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
67 | COMMIT;
68 |
69 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
70 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
71 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
72 |
--------------------------------------------------------------------------------
/Star-Rating-System-PHP/js/rating.js:
--------------------------------------------------------------------------------
1 | $(function() {
2 | $('#loginForm').on('submit', function(e){
3 | $.ajax({
4 | type: 'POST',
5 | url : "action.php",
6 | dataType: "json",
7 | data:$(this).serialize(),
8 | success: function (response) {
9 | if(response.success == 1) {
10 | $('#loginModal').modal('hide');
11 | $('#loggedPanel').removeClass('hidden');
12 | $('#loggedUser').text(response.username);
13 |
14 | // $( "#rateProduct" ).removeClass('loginRequired');
15 |
16 |
17 | $("#ratingDetails").show();
18 | $("#ratingSection").show();
19 | } else {
20 | $('#loginError').show();
21 | }
22 | }
23 | });
24 | return false;
25 | });
26 |
27 | // rating form hide/show
28 | $( "#rateProduct" ).click(function() {
29 | if($(this).hasClass('loginRequired')) {
30 | $('#loginModal').modal('show');
31 | } else {
32 | //$("#ratingDetails").hide();
33 | $("#ratingSection").show();
34 | }
35 | });
36 | $( "#cancelReview" ).click(function() {
37 | $("#ratingSection").hide();
38 | $("#ratingDetails").show();
39 | });
40 | // implement start rating select/deselect
41 | $( ".rateButton" ).click(function() {
42 | if($(this).hasClass('star-grey')) {
43 | $(this).removeClass('star-grey').addClass('star-highlight star-selected');
44 | $(this).prevAll('.rateButton').removeClass('star-grey').addClass('star-highlight star-selected');
45 | $(this).nextAll('.rateButton').removeClass('star-highlight star-selected').addClass('star-grey');
46 | } else {
47 | $(this).nextAll('.rateButton').removeClass('star-highlight star-selected').addClass('star-grey');
48 | }
49 | $("#rating").val($('.star-selected').length); //count the num of star selected
50 | });
51 | // save review using Ajax
52 | $('#ratingForm').on('submit', function(event){
53 | event.preventDefault();
54 | var formData = $(this).serialize();
55 | $.ajax({
56 | type : 'POST',
57 | dataType: "json",
58 | url : 'action.php',
59 | data : formData,
60 | success:function(response){
61 | if(response.success == 1) {
62 | $("#ratingForm")[0].reset();
63 | window.location.reload();
64 | }
65 | }
66 | });
67 | });
68 | });
69 |
--------------------------------------------------------------------------------
/Student-management-system/Admin/deletestudent.php:
--------------------------------------------------------------------------------
1 |
12 |
13 |
18 |
19 | Delete Data From The Database
20 |
43 |
44 |
45 |
46 |
47 | No.
48 | Image
49 | Name
50 | Roll No
51 | Edit
52 |
53 |
54 | No Records Found ";
68 | }
69 | else{
70 | $count=0;
71 | while($data=mysqli_fetch_assoc($run)){
72 | $count++;
73 | ?>
74 |
75 |
76 |
77 |
78 |
79 | Delete
80 |
81 |
82 |
87 |
88 |
89 |
90 |
--------------------------------------------------------------------------------
/Student-management-system/Admin/updatestudent.php:
--------------------------------------------------------------------------------
1 |
12 |
13 |
18 |
19 | Update Data Of Students
20 |
43 |
44 |
45 |
46 |
47 | No.
48 | Image
49 | Name
50 | Roll No
51 | Edit
52 |
53 |
54 | No Records Found ";
68 | }
69 | else{
70 | $count=0;
71 | while($data=mysqli_fetch_assoc($run)){
72 | $count++;
73 | ?>
74 |
75 |
76 |
77 |
78 |
79 | Edit
80 |
81 |
82 |
87 |
88 |
89 |
90 |
--------------------------------------------------------------------------------
/Student-management-system/index.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Student Management System
8 |
9 |
10 |
11 |
12 |
13 | Welcome To Student Management System
14 |
15 |
16 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
--------------------------------------------------------------------------------
/Student-management-system/Admin/addstudent.php:
--------------------------------------------------------------------------------
1 |
13 |
14 |
22 | Add Students To The Records
23 |
56 |
57 |