├── Chatbot-PHP ├── PHP-chatbot │ ├── administrator │ │ └── components │ │ │ └── com_chatter │ │ │ ├── chatter.php │ │ │ ├── controller.php │ │ │ ├── index.html │ │ │ ├── install.sql │ │ │ ├── uninstall.sql │ │ │ └── update.sql │ ├── chatter.xml │ ├── components │ │ └── com_chatter │ │ │ ├── chatter.php │ │ │ ├── controller.php │ │ │ ├── index.html │ │ │ ├── models │ │ │ └── chatter.php │ │ │ ├── simple_html_dom.php │ │ │ └── views │ │ │ └── chatter │ │ │ ├── tmpl │ │ │ ├── default.php │ │ │ └── default_guest_view.php │ │ │ └── view.html.php │ └── media │ │ ├── css │ │ ├── chatter.css │ │ └── index.html │ │ ├── images │ │ └── index.html │ │ ├── index.html │ │ └── js │ │ ├── frontend.js │ │ ├── index.html │ │ └── jquery-3.4.0.min.js └── README.md ├── Ecommerce-website-PHP ├── DataBase │ └── shop.sql ├── README.md └── Website │ └── admin │ ├── categories.php │ ├── comments.php │ ├── connect.php │ ├── copy_template.php │ ├── dashboard.php │ ├── includes │ ├── functions │ │ └── functions.php │ ├── languages │ │ ├── arabic.php │ │ └── english.php │ └── templates │ │ ├── footer.php │ │ ├── header.php │ │ └── navbar.php │ ├── index.php │ ├── init.php │ ├── items.php │ └── layout │ ├── css │ ├── backend.css │ ├── bootstrap.css │ ├── bootstrap.min.css │ ├── font-awesome.min.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 │ ├── jquery-ui.css │ └── jquery.selectBoxIt.css │ └── 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 ├── Email-System-Php ├── License.md ├── MYSQL FILES │ ├── furkan.sql │ ├── jack.sql │ ├── oliver.sql │ └── users_july.sql ├── README.md ├── add.php ├── connect.php ├── createTable.php ├── homepage │ └── homepage.php ├── index.php ├── loginPage │ └── login.php ├── navbar.php ├── pages │ ├── Inbox.php │ └── newMessage.php ├── register │ └── register.php └── styleFile │ ├── inbox.css │ ├── navbar.css │ ├── newMessage.css │ └── style.css ├── Star-Rating-System-PHP ├── README.md ├── action.php ├── class │ └── Rating.php ├── css │ └── style.css ├── db │ ├── product.sql │ ├── product_rating.sql │ └── product_users.sql ├── image │ ├── chicken.png │ ├── frog.png │ ├── home.png │ ├── product-detail.png │ └── product-rating.png ├── inc │ ├── header.php │ ├── index_content.php │ ├── navbar.php │ └── product_detail_content.php ├── index.php ├── js │ └── rating.js ├── layout │ └── app.php └── product_detail.php └── Student-management-system ├── Admin ├── addstudent.php ├── admindash.php ├── deleteform.php ├── deletestudent.php ├── header.php ├── titleheader.php ├── updatedata.php ├── updateform.php └── updatestudent.php ├── README.md ├── css └── style.css ├── dataimg ├── abc.bmp └── image (2).png ├── dbcon.php ├── function.php ├── index.php ├── login.php └── logout.php /Chatbot-PHP/PHP-chatbot/administrator/components/com_chatter/chatter.php: -------------------------------------------------------------------------------- 1 | execute(JRequest::getCMd('task')); 10 | 11 | $controller->redirect(); -------------------------------------------------------------------------------- /Chatbot-PHP/PHP-chatbot/administrator/components/com_chatter/controller.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /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 | ); -------------------------------------------------------------------------------- /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/administrator/components/com_chatter/update.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/engineers-planet/PHP_Free_Downloads/ba8be31590052331a602e970dd2a14ad528c6420/Chatbot-PHP/PHP-chatbot/administrator/components/com_chatter/update.sql -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /Chatbot-PHP/PHP-chatbot/components/com_chatter/chatter.php: -------------------------------------------------------------------------------- 1 | execute(JRequest::getCmd('task')); 10 | 11 | $controller->redirect(); -------------------------------------------------------------------------------- /Chatbot-PHP/PHP-chatbot/components/com_chatter/controller.php: -------------------------------------------------------------------------------- 1 | addStyleSheet(JURI::root().'media/com_chatter/css/chatter.css'); # Link custom CSS file 21 | $doc->addScript(JURI::root().'media/com_chatter/js/jquery-3.4.0.min.js'); # Link the jQuery file 22 | $doc->addScript(JURI::root().'media/com_chatter/js/frontend.js'); # Link custom JS file 23 | 24 | if(!JRequest::getVar('view')) 25 | { 26 | JRequest::setVar('view','chatter'); 27 | } 28 | 29 | parent::display(); 30 | } 31 | 32 | 33 | /** 34 | * Function to send the input message as ajax request in form of JSON object. 35 | */ 36 | function getMsgRequest() # Function to get input from user and send ajax request as JSON 37 | { 38 | $app = JFactory::getApplication(); 39 | $msg = JRequest::getString('msg'); 40 | $user = JFactory::getUser()->id; 41 | 42 | 43 | $res = array(); 44 | 45 | if($user == 0) # Check if the user is logged in or not 46 | { 47 | $res['status'] = false; 48 | $res['msg'] = 'Please login first!'; 49 | echo json_encode($res); 50 | exit(); 51 | } 52 | 53 | if($msg == "") # Check if the input is blank/null 54 | { 55 | $res['status'] = false; 56 | $res['msg'] = 'Please enter message!'; 57 | echo json_encode($res); 58 | exit(); 59 | } 60 | 61 | if($chatID = $this->chatToDb($msg,$user)) # 1. Call to insert input msg from user and get last 62 | { # inserted ID. 63 | $msgDtl = $this->showLastMsg($chatID); # 2. Call to fetch the msg using last inserted ID. 64 | $res['chatDetails'] = $msgDtl; 65 | $res['status'] = true; 66 | } 67 | else 68 | { 69 | $res['status'] = false; 70 | } 71 | echo json_encode($res); # Sending JSON encoded data with status check 72 | $app->close(); 73 | } 74 | 75 | 76 | /** 77 | * Function to insert and store the last msg input by user. 78 | * 79 | * @param string $msg 80 | * The string input from user. 81 | * 82 | * @param int $user 83 | * The user id from which the message was inserted. 84 | * 85 | * @return int $inserted_id 86 | * The id of last successfully inserted row. 87 | */ 88 | function chatToDb($msg, $user) 89 | { 90 | $model = $this->getModel('Chatter'); # Getting model instance of 'Chatter' model 91 | $inserted_id = $model->insert($msg, $user); # get last insert id 92 | 93 | return $inserted_id; 94 | } 95 | 96 | 97 | /** 98 | * Function to select last inserted chat msg w.r.t last inserted ID. 99 | * 100 | * @param int $id 101 | * The last inserted row ID returned from the above function 'chatToDb'. 102 | * 103 | * @return array $lastIns 104 | * Array containing the message, user id w.r.t last inserted id. 105 | */ 106 | private function showLastMsg($id) 107 | { 108 | $model = $this->getModel('Chatter'); # Getting model instance of 'Chatter' model 109 | $lastIns = $model->selectLastInserted($id); # get msg of last inserted id 110 | 111 | return $lastIns; 112 | } 113 | 114 | 115 | /** 116 | * Function to scrap html from any URL. 117 | * 118 | * @param string $url 119 | * The URL from which the data is to be scraped. 120 | * 121 | * @return object $html_output 122 | * The html parsed from the URL passed using cURL. 123 | */ 124 | // 125 | function scrapHTML($url) 126 | { 127 | if(!function_exists('curl_init')) 128 | { 129 | die('cURL is not installed. Please install!'); 130 | } 131 | 132 | $options = Array( 133 | CURLOPT_RETURNTRANSFER => TRUE, // Setting cURL's option to return the webpage data 134 | CURLOPT_FOLLOWLOCATION => TRUE, // Setting cURL to follow 'location' HTTP headers 135 | CURLOPT_AUTOREFERER => TRUE, // Automatically set the referer where following 'location' HTTP headers 136 | CURLOPT_CONNECTTIMEOUT => 120, // Setting the amount of time (in seconds) before the request times out 137 | CURLOPT_TIMEOUT => 120, // Setting the maximum amount of time for cURL to execute queries 138 | CURLOPT_MAXREDIRS => 10, // Setting the maximum number of redirections to follow 139 | CURLOPT_USERAGENT => "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1a2pre) Gecko/2008073000 Shredder/3.0a2pre ThunderBrowse/3.2.1.8", // Setting the useragent 140 | CURLOPT_URL => $url, // Setting cURL's URL option with the $url variable passed into the function 141 | ); 142 | 143 | $curl = curl_init(); 144 | curl_setopt_array($curl, $options); 145 | $html_output = curl_exec($curl); 146 | 147 | if(curl_errno($curl)) 148 | { 149 | $curl_err = "Scraping error : ".curl_error($curl); 150 | 151 | var_dump($curl_err); 152 | exit(); 153 | } 154 | 155 | curl_close($curl); 156 | 157 | return $html_output; 158 | } 159 | 160 | 161 | /** 162 | * Function for checking for a response of msg entered. 163 | */ 164 | function checkForResponse() 165 | { 166 | $app = JFactory::getApplication(); 167 | $msg=JRequest::getVar('msg'); # Getting request from JS with msg-content 168 | 169 | 170 | $res = array(); 171 | 172 | #-------------------------- Predefined commands ---------------------------------------------# 173 | 174 | $greets = array('hi','hey','hello','hola','hey there', 'hi there', 'hello there','namaste','bonjour'); 175 | 176 | $abouts = array('how are you','hi how are you','hey how are you', 'hello how are you','how are you today','how are you feeling',' how are you feeling today','how are you doing','how you doin'); 177 | 178 | $whos = array('who are you', 'whats your name', 'who am I talking to', 'what are you', 'what is your name','what are you called','what do people call you'); 179 | 180 | $byes = array('bye','until next time','bye bye','good bye','see you soon','chao','goodbye','catch you later','see you next time','see you later'); 181 | 182 | $locate = array('location','my current location','my location','current location','where am i', 'what is my location', 'what is my current location', 'whats my location','whats my current location', 'get my location', 'what is this place'); 183 | 184 | $weather = array('weather','how is the weather today','how is the weather right now','weather right now','current weather','current weather conditions','how is the weather','weather conditions','weather forecast'); 185 | 186 | $times = array('current time', 'what is the time right now', 'time right now', 'tell me the time', 'what is the time', 'whats the time', 'whats the time right now'); 187 | 188 | $dates = array('what is the date today','todays date','what is the date','whats the date','whats the date today','current date','date today'); 189 | 190 | $day_ask = array('todays day','what is the day today','current day','the day today','current day','day today'); 191 | 192 | $helper_cmd = array('commands','chatbot help','help for chatbot','help us','all commands'); 193 | 194 | #--------------------------------------------------------------------------------------------# 195 | 196 | #--------------------------- Bot Responses --------------------------------------------------# 197 | 198 | $about_resp = array('i am fine.', 'i am doing great.', 'i\'m fine, thank you.', 'i am doing good and am glad you asked, thank you.','everything is good, thank you.', 'everything is great.', 'everything Seems good.'); 199 | 200 | $whos_resp = array('My name is bot.','I am the bot, your helping hand.','The name is bot... Chat Bot!','I am the bot.','People call me bot.'); 201 | 202 | #---------------------------------------------------------------------------------------------# 203 | 204 | $msg_ext = strtolower($msg); 205 | $msg_arr = explode(' ', $msg_ext); 206 | 207 | $msg = strtolower(trim(str_replace(array('/','?','!',';',',','.','@','$','#','*','^','%','~','%','(',')','{','}','[',']',':','&','"','\'','<','>','\\'), '', $msg))); 208 | 209 | $Bot = 'BOT'; 210 | $resp = ''; 211 | 212 | $respDtl = array(); 213 | 214 | 215 | if(in_array($msg, $greets)) # Check for greetings 216 | { 217 | $resp = array_rand($greets); 218 | $resp=$greets[$resp].' !'; 219 | } 220 | else if(in_array($msg,$abouts)) # Check for abouts 221 | { 222 | $resp = array_rand($about_resp); 223 | $resp=$about_resp[$resp]; 224 | } 225 | else if(in_array($msg, $whos)) # Check for whos 226 | { 227 | $resp = array_rand($whos_resp); 228 | $resp=$whos_resp[$resp]; 229 | } 230 | else if(in_array($msg, $byes)) # Check for Byes 231 | { 232 | $resp = array_rand($byes); 233 | $resp=$byes[$resp]; 234 | } 235 | else if(in_array($msg, $times)) # Check for current time 236 | { 237 | $curr_time = date('h:i:s A'); 238 | $resp = "current time is : ".$curr_time; 239 | } 240 | else if(in_array($msg, $dates)) # Check for current date 241 | { 242 | $curr_date = date('F d, Y'); 243 | $resp = "Date today is : ".$curr_date; 244 | } 245 | else if(in_array($msg, $day_ask)) # Check for current day 246 | { 247 | $curr_day = date('l'); 248 | $resp = "Day today is : ".$curr_day; 249 | } 250 | else if(in_array($msg, $locate)) # Check for current location : Based on IP 251 | { 252 | $locate_url = 'http://ip-api.com/json/'; 253 | $curr_loc = json_decode(file_get_contents($locate_url)); 254 | $locate_data = array($curr_loc->city, $curr_loc->regionName, $curr_loc->country); 255 | 256 | $resp = implode(', ', $locate_data); 257 | } 258 | else if(in_array($msg, $weather)) # Check for weather w.r.t current location 259 | { 260 | $app = JFactory::getApplication(); 261 | $locate_url = 'http://ip-api.com/json/'; 262 | $curr_loc = json_decode(file_get_contents($locate_url)); 263 | $curr_city = $curr_loc->city; 264 | $curr_state = $curr_loc->regionName; 265 | $curr_country = $curr_loc->country; 266 | 267 | 268 | $weather_url = 'http://api.apixu.com/v1/current.json?key=6a796cd5ec244b74be4112646192204&q='.$curr_city; 269 | $weather_data = json_decode(file_get_contents($weather_url)); 270 | 271 | $temp_c = ($weather_data->current)->temp_c; 272 | $temp_f = ($weather_data->current)->temp_f; 273 | 274 | $resp = 'Current temperature in '.$curr_city.' : '.$temp_c.' °C | '.$temp_f.' °F'; 275 | } 276 | else if(in_array($msg, $helper_cmd)) # Check for help commands 277 | { 278 | $resp = "List of commands available :-
    279 |
  1. Greetings (Eg. - Hi)
  2. 280 |
  3. Abouts (Eg. - How are you?).
  4. 281 |
  5. Who's (Eg. Who are you?)
  6. 282 |
  7. Date, time or Day (Eg. date today, current time or day today)
  8. 283 |
  9. Current Geo-location (Eg. Where am I?)
  10. 284 |
  11. Current temperature (Eg. Current weather)
  12. 285 |
  13. Basic arithmetic caclulation (Eg. calc 3 + 2)
  14. 286 |
  15. Search for anything (Eg. Search Potato)
  16. 287 |
  17. Byes (Eg. Goodbye)
"; 288 | } 289 | else if((strpos($msg, 'calculate') === 0) || (strpos($msg, 'calc') === 0)) # Check for calculator 290 | { 291 | if(($msg_arr[0] == 'calculate') || ($msg_arr[0] == 'calc')) 292 | { 293 | if($msg_arr[2] == '+') 294 | { 295 | $calc = ((double)$msg_arr[1]) + ((double)$msg_arr[3]); 296 | $calc = "Sum would be : ".$calc; 297 | } 298 | else if($msg_arr[2] == '-') 299 | { 300 | $calc = ((double)$msg_arr[1]) - ((double)$msg_arr[3]); 301 | $calc = "Difference would be : ".$calc; 302 | } 303 | else if($msg_arr[2] == '*') 304 | { 305 | $calc = ((double)$msg_arr[1]) * ((double)$msg_arr[3]); 306 | $calc = "Product would be : ".$calc; 307 | } 308 | else if($msg_arr[2] == '/') 309 | { 310 | if($msg_arr[3] == 0) 311 | { 312 | $calc = "Any number cannot be divided by zero!"; 313 | } 314 | else 315 | { 316 | $calc = ((double)$msg_arr[1]) / ((double)$msg_arr[3]); 317 | $calc = "Division would be : ".$calc; 318 | } 319 | } 320 | else 321 | { 322 | $calc = "Only four basic arithmetic operation (+, -, *, /) are supported right now!"; 323 | } 324 | 325 | $resp = $calc; 326 | } 327 | } 328 | else if((strpos($msg, 'search') === 0)) # Check for search 329 | { 330 | array_shift($msg_arr); 331 | $search_str = implode(' ',$msg_arr); 332 | $search_url = "https://en.wikipedia.org/wiki/".$search_str; 333 | 334 | $html = file_get_html($search_url); 335 | 336 | $def_flag = 0; 337 | 338 | foreach($html->find('p') as $para) 339 | { 340 | if($def_flag < 1) 341 | { 342 | $def = $para->plaintext; 343 | if((($def != null) || ($def != "")) && (!preg_match('/:$/i', $def))) 344 | { 345 | $def_flag++; 346 | } 347 | } 348 | else 349 | { 350 | break; 351 | } 352 | } 353 | 354 | if((preg_match('/to:$/i',$def)) || (preg_match('/'.$search_str.':$/i',$def))) 355 | { 356 | $resp = $def."
Read here."; 357 | } 358 | else 359 | { 360 | $def = preg_replace('/\[[0-9]+\]/','',html_entity_decode($def)); 361 | $resp = $def; 362 | } 363 | 364 | } 365 | else # If no commands is applicable, show default text 366 | { 367 | $resp = 'No response available for - "'.$msg.'". Check for wrong spellings or commands, for all available commands, type "chatbot help" or "all commands".'; 368 | } 369 | 370 | $resp = ucfirst($resp); 371 | 372 | $respDtl['name'] = $Bot; 373 | $respDtl['resp'] = $resp; 374 | 375 | $res['status'] = true; 376 | $res['respDetails'] = $respDtl; 377 | 378 | echo json_encode($res); # send bot response as ajax request, JSON encoded 379 | exit(); 380 | } 381 | 382 | // End of class 383 | } 384 | -------------------------------------------------------------------------------- /Chatbot-PHP/PHP-chatbot/components/com_chatter/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /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 | } -------------------------------------------------------------------------------- /Chatbot-PHP/PHP-chatbot/components/com_chatter/views/chatter/tmpl/default.php: -------------------------------------------------------------------------------- 1 | 6 |
7 |

