Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
rhalp10 committed May 8, 2019
0 parents commit 5119ddb
Show file tree
Hide file tree
Showing 230 changed files with 73,321 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto
3 changes: 3 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
IndexIgnore *

Options +MultiViews
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2019 Rhalp Darren R. Cabrera

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# saka_ecom-inv
35 changes: 35 additions & 0 deletions action-data.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?php
include('dbconfig.php');

if (isset($_POST['action'])) {

if ($_POST['action'] == "product_view") {
$output = array();
$prod_ID = $_POST['data_id'];
$sql = "SELECT * FROM `products` WHERE prod_ID = $prod_ID";
$result = mysqli_query($conn, $sql);
while ($row = mysqli_fetch_array($result)) {
$output["prod_Name"] = $row["prod_Name"];
if (!empty($row['prod_Img'])) {
$output["prod_Img"] = 'data:image/jpeg;base64,'.base64_encode($row['prod_Img']);
}
else{
$output["prod_Img"] = "";
}

$output["prod_Name"] = $row["prod_Name"];
$output["prod_Description"] = $row["prod_Description"];
$output["prod_ScientificName"] = $row["prod_ScientificName"];
$output["prod_EnglishName"] = $row["prod_EnglishName"];
$output["prod_Price"] = $row["prod_Price"];
$output["prod_Qnty"] = $row["prod_Weight"];
$output["prod_Season"] = $row["prod_Season"];
}

echo json_encode($output);

}


}
?>
59 changes: 59 additions & 0 deletions authentication.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@

<!doctype html>
<html lang="en">
<?php
include ('x-head.php')
?>
<body>
<?php
include('x-header.php');
?>


<div class="container">
<div class="row">
<div class="col" style=" border: 1px solid #1d8f1d; border-radius:5px 0px 0px 5px">

<div class="text-center" style="padding:20%">
<h2>SAKA</h2>
<img src="img/icon1.png" width="80%">
</div>
</div>
<div class="col" style=" background-color: #f0f0f0; border: 1px solid #1d8f1d; border-radius:0px 5px 5px 0px;" >
<form class="form-signin" style="">
<div class="text-center mb-4">
<img class="mb-4" src="img/logo.png" width="72" height="72">
<h1 class="h3 mb-3 font-weight-normal">Login</h1>
</div>

<div class="form-label-group">
<input type="email" id="inputEmail" class="form-control" placeholder="Email address" required autofocus>
<label for="inputEmail">Email address</label>
</div>

<div class="form-label-group">
<input type="password" id="inputPassword" class="form-control" placeholder="Password" required>
<label for="inputPassword">Password</label>
</div>

<div class="checkbox mb-3">
<label>
<input type="checkbox" value="remember-me"> Remember me
</label>
</div>
<button class="btn btn-lg btn-primary btn-block" type="submit" style="background-color: #1d8f1d">Sign in</button>
<p class="mt-5 mb-3 text-muted text-center">&copy; <?php
$fromYear = 2019;
$thisYear = (int)date('Y');
echo $fromYear . (($fromYear != $thisYear) ? '-' . $thisYear : '');?> CVSU Main Indang - Saka, All rights reserved</p>
</form>
</div>
</div>

</div>

</body>
<?php
include('x-script.php');
?>
</html>
33 changes: 33 additions & 0 deletions css/album.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
.jumbotron {
padding-top: 3rem;
padding-bottom: 3rem;
margin-bottom: 0;
background-color: #fff;
}
@media (min-width: 768px) {
.jumbotron {
padding-top: 6rem;
padding-bottom: 6rem;
}
}

.jumbotron p:last-child {
margin-bottom: 0;
}

.jumbotron-heading {
font-weight: 300;
}

.jumbotron .container {
max-width: 40rem;
}

footer {
padding-top: 3rem;
padding-bottom: 3rem;
}

footer p {
margin-bottom: .25rem;
}
Loading

0 comments on commit 5119ddb

Please sign in to comment.