Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test #3

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .deepsource.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
version = 1

[[analyzers]]
name = "php"
28 changes: 14 additions & 14 deletions index.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
<?php
include_once "includes/db.php"
?>

Expand All @@ -10,7 +10,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Ecommerce Fajar</title>

<!-- fonts -->
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Roboto:400,500,700,300,100" />
<!-- Bootstrap CSS -->
Expand All @@ -22,8 +22,8 @@
</head>
<body>

<div id="top"><!-- top starts -->

< id="top"><!-- top starts -->
<div class="container"><!-- container start -->
<div class="row">
<div class="col-md-6 offer">
Expand All @@ -42,7 +42,7 @@
</div>
</div>
</div><!-- container end -->
</div><!-- top end -->
</><!-- top end -->

<nav class="navbar navbar-expand-lg navbar-light" id="navbar">
<div class="container">
Expand Down Expand Up @@ -70,7 +70,7 @@
<a class="nav-link" href="contact.php">Contact Us</a>
</li>
</ul>
</div><!-- padding-nav ends -->
</div><!-- padding-nav ends -->
</div><!-- collapse navbar-collapse ends -->
<div class="clearfix">
<button class="btn btn-primary mr-1" type="button" data-toggle="collapse" data-target="#search" aria-expanded="false" aria-controls="collapseExample">
Expand Down Expand Up @@ -104,7 +104,7 @@
<li data-target="#slides_images" data-slide-to="3"></li>
</ol>
<div class="carousel-inner">
<?php
<?php
$get_slides = "SELECT * FROM slider LIMIT 0,1";
$run_slides = mysqli_query($con, $get_slides);

Expand All @@ -115,7 +115,7 @@
<div class="carousel-item active">
<img class="d-block w-100 h-25" src="admin_area/slides_images/<?=$slide_img;?>" alt="<?=$slide_name;?>">
</div>
<?php
<?php
endwhile;

$get_slides2 = "SELECT * FROM slider LIMIT 1,3";
Expand All @@ -125,14 +125,14 @@
$slide_name2 = $row_slides2['slider_name'];
$slide_img2 = $row_slides2['slider_img'];
?>

<div class="carousel-item">
<img class="d-block w-100 h-25" src="admin_area/slides_images/<?=$slide_img2;?>" alt="<?=$slide_name2;?>">
</div>

<?php
<?php
endwhile;
?>
?>
<!-- <div class="carousel-item active">
<img class="d-block w-100 h-25" src="admin_area/slides_images/slide1.jpg" alt="First slide">
</div>
Expand Down Expand Up @@ -376,10 +376,10 @@
</div> <!-- text ends -->
</div> <!-- product ends -->
</div> <!-- col-sm-4 col-sm-6 single ends -->

</div> <!-- row ends -->
</div><!-- container ends -->

<?php include_once "includes/footer.php"; ?>

<!-- Optional JavaScript -->
Expand All @@ -388,4 +388,4 @@
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script>
</body>
</html>
</html>