ChatBot!


8 |

9 |
10 |
11 | 12 |
13 | 14 | 15 |

16 |
17 |
18 | 19 |
20 |
-------------------------------------------------------------------------------- /Chatbot-PHP/PHP-chatbot/components/com_chatter/views/chatter/tmpl/default_guest_view.php: -------------------------------------------------------------------------------- 1 | 5 | 6 |
7 |

Please login first!

8 |
9 | -------------------------------------------------------------------------------- /Chatbot-PHP/PHP-chatbot/components/com_chatter/views/chatter/view.html.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/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 | -------------------------------------------------------------------------------- /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/media/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Chatbot-PHP/PHP-chatbot/media/js/frontend.js: -------------------------------------------------------------------------------- 1 | var jq = jQuery.noConflict(); 2 | 3 | jq(document).ready(function(){ 4 | 5 | /** 6 | * Function to "auto-scroll" the chat box to latest response 7 | */ 8 | function scrolltoLatest() 9 | { 10 | jq('div.msg-disp').scrollTop(jq('div.msg-disp')[0].scrollHeight); 11 | } 12 | 13 | 14 | /** 15 | * Function for checking Responses from bot PHP function in controller - checkForResp 16 | * 17 | * @param string msg 18 | * The input msg for which the response is to be matched. 19 | * 20 | * @return html respTags 21 | * appends the html code with the appropriate response found in PHP controller 22 | */ 23 | function giveResp(msg) 24 | { 25 | var param = {}; 26 | param.option = 'com_chatter'; 27 | param.task = 'checkForResponse'; 28 | param.msg = msg; 29 | 30 | jq.ajax({ 31 | url:'index.php', 32 | method:'POST', 33 | data:param, 34 | success:function(response) 35 | { 36 | console.log(response); 37 | 38 | response=JSON.parse(response); 39 | respDtls=response.respDetails; 40 | var respTags = ""; 41 | 42 | respTags+='

' + respDtls.name + '

' + respDtls.resp + '

'; 43 | jq('div.msg-disp').append(respTags); 44 | 45 | scrolltoLatest(); 46 | } 47 | }); 48 | } 49 | 50 | jq(".msg-input").keypress(function(e){ 51 | if(e.which == 13){ 52 | jq('#send-btn').click();//Trigger search button click event 53 | } 54 | }); 55 | 56 | jq(document).on('keydown','.msg-input', function(e){ 57 | jq('.typing').show(); 58 | }); 59 | 60 | jq(document).on('keyup','.msg-input', function(e){ 61 | jq('.typing').hide(); 62 | }); 63 | 64 | /** 65 | * Onclick chat button 66 | */ 67 | jq(document).on('click','#send-btn',function(){ 68 | var msg = jq('.msg-input').val().trim(); 69 | 70 | 71 | if(msg == "") 72 | { 73 | alert('Please enter message!'); 74 | return false; 75 | } 76 | 77 | 78 | // Passing initial parameters - Msg, sender id, task 79 | var param = {}; 80 | param.option = 'com_chatter'; 81 | param.task = 'getMsgRequest'; 82 | param.msg = msg; 83 | 84 | jq.ajax({ // First Ajax call to PHP function - getMsgReq 85 | url:'index.php', 86 | method:'POST', 87 | data:param, 88 | success:function(response) 89 | { 90 | jq(".msg-input").val(''); 91 | response=JSON.parse(response); 92 | actualresponse=response.chatDetails; 93 | var chatMsgHTML = ""; 94 | 95 | chatMsgHTML+='

' + actualresponse.name + '

' + actualresponse.msgs + '

'; 96 | jq('div.msg-disp').append(chatMsgHTML); 97 | 98 | // Call to JS function giveResp to check response from bot 99 | giveResp(msg); 100 | } 101 | }); 102 | }); 103 | }); -------------------------------------------------------------------------------- /Chatbot-PHP/PHP-chatbot/media/js/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /Ecommerce-website-PHP/DataBase/shop.sql: -------------------------------------------------------------------------------- 1 | -- phpMyAdmin SQL Dump 2 | -- version 5.0.2 3 | -- https://www.phpmyadmin.net/ 4 | -- 5 | -- Hôte : 127.0.0.1 6 | -- Généré le : ven. 28 août 2020 à 21:08 7 | -- Version du serveur : 10.4.14-MariaDB 8 | -- Version de PHP : 7.4.9 9 | 10 | SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; 11 | START TRANSACTION; 12 | SET time_zone = "+00:00"; 13 | 14 | 15 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 16 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 17 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 18 | /*!40101 SET NAMES utf8mb4 */; 19 | 20 | -- 21 | -- Base de données : `shop` 22 | -- 23 | 24 | -- -------------------------------------------------------- 25 | 26 | -- 27 | -- Structure de la table `categories` 28 | -- 29 | 30 | CREATE TABLE `categories` ( 31 | `ID` int(11) NOT NULL, 32 | `Name` varchar(255) NOT NULL, 33 | `Description` text NOT NULL, 34 | `parent` int(11) NOT NULL, 35 | `Ordering` int(11) DEFAULT NULL, 36 | `Visibility` tinyint(4) NOT NULL DEFAULT 0, 37 | `Allow_Comment` tinyint(4) NOT NULL DEFAULT 0, 38 | `Allow_Ads` tinyint(4) NOT NULL DEFAULT 0 39 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; 40 | 41 | -- 42 | -- Déchargement des données de la table `categories` 43 | -- 44 | 45 | INSERT INTO `categories` (`ID`, `Name`, `Description`, `parent`, `Ordering`, `Visibility`, `Allow_Comment`, `Allow_Ads`) VALUES 46 | (1, 'Accessoires', 'Mobile and PC Accessoires', 0, 1, 0, 0, 0), 47 | (2, 'PC Desktop', '', 0, 1, 0, 0, 0), 48 | (3, 'PC Portable', '', 0, 1, 0, 0, 0), 49 | (4, 'Smartphones', '', 0, 1, 0, 0, 0), 50 | (5, 'Others', '', 0, 1, 0, 0, 0); 51 | 52 | -- -------------------------------------------------------- 53 | 54 | -- 55 | -- Structure de la table `comments` 56 | -- 57 | 58 | CREATE TABLE `comments` ( 59 | `c_id` int(11) NOT NULL, 60 | `comment` text NOT NULL, 61 | `status` tinyint(4) NOT NULL, 62 | `comment_date` date NOT NULL, 63 | `item_id` int(11) NOT NULL, 64 | `user_id` int(11) NOT NULL 65 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; 66 | 67 | -- 68 | -- Déchargement des données de la table `comments` 69 | -- 70 | 71 | INSERT INTO `comments` (`c_id`, `comment`, `status`, `comment_date`, `item_id`, `user_id`) VALUES 72 | (1, 'I love this keyboard', 1, '2020-08-28', 2, 2), 73 | (9, 'This is a good book, thank you', 1, '2020-08-28', 15, 2); 74 | 75 | -- -------------------------------------------------------- 76 | 77 | -- 78 | -- Structure de la table `items` 79 | -- 80 | 81 | CREATE TABLE `items` ( 82 | `Item_ID` int(11) NOT NULL, 83 | `Name` varchar(255) NOT NULL, 84 | `Description` text NOT NULL, 85 | `Price` varchar(255) NOT NULL, 86 | `Add_Date` date NOT NULL, 87 | `Country_Made` varchar(255) NOT NULL, 88 | `Status` varchar(255) NOT NULL, 89 | `Rating` smallint(6) NOT NULL, 90 | `Approve` tinyint(4) NOT NULL DEFAULT 0, 91 | `Cat_ID` int(11) NOT NULL, 92 | `Member_ID` int(11) NOT NULL, 93 | `picture` varchar(255) NOT NULL, 94 | `contact` varchar(255) NOT NULL 95 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; 96 | 97 | -- 98 | -- Déchargement des données de la table `items` 99 | -- 100 | 101 | INSERT INTO `items` (`Item_ID`, `Name`, `Description`, `Price`, `Add_Date`, `Country_Made`, `Status`, `Rating`, `Approve`, `Cat_ID`, `Member_ID`, `picture`, `contact`) VALUES 102 | (1, 'Gaming Chair DXRacer', 'A new gaming chair from dxracer company high quality', '350', '2020-08-28', 'Maroc', '1', 0, 1, 1, 2, '9043072703_619sWFsXJ+L._AC_SY879_.jpg', ''), 103 | (2, 'Keyboard', 'keyboard blue switch RGB', '30', '2020-08-28', 'Maroc', '1', 0, 1, 1, 2, '9132677317_pro-x-keyboard-gallery-1.png', ''), 104 | (3, 'PC Portable', 'i7 9th gen 12Gb Ram double carte graphique Predator ecran 17\"', '1900', '2020-08-28', 'Maroc', '2', 0, 1, 3, 2, '1183001430_raw.jpg', '0612564852'), 105 | (4, 'PC desktop', 'Pc desktop for gamers', '800', '2020-08-28', 'Maroc', '2', 0, 1, 2, 2, '2118289353_tgf-PC.jpg', '0613357700'), 106 | (5, 'Houssam Mrabet', 'ssssssssssssssssssss', '15', '2020-08-28', 'Maroc', '4', 0, 1, 1, 2, '1515871950_l20m01.jpg', '0613357700'), 107 | (15, 'Midnight Sun', 'this not a phgysical book it\'s an e version', '5', '2020-08-28', 'France', '2', 0, 1, 5, 2, '8719133711_midnight_sun.jpg', '0613774702'); 108 | 109 | -- -------------------------------------------------------- 110 | 111 | -- 112 | -- Structure de la table `users` 113 | -- 114 | 115 | CREATE TABLE `users` ( 116 | `UserID` int(11) NOT NULL COMMENT 'To Identify User', 117 | `Username` varchar(255) NOT NULL COMMENT 'Username To Login', 118 | `Password` varchar(255) NOT NULL COMMENT 'Password To Login', 119 | `Email` varchar(255) NOT NULL, 120 | `FullName` varchar(255) NOT NULL, 121 | `GroupID` int(11) NOT NULL DEFAULT 0 COMMENT 'Identify User Group', 122 | `TrustStatus` int(11) NOT NULL DEFAULT 0 COMMENT 'Seller Rank', 123 | `RegStatus` int(11) NOT NULL DEFAULT 0 COMMENT 'User Approval', 124 | `Date` date NOT NULL, 125 | `avatar` varchar(255) NOT NULL 126 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; 127 | 128 | -- 129 | -- Déchargement des données de la table `users` 130 | -- 131 | 132 | INSERT INTO `users` (`UserID`, `Username`, `Password`, `Email`, `FullName`, `GroupID`, `TrustStatus`, `RegStatus`, `Date`, `avatar`) VALUES 133 | (1, 'Admin', '7af2d10b73ab7cd8f603937f7697cb5fe432c7ff', 'Admin@gmail.com', 'Admin Admin', 1, 1, 1, '2020-08-27', 'default.png'), 134 | (2, 'LMask', 'e9d155e1e377fed9a68863896a49308449f5b5f9', 'aymandebzi723@gmail.com', 'Aymane Debzi', 0, 0, 1, '2020-08-27', '7809775163_unnamed.jpg'); 135 | 136 | -- 137 | -- Index pour les tables déchargées 138 | -- 139 | 140 | -- 141 | -- Index pour la table `categories` 142 | -- 143 | ALTER TABLE `categories` 144 | ADD PRIMARY KEY (`ID`), 145 | ADD UNIQUE KEY `Name` (`Name`); 146 | 147 | -- 148 | -- Index pour la table `comments` 149 | -- 150 | ALTER TABLE `comments` 151 | ADD PRIMARY KEY (`c_id`), 152 | ADD KEY `items_comment` (`item_id`), 153 | ADD KEY `comment_user` (`user_id`); 154 | 155 | -- 156 | -- Index pour la table `items` 157 | -- 158 | ALTER TABLE `items` 159 | ADD PRIMARY KEY (`Item_ID`), 160 | ADD KEY `member_1` (`Member_ID`), 161 | ADD KEY `cat_1` (`Cat_ID`); 162 | 163 | -- 164 | -- Index pour la table `users` 165 | -- 166 | ALTER TABLE `users` 167 | ADD PRIMARY KEY (`UserID`), 168 | ADD UNIQUE KEY `Username` (`Username`); 169 | 170 | -- 171 | -- AUTO_INCREMENT pour les tables déchargées 172 | -- 173 | 174 | -- 175 | -- AUTO_INCREMENT pour la table `categories` 176 | -- 177 | ALTER TABLE `categories` 178 | MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; 179 | 180 | -- 181 | -- AUTO_INCREMENT pour la table `comments` 182 | -- 183 | ALTER TABLE `comments` 184 | MODIFY `c_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; 185 | 186 | -- 187 | -- AUTO_INCREMENT pour la table `items` 188 | -- 189 | ALTER TABLE `items` 190 | MODIFY `Item_ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; 191 | 192 | -- 193 | -- AUTO_INCREMENT pour la table `users` 194 | -- 195 | ALTER TABLE `users` 196 | MODIFY `UserID` int(11) NOT NULL AUTO_INCREMENT COMMENT 'To Identify User', AUTO_INCREMENT=3; 197 | 198 | -- 199 | -- Contraintes pour les tables déchargées 200 | -- 201 | 202 | -- 203 | -- Contraintes pour la table `comments` 204 | -- 205 | ALTER TABLE `comments` 206 | ADD CONSTRAINT `comment_user` FOREIGN KEY (`user_id`) REFERENCES `users` (`UserID`) ON DELETE CASCADE ON UPDATE CASCADE, 207 | ADD CONSTRAINT `items_comment` FOREIGN KEY (`item_id`) REFERENCES `items` (`Item_ID`) ON DELETE CASCADE ON UPDATE CASCADE; 208 | 209 | -- 210 | -- Contraintes pour la table `items` 211 | -- 212 | ALTER TABLE `items` 213 | ADD CONSTRAINT `cat_1` FOREIGN KEY (`Cat_ID`) REFERENCES `categories` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE, 214 | ADD CONSTRAINT `member_1` FOREIGN KEY (`Member_ID`) REFERENCES `users` (`UserID`) ON DELETE CASCADE ON UPDATE CASCADE; 215 | COMMIT; 216 | 217 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 218 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 219 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 220 | -------------------------------------------------------------------------------- /Ecommerce-website-PHP/README.md: -------------------------------------------------------------------------------- 1 | # Ecommerce Web App 2 | 3 | This is an ecommerce web application developed using PHP and MySQL, with Bootstrap for the user interface. The application allows visitors to browse products, view individual product descriptions, leave feedback in the comment section, and view seller information. Sellers need to register and await admin confirmation before they can start posting their products for sale. Each product requires admin approval before it is displayed to buyers. The admin has their own interface to manage seller accounts, products, comments, and other aspects of the application. 4 | 5 | ## Getting Started 6 | 7 | To get started with this ecommerce web app, follow the steps below: 8 | 9 | ### Prerequisites 10 | 11 | - PHP (version >= 7.0) 12 | - MySQL (version >= 5.7) 13 | - Web server (e.g., Apache) 14 | 15 | ### Installation 16 | 17 | 1. Clone the repository or download the source code. 18 | 19 | 2. Import the database into your local MySQL server: 20 | - Locate the database file (`database.sql`) in the project folder. 21 | - Import the database file into your MySQL server using a tool like phpMyAdmin or the MySQL command line. 22 | 23 | 3. Configure the database connection: 24 | - Open the `config.php` file in the project folder. 25 | - Update the database credentials (hostname, username, password, and database name) to match your local setup. 26 | 27 | 4. Start the web server: 28 | - Configure your web server to serve the project folder (e.g., set up a virtual host). 29 | - Ensure that PHP is properly configured with your web server. 30 | 31 | 5. Access the application: 32 | - Open a web browser and navigate to the configured URL for the application. 33 | - You should now be able to access the ecommerce web app. 34 | 35 | ## Features 36 | 37 | - User Registration: 38 | - Visitors can register as sellers to post products for sale. 39 | - Sellers must wait for admin confirmation before they can start posting products. 40 | 41 | - Product Listing: 42 | - Visitors can browse and view a list of available products. 43 | - Each product has a description page with detailed information. 44 | 45 | - Comment Section: 46 | - Users can leave feedback and comments on product description pages. 47 | 48 | - Seller Information: 49 | - Product descriptions display seller information. 50 | 51 | - Admin Interface: 52 | - The admin has a dedicated interface to manage seller accounts, products, and comments. 53 | - Admin approval is required for new seller registrations and product postings. 54 | 55 | ## Contributing 56 | 57 | Contributions are welcome! If you'd like to contribute to this ecommerce web app, please follow these steps: 58 | 59 | 1. Fork the repository. 60 | 61 | 2. Create a new branch for your feature or bug fix. 62 | 63 | 3. Make your changes and commit them to your branch. 64 | 65 | 4. Push your changes to your forked repository. 66 | 67 | 5. Submit a pull request describing your changes. 68 | 69 | ## License 70 | 71 | This project is licensed under the [MIT License](LICENSE). 72 | 73 | ## Contact 74 | 75 | For any inquiries or feedback, please contact [houssammrabet5@gmail.com](mailto:houssammrabet5@gmail.com). 76 | -------------------------------------------------------------------------------- /Ecommerce-website-PHP/Website/admin/categories.php: -------------------------------------------------------------------------------- 1 | prepare("SELECT * FROM categories WHERE parent = 0 ORDER BY Ordering $sort"); 34 | 35 | $stmt2->execute(); 36 | 37 | $cats = $stmt2->fetchAll(); 38 | 39 | if (! empty($cats)) { 40 | 41 | ?> 42 | 43 |

Manage Categories

44 |
45 |
46 |
47 | Manage Categories 48 |
49 | Ordering: [ 50 | Asc | 51 | Desc ] 52 | View: [ 53 | Full | 54 | Classic ] 55 |
56 |
57 |
58 | "; 61 | echo "
"; 62 | echo " Edit"; 63 | echo " Delete"; 64 | echo "
"; 65 | echo "

" . $cat['Name'] . '

'; 66 | echo "
"; 67 | echo "

"; if($cat['Description'] == '') { echo 'This category has no description'; } else { echo $cat['Description']; } echo "

"; 68 | if($cat['Visibility'] == 1) { echo ' Hidden'; } 69 | if($cat['Allow_Comment'] == 1) { echo ' Comment Disabled'; } 70 | if($cat['Allow_Ads'] == 1) { echo ' Ads Disabled'; } 71 | echo "
"; 72 | 73 | // Get Child Categories 74 | $childCats = getAllFrom("*", "categories", "where parent = {$cat['ID']}", "", "ID", "ASC"); 75 | if (! empty($childCats)) { 76 | echo "

Child Categories

"; 77 | echo ""; 85 | } 86 | 87 | echo "
"; 88 | echo "
"; 89 | } 90 | ?> 91 |
92 |
93 | Add New Category 94 | 95 | 96 | '; 99 | echo '
There\'s No Categories To Show
'; 100 | echo ' 101 | New Category 102 | '; 103 | echo ''; 104 | 105 | } ?> 106 | 107 | 110 | 111 |

Add New Category

112 |
113 |
114 | 115 |
116 | 117 |
118 | 119 |
120 |
121 | 122 | 123 |
124 | 125 |
126 | 127 |
128 |
129 | 130 | 131 |
132 | 133 |
134 | 135 |
136 |
137 | 138 | 139 |
140 | 141 |
142 | 151 |
152 |
153 | 154 | 155 |
156 | 157 |
158 |
159 | 160 | 161 |
162 |
163 | 164 | 165 |
166 |
167 |
168 | 169 | 170 |
171 | 172 |
173 |
174 | 175 | 176 |
177 |
178 | 179 | 180 |
181 |
182 |
183 | 184 | 185 |
186 | 187 |
188 |
189 | 190 | 191 |
192 |
193 | 194 | 195 |
196 |
197 |
198 | 199 | 200 |
201 |
202 | 203 |
204 |
205 | 206 |
207 |
208 | 209 | Insert Category"; 216 | echo "
"; 217 | 218 | // Get Variables From The Form 219 | 220 | $name = $_POST['name']; 221 | $desc = $_POST['description']; 222 | $parent = $_POST['parent']; 223 | $order = $_POST['ordering']; 224 | $visible = $_POST['visibility']; 225 | $comment = $_POST['commenting']; 226 | $ads = $_POST['ads']; 227 | 228 | // Check If Category Exist in Database 229 | 230 | $check = checkItem("Name", "categories", $name); 231 | 232 | if ($check == 1) { 233 | 234 | $theMsg = '
Sorry This Category Is Exist
'; 235 | 236 | redirectHome($theMsg, 'back'); 237 | 238 | } else { 239 | 240 | // Insert Category Info In Database 241 | 242 | $stmt = $con->prepare("INSERT INTO 243 | 244 | categories(Name, Description, parent, Ordering, Visibility, Allow_Comment, Allow_Ads) 245 | 246 | VALUES(:zname, :zdesc, :zparent, :zorder, :zvisible, :zcomment, :zads)"); 247 | 248 | $stmt->execute(array( 249 | 'zname' => $name, 250 | 'zdesc' => $desc, 251 | 'zparent' => $parent, 252 | 'zorder' => $order, 253 | 'zvisible' => $visible, 254 | 'zcomment' => $comment, 255 | 'zads' => $ads 256 | )); 257 | 258 | // Echo Success Message 259 | 260 | $theMsg = "
" . $stmt->rowCount() . ' Record Inserted
'; 261 | 262 | $seconds = 3; 263 | 264 | echo "
You Will Be Redirected to your profil After $seconds Seconds.
"; 265 | 266 | header("refresh:$seconds;url='categories.php'"); 267 | 268 | } 269 | 270 | } else { 271 | 272 | echo "
"; 273 | 274 | $theMsg = '
Sorry You Cant Browse This Page Directly
'; 275 | 276 | redirectHome($theMsg, 'back'); 277 | 278 | echo "
"; 279 | 280 | } 281 | 282 | echo "
"; 283 | 284 | } elseif ($do == 'Edit') { 285 | 286 | // Check If Get Request catid Is Numeric & Get Its Integer Value 287 | 288 | $catid = isset($_GET['catid']) && is_numeric($_GET['catid']) ? intval($_GET['catid']) : 0; 289 | 290 | // Select All Data Depend On This ID 291 | 292 | $stmt = $con->prepare("SELECT * FROM categories WHERE ID = ?"); 293 | 294 | // Execute Query 295 | 296 | $stmt->execute(array($catid)); 297 | 298 | // Fetch The Data 299 | 300 | $cat = $stmt->fetch(); 301 | 302 | // The Row Count 303 | 304 | $count = $stmt->rowCount(); 305 | 306 | // If There's Such ID Show The Form 307 | 308 | if ($count > 0) { ?> 309 | 310 |

Edit Category

311 |
312 |
313 | 314 | 315 |
316 | 317 |
318 | 319 |
320 |
321 | 322 | 323 |
324 | 325 |
326 | 327 |
328 |
329 | 330 | 331 |
332 | 333 |
334 | 335 |
336 |
337 | 338 | 339 |
340 | 341 |
342 | 353 |
354 |
355 | 356 | 357 |
358 | 359 |
360 |
361 | /> 362 | 363 |
364 |
365 | /> 366 | 367 |
368 |
369 |
370 | 371 | 372 |
373 | 374 |
375 |
376 | /> 377 | 378 |
379 |
380 | /> 381 | 382 |
383 |
384 |
385 | 386 | 387 |
388 | 389 |
390 |
391 | /> 392 | 393 |
394 |
395 | /> 396 | 397 |
398 |
399 |
400 | 401 | 402 |
403 |
404 | 405 |
406 |
407 | 408 |
409 |
410 | 411 | "; 418 | 419 | $theMsg = '
Theres No Such ID
'; 420 | 421 | redirectHome($theMsg); 422 | 423 | echo ""; 424 | 425 | } 426 | 427 | } elseif ($do == 'Update') { 428 | 429 | echo "

Update Category

"; 430 | echo "
"; 431 | 432 | if ($_SERVER['REQUEST_METHOD'] == 'POST') { 433 | 434 | // Get Variables From The Form 435 | 436 | $id = $_POST['catid']; 437 | $name = $_POST['name']; 438 | $desc = $_POST['description']; 439 | $order = $_POST['ordering']; 440 | $parent = $_POST['parent']; 441 | 442 | $visible = $_POST['visibility']; 443 | $comment = $_POST['commenting']; 444 | $ads = $_POST['ads']; 445 | 446 | // Update The Database With This Info 447 | 448 | $stmt = $con->prepare("UPDATE 449 | categories 450 | SET 451 | Name = ?, 452 | Description = ?, 453 | Ordering = ?, 454 | parent = ?, 455 | Visibility = ?, 456 | Allow_Comment = ?, 457 | Allow_Ads = ? 458 | WHERE 459 | ID = ?"); 460 | 461 | $stmt->execute(array($name, $desc, $order, $parent, $visible, $comment, $ads, $id)); 462 | 463 | // Echo Success Message 464 | 465 | $theMsg = "
" . $stmt->rowCount() . ' Record Updated
'; 466 | 467 | $seconds = 3; 468 | 469 | echo $theMsg; 470 | 471 | echo "
You Will Be Redirected to your profil After $seconds Seconds.
"; 472 | 473 | header("refresh:$seconds;url='categories.php'"); 474 | 475 | } else { 476 | 477 | $theMsg = '
Sorry You Cant Browse This Page Directly
'; 478 | 479 | redirectHome($theMsg); 480 | 481 | } 482 | 483 | echo "
"; 484 | 485 | } elseif ($do == 'Delete') { 486 | 487 | echo "

Delete Category

"; 488 | echo "
"; 489 | 490 | // Check If Get Request Catid Is Numeric & Get The Integer Value Of It 491 | 492 | $catid = isset($_GET['catid']) && is_numeric($_GET['catid']) ? intval($_GET['catid']) : 0; 493 | 494 | // Select All Data Depend On This ID 495 | 496 | $check = checkItem('ID', 'categories', $catid); 497 | 498 | // If There's Such ID Show The Form 499 | 500 | if ($check > 0) { 501 | 502 | $stmt = $con->prepare("DELETE FROM categories WHERE ID = :zid"); 503 | 504 | $stmt->bindParam(":zid", $catid); 505 | 506 | $stmt->execute(); 507 | 508 | $theMsg = "
" . $stmt->rowCount() . ' Record Deleted
'; 509 | 510 | redirectHome($theMsg, 'back'); 511 | 512 | } else { 513 | 514 | $theMsg = '
This ID is Not Exist
'; 515 | 516 | redirectHome($theMsg); 517 | 518 | } 519 | 520 | echo '
'; 521 | 522 | } 523 | 524 | include $tpl . 'footer.php'; 525 | 526 | } else { 527 | 528 | header('Location: index.php'); 529 | 530 | exit(); 531 | } 532 | 533 | ob_end_flush(); // Release The Output 534 | 535 | ?> -------------------------------------------------------------------------------- /Ecommerce-website-PHP/Website/admin/comments.php: -------------------------------------------------------------------------------- 1 | prepare("SELECT 29 | comments.*, items.Name AS Item_Name, users.Username AS Member 30 | FROM 31 | comments 32 | INNER JOIN 33 | items 34 | ON 35 | items.Item_ID = comments.item_id 36 | INNER JOIN 37 | users 38 | ON 39 | users.UserID = comments.user_id 40 | ORDER BY 41 | c_id DESC"); 42 | 43 | // Execute The Statement 44 | 45 | $stmt->execute(); 46 | 47 | // Assign To Variable 48 | 49 | $comments = $stmt->fetchAll(); 50 | 51 | if (! empty($comments)) { 52 | 53 | ?> 54 | 55 |

Manage Feedbacks

56 |
57 |
58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | "; 69 | echo ""; 70 | echo ""; 71 | echo ""; 72 | echo ""; 73 | echo ""; 82 | echo ""; 83 | } 84 | ?> 85 | 86 |
FeedbackItem NameUser NameAdded DateControl
" . $comment['comment'] . "" . $comment['Item_Name'] . "" . $comment['Member'] . "" . $comment['comment_date'] ." 74 | Delete "; 75 | if ($comment['status'] == 0) { 76 | echo " 79 | Approve"; 80 | } 81 | echo "
87 |
88 |
89 | 90 | '; 93 | echo '
There\'s No Comments To Show
'; 94 | echo ''; 95 | 96 | } ?> 97 | 98 | Delete Comment"; 103 | 104 | echo "
"; 105 | 106 | // Check If Get Request comid Is Numeric & Get The Integer Value Of It 107 | 108 | $comid = isset($_GET['comid']) && is_numeric($_GET['comid']) ? intval($_GET['comid']) : 0; 109 | 110 | // Select All Data Depend On This ID 111 | 112 | $check = checkItem('c_id', 'comments', $comid); 113 | 114 | // If There's Such ID Show The Form 115 | 116 | if ($check > 0) { 117 | 118 | $stmt = $con->prepare("DELETE FROM comments WHERE c_id = :zid"); 119 | 120 | $stmt->bindParam(":zid", $comid); 121 | 122 | $stmt->execute(); 123 | 124 | $theMsg = "
" . $stmt->rowCount() . ' Record Deleted
'; 125 | 126 | redirectHome($theMsg, 'back'); 127 | 128 | } else { 129 | 130 | $theMsg = '
This ID is Not Exist
'; 131 | 132 | redirectHome($theMsg); 133 | 134 | } 135 | 136 | echo '
'; 137 | 138 | } elseif ($do == 'Approve') { 139 | 140 | echo "

Approve Comment

"; 141 | echo "
"; 142 | 143 | // Check If Get Request comid Is Numeric & Get The Integer Value Of It 144 | 145 | $comid = isset($_GET['comid']) && is_numeric($_GET['comid']) ? intval($_GET['comid']) : 0; 146 | 147 | // Select All Data Depend On This ID 148 | 149 | $check = checkItem('c_id', 'comments', $comid); 150 | 151 | // If There's Such ID Show The Form 152 | 153 | if ($check > 0) { 154 | 155 | $stmt = $con->prepare("UPDATE comments SET status = 1 WHERE c_id = ?"); 156 | 157 | $stmt->execute(array($comid)); 158 | 159 | $theMsg = "
" . $stmt->rowCount() . ' Record Approved
'; 160 | 161 | redirectHome($theMsg, 'back'); 162 | 163 | } else { 164 | 165 | $theMsg = '
This ID is Not Exist
'; 166 | 167 | redirectHome($theMsg); 168 | 169 | } 170 | 171 | echo '
'; 172 | 173 | } 174 | 175 | include $tpl . 'footer.php'; 176 | 177 | } else { 178 | 179 | header('Location: index.php'); 180 | 181 | exit(); 182 | } 183 | 184 | ob_end_flush(); // Release The Output 185 | 186 | ?> -------------------------------------------------------------------------------- /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 | } -------------------------------------------------------------------------------- /Ecommerce-website-PHP/Website/admin/copy_template.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Ecommerce-website-PHP/Website/admin/dashboard.php: -------------------------------------------------------------------------------- 1 | 26 | 27 |
28 |
29 |

Dashboard

30 |
31 |
32 |
33 | 34 |
35 | Total Members 36 | 37 | 38 | 39 |
40 |
41 |
42 |
43 |
44 | 45 |
46 | Total Items 47 | 48 | 49 | 50 |
51 |
52 |
53 |
54 |
55 | 56 |
57 | Total Feedbacks 58 | 59 | 60 | 61 |
62 |
63 |
64 |
65 |
66 |
67 | 68 |
69 |
70 |
71 |
72 |
73 |
74 | 75 | Latest Registerd Users 76 | 77 | 78 | 79 |
80 |
81 | 105 |
106 |
107 |
108 |
109 |
110 |
111 | Latest Items 112 | 113 | 114 | 115 |
116 |
117 | 141 |
142 |
143 |
144 |
145 | 146 |
147 |
148 |
149 |
150 | 151 | Latest Feedbacks 152 | 153 | 154 | 155 |
156 |
157 | prepare("SELECT 159 | comments.*, users.Username AS Member 160 | FROM 161 | comments 162 | INNER JOIN 163 | users 164 | ON 165 | users.UserID = comments.user_id 166 | ORDER BY 167 | c_id DESC 168 | LIMIT $numComments"); 169 | 170 | $stmt->execute(); 171 | $comments = $stmt->fetchAll(); 172 | 173 | if (! empty($comments)) { 174 | foreach ($comments as $comment) { 175 | echo '
'; 176 | echo ' 177 | 178 | ' . $comment['Member'] . ''; 179 | echo '

' . $comment['comment'] . '

'; 180 | echo '
'; 181 | } 182 | } else { 183 | echo 'There\'s No Comments To Show'; 184 | } 185 | ?> 186 |
187 |
188 |
189 |
190 | 191 |
192 |
193 | 194 | -------------------------------------------------------------------------------- /Ecommerce-website-PHP/Website/admin/includes/functions/functions.php: -------------------------------------------------------------------------------- 1 | prepare("SELECT $field FROM $table $where $and ORDER BY $orderfield $ordering"); 13 | 14 | $getAll->execute(); 15 | 16 | $all = $getAll->fetchAll(); 17 | 18 | return $all; 19 | 20 | } 21 | 22 | 23 | /* 24 | ** Title Function v1.0 25 | ** Title Function That Echo The Page Title In Case The Page 26 | ** Has The Variable $pageTitle And Echo Defult Title For Other Pages 27 | */ 28 | 29 | function getTitle() { 30 | 31 | global $pageTitle; 32 | 33 | if (isset($pageTitle)) { 34 | 35 | echo $pageTitle; 36 | 37 | } else { 38 | 39 | echo 'Default'; 40 | 41 | } 42 | } 43 | 44 | /* 45 | ** Home Redirect Function v2.0 46 | ** This Function Accept Parameters 47 | ** $theMsg = Echo The Message [ Error | Success | Warning ] 48 | ** $url = The Link You Want To Redirect To 49 | ** $seconds = Seconds Before Redirecting 50 | */ 51 | 52 | function redirectHome($theMsg, $url = null, $seconds = 3) { 53 | 54 | if ($url === null) { 55 | 56 | $url = 'index.php'; 57 | 58 | $link = 'Homepage'; 59 | 60 | } else { 61 | 62 | if (isset($_SERVER['HTTP_REFERER']) && $_SERVER['HTTP_REFERER'] !== '') { 63 | 64 | $url = $_SERVER['HTTP_REFERER']; 65 | 66 | $link = 'Previous Page'; 67 | 68 | } else { 69 | 70 | $url = 'index.php'; 71 | 72 | $link = 'Homepage'; 73 | 74 | } 75 | 76 | } 77 | 78 | echo $theMsg; 79 | 80 | echo "
You Will Be Redirected to $link After $seconds Seconds.
"; 81 | 82 | header("refresh:$seconds;url=$url"); 83 | 84 | exit(); 85 | 86 | } 87 | 88 | /* 89 | ** Check Items Function v1.0 90 | ** Function to Check Item In Database [ Function Accept Parameters ] 91 | ** $select = The Item To Select [ Example: user, item, category ] 92 | ** $from = The Table To Select From [ Example: users, items, categories ] 93 | ** $value = The Value Of Select [ Example: Osama, Box, Electronics ] 94 | */ 95 | 96 | function checkItem($select, $from, $value) { 97 | 98 | global $con; 99 | 100 | $statement = $con->prepare("SELECT $select FROM $from WHERE $select = ?"); 101 | 102 | $statement->execute(array($value)); 103 | 104 | $count = $statement->rowCount(); 105 | 106 | return $count; 107 | 108 | } 109 | 110 | /* 111 | ** Count Number Of Items Function v1.0 112 | ** Function To Count Number Of Items Rows 113 | ** $item = The Item To Count 114 | ** $table = The Table To Choose From 115 | */ 116 | 117 | function countItems($item, $table) { 118 | 119 | global $con; 120 | 121 | $stmt2 = $con->prepare("SELECT COUNT($item) FROM $table"); 122 | 123 | $stmt2->execute(); 124 | 125 | return $stmt2->fetchColumn(); 126 | 127 | } 128 | 129 | /* 130 | ** Get Latest Records Function v1.0 131 | ** Function To Get Latest Items From Database [ Users, Items, Comments ] 132 | ** $select = Field To Select 133 | ** $table = The Table To Choose From 134 | ** $order = The Desc Ordering 135 | ** $limit = Number Of Records To Get 136 | */ 137 | 138 | function getLatest($select, $table, $order, $limit = 5) { 139 | 140 | global $con; 141 | 142 | $getStmt = $con->prepare("SELECT $select FROM $table ORDER BY $order DESC LIMIT $limit"); 143 | 144 | $getStmt->execute(); 145 | 146 | $rows = $getStmt->fetchAll(); 147 | 148 | return $rows; 149 | 150 | } -------------------------------------------------------------------------------- /Ecommerce-website-PHP/Website/admin/includes/languages/arabic.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/engineers-planet/PHP_Free_Downloads/ba8be31590052331a602e970dd2a14ad528c6420/Ecommerce-website-PHP/Website/admin/includes/languages/arabic.php -------------------------------------------------------------------------------- /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/footer.php: -------------------------------------------------------------------------------- 1 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /Ecommerce-website-PHP/Website/admin/includes/templates/header.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | <?php getTitle() ?> 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Ecommerce-website-PHP/Website/admin/includes/templates/navbar.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /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 |
52 |

Admin Login

53 | 54 | 55 | 56 |
57 | 58 | -------------------------------------------------------------------------------- /Ecommerce-website-PHP/Website/admin/init.php: -------------------------------------------------------------------------------- 1 | li > a, 59 | .navbar-brand { 60 | padding: 15px 12px; 61 | } 62 | 63 | .navbar-brand { 64 | font-size: 1em; 65 | } 66 | 67 | .navbar-inverse .navbar-nav > .open>a, 68 | .navbar-inverse .navbar-nav > .open>a:focus, 69 | .navbar-inverse .navbar-nav > .open>a:hover, 70 | .dropdown-menu { 71 | background-color: #3498db; 72 | } 73 | 74 | .dropdown-menu { 75 | min-width: 180px; 76 | padding: 0; 77 | font-size: 1em; 78 | border: none; 79 | border-radius: 0; 80 | } 81 | 82 | .dropdown-menu > li > a { 83 | color: #FFF; 84 | padding: 10px 15px; 85 | } 86 | 87 | .dropdown-menu > li > a:focus, 88 | .dropdown-menu > li > a:hover { 89 | color: #FFF; 90 | background-color: #8e44ad; 91 | } 92 | 93 | .form-control { 94 | position: relative; 95 | } 96 | 97 | /* End Bootstrap Edits */ 98 | 99 | /* Start Dashboard Page */ 100 | 101 | .home-stats .stat { 102 | padding: 20px; 103 | font-size: 15px; 104 | color: #FFF; 105 | border-radius: 10px; 106 | position: relative; 107 | overflow: hidden; 108 | } 109 | 110 | .home-stats .stat i { 111 | position: absolute; 112 | font-size: 80px; 113 | top: 35px; 114 | left: 30px; 115 | } 116 | 117 | .home-stats .stat .info { 118 | float: right; 119 | } 120 | 121 | .home-stats .stat a { 122 | color: #FFF; 123 | } 124 | 125 | .home-stats .stat a:hover { 126 | text-decoration: none; 127 | } 128 | 129 | .home-stats .stat span { 130 | display: block; 131 | font-size: 60px; 132 | } 133 | 134 | .home-stats .st-members { 135 | background-color: #3498db; 136 | } 137 | 138 | .home-stats .st-pending { 139 | background-color: #c0392b; 140 | } 141 | 142 | .home-stats .st-items { 143 | background-color: #d35400; 144 | } 145 | 146 | .home-stats .st-comments { 147 | background-color: #8e44ad; 148 | } 149 | 150 | .latest { 151 | margin-top: 30px; 152 | } 153 | 154 | .latest .toggle-info { 155 | color: #999; 156 | cursor: pointer 157 | } 158 | 159 | .latest .toggle-info:hover { 160 | color: #444; 161 | } 162 | 163 | .latest-users { 164 | margin-bottom: 0; 165 | } 166 | 167 | .latest-users li { 168 | padding: 10px; 169 | overflow: hidden; 170 | } 171 | 172 | .latest-users li:nth-child(odd) { 173 | background-color: #EEE; 174 | } 175 | 176 | .latest-users .btn-success, 177 | .latest-users .btn-info { 178 | padding: 2px 8px; 179 | } 180 | 181 | .latest-users .btn-info { 182 | margin-right: 5px; 183 | } 184 | 185 | .latest .comment-box { 186 | margin: 5px 0 10px; 187 | } 188 | 189 | .latest .comment-box .member-n, 190 | .latest .comment-box .member-c { 191 | float: left; 192 | } 193 | 194 | .latest .comment-box .member-n { 195 | width: 80px; 196 | text-align: center; 197 | margin-right: 20px; 198 | position: relative; 199 | top: 10px; 200 | } 201 | 202 | .latest .comment-box .member-c { 203 | width: calc(100% - 100px); 204 | background-color: #EFEFEF; 205 | padding: 10px; 206 | position: relative; 207 | } 208 | 209 | .latest .comment-box .member-c:before { 210 | content: ""; 211 | display: block; 212 | position: absolute; 213 | left: -28px; 214 | top: 5px; 215 | width: 0; 216 | height: 0; 217 | border-style: solid; 218 | border-color: transparent #EFEFEF transparent transparent; 219 | border-width: 15px; 220 | } 221 | 222 | /* End Dashboard Page */ 223 | 224 | /* Start Members Page */ 225 | 226 | h1 { 227 | font-size: 55px; 228 | margin: 40px 0; 229 | font-weight: bold; 230 | color: #666; 231 | } 232 | 233 | .show-pass { 234 | position: absolute; 235 | top: 6px; 236 | right: -30px; 237 | } 238 | 239 | .manage-members img { 240 | width: 50px; 241 | height: 50px; 242 | } 243 | 244 | .main-table { 245 | -webkit-box-shadow: 0 3px 10px #CCC; 246 | -moz-box-shadow: 0 3px 10px #CCC; 247 | box-shadow: 0 3px 10px #CCC; 248 | } 249 | 250 | .main-table td { 251 | background-color: #FFF; 252 | vertical-align: middle !important; 253 | } 254 | 255 | .main-table tr:first-child td { /* You Can Use Thead */ 256 | background-color: #333; 257 | color: #FFF; 258 | } 259 | 260 | .main-table .btn { 261 | padding: 3px 10px; 262 | } 263 | 264 | .activate { 265 | margin-left: 5px; 266 | } 267 | 268 | /* End Members Page */ 269 | 270 | /* Start Category Page */ 271 | 272 | .categories .panel-heading { 273 | color: #959595; 274 | font-weight: bold; 275 | } 276 | 277 | .categories .panel-heading i { 278 | position: relative; 279 | top: 1px; 280 | } 281 | 282 | .categories .panel-body { 283 | padding: 0; 284 | } 285 | 286 | .categories .option a { 287 | color: #888; 288 | text-decoration: none; 289 | } 290 | 291 | .categories .option span { 292 | color: #888; 293 | cursor: pointer; 294 | } 295 | 296 | .categories .option .active { 297 | color: #F00 298 | } 299 | 300 | .categories hr { 301 | margin-top: 0; 302 | margin-bottom: 0; 303 | } 304 | 305 | .categories .cat { 306 | padding: 15px; 307 | position: relative; 308 | overflow: hidden; 309 | } 310 | 311 | .categories .cat:hover { 312 | background-color: #EEE; 313 | } 314 | 315 | .categories .cat:hover .hidden-buttons { 316 | right: 10px; 317 | } 318 | 319 | .categories .cat .hidden-buttons { 320 | -webkit-transition: all .5s ease-in-out; 321 | -moz-transition: all .5s ease-in-out; 322 | transition: all .5s ease-in-out; 323 | position: absolute; 324 | top: 15px; 325 | right: -120px; 326 | } 327 | 328 | .categories .cat .hidden-buttons a { 329 | margin-right: 5px; 330 | } 331 | 332 | .categories .cat h3 { 333 | margin: 0; 334 | cursor: pointer; 335 | font-weight: bold; 336 | color: #6A6A6A; 337 | } 338 | 339 | .categories .cat .full-view p { 340 | margin: 10px 0; 341 | color: #707070; 342 | } 343 | 344 | .categories .cat:last-of-type ~ hr { 345 | display: none; 346 | } 347 | 348 | .categories .cat .cat-span { 349 | color: #FFF; 350 | padding: 4px 6px; 351 | margin-right: 6px; 352 | border-radius: 6px 353 | } 354 | 355 | .categories .cat .visibility { 356 | background-color: #d35400 357 | } 358 | 359 | .categories .cat .commenting { 360 | background-color: #2c3e50 361 | } 362 | 363 | .categories .cat .advertises { 364 | background-color: #c0392b 365 | } 366 | 367 | .categories .add-category { 368 | margin-top: -10px; 369 | margin-bottom: 30px; 370 | } 371 | 372 | .categories .child-head { 373 | margin: 15px 0 10px; 374 | font-weight: bold; 375 | font-size: 16px; 376 | color: #22ab79; 377 | } 378 | 379 | .categories .child-cats { 380 | margin: 0; 381 | } 382 | 383 | .categories .child-cats li { 384 | margin-left: 15px; 385 | } 386 | 387 | .categories .child-cats li:before { 388 | content: "- "; 389 | } 390 | 391 | .categories .show-delete { 392 | color: #F00; 393 | display: none; 394 | } 395 | 396 | /* End Category Page */ 397 | 398 | /* Footer Begin */ 399 | /* 400 | footer{ 401 | background-color: #191E22; 402 | color: #6A6E71; 403 | text-align: center; 404 | padding: 20px 0; 405 | position: fixed; 406 | bottom: 0; 407 | width: 100%; 408 | } 409 | 410 | footer span{ 411 | font-size: 14px; 412 | } 413 | 414 | footer ul{ 415 | list-style: none; 416 | padding-left: 0; 417 | margin: 10px 0 0; 418 | cursor: default; 419 | } 420 | 421 | footer ul li{ 422 | display: inline-block; 423 | width: 24px; 424 | height: 24px; 425 | cursor: pointer; 426 | } 427 | */ 428 | /* Footer End */ -------------------------------------------------------------------------------- /Ecommerce-website-PHP/Website/admin/layout/css/font-awesome.min.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Font Awesome 4.5.0 by @davegandy - http://fontawesome.io - @fontawesome 3 | * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License) 4 | */@font-face{font-family:'FontAwesome';src:url('../fonts/fontawesome-webfont.eot?v=4.5.0');src:url('../fonts/fontawesome-webfont.eot?#iefix&v=4.5.0') format('embedded-opentype'),url('../fonts/fontawesome-webfont.woff2?v=4.5.0') format('woff2'),url('../fonts/fontawesome-webfont.woff?v=4.5.0') format('woff'),url('../fonts/fontawesome-webfont.ttf?v=4.5.0') format('truetype'),url('../fonts/fontawesome-webfont.svg?v=4.5.0#fontawesomeregular') format('svg');font-weight:normal;font-style:normal}.fa{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fa-lg{font-size:1.33333333em;line-height:.75em;vertical-align:-15%}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-fw{width:1.28571429em;text-align:center}.fa-ul{padding-left:0;margin-left:2.14285714em;list-style-type:none}.fa-ul>li{position:relative}.fa-li{position:absolute;left:-2.14285714em;width:2.14285714em;top:.14285714em;text-align:center}.fa-li.fa-lg{left:-1.85714286em}.fa-border{padding:.2em .25em .15em;border:solid .08em #eee;border-radius:.1em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left{margin-right:.3em}.fa.fa-pull-right{margin-left:.3em}.pull-right{float:right}.pull-left{float:left}.fa.pull-left{margin-right:.3em}.fa.pull-right{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s infinite linear;animation:fa-spin 2s infinite linear}.fa-pulse{-webkit-animation:fa-spin 1s infinite steps(8);animation:fa-spin 1s infinite steps(8)}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.fa-rotate-90{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=1);-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2);-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=3);-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1);-webkit-transform:scale(-1, 1);-ms-transform:scale(-1, 1);transform:scale(-1, 1)}.fa-flip-vertical{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1);-webkit-transform:scale(1, -1);-ms-transform:scale(1, -1);transform:scale(1, -1)}:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270,:root .fa-flip-horizontal,:root .fa-flip-vertical{filter:none}.fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.fa-stack-1x,.fa-stack-2x{position:absolute;left:0;width:100%;text-align:center}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-glass:before{content:"\f000"}.fa-music:before{content:"\f001"}.fa-search:before{content:"\f002"}.fa-envelope-o:before{content:"\f003"}.fa-heart:before{content:"\f004"}.fa-star:before{content:"\f005"}.fa-star-o:before{content:"\f006"}.fa-user:before{content:"\f007"}.fa-film:before{content:"\f008"}.fa-th-large:before{content:"\f009"}.fa-th:before{content:"\f00a"}.fa-th-list:before{content:"\f00b"}.fa-check:before{content:"\f00c"}.fa-remove:before,.fa-close:before,.fa-times:before{content:"\f00d"}.fa-search-plus:before{content:"\f00e"}.fa-search-minus:before{content:"\f010"}.fa-power-off:before{content:"\f011"}.fa-signal:before{content:"\f012"}.fa-gear:before,.fa-cog:before{content:"\f013"}.fa-trash-o:before{content:"\f014"}.fa-home:before{content:"\f015"}.fa-file-o:before{content:"\f016"}.fa-clock-o:before{content:"\f017"}.fa-road:before{content:"\f018"}.fa-download:before{content:"\f019"}.fa-arrow-circle-o-down:before{content:"\f01a"}.fa-arrow-circle-o-up:before{content:"\f01b"}.fa-inbox:before{content:"\f01c"}.fa-play-circle-o:before{content:"\f01d"}.fa-rotate-right:before,.fa-repeat:before{content:"\f01e"}.fa-refresh:before{content:"\f021"}.fa-list-alt:before{content:"\f022"}.fa-lock:before{content:"\f023"}.fa-flag:before{content:"\f024"}.fa-headphones:before{content:"\f025"}.fa-volume-off:before{content:"\f026"}.fa-volume-down:before{content:"\f027"}.fa-volume-up:before{content:"\f028"}.fa-qrcode:before{content:"\f029"}.fa-barcode:before{content:"\f02a"}.fa-tag:before{content:"\f02b"}.fa-tags:before{content:"\f02c"}.fa-book:before{content:"\f02d"}.fa-bookmark:before{content:"\f02e"}.fa-print:before{content:"\f02f"}.fa-camera:before{content:"\f030"}.fa-font:before{content:"\f031"}.fa-bold:before{content:"\f032"}.fa-italic:before{content:"\f033"}.fa-text-height:before{content:"\f034"}.fa-text-width:before{content:"\f035"}.fa-align-left:before{content:"\f036"}.fa-align-center:before{content:"\f037"}.fa-align-right:before{content:"\f038"}.fa-align-justify:before{content:"\f039"}.fa-list:before{content:"\f03a"}.fa-dedent:before,.fa-outdent:before{content:"\f03b"}.fa-indent:before{content:"\f03c"}.fa-video-camera:before{content:"\f03d"}.fa-photo:before,.fa-image:before,.fa-picture-o:before{content:"\f03e"}.fa-pencil:before{content:"\f040"}.fa-map-marker:before{content:"\f041"}.fa-adjust:before{content:"\f042"}.fa-tint:before{content:"\f043"}.fa-edit:before,.fa-pencil-square-o:before{content:"\f044"}.fa-share-square-o:before{content:"\f045"}.fa-check-square-o:before{content:"\f046"}.fa-arrows:before{content:"\f047"}.fa-step-backward:before{content:"\f048"}.fa-fast-backward:before{content:"\f049"}.fa-backward:before{content:"\f04a"}.fa-play:before{content:"\f04b"}.fa-pause:before{content:"\f04c"}.fa-stop:before{content:"\f04d"}.fa-forward:before{content:"\f04e"}.fa-fast-forward:before{content:"\f050"}.fa-step-forward:before{content:"\f051"}.fa-eject:before{content:"\f052"}.fa-chevron-left:before{content:"\f053"}.fa-chevron-right:before{content:"\f054"}.fa-plus-circle:before{content:"\f055"}.fa-minus-circle:before{content:"\f056"}.fa-times-circle:before{content:"\f057"}.fa-check-circle:before{content:"\f058"}.fa-question-circle:before{content:"\f059"}.fa-info-circle:before{content:"\f05a"}.fa-crosshairs:before{content:"\f05b"}.fa-times-circle-o:before{content:"\f05c"}.fa-check-circle-o:before{content:"\f05d"}.fa-ban:before{content:"\f05e"}.fa-arrow-left:before{content:"\f060"}.fa-arrow-right:before{content:"\f061"}.fa-arrow-up:before{content:"\f062"}.fa-arrow-down:before{content:"\f063"}.fa-mail-forward:before,.fa-share:before{content:"\f064"}.fa-expand:before{content:"\f065"}.fa-compress:before{content:"\f066"}.fa-plus:before{content:"\f067"}.fa-minus:before{content:"\f068"}.fa-asterisk:before{content:"\f069"}.fa-exclamation-circle:before{content:"\f06a"}.fa-gift:before{content:"\f06b"}.fa-leaf:before{content:"\f06c"}.fa-fire:before{content:"\f06d"}.fa-eye:before{content:"\f06e"}.fa-eye-slash:before{content:"\f070"}.fa-warning:before,.fa-exclamation-triangle:before{content:"\f071"}.fa-plane:before{content:"\f072"}.fa-calendar:before{content:"\f073"}.fa-random:before{content:"\f074"}.fa-comment:before{content:"\f075"}.fa-magnet:before{content:"\f076"}.fa-chevron-up:before{content:"\f077"}.fa-chevron-down:before{content:"\f078"}.fa-retweet:before{content:"\f079"}.fa-shopping-cart:before{content:"\f07a"}.fa-folder:before{content:"\f07b"}.fa-folder-open:before{content:"\f07c"}.fa-arrows-v:before{content:"\f07d"}.fa-arrows-h:before{content:"\f07e"}.fa-bar-chart-o:before,.fa-bar-chart:before{content:"\f080"}.fa-twitter-square:before{content:"\f081"}.fa-facebook-square:before{content:"\f082"}.fa-camera-retro:before{content:"\f083"}.fa-key:before{content:"\f084"}.fa-gears:before,.fa-cogs:before{content:"\f085"}.fa-comments:before{content:"\f086"}.fa-thumbs-o-up:before{content:"\f087"}.fa-thumbs-o-down:before{content:"\f088"}.fa-star-half:before{content:"\f089"}.fa-heart-o:before{content:"\f08a"}.fa-sign-out:before{content:"\f08b"}.fa-linkedin-square:before{content:"\f08c"}.fa-thumb-tack:before{content:"\f08d"}.fa-external-link:before{content:"\f08e"}.fa-sign-in:before{content:"\f090"}.fa-trophy:before{content:"\f091"}.fa-github-square:before{content:"\f092"}.fa-upload:before{content:"\f093"}.fa-lemon-o:before{content:"\f094"}.fa-phone:before{content:"\f095"}.fa-square-o:before{content:"\f096"}.fa-bookmark-o:before{content:"\f097"}.fa-phone-square:before{content:"\f098"}.fa-twitter:before{content:"\f099"}.fa-facebook-f:before,.fa-facebook:before{content:"\f09a"}.fa-github:before{content:"\f09b"}.fa-unlock:before{content:"\f09c"}.fa-credit-card:before{content:"\f09d"}.fa-feed:before,.fa-rss:before{content:"\f09e"}.fa-hdd-o:before{content:"\f0a0"}.fa-bullhorn:before{content:"\f0a1"}.fa-bell:before{content:"\f0f3"}.fa-certificate:before{content:"\f0a3"}.fa-hand-o-right:before{content:"\f0a4"}.fa-hand-o-left:before{content:"\f0a5"}.fa-hand-o-up:before{content:"\f0a6"}.fa-hand-o-down:before{content:"\f0a7"}.fa-arrow-circle-left:before{content:"\f0a8"}.fa-arrow-circle-right:before{content:"\f0a9"}.fa-arrow-circle-up:before{content:"\f0aa"}.fa-arrow-circle-down:before{content:"\f0ab"}.fa-globe:before{content:"\f0ac"}.fa-wrench:before{content:"\f0ad"}.fa-tasks:before{content:"\f0ae"}.fa-filter:before{content:"\f0b0"}.fa-briefcase:before{content:"\f0b1"}.fa-arrows-alt:before{content:"\f0b2"}.fa-group:before,.fa-users:before{content:"\f0c0"}.fa-chain:before,.fa-link:before{content:"\f0c1"}.fa-cloud:before{content:"\f0c2"}.fa-flask:before{content:"\f0c3"}.fa-cut:before,.fa-scissors:before{content:"\f0c4"}.fa-copy:before,.fa-files-o:before{content:"\f0c5"}.fa-paperclip:before{content:"\f0c6"}.fa-save:before,.fa-floppy-o:before{content:"\f0c7"}.fa-square:before{content:"\f0c8"}.fa-navicon:before,.fa-reorder:before,.fa-bars:before{content:"\f0c9"}.fa-list-ul:before{content:"\f0ca"}.fa-list-ol:before{content:"\f0cb"}.fa-strikethrough:before{content:"\f0cc"}.fa-underline:before{content:"\f0cd"}.fa-table:before{content:"\f0ce"}.fa-magic:before{content:"\f0d0"}.fa-truck:before{content:"\f0d1"}.fa-pinterest:before{content:"\f0d2"}.fa-pinterest-square:before{content:"\f0d3"}.fa-google-plus-square:before{content:"\f0d4"}.fa-google-plus:before{content:"\f0d5"}.fa-money:before{content:"\f0d6"}.fa-caret-down:before{content:"\f0d7"}.fa-caret-up:before{content:"\f0d8"}.fa-caret-left:before{content:"\f0d9"}.fa-caret-right:before{content:"\f0da"}.fa-columns:before{content:"\f0db"}.fa-unsorted:before,.fa-sort:before{content:"\f0dc"}.fa-sort-down:before,.fa-sort-desc:before{content:"\f0dd"}.fa-sort-up:before,.fa-sort-asc:before{content:"\f0de"}.fa-envelope:before{content:"\f0e0"}.fa-linkedin:before{content:"\f0e1"}.fa-rotate-left:before,.fa-undo:before{content:"\f0e2"}.fa-legal:before,.fa-gavel:before{content:"\f0e3"}.fa-dashboard:before,.fa-tachometer:before{content:"\f0e4"}.fa-comment-o:before{content:"\f0e5"}.fa-comments-o:before{content:"\f0e6"}.fa-flash:before,.fa-bolt:before{content:"\f0e7"}.fa-sitemap:before{content:"\f0e8"}.fa-umbrella:before{content:"\f0e9"}.fa-paste:before,.fa-clipboard:before{content:"\f0ea"}.fa-lightbulb-o:before{content:"\f0eb"}.fa-exchange:before{content:"\f0ec"}.fa-cloud-download:before{content:"\f0ed"}.fa-cloud-upload:before{content:"\f0ee"}.fa-user-md:before{content:"\f0f0"}.fa-stethoscope:before{content:"\f0f1"}.fa-suitcase:before{content:"\f0f2"}.fa-bell-o:before{content:"\f0a2"}.fa-coffee:before{content:"\f0f4"}.fa-cutlery:before{content:"\f0f5"}.fa-file-text-o:before{content:"\f0f6"}.fa-building-o:before{content:"\f0f7"}.fa-hospital-o:before{content:"\f0f8"}.fa-ambulance:before{content:"\f0f9"}.fa-medkit:before{content:"\f0fa"}.fa-fighter-jet:before{content:"\f0fb"}.fa-beer:before{content:"\f0fc"}.fa-h-square:before{content:"\f0fd"}.fa-plus-square:before{content:"\f0fe"}.fa-angle-double-left:before{content:"\f100"}.fa-angle-double-right:before{content:"\f101"}.fa-angle-double-up:before{content:"\f102"}.fa-angle-double-down:before{content:"\f103"}.fa-angle-left:before{content:"\f104"}.fa-angle-right:before{content:"\f105"}.fa-angle-up:before{content:"\f106"}.fa-angle-down:before{content:"\f107"}.fa-desktop:before{content:"\f108"}.fa-laptop:before{content:"\f109"}.fa-tablet:before{content:"\f10a"}.fa-mobile-phone:before,.fa-mobile:before{content:"\f10b"}.fa-circle-o:before{content:"\f10c"}.fa-quote-left:before{content:"\f10d"}.fa-quote-right:before{content:"\f10e"}.fa-spinner:before{content:"\f110"}.fa-circle:before{content:"\f111"}.fa-mail-reply:before,.fa-reply:before{content:"\f112"}.fa-github-alt:before{content:"\f113"}.fa-folder-o:before{content:"\f114"}.fa-folder-open-o:before{content:"\f115"}.fa-smile-o:before{content:"\f118"}.fa-frown-o:before{content:"\f119"}.fa-meh-o:before{content:"\f11a"}.fa-gamepad:before{content:"\f11b"}.fa-keyboard-o:before{content:"\f11c"}.fa-flag-o:before{content:"\f11d"}.fa-flag-checkered:before{content:"\f11e"}.fa-terminal:before{content:"\f120"}.fa-code:before{content:"\f121"}.fa-mail-reply-all:before,.fa-reply-all:before{content:"\f122"}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:"\f123"}.fa-location-arrow:before{content:"\f124"}.fa-crop:before{content:"\f125"}.fa-code-fork:before{content:"\f126"}.fa-unlink:before,.fa-chain-broken:before{content:"\f127"}.fa-question:before{content:"\f128"}.fa-info:before{content:"\f129"}.fa-exclamation:before{content:"\f12a"}.fa-superscript:before{content:"\f12b"}.fa-subscript:before{content:"\f12c"}.fa-eraser:before{content:"\f12d"}.fa-puzzle-piece:before{content:"\f12e"}.fa-microphone:before{content:"\f130"}.fa-microphone-slash:before{content:"\f131"}.fa-shield:before{content:"\f132"}.fa-calendar-o:before{content:"\f133"}.fa-fire-extinguisher:before{content:"\f134"}.fa-rocket:before{content:"\f135"}.fa-maxcdn:before{content:"\f136"}.fa-chevron-circle-left:before{content:"\f137"}.fa-chevron-circle-right:before{content:"\f138"}.fa-chevron-circle-up:before{content:"\f139"}.fa-chevron-circle-down:before{content:"\f13a"}.fa-html5:before{content:"\f13b"}.fa-css3:before{content:"\f13c"}.fa-anchor:before{content:"\f13d"}.fa-unlock-alt:before{content:"\f13e"}.fa-bullseye:before{content:"\f140"}.fa-ellipsis-h:before{content:"\f141"}.fa-ellipsis-v:before{content:"\f142"}.fa-rss-square:before{content:"\f143"}.fa-play-circle:before{content:"\f144"}.fa-ticket:before{content:"\f145"}.fa-minus-square:before{content:"\f146"}.fa-minus-square-o:before{content:"\f147"}.fa-level-up:before{content:"\f148"}.fa-level-down:before{content:"\f149"}.fa-check-square:before{content:"\f14a"}.fa-pencil-square:before{content:"\f14b"}.fa-external-link-square:before{content:"\f14c"}.fa-share-square:before{content:"\f14d"}.fa-compass:before{content:"\f14e"}.fa-toggle-down:before,.fa-caret-square-o-down:before{content:"\f150"}.fa-toggle-up:before,.fa-caret-square-o-up:before{content:"\f151"}.fa-toggle-right:before,.fa-caret-square-o-right:before{content:"\f152"}.fa-euro:before,.fa-eur:before{content:"\f153"}.fa-gbp:before{content:"\f154"}.fa-dollar:before,.fa-usd:before{content:"\f155"}.fa-rupee:before,.fa-inr:before{content:"\f156"}.fa-cny:before,.fa-rmb:before,.fa-yen:before,.fa-jpy:before{content:"\f157"}.fa-ruble:before,.fa-rouble:before,.fa-rub:before{content:"\f158"}.fa-won:before,.fa-krw:before{content:"\f159"}.fa-bitcoin:before,.fa-btc:before{content:"\f15a"}.fa-file:before{content:"\f15b"}.fa-file-text:before{content:"\f15c"}.fa-sort-alpha-asc:before{content:"\f15d"}.fa-sort-alpha-desc:before{content:"\f15e"}.fa-sort-amount-asc:before{content:"\f160"}.fa-sort-amount-desc:before{content:"\f161"}.fa-sort-numeric-asc:before{content:"\f162"}.fa-sort-numeric-desc:before{content:"\f163"}.fa-thumbs-up:before{content:"\f164"}.fa-thumbs-down:before{content:"\f165"}.fa-youtube-square:before{content:"\f166"}.fa-youtube:before{content:"\f167"}.fa-xing:before{content:"\f168"}.fa-xing-square:before{content:"\f169"}.fa-youtube-play:before{content:"\f16a"}.fa-dropbox:before{content:"\f16b"}.fa-stack-overflow:before{content:"\f16c"}.fa-instagram:before{content:"\f16d"}.fa-flickr:before{content:"\f16e"}.fa-adn:before{content:"\f170"}.fa-bitbucket:before{content:"\f171"}.fa-bitbucket-square:before{content:"\f172"}.fa-tumblr:before{content:"\f173"}.fa-tumblr-square:before{content:"\f174"}.fa-long-arrow-down:before{content:"\f175"}.fa-long-arrow-up:before{content:"\f176"}.fa-long-arrow-left:before{content:"\f177"}.fa-long-arrow-right:before{content:"\f178"}.fa-apple:before{content:"\f179"}.fa-windows:before{content:"\f17a"}.fa-android:before{content:"\f17b"}.fa-linux:before{content:"\f17c"}.fa-dribbble:before{content:"\f17d"}.fa-skype:before{content:"\f17e"}.fa-foursquare:before{content:"\f180"}.fa-trello:before{content:"\f181"}.fa-female:before{content:"\f182"}.fa-male:before{content:"\f183"}.fa-gittip:before,.fa-gratipay:before{content:"\f184"}.fa-sun-o:before{content:"\f185"}.fa-moon-o:before{content:"\f186"}.fa-archive:before{content:"\f187"}.fa-bug:before{content:"\f188"}.fa-vk:before{content:"\f189"}.fa-weibo:before{content:"\f18a"}.fa-renren:before{content:"\f18b"}.fa-pagelines:before{content:"\f18c"}.fa-stack-exchange:before{content:"\f18d"}.fa-arrow-circle-o-right:before{content:"\f18e"}.fa-arrow-circle-o-left:before{content:"\f190"}.fa-toggle-left:before,.fa-caret-square-o-left:before{content:"\f191"}.fa-dot-circle-o:before{content:"\f192"}.fa-wheelchair:before{content:"\f193"}.fa-vimeo-square:before{content:"\f194"}.fa-turkish-lira:before,.fa-try:before{content:"\f195"}.fa-plus-square-o:before{content:"\f196"}.fa-space-shuttle:before{content:"\f197"}.fa-slack:before{content:"\f198"}.fa-envelope-square:before{content:"\f199"}.fa-wordpress:before{content:"\f19a"}.fa-openid:before{content:"\f19b"}.fa-institution:before,.fa-bank:before,.fa-university:before{content:"\f19c"}.fa-mortar-board:before,.fa-graduation-cap:before{content:"\f19d"}.fa-yahoo:before{content:"\f19e"}.fa-google:before{content:"\f1a0"}.fa-reddit:before{content:"\f1a1"}.fa-reddit-square:before{content:"\f1a2"}.fa-stumbleupon-circle:before{content:"\f1a3"}.fa-stumbleupon:before{content:"\f1a4"}.fa-delicious:before{content:"\f1a5"}.fa-digg:before{content:"\f1a6"}.fa-pied-piper:before{content:"\f1a7"}.fa-pied-piper-alt:before{content:"\f1a8"}.fa-drupal:before{content:"\f1a9"}.fa-joomla:before{content:"\f1aa"}.fa-language:before{content:"\f1ab"}.fa-fax:before{content:"\f1ac"}.fa-building:before{content:"\f1ad"}.fa-child:before{content:"\f1ae"}.fa-paw:before{content:"\f1b0"}.fa-spoon:before{content:"\f1b1"}.fa-cube:before{content:"\f1b2"}.fa-cubes:before{content:"\f1b3"}.fa-behance:before{content:"\f1b4"}.fa-behance-square:before{content:"\f1b5"}.fa-steam:before{content:"\f1b6"}.fa-steam-square:before{content:"\f1b7"}.fa-recycle:before{content:"\f1b8"}.fa-automobile:before,.fa-car:before{content:"\f1b9"}.fa-cab:before,.fa-taxi:before{content:"\f1ba"}.fa-tree:before{content:"\f1bb"}.fa-spotify:before{content:"\f1bc"}.fa-deviantart:before{content:"\f1bd"}.fa-soundcloud:before{content:"\f1be"}.fa-database:before{content:"\f1c0"}.fa-file-pdf-o:before{content:"\f1c1"}.fa-file-word-o:before{content:"\f1c2"}.fa-file-excel-o:before{content:"\f1c3"}.fa-file-powerpoint-o:before{content:"\f1c4"}.fa-file-photo-o:before,.fa-file-picture-o:before,.fa-file-image-o:before{content:"\f1c5"}.fa-file-zip-o:before,.fa-file-archive-o:before{content:"\f1c6"}.fa-file-sound-o:before,.fa-file-audio-o:before{content:"\f1c7"}.fa-file-movie-o:before,.fa-file-video-o:before{content:"\f1c8"}.fa-file-code-o:before{content:"\f1c9"}.fa-vine:before{content:"\f1ca"}.fa-codepen:before{content:"\f1cb"}.fa-jsfiddle:before{content:"\f1cc"}.fa-life-bouy:before,.fa-life-buoy:before,.fa-life-saver:before,.fa-support:before,.fa-life-ring:before{content:"\f1cd"}.fa-circle-o-notch:before{content:"\f1ce"}.fa-ra:before,.fa-rebel:before{content:"\f1d0"}.fa-ge:before,.fa-empire:before{content:"\f1d1"}.fa-git-square:before{content:"\f1d2"}.fa-git:before{content:"\f1d3"}.fa-y-combinator-square:before,.fa-yc-square:before,.fa-hacker-news:before{content:"\f1d4"}.fa-tencent-weibo:before{content:"\f1d5"}.fa-qq:before{content:"\f1d6"}.fa-wechat:before,.fa-weixin:before{content:"\f1d7"}.fa-send:before,.fa-paper-plane:before{content:"\f1d8"}.fa-send-o:before,.fa-paper-plane-o:before{content:"\f1d9"}.fa-history:before{content:"\f1da"}.fa-circle-thin:before{content:"\f1db"}.fa-header:before{content:"\f1dc"}.fa-paragraph:before{content:"\f1dd"}.fa-sliders:before{content:"\f1de"}.fa-share-alt:before{content:"\f1e0"}.fa-share-alt-square:before{content:"\f1e1"}.fa-bomb:before{content:"\f1e2"}.fa-soccer-ball-o:before,.fa-futbol-o:before{content:"\f1e3"}.fa-tty:before{content:"\f1e4"}.fa-binoculars:before{content:"\f1e5"}.fa-plug:before{content:"\f1e6"}.fa-slideshare:before{content:"\f1e7"}.fa-twitch:before{content:"\f1e8"}.fa-yelp:before{content:"\f1e9"}.fa-newspaper-o:before{content:"\f1ea"}.fa-wifi:before{content:"\f1eb"}.fa-calculator:before{content:"\f1ec"}.fa-paypal:before{content:"\f1ed"}.fa-google-wallet:before{content:"\f1ee"}.fa-cc-visa:before{content:"\f1f0"}.fa-cc-mastercard:before{content:"\f1f1"}.fa-cc-discover:before{content:"\f1f2"}.fa-cc-amex:before{content:"\f1f3"}.fa-cc-paypal:before{content:"\f1f4"}.fa-cc-stripe:before{content:"\f1f5"}.fa-bell-slash:before{content:"\f1f6"}.fa-bell-slash-o:before{content:"\f1f7"}.fa-trash:before{content:"\f1f8"}.fa-copyright:before{content:"\f1f9"}.fa-at:before{content:"\f1fa"}.fa-eyedropper:before{content:"\f1fb"}.fa-paint-brush:before{content:"\f1fc"}.fa-birthday-cake:before{content:"\f1fd"}.fa-area-chart:before{content:"\f1fe"}.fa-pie-chart:before{content:"\f200"}.fa-line-chart:before{content:"\f201"}.fa-lastfm:before{content:"\f202"}.fa-lastfm-square:before{content:"\f203"}.fa-toggle-off:before{content:"\f204"}.fa-toggle-on:before{content:"\f205"}.fa-bicycle:before{content:"\f206"}.fa-bus:before{content:"\f207"}.fa-ioxhost:before{content:"\f208"}.fa-angellist:before{content:"\f209"}.fa-cc:before{content:"\f20a"}.fa-shekel:before,.fa-sheqel:before,.fa-ils:before{content:"\f20b"}.fa-meanpath:before{content:"\f20c"}.fa-buysellads:before{content:"\f20d"}.fa-connectdevelop:before{content:"\f20e"}.fa-dashcube:before{content:"\f210"}.fa-forumbee:before{content:"\f211"}.fa-leanpub:before{content:"\f212"}.fa-sellsy:before{content:"\f213"}.fa-shirtsinbulk:before{content:"\f214"}.fa-simplybuilt:before{content:"\f215"}.fa-skyatlas:before{content:"\f216"}.fa-cart-plus:before{content:"\f217"}.fa-cart-arrow-down:before{content:"\f218"}.fa-diamond:before{content:"\f219"}.fa-ship:before{content:"\f21a"}.fa-user-secret:before{content:"\f21b"}.fa-motorcycle:before{content:"\f21c"}.fa-street-view:before{content:"\f21d"}.fa-heartbeat:before{content:"\f21e"}.fa-venus:before{content:"\f221"}.fa-mars:before{content:"\f222"}.fa-mercury:before{content:"\f223"}.fa-intersex:before,.fa-transgender:before{content:"\f224"}.fa-transgender-alt:before{content:"\f225"}.fa-venus-double:before{content:"\f226"}.fa-mars-double:before{content:"\f227"}.fa-venus-mars:before{content:"\f228"}.fa-mars-stroke:before{content:"\f229"}.fa-mars-stroke-v:before{content:"\f22a"}.fa-mars-stroke-h:before{content:"\f22b"}.fa-neuter:before{content:"\f22c"}.fa-genderless:before{content:"\f22d"}.fa-facebook-official:before{content:"\f230"}.fa-pinterest-p:before{content:"\f231"}.fa-whatsapp:before{content:"\f232"}.fa-server:before{content:"\f233"}.fa-user-plus:before{content:"\f234"}.fa-user-times:before{content:"\f235"}.fa-hotel:before,.fa-bed:before{content:"\f236"}.fa-viacoin:before{content:"\f237"}.fa-train:before{content:"\f238"}.fa-subway:before{content:"\f239"}.fa-medium:before{content:"\f23a"}.fa-yc:before,.fa-y-combinator:before{content:"\f23b"}.fa-optin-monster:before{content:"\f23c"}.fa-opencart:before{content:"\f23d"}.fa-expeditedssl:before{content:"\f23e"}.fa-battery-4:before,.fa-battery-full:before{content:"\f240"}.fa-battery-3:before,.fa-battery-three-quarters:before{content:"\f241"}.fa-battery-2:before,.fa-battery-half:before{content:"\f242"}.fa-battery-1:before,.fa-battery-quarter:before{content:"\f243"}.fa-battery-0:before,.fa-battery-empty:before{content:"\f244"}.fa-mouse-pointer:before{content:"\f245"}.fa-i-cursor:before{content:"\f246"}.fa-object-group:before{content:"\f247"}.fa-object-ungroup:before{content:"\f248"}.fa-sticky-note:before{content:"\f249"}.fa-sticky-note-o:before{content:"\f24a"}.fa-cc-jcb:before{content:"\f24b"}.fa-cc-diners-club:before{content:"\f24c"}.fa-clone:before{content:"\f24d"}.fa-balance-scale:before{content:"\f24e"}.fa-hourglass-o:before{content:"\f250"}.fa-hourglass-1:before,.fa-hourglass-start:before{content:"\f251"}.fa-hourglass-2:before,.fa-hourglass-half:before{content:"\f252"}.fa-hourglass-3:before,.fa-hourglass-end:before{content:"\f253"}.fa-hourglass:before{content:"\f254"}.fa-hand-grab-o:before,.fa-hand-rock-o:before{content:"\f255"}.fa-hand-stop-o:before,.fa-hand-paper-o:before{content:"\f256"}.fa-hand-scissors-o:before{content:"\f257"}.fa-hand-lizard-o:before{content:"\f258"}.fa-hand-spock-o:before{content:"\f259"}.fa-hand-pointer-o:before{content:"\f25a"}.fa-hand-peace-o:before{content:"\f25b"}.fa-trademark:before{content:"\f25c"}.fa-registered:before{content:"\f25d"}.fa-creative-commons:before{content:"\f25e"}.fa-gg:before{content:"\f260"}.fa-gg-circle:before{content:"\f261"}.fa-tripadvisor:before{content:"\f262"}.fa-odnoklassniki:before{content:"\f263"}.fa-odnoklassniki-square:before{content:"\f264"}.fa-get-pocket:before{content:"\f265"}.fa-wikipedia-w:before{content:"\f266"}.fa-safari:before{content:"\f267"}.fa-chrome:before{content:"\f268"}.fa-firefox:before{content:"\f269"}.fa-opera:before{content:"\f26a"}.fa-internet-explorer:before{content:"\f26b"}.fa-tv:before,.fa-television:before{content:"\f26c"}.fa-contao:before{content:"\f26d"}.fa-500px:before{content:"\f26e"}.fa-amazon:before{content:"\f270"}.fa-calendar-plus-o:before{content:"\f271"}.fa-calendar-minus-o:before{content:"\f272"}.fa-calendar-times-o:before{content:"\f273"}.fa-calendar-check-o:before{content:"\f274"}.fa-industry:before{content:"\f275"}.fa-map-pin:before{content:"\f276"}.fa-map-signs:before{content:"\f277"}.fa-map-o:before{content:"\f278"}.fa-map:before{content:"\f279"}.fa-commenting:before{content:"\f27a"}.fa-commenting-o:before{content:"\f27b"}.fa-houzz:before{content:"\f27c"}.fa-vimeo:before{content:"\f27d"}.fa-black-tie:before{content:"\f27e"}.fa-fonticons:before{content:"\f280"}.fa-reddit-alien:before{content:"\f281"}.fa-edge:before{content:"\f282"}.fa-credit-card-alt:before{content:"\f283"}.fa-codiepie:before{content:"\f284"}.fa-modx:before{content:"\f285"}.fa-fort-awesome:before{content:"\f286"}.fa-usb:before{content:"\f287"}.fa-product-hunt:before{content:"\f288"}.fa-mixcloud:before{content:"\f289"}.fa-scribd:before{content:"\f28a"}.fa-pause-circle:before{content:"\f28b"}.fa-pause-circle-o:before{content:"\f28c"}.fa-stop-circle:before{content:"\f28d"}.fa-stop-circle-o:before{content:"\f28e"}.fa-shopping-bag:before{content:"\f290"}.fa-shopping-basket:before{content:"\f291"}.fa-hashtag:before{content:"\f292"}.fa-bluetooth:before{content:"\f293"}.fa-bluetooth-b:before{content:"\f294"}.fa-percent:before{content:"\f295"} 5 | -------------------------------------------------------------------------------- /Ecommerce-website-PHP/Website/admin/layout/css/images/ui-icons_444444_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/engineers-planet/PHP_Free_Downloads/ba8be31590052331a602e970dd2a14ad528c6420/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/ba8be31590052331a602e970dd2a14ad528c6420/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/ba8be31590052331a602e970dd2a14ad528c6420/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/ba8be31590052331a602e970dd2a14ad528c6420/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/ba8be31590052331a602e970dd2a14ad528c6420/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/ba8be31590052331a602e970dd2a14ad528c6420/Ecommerce-website-PHP/Website/admin/layout/css/images/ui-icons_ffffff_256x240.png -------------------------------------------------------------------------------- /Ecommerce-website-PHP/Website/admin/layout/css/jquery.selectBoxIt.css: -------------------------------------------------------------------------------- 1 | /* 2 | * jquery.selectBoxIt.css 3.8.1 3 | * Author: @gregfranko 4 | */ 5 | 6 | /* 7 | Common CSS Properties 8 | --------------------- 9 | These properties will be applied to any themes that you use 10 | */ 11 | 12 | /* SelectBoxIt container */ 13 | .selectboxit-container { 14 | width: 100%; 15 | position: relative; 16 | display: inline-block; 17 | vertical-align: top; 18 | } 19 | 20 | /* Styles that apply to all SelectBoxIt elements */ 21 | .selectboxit-container * { 22 | font: 14px Helvetica, Arial; 23 | /* Prevents text selection */ 24 | -webkit-touch-callout: none; 25 | -webkit-user-select: none; 26 | -khtml-user-select: none; 27 | -moz-user-select: -moz-none; 28 | -ms-user-select: none; 29 | -o-user-select: none; 30 | user-select: none; 31 | outline: none; 32 | white-space: nowrap; 33 | } 34 | 35 | /* Button */ 36 | .selectboxit-container .selectboxit { 37 | width: 100%; /* Width of the dropdown button */ 38 | cursor: pointer; 39 | margin: 0; 40 | padding: 0; 41 | border-radius: 6px; 42 | overflow: hidden; 43 | display: block; 44 | position: relative; 45 | } 46 | 47 | /* Height and Vertical Alignment of Text */ 48 | .selectboxit-container span, .selectboxit-container .selectboxit-options a { 49 | height: 46px; /* Height of the drop down */ 50 | line-height: 46px; /* Vertically positions the drop down text */ 51 | display: block; 52 | } 53 | 54 | /* Focus pseudo selector */ 55 | .selectboxit-container .selectboxit:focus { 56 | outline: 0; 57 | } 58 | 59 | /* Disabled Mouse Interaction */ 60 | .selectboxit.selectboxit-disabled, .selectboxit-options .selectboxit-disabled { 61 | opacity: 0.65; 62 | filter: alpha(opacity=65); 63 | -webkit-box-shadow: none; 64 | -moz-box-shadow: none; 65 | box-shadow: none; 66 | cursor: default; 67 | } 68 | 69 | /* Button Text */ 70 | .selectboxit-text { 71 | text-indent: 5px; 72 | overflow: hidden; 73 | text-overflow: ellipsis; 74 | float: left; 75 | } 76 | 77 | .selectboxit .selectboxit-option-icon-container { 78 | margin-left: 5px; 79 | } 80 | 81 | /* Options List */ 82 | .selectboxit-container .selectboxit-options { 83 | -moz-box-sizing: border-box; 84 | box-sizing: border-box; 85 | min-width: 100%; /* Minimum Width of the dropdown list box options */ 86 | *width: 100%; 87 | margin: 0; 88 | padding: 0; 89 | list-style: none; 90 | position: absolute; 91 | overflow-x: hidden; 92 | overflow-y: auto; 93 | cursor: pointer; 94 | display: none; 95 | z-index: 9999999999999; 96 | border-radius: 6px; 97 | text-align: left; 98 | -webkit-box-shadow: none; 99 | -moz-box-shadow: none; 100 | box-shadow: none; 101 | } 102 | 103 | /* Individual options */ 104 | .selectboxit-option .selectboxit-option-anchor{ 105 | padding: 0 2px; 106 | } 107 | 108 | /* Individual Option Hover Action */ 109 | .selectboxit-option .selectboxit-option-anchor:hover { 110 | text-decoration: none; 111 | } 112 | 113 | /* Individual Option Optgroup Header */ 114 | .selectboxit-option, .selectboxit-optgroup-header { 115 | text-indent: 5px; /* Horizontal Positioning of the select box option text */ 116 | margin: 0; 117 | list-style-type: none; 118 | } 119 | 120 | /* The first Drop Down option */ 121 | .selectboxit-option-first { 122 | border-top-right-radius: 6px; 123 | border-top-left-radius: 6px; 124 | } 125 | 126 | /* The first Drop Down option optgroup */ 127 | .selectboxit-optgroup-header + .selectboxit-option-first { 128 | border-top-right-radius: 0px; 129 | border-top-left-radius: 0px; 130 | } 131 | 132 | /* The last Drop Down option */ 133 | .selectboxit-option-last { 134 | border-bottom-right-radius: 6px; 135 | border-bottom-left-radius: 6px; 136 | } 137 | 138 | /* Drop Down optgroup headers */ 139 | .selectboxit-optgroup-header { 140 | font-weight: bold; 141 | } 142 | 143 | /* Drop Down optgroup header hover psuedo class */ 144 | .selectboxit-optgroup-header:hover { 145 | cursor: default; 146 | } 147 | 148 | /* Drop Down down arrow container */ 149 | .selectboxit-arrow-container { 150 | /* Positions the down arrow */ 151 | width: 30px; 152 | position: absolute; 153 | right: 0; 154 | } 155 | 156 | /* Drop Down down arrow */ 157 | .selectboxit .selectboxit-arrow-container .selectboxit-arrow { 158 | /* Horizontally centers the down arrow */ 159 | margin: 0 auto; 160 | position: absolute; 161 | top: 50%; 162 | right: 0; 163 | left: 0; 164 | } 165 | 166 | /* Drop Down down arrow for jQueryUI and jQuery Mobile */ 167 | .selectboxit .selectboxit-arrow-container .selectboxit-arrow.ui-icon { 168 | top: 30%; 169 | } 170 | 171 | /* Drop Down individual option icon positioning */ 172 | .selectboxit-option-icon-container { 173 | float: left; 174 | } 175 | 176 | .selectboxit-container .selectboxit-option-icon { 177 | margin: 0; 178 | padding: 0; 179 | vertical-align: middle; 180 | } 181 | 182 | /* Drop Down individual option icon positioning */ 183 | .selectboxit-option-icon-url { 184 | width: 18px; 185 | background-size: 18px 18px; 186 | background-repeat: no-repeat; 187 | height: 100%; 188 | background-position: center; 189 | float: left; 190 | } 191 | 192 | .selectboxit-rendering { 193 | display: inline-block !important; 194 | *display: inline !important; 195 | zoom: 1 !important; 196 | visibility: visible !important; 197 | position: absolute !important; 198 | top: -9999px !important; 199 | left: -9999px !important; 200 | } 201 | 202 | /* jQueryUI and jQuery Mobile compatability fix - Feel free to remove this style if you are not using jQuery Mobile */ 203 | .jqueryui .ui-icon { 204 | background-color: inherit; 205 | } 206 | 207 | /* Another jQueryUI and jQuery Mobile compatability fix - Feel free to remove this style if you are not using jQuery Mobile */ 208 | .jqueryui .ui-icon-triangle-1-s { 209 | background-position: -64px -16px; 210 | } 211 | 212 | /* 213 | Default Theme 214 | ------------- 215 | Note: Feel free to remove all of the CSS underneath this line if you are not using the default theme 216 | */ 217 | .selectboxit-btn { 218 | background-color: #f5f5f5; 219 | background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6); 220 | background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6)); 221 | background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6); 222 | background-image: -o-linear-gradient(top, #ffffff, #e6e6e6); 223 | background-image: linear-gradient(to bottom, #ffffff, #e6e6e6); 224 | background-repeat: repeat-x; 225 | border: 1px solid #cccccc; 226 | border-color: #e6e6e6 #e6e6e6 #bfbfbf; 227 | border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); 228 | border-bottom-color: #b3b3b3; 229 | } 230 | 231 | .selectboxit-btn.selectboxit-enabled:hover, 232 | .selectboxit-btn.selectboxit-enabled:focus, 233 | .selectboxit-btn.selectboxit-enabled:active { 234 | color: #333333; 235 | background-color: #e6e6e6; 236 | } 237 | 238 | .selectboxit-btn.selectboxit-enabled:hover, 239 | .selectboxit-btn.selectboxit-enabled:focus { 240 | color: #333333; 241 | text-decoration: none; 242 | background-position: 0 -15px; 243 | } 244 | 245 | .selectboxit-default-arrow { 246 | width: 0; 247 | height: 0; 248 | border-top: 4px solid #000000; 249 | border-right: 4px solid transparent; 250 | border-left: 4px solid transparent; 251 | } 252 | 253 | .selectboxit-list { 254 | background-color: #ffffff; 255 | border: 1px solid #ccc; 256 | border: 1px solid rgba(0, 0, 0, 0.2); 257 | -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); 258 | -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); 259 | box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); 260 | } 261 | 262 | .selectboxit-list .selectboxit-option-anchor { 263 | color: #333333; 264 | } 265 | 266 | .selectboxit-list > .selectboxit-focus > .selectboxit-option-anchor { 267 | color: #ffffff; 268 | background-color: #0081c2; 269 | background-image: -moz-linear-gradient(top, #0088cc, #0077b3); 270 | background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0077b3)); 271 | background-image: -webkit-linear-gradient(top, #0088cc, #0077b3); 272 | background-image: -o-linear-gradient(top, #0088cc, #0077b3); 273 | background-image: linear-gradient(to bottom, #0088cc, #0077b3); 274 | background-repeat: repeat-x; 275 | } 276 | 277 | .selectboxit-list > .selectboxit-disabled > .selectboxit-option-anchor { 278 | color: #999999; 279 | } -------------------------------------------------------------------------------- /Ecommerce-website-PHP/Website/admin/layout/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/engineers-planet/PHP_Free_Downloads/ba8be31590052331a602e970dd2a14ad528c6420/Ecommerce-website-PHP/Website/admin/layout/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /Ecommerce-website-PHP/Website/admin/layout/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/engineers-planet/PHP_Free_Downloads/ba8be31590052331a602e970dd2a14ad528c6420/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/ba8be31590052331a602e970dd2a14ad528c6420/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/ba8be31590052331a602e970dd2a14ad528c6420/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/ba8be31590052331a602e970dd2a14ad528c6420/Ecommerce-website-PHP/Website/admin/layout/fonts/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /Ecommerce-website-PHP/Website/admin/layout/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/engineers-planet/PHP_Free_Downloads/ba8be31590052331a602e970dd2a14ad528c6420/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/ba8be31590052331a602e970dd2a14ad528c6420/Ecommerce-website-PHP/Website/admin/layout/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /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/MYSQL FILES/furkan.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, 20:59:27 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ı `furkan` 29 | -- 30 | 31 | CREATE TABLE `furkan` ( 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 | -- Tablo döküm verisi `furkan` 41 | -- 42 | 43 | INSERT INTO `furkan` (`messages_id`, `header`, `messages_sender`, `messages_content`, `messages_date`) VALUES 44 | (1, 'First Email', 'oliver@gmail.com', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Gravida arcu ac tortor dignissim convallis. Ut venenatis tellus in metus vulputate eu scelerisque. Scelerisque varius morbi enim nunc faucibus a pellentesque. Porta lorem mollis aliquam ut porttitor leo a diam. Nec feugiat nisl pretium fusce id velit ut. Enim eu turpis egestas pretium. Molestie at elementum eu facilisis. Orci dapibus ultrices in iaculis nunc sed augue lacus viverra. Cum sociis natoque penatibus et magnis dis parturient montes nascetur. Nisl rhoncus mattis rhoncus urna neque viverra justo nec. Morbi tristique senectus et netus et malesuada fames. Eget arcu dictum varius duis at consectetur lorem donec. Amet nulla facilisi morbi tempus iaculis urna id volutpat lacus.', '2019-07-17 18:07:40'), 45 | (2, 'How are you?', 'oliver@gmail.com', 'Quam vulputate dignissim suspendisse in est ante. Vestibulum mattis ullamcorper velit sed ullamcorper morbi tincidunt ornare. Orci ac auctor augue mauris. Et odio pellentesque diam volutpat commodo. Pulvinar pellentesque habitant morbi tristique. In est ante in nibh mauris cursus mattis. Egestas maecenas pharetra convallis posuere. Ultrices vitae auctor eu augue ut. Turpis egestas pretium aenean pharetra magna ac placerat. Lacus viverra vitae congue eu consequat ac felis.\r\n\r\nAt augue eget arcu dictum varius duis. Cursus euismod quis viverra nibh cras. Tellus rutrum tellus pellentesque eu. Vestibulum sed arcu non odio euismod. Sagittis purus sit amet volutpat. Pharetra magna ac placerat vestibulum lectus. At erat pellentesque adipiscing commodo elit at imperdiet. Nam aliquam sem et tortor consequat id porta nibh venenatis. Volutpat maecenas volutpat blandit aliquam etiam erat. Iaculis nunc sed augue lacus viverra vitae. In eu mi bibendum neque egestas congue. Id cursus metus aliquam eleifend mi in nulla.', '2019-07-17 18:08:13'), 46 | (3, 'I sent business documents', 'jack@gmail.com', 'Suspendisse faucibus interdum posuere lorem ipsum dolor sit. Lorem ipsum dolor sit amet consectetur adipiscing elit. Risus nec feugiat in fermentum posuere urna nec tincidunt. Lacus sed turpis tincidunt id. Lacus suspendisse faucibus interdum posuere lorem ipsum dolor sit. Rhoncus aenean vel elit scelerisque. Maecenas ultricies mi eget mauris pharetra et. Eget magna fermentum iaculis eu non. At urna condimentum mattis pellentesque. Turpis egestas integer eget aliquet nibh praesent. Congue nisi vitae suscipit tellus mauris a diam maecenas. Cras ornare arcu dui vivamus arcu felis bibendum ut tristique. Lacus viverra vitae congue eu consequat ac felis donec. Faucibus ornare suspendisse sed nisi lacus sed viverra tellus. Tortor posuere ac ut consequat.\r\n\r\nTincidunt vitae semper quis lectus nulla at volutpat. Eget velit aliquet sagittis id consectetur purus ut faucibus. Donec enim diam vulputate ut pharetra sit amet aliquam. Vitae elementum curabitur vitae nunc sed velit dignissim sodales ut. Lacus vestibulum sed arcu non odio euismod lacinia at. Mauris a diam maecenas sed. Amet nisl purus in mollis nunc. Felis donec et odio pellentesque diam volutpat commodo sed. Non pulvinar neque laoreet suspendisse interdum consectetur libero id. Auctor eu augue ut lectus arcu bibendum. Egestas sed sed risus pretium quam vulputate.', '2019-07-17 18:14:06'); 47 | 48 | -- 49 | -- Dökümü yapılmış tablolar için indeksler 50 | -- 51 | 52 | -- 53 | -- Tablo için indeksler `furkan` 54 | -- 55 | ALTER TABLE `furkan` 56 | ADD PRIMARY KEY (`messages_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 `furkan` 64 | -- 65 | ALTER TABLE `furkan` 66 | MODIFY `messages_id` int(11) 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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /Email-System-Php/MYSQL FILES/oliver.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:18 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ı `oliver` 29 | -- 30 | 31 | CREATE TABLE `oliver` ( 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 | -- Tablo döküm verisi `oliver` 41 | -- 42 | 43 | INSERT INTO `oliver` (`messages_id`, `header`, `messages_sender`, `messages_content`, `messages_date`) VALUES 44 | (1, 'deneme', 'furkan@gmail.com', 'deneme 123', '2019-07-17 17:38:58'), 45 | (2, 'I sent business documents', 'jack@gmail.com', 'Suspendisse faucibus interdum posuere lorem ipsum dolor sit. Lorem ipsum dolor sit amet consectetur adipiscing elit. Risus nec feugiat in fermentum posuere urna nec tincidunt. Lacus sed turpis tincidunt id. Lacus suspendisse faucibus interdum posuere lorem ipsum dolor sit. Rhoncus aenean vel elit scelerisque. Maecenas ultricies mi eget mauris pharetra et. Eget magna fermentum iaculis eu non. At urna condimentum mattis pellentesque. Turpis egestas integer eget aliquet nibh praesent. Congue nisi vitae suscipit tellus mauris a diam maecenas. Cras ornare arcu dui vivamus arcu felis bibendum ut tristique. Lacus viverra vitae congue eu consequat ac felis donec. Faucibus ornare suspendisse sed nisi lacus sed viverra tellus. Tortor posuere ac ut consequat.\r\n\r\nTincidunt vitae semper quis lectus nulla at volutpat. Eget velit aliquet sagittis id consectetur purus ut faucibus. Donec enim diam vulputate ut pharetra sit amet aliquam. Vitae elementum curabitur vitae nunc sed velit dignissim sodales ut. Lacus vestibulum sed arcu non odio euismod lacinia at. Mauris a diam maecenas sed. Amet nisl purus in mollis nunc. Felis donec et odio pellentesque diam volutpat commodo sed. Non pulvinar neque laoreet suspendisse interdum consectetur libero id. Auctor eu augue ut lectus arcu bibendum. Egestas sed sed risus pretium quam vulputate.', '2019-07-17 18:08:59'); 46 | 47 | -- 48 | -- Dökümü yapılmış tablolar için indeksler 49 | -- 50 | 51 | -- 52 | -- Tablo için indeksler `oliver` 53 | -- 54 | ALTER TABLE `oliver` 55 | ADD PRIMARY KEY (`messages_id`); 56 | 57 | -- 58 | -- Dökümü yapılmış tablolar için AUTO_INCREMENT değeri 59 | -- 60 | 61 | -- 62 | -- Tablo için AUTO_INCREMENT değeri `oliver` 63 | -- 64 | ALTER TABLE `oliver` 65 | MODIFY `messages_id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; 66 | COMMIT; 67 | 68 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 69 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 70 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 71 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/connect.php: -------------------------------------------------------------------------------- 1 | '; 7 | echo $e->getMessage(); 8 | die(); 9 | }; 10 | 11 | ?> -------------------------------------------------------------------------------- /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/homepage/homepage.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | Document 11 | 12 | 13 | 14 | 15 |
16 | LOGIN 17 | REGISTER 18 |
19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /Email-System-Php/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Email-System-Php/loginPage/login.php: -------------------------------------------------------------------------------- 1 | 2 | prepare('SELECT * FROM users_july'); 13 | $getData->execute(); 14 | $values = $getData->fetchAll(PDO::FETCH_ASSOC); 15 | 16 | foreach( $values as $val){ 17 | 18 | // ------------------VERI KONTROLLERI---------------- 19 | // print_r($val['person_username']); 20 | // print_r($val['person_password']); 21 | // echo 'getControl: ' . $getControl['person_password'] . '
'; 22 | // echo 'password: ' . $password . '
'; 23 | 24 | $control = $db->prepare('SELECT person_password FROM users_july WHERE person_username = ?'); 25 | $control->execute(array($val['person_username'])); 26 | $getControl= $control->fetch(PDO::FETCH_ASSOC); 27 | 28 | // Burada form'dan gelen kullanıcı adı ile mysql database'in içinde eşleştirme arıyoruz... 29 | if($username === $val['person_username']){ 30 | if(!empty($_POST["remember_me"])) 31 | { 32 | $hour = time() + 3600 * 24 * 30; 33 | setcookie('username', $username, $hour); 34 | setcookie('password', $password, $hour); 35 | }else{ 36 | 37 | setcookie('username', ""); 38 | setcookie('password', ""); 39 | 40 | } 41 | if($password == $getControl['person_password']){ 42 | $_SESSION['person'] = ['username' => $val['person_username'], 'email' => $val['person_email']]; 43 | header('Location: index.php?page=mail'); 44 | }else{ 45 | echo 'Password is incorrect'; 46 | } 47 | }else{ 48 | echo 'The user name or password is incorrect'; 49 | } 50 | } 51 | } 52 | 53 | $db=null; 54 | 55 | ?> 56 | 57 | 58 |
59 | 60 | 65 | 66 | 70 |
71 | 74 | 77 |
78 | 82 | 83 | 87 | 88 | 89 | 102 |
103 | BACK 104 |
105 | 106 | -------------------------------------------------------------------------------- /Email-System-Php/navbar.php: -------------------------------------------------------------------------------- 1 |
2 |

CODEBLOGGER

3 | 4 | 11 | 14 |
15 | 16 | -------------------------------------------------------------------------------- /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 |
32 |

33 |

34 |

35 |
36 |

37 |
38 | 39 | 40 | 45 | 46 | 47 | 48 | 64 | 65 | -------------------------------------------------------------------------------- /Email-System-Php/pages/newMessage.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Document 9 | 10 | 11 | 14 | 15 | query('SELECT * FROM users_july',PDO::FETCH_ASSOC); 29 | $emailForUsername = []; 30 | $data = []; 31 | if($allTable){ 32 | foreach($allTable as $val){ 33 | $data[] = $val; 34 | $emailForUsername[$val['person_email']] = $val['person_username']; 35 | }; 36 | }; 37 | 38 | 39 | if(isset($formEmail)){ 40 | for($i=0;$iprepare("INSERT INTO $setUsername(header,messages_sender,messages_content) 46 | VALUES(:header,:messages_sender,:messages_content)"); 47 | $setData->bindParam(':header',$messages_header, PDO::PARAM_STR); 48 | $setData->bindParam(':messages_sender',$session_email, PDO::PARAM_STR); 49 | $setData->bindParam(':messages_content',$messages_content, PDO::PARAM_STR); 50 | $setData->execute(); 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 | 82 |
83 |
84 |
85 | 86 |
87 |
88 |
89 | 90 | 91 | 94 | 95 | 96 | 97 | 98 | -------------------------------------------------------------------------------- /Email-System-Php/register/register.php: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 |
5 |
6 |
7 | 8 | BACK 9 |
10 | 11 | 12 | -------------------------------------------------------------------------------- /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/navbar.css: -------------------------------------------------------------------------------- 1 | :root { 2 | --background: #900C3F; 3 | } 4 | *, 5 | *::before, 6 | *::after { 7 | box-sizing: border-box; 8 | } 9 | body { 10 | margin: 0; 11 | background: #fff; 12 | font-family: "Work Sans", sans-serif; 13 | font-weight: 400; 14 | } 15 | 16 | 17 | /* navigation styles start here */ 18 | header { 19 | background: var(--background); 20 | text-align: center; 21 | position: relative; 22 | z-index: 999; 23 | width: 100%; 24 | } 25 | 26 | .nav-toggle { 27 | display: none; 28 | } 29 | .nav-toggle-label { 30 | position: absolute; 31 | top: 0%; 32 | left: 0; 33 | margin-left: 1em; 34 | height: 100%; 35 | display: flex; 36 | align-items: center; 37 | } 38 | .nav-toggle-label span, 39 | .nav-toggle-label span::before, 40 | .nav-toggle-label span::after { 41 | display: block; 42 | background: white; 43 | height: 2px; 44 | width: 2em; 45 | border-radius: 2px; 46 | position: relative; 47 | } 48 | .nav-toggle-label span::before, 49 | .nav-toggle-label span::after { 50 | content: ""; 51 | position: absolute; 52 | } 53 | .nav-toggle-label span::before { 54 | bottom: 7px; 55 | } 56 | .nav-toggle-label span::after { 57 | top: 7px; 58 | } 59 | 60 | nav { 61 | position: absolute; 62 | text-align: left; 63 | top: 100%; 64 | left: 0%; 65 | background: var(--background); 66 | width: 100%; 67 | transform: scale(1, 0); 68 | transform-origin: top; 69 | transition: transform 400ms ease-in-out; 70 | } 71 | nav ul { 72 | margin: 0; 73 | padding: 0; 74 | list-style: none; 75 | } 76 | nav li { 77 | margin-bottom: 1em; 78 | margin-left: 1em; 79 | } 80 | nav a { 81 | color: white; 82 | text-decoration: none; 83 | font-size: 1.2rem; 84 | text-transform: uppercase; 85 | opacity: 0; 86 | transition: opacity 150ms ease-in-out; 87 | } 88 | nav a:hover { 89 | color: #000; 90 | } 91 | .nav-toggle:checked ~ nav { 92 | transform: scale(1, 1); 93 | } 94 | .nav-toggle:checked ~ nav a { 95 | opacity: 1; 96 | transition: opacity 250ms ease-in-out 250ms; 97 | } 98 | 99 | @media screen and (min-width: 800px) { 100 | .nav-toggle-label { 101 | display: none; 102 | } 103 | 104 | header { 105 | display: grid; 106 | grid-template-columns: 1fr auto minmax(600px, 3fr) 1fr; 107 | } 108 | .logo { 109 | color: #ccc; 110 | grid-column: 2 / 3; 111 | } 112 | nav { 113 | all: unset; 114 | grid-column: 3/4; 115 | display: flex; 116 | justify-content: flex-end; 117 | align-items: center; 118 | } 119 | nav ul { 120 | display: flex; 121 | } 122 | nav li { 123 | margin-left: 3em; 124 | margin-bottom: 0; 125 | } 126 | nav a { 127 | opacity: 1; 128 | position: relative; 129 | } 130 | 131 | nav a::before { 132 | content: ""; 133 | display: block; 134 | height: 5px; 135 | background: black; 136 | position: absolute; 137 | top: -0.75em; 138 | /*or the line in the bottom 139 | bottom: -0.75em; 140 | not top*/ 141 | left: 0; 142 | right: 0; 143 | transform: scale(0, 1); 144 | /*growing from the left and not from the middle 145 | transform-origin: left;*/ 146 | transition: transform ease-in-out 250ms; 147 | } 148 | 149 | nav a:hover::before { 150 | transform: scale(1, 1); 151 | } 152 | } 153 | -------------------------------------------------------------------------------- /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 | } -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | ![home](image/home.png) 6 | ![product detail](image/product-detail.png) 7 | ![product rating](image/product-rating.png) 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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /Star-Rating-System-PHP/class/Rating.php: -------------------------------------------------------------------------------- 1 | dbConnect){ 19 | $conn = new mysqli($this->host, $this->user, $this->password, $this->database); 20 | if($conn->connect_error){ 21 | die("Error failed to connect to MySQL: " . $conn->connect_error); 22 | }else{ 23 | $this->dbConnect = $conn; 24 | } 25 | } 26 | } 27 | private function getData($sqlQuery) { 28 | $result = mysqli_query($this->dbConnect, $sqlQuery); 29 | if(!$result){ 30 | die('Error in query: '. mysqli_error($this->dbConnect)); 31 | } 32 | $data= array(); 33 | while ($row = mysqli_fetch_array($result, MYSQLI_ASSOC)) { 34 | $data[]=$row; 35 | } 36 | return $data; 37 | } 38 | private function getNumRows($sqlQuery) { 39 | $result = mysqli_query($this->dbConnect, $sqlQuery); 40 | if(!$result){ 41 | die('Error in query: '. mysqli_error($this->dbConnect)); 42 | } 43 | $numRows = mysqli_num_rows($result); 44 | return $numRows; 45 | } 46 | 47 | public function getSetting(){ 48 | return $this->settingClass; 49 | } 50 | 51 | 52 | public function userLogin($username, $password){ 53 | $sqlQuery = " 54 | SELECT * 55 | FROM ".$this->productUsersTable." 56 | WHERE username='".$username."' AND password='".$password."'"; 57 | return $this->getData($sqlQuery); 58 | } 59 | public function getProductList(){ 60 | $sqlQuery = " 61 | SELECT * FROM ".$this->productTable; 62 | return $this->getData($sqlQuery); 63 | } 64 | public function getProduct($product_id){ 65 | $sqlQuery = " 66 | SELECT * FROM ".$this->productTable." 67 | WHERE id='".$product_id."'"; 68 | return $this->getData($sqlQuery); 69 | } 70 | 71 | public function getProductRating($product_id){ 72 | $sqlQuery = " 73 | SELECT r.id, r.product_id, r.user_id, u.username, u.avatar, r.rating_score, r.title, r.comment, r.reviewer,r.created_at, r.updated_at 74 | FROM ".$this->productRatingTable." as r 75 | LEFT JOIN ".$this->productUsersTable." as u ON (r.user_id = u.id) 76 | WHERE r.product_id = '".$product_id."' ORDER BY r.created_at DESC"; 77 | return $this->getData($sqlQuery); 78 | } 79 | 80 | /* 81 | public function getProductRating($product_id){ 82 | $sqlQuery = " 83 | SELECT r.id, r.product_id, r.rating_score, r.title, r.comment, r.reviewer, r.email, r.created_at, r.updated_at 84 | FROM ".$this->productRatingTable." as r WHERE r.product_id = '".$product_id."' ORDER BY r.created_at DESC"; 85 | return $this->getData($sqlQuery); 86 | } 87 | */ 88 | 89 | public function getRatingAverage($product_id){ 90 | $productRating = $this->getProductRating($product_id); 91 | $rating_score = 0; 92 | $count = 0; 93 | foreach($productRating as $productRatingDetails){ 94 | $rating_score+= $productRatingDetails['rating_score']; 95 | $count += 1; 96 | } 97 | $average = 0; 98 | if($rating_score && $count) { 99 | $average = $rating_score/$count; 100 | } 101 | return $average; 102 | } 103 | 104 | public function getRatingTotal($product_id){ 105 | 106 | $sqlQuery = " 107 | SELECT * 108 | FROM ".$this->productRatingTable." WHERE product_id = '".$product_id."'"; 109 | 110 | $count = $this->getNumRows($sqlQuery); 111 | 112 | return $count; 113 | } 114 | 115 | /* 116 | public function saveRating($POST, $user_id){ 117 | $insertRating = "INSERT INTO ".$this->productRatingTable." (product_id, user_id, rating_score, title, comments, created_at, updated_at) VALUES ('".$POST['product_id']."', '".$user_id."', '".$POST['rating']."', '".$POST['title']."', '".$POST["comment"]."', '".date("Y-m-d H:i:s")."', '".date("Y-m-d H:i:s")."')"; 118 | mysqli_query($this->dbConnect, $insertRating); 119 | } 120 | */ 121 | public function saveRating($POST){ 122 | $insertRating = "INSERT INTO ".$this->productRatingTable." (product_id, rating_score, title, comment,reviewer,email, created_at, updated_at) VALUES ('".$POST['product_id']."', '".$POST['rating']."', '".$POST['title']."', '".$POST['comment']."', '".$POST['reviewer']."', '".$POST['email']."', '".date("Y-m-d H:i:s")."', '".date("Y-m-d H:i:s")."')"; 123 | mysqli_query($this->dbConnect, $insertRating); 124 | } 125 | 126 | 127 | } 128 | ?> 129 | -------------------------------------------------------------------------------- /Star-Rating-System-PHP/css/style.css: -------------------------------------------------------------------------------- 1 | .btn-grey{ 2 | background-color:#D8D8D8; 3 | color:#FFF; 4 | } 5 | .rating-block{ 6 | background-color:#FAFAFA; 7 | border:1px solid #EFEFEF; 8 | padding:15px 15px 20px 15px; 9 | border-radius:3px; 10 | } 11 | .bold{ 12 | font-weight:700; 13 | } 14 | .padding-bottom-7{ 15 | padding-bottom:7px; 16 | } 17 | 18 | .review-block{ 19 | background-color:#FAFAFA; 20 | border:1px solid #EFEFEF; 21 | padding:15px; 22 | border-radius:3px; 23 | margin-bottom:15px; 24 | } 25 | .review-block-verified-name{ 26 | font-size:12px; 27 | margin:10px 0; 28 | color: #a2a2a2; 29 | } 30 | .review-block-name{ 31 | font-size:12px; 32 | margin:10px 0; 33 | color: #737373; 34 | } 35 | .review-block-date{ 36 | font-size:12px; 37 | } 38 | .review-block-rate{ 39 | font-size:13px; 40 | margin-bottom:15px; 41 | } 42 | .review-block-title{ 43 | font-size:15px; 44 | font-weight:700; 45 | margin-bottom:10px; 46 | } 47 | .review-block-description{ 48 | font-size:13px; 49 | } 50 | .average { 51 | background-color:#388e3c; 52 | line-height: normal; 53 | display: inline-block; 54 | color: #fff; 55 | padding: 2px 4px 2px 6px; 56 | border-radius: 3px; 57 | font-weight: 500; 58 | font-size: 12px; 59 | vertical-align: middle; 60 | } 61 | .rating-reviews { 62 | padding-left: 8px; 63 | font-weight: 500; 64 | color: #878787; 65 | } 66 | 67 | 68 | 69 | @import url(http://fonts.googleapis.com/css?family=Roboto); 70 | 71 | /****** LOGIN MODAL ******/ 72 | .modal-body { 73 | padding: 30px; 74 | max-width: 350px; 75 | width: 100% !important; 76 | 77 | margin: 0 auto; 78 | border-radius: 2px; 79 | 80 | overflow: hidden; 81 | font-family: roboto; 82 | } 83 | 84 | 85 | 86 | .modal-body input[type=submit] { 87 | width: 100%; 88 | display: block; 89 | margin-bottom: 10px; 90 | position: relative; 91 | } 92 | 93 | .modal-body input[type=text], input[type=password] { 94 | height: 44px; 95 | font-size: 16px; 96 | width: 100%; 97 | margin-bottom: 10px; 98 | -webkit-appearance: none; 99 | background: #fff; 100 | border: 1px solid #d9d9d9; 101 | border-top: 1px solid #c0c0c0; 102 | /* border-radius: 2px; */ 103 | padding: 0 8px; 104 | box-sizing: border-box; 105 | -moz-box-sizing: border-box; 106 | } 107 | 108 | .modal-body input[type=text]:hover, input[type=password]:hover { 109 | border: 1px solid #b9b9b9; 110 | border-top: 1px solid #a0a0a0; 111 | -moz-box-shadow: inset 0 1px 2px rgba(0,0,0,0.1); 112 | -webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,0.1); 113 | box-shadow: inset 0 1px 2px rgba(0,0,0,0.1); 114 | } 115 | 116 | 117 | #loggedPanel{ 118 | padding: 20px; 119 | } 120 | 121 | .loginmodal { 122 | text-align: center; 123 | font-size: 14px; 124 | font-family: 'Arial', sans-serif; 125 | font-weight: 700; 126 | height: 36px; 127 | padding: 0 8px; 128 | /* border-radius: 3px; */ 129 | /* -webkit-user-select: none; 130 | user-select: none; */ 131 | } 132 | 133 | .loginmodal-submit { 134 | /* border: 1px solid #3079ed; */ 135 | border: 0px; 136 | color: #fff; 137 | text-shadow: 0 1px rgba(0,0,0,0.1); 138 | background-color: #4d90fe; 139 | padding: 17px 0px; 140 | font-family: roboto; 141 | font-size: 14px; 142 | /* background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#4d90fe), to(#4787ed)); */ 143 | } 144 | 145 | .loginmodal-submit:hover { 146 | /* border: 1px solid #2f5bb7; */ 147 | border: 0px; 148 | text-shadow: 0 1px rgba(0,0,0,0.3); 149 | background-color: #357ae8; 150 | /* background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#4d90fe), to(#357ae8)); */ 151 | } 152 | 153 | 154 | 155 | .login-help{ 156 | font-size: 12px; 157 | } 158 | .hidden { 159 | display:none; 160 | } 161 | .logged-user { 162 | font-weight:bold; 163 | } 164 | .user-pic { 165 | width: 60px; 166 | height: 60px; 167 | } 168 | 169 | /* for star css*/ 170 | .star-grey{ 171 | color:#ddd; 172 | } 173 | 174 | 175 | .star-highlight{ 176 | color:#f9e570 !important; 177 | } 178 | 179 | 180 | /* for reviewer name */ 181 | .circle { 182 | 183 | display: flex; 184 | justify-content: center; 185 | align-items: center; 186 | background: #ababab !important; 187 | border-radius:40px; 188 | height: 40px; 189 | width: 40px; 190 | 191 | } 192 | .circle div { 193 | color: white; 194 | font-weight: bold; 195 | 196 | } 197 | 198 | .product_price{ 199 | padding-left:20px; 200 | color:grey; 201 | } 202 | -------------------------------------------------------------------------------- /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', ' ', 12, 'frog.png', '2019-01-19 14:13:04', '2019-01-19 14:13:04'), 15 | (2, 'Chicken Toy', ' ', 21, 'chicken.png', '2019-01-19 14:13:04', '2019-01-19 14:13:04'); 16 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /Star-Rating-System-PHP/image/chicken.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/engineers-planet/PHP_Free_Downloads/ba8be31590052331a602e970dd2a14ad528c6420/Star-Rating-System-PHP/image/chicken.png -------------------------------------------------------------------------------- /Star-Rating-System-PHP/image/frog.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/engineers-planet/PHP_Free_Downloads/ba8be31590052331a602e970dd2a14ad528c6420/Star-Rating-System-PHP/image/frog.png -------------------------------------------------------------------------------- /Star-Rating-System-PHP/image/home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/engineers-planet/PHP_Free_Downloads/ba8be31590052331a602e970dd2a14ad528c6420/Star-Rating-System-PHP/image/home.png -------------------------------------------------------------------------------- /Star-Rating-System-PHP/image/product-detail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/engineers-planet/PHP_Free_Downloads/ba8be31590052331a602e970dd2a14ad528c6420/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/ba8be31590052331a602e970dd2a14ad528c6420/Star-Rating-System-PHP/image/product-rating.png -------------------------------------------------------------------------------- /Star-Rating-System-PHP/inc/header.php: -------------------------------------------------------------------------------- 1 | 2 | 5 | -------------------------------------------------------------------------------- /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 | 46 | -------------------------------------------------------------------------------- /Star-Rating-System-PHP/inc/product_detail_content.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 |

Product Detail Page

7 | getProduct($_GET['product_id']); 12 | $average = $rating->getRatingAverage($_GET['product_id']); 13 | $count = $rating->getRatingTotal($_GET['product_id']); 14 | $settingClass = $rating->getSetting(); 15 | 16 | 17 | foreach($productDetails as $product){ 18 | $average = $rating->getRatingAverage($product["id"]); 19 | 20 | 21 | ?> 22 |
23 |
24 | " style="width:200px;height:200px;padding:20px 25px;"> 25 |
26 |
27 |

28 | '; 38 | 39 | } 40 | echo $count . ' Reviews'; 41 | ?> 42 | 43 | '; 45 | echo '
$'.$product["price"].'
'; 46 | echo $product["description"]; ?> 47 |
48 |
49 | 50 | 51 | 52 | 53 | 54 |
55 |
56 |
57 | 76 |
77 | 78 |
79 | 80 |
81 | 82 |
83 |
84 |
85 |
86 | 127 | 128 |
REVIEWS
129 | 130 | 131 |
132 |
133 | getProductRating($_GET['product_id']); 135 | foreach($productRating as $rating){ 136 | $date=date_create($rating['created_at']); 137 | $reviewDate = date_format($date,"M d, Y"); 138 | // $profilePic = "profile.png"; 139 | // if($rating['avatar']) { 140 | // $profilePic = $rating['avatar']; 141 | // } 142 | ?> 143 |
144 |
145 | 146 | 147 |
148 |
149 |
150 | Verified Buyer
'; 154 | } 155 | ?> 156 |
By
157 |
158 | 159 |
160 |
161 | 168 | 169 | 170 | 171 | 172 |
173 |
174 |
175 |
176 | 177 |
178 |
179 |
180 | 181 | 182 |
183 |
184 | 185 |
186 |
187 |
188 |
189 | 190 | 191 | 192 | 217 | 218 | 219 | 220 | 221 | -------------------------------------------------------------------------------- /Star-Rating-System-PHP/index.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /Star-Rating-System-PHP/layout/app.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | <?php echo $title; ?> 16 | 17 | 18 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /Star-Rating-System-PHP/product_detail.php: -------------------------------------------------------------------------------- 1 | 2 | 7 | -------------------------------------------------------------------------------- /Student-management-system/Admin/addstudent.php: -------------------------------------------------------------------------------- 1 | 13 | 14 | 22 |

Add Students To The Records


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 |
Roll No
Full Name
City
Parents Contact no.
Standard
Image
55 |
56 | 57 | 58 | 59 | 60 | 87 | 90 | 98 | -------------------------------------------------------------------------------- /Student-management-system/Admin/admindash.php: -------------------------------------------------------------------------------- 1 | 15 |
16 |

Logout

17 |

Welcome To Admin Dashboard

18 | 19 |
20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /Student-management-system/Admin/deleteform.php: -------------------------------------------------------------------------------- 1 | 13 | 17 | 21 | -------------------------------------------------------------------------------- /Student-management-system/Admin/deletestudent.php: -------------------------------------------------------------------------------- 1 | 12 | 13 | 18 | 19 |

Delete Data From The Database

20 |
1.Insert Student
2.Update Student
3.Delete Student
21 | 22 | 23 | 26 | 29 | 30 | 33 | 36 | 37 | 38 | 39 | 40 | 41 | 42 |
24 | Enter Standard 25 | 27 | 28 | 31 | Enter Student Name 32 | 34 | 35 |
43 |
44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | "; 68 | } 69 | else{ 70 | $count=0; 71 | while($data=mysqli_fetch_assoc($run)){ 72 | $count++; 73 | ?> 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 87 | 88 |
No.ImageNameRoll NoEdit
No Records Found
Delete
89 | 90 | -------------------------------------------------------------------------------- /Student-management-system/Admin/header.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Student-management-system/Admin/titleheader.php: -------------------------------------------------------------------------------- 1 |
2 |

3 | Back To Dashboard 4 | Logout

5 |

Welcome To Admin Dashboard

6 | 7 |
8 | -------------------------------------------------------------------------------- /Student-management-system/Admin/updatedata.php: -------------------------------------------------------------------------------- 1 | 27 | 31 | 35 | -------------------------------------------------------------------------------- /Student-management-system/Admin/updateform.php: -------------------------------------------------------------------------------- 1 | 12 | 13 | 26 | 27 |

Edit The Data

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 | 60 | 61 |
Roll No required>
Full Name required>
City required>
Parents Contact no. required>
Standard required>
Image
58 | 59 |
62 |
63 | -------------------------------------------------------------------------------- /Student-management-system/Admin/updatestudent.php: -------------------------------------------------------------------------------- 1 | 12 | 13 | 18 | 19 |

Update Data Of Students


20 | 21 | 22 | 23 | 26 | 29 | 30 | 33 | 36 | 37 | 38 | 39 | 40 | 41 | 42 |
24 | Enter Standard 25 | 27 | 28 | 31 | Enter Student Name 32 | 34 | 35 |
43 |
44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | "; 68 | } 69 | else{ 70 | $count=0; 71 | while($data=mysqli_fetch_assoc($run)){ 72 | $count++; 73 | ?> 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 87 | 88 |
No.ImageNameRoll NoEdit
No Records Found
Edit
89 | 90 | -------------------------------------------------------------------------------- /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.phpfile. 32 |
33 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /Student-management-system/dataimg/abc.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/engineers-planet/PHP_Free_Downloads/ba8be31590052331a602e970dd2a14ad528c6420/Student-management-system/dataimg/abc.bmp -------------------------------------------------------------------------------- /Student-management-system/dataimg/image (2).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/engineers-planet/PHP_Free_Downloads/ba8be31590052331a602e970dd2a14ad528c6420/Student-management-system/dataimg/image (2).png -------------------------------------------------------------------------------- /Student-management-system/dbcon.php: -------------------------------------------------------------------------------- 1 | 11 | -------------------------------------------------------------------------------- /Student-management-system/function.php: -------------------------------------------------------------------------------- 1 | 0){ 12 | $data = mysqli_fetch_assoc($run); 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 | alert('No Student Found'); "; 51 | } 52 | } 53 | 54 | 55 | ?> 56 | -------------------------------------------------------------------------------- /Student-management-system/index.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Student Management System 8 | 9 | 10 | 11 | 12 |

Admin Login

13 |

Welcome To Student Management System

14 | 15 | 16 | 17 |
Student Details
Roll No
Name
City
Parents Contact no.
Standard
18 | 19 | 20 | 21 | 22 | 23 | 40 | 41 | 42 | 43 | 45 | 46 | 47 | 48 |
Student Information
Choose Standard 24 | 38 | 39 |
Enter Rollno 44 |
49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | -------------------------------------------------------------------------------- /Student-management-system/login.php: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 13 | Admin Login 14 | 15 | 16 | 17 |

Admin Login


18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 |
Username
Password
32 | 33 |
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/logout.php: -------------------------------------------------------------------------------- 1 | 7 | --------------------------------------------------------------------------------