Skip to content

Commit

Permalink
Added base files
Browse files Browse the repository at this point in the history
  • Loading branch information
OmkarPathak committed Jul 27, 2017
1 parent 3960f47 commit bb5607d
Show file tree
Hide file tree
Showing 7 changed files with 564 additions and 0 deletions.
66 changes: 66 additions & 0 deletions view/abc.php
@@ -0,0 +1,66 @@
<?php
include('../includes/header.php');
?>
<?php if(!isset($_GET['id'])){
$query = "SELECT * FROM posts WHERE postID = 1";
$result = $con->query($query);
$row = $result->fetch_assoc();
$date = strtotime($row['postDate']);
$sqldate = date('d/m/Y', $date);
$row['date'] = $sqldate;

$query1 = 'SELECT * FROM users WHERE userID = ' . $row['userID'];
$result1 = $con->query($query1);
$row1 = $result1->fetch_assoc();
$row['postAuthor'] = 'BY: '.$row1['fullName'];
?>
<ul class="breadcrumb">
<li class="breadcrumb-item"><a href="index.php">Home</a></li>
<li class="breadcrumb-item">Tutorials</li>
</ul>
<div id="postMeta" class="text-center">
<h3 class="text-center" id="postTitle"><?php echo $row['postTitle']; ?></h3>
<h4 class="text-muted"><p id="postAuthor" style="text-transform: uppercase;"><?php echo $row['postAuthor']; ?> ON <?php echo $row['date']; ?></p></h4>
<br>
<div id="postContent" class="text-justify"><?php echo $row['postContent']; ?></div>
</div>
<?php
}
?>

<?php
if(isset($_GET['id'])){
$query = 'SELECT * FROM posts WHERE postID = ' . $_GET['id'] ;
$result = $con->query($query);
$row = $result->fetch_assoc();
$date = strtotime($row['postDate']);
$sqldate = date('d/m/Y', $date);
$row['date'] = $sqldate;

$query1 = 'SELECT * FROM users WHERE userID = ' . $row['userID'];
$result1 = $con->query($query1);
$row1 = $result1->fetch_assoc();
$row['postAuthor'] = 'BY: '.$row1['fullName'];
?>
<ul class="breadcrumb">
<li class="breadcrumb-item"><a href="index.php">Home</a></li>
<li class="breadcrumb-item">Tutorials</li>
</ul>
<div id="postMeta" class="text-center">
<h3 class="text-center" id="postTitle"><?php echo $row['postTitle']; ?></h3>
<h4 class="text-muted"><p id="postAuthor" style="text-transform: uppercase;"><?php echo $row['postAuthor']; ?> ON <?php echo $row['date']; ?></p></h4>
<br>
<div id="postContent" class="text-justify"><?php echo $row['postContent']; ?></div>
</div>
<?php
}
?>

<div id="postMeta" class="text-center">
<h3 class="text-center" id="postTitle"></h3>
<h4 class="text-muted"><p id="postAuthor" style="text-transform: uppercase;"></p></h4>
<br>
<div id="postContent" class="text-justify"></div>
</div>

<?php include('../includes/footer.php');?>
50 changes: 50 additions & 0 deletions view/aboutMe.php
@@ -0,0 +1,50 @@
<?php
include('../includes/headerForPosts.php');
;?>

<div class="container">
<p style="font-size: 25px;" class="text-center">Now that you have shown interest in knowing me, let me tell you something about me.</p>
<div class="row">
<p style="font-size: 20px;">I love programming and get this straight! I like to code. I hate to attend lectures. Yeah that's right, teachers are pissed at me all time because of this. <i>But guess what, I am ok with that!</i> I am into competitive program from about 2 months as on June 2017. Competitive programming boosts your programming skills to other level. Ah! I hate to write about myself. If you want to know more just find me on Quora and read my answers. </p>

<p style="font-size: 20px;">Here are some of my pictures (Some recent, some old)</p>

<div class="col-lg-4 col-md-4 col-sm-12 col-xs-12 thumbnail">
<div class="panel panel-default text-center slideanim">
<img src="../images/Omkar1.jpeg" class="img-responsive">
</div> <!-- ./panel -->
</div><!-- ./column -->

<div class="col-lg-4 col-md-4 col-sm-12 col-xs-12 thumbnail">
<div class="panel panel-default text-center slideanim">
<img src="../images/Omkar2.jpeg" class="img-responsive">
</div> <!-- ./panel -->
</div><!-- ./column -->

<div class="col-lg-4 col-md-4 col-sm-12 col-xs-12 thumbnail">
<div class="panel panel-default text-center slideanim">
<img src="../images/Omkar3.jpeg" class="img-responsive">
</div> <!-- ./panel -->
</div><!-- ./column -->

<div class="col-lg-4 col-md-4 col-sm-12 col-xs-12 thumbnail">
<div class="panel panel-default text-center slideanim">
<img src="../images/Omkar4.jpeg" class="img-responsive">
</div> <!-- ./panel -->
</div><!-- ./column -->

<div class="col-lg-4 col-md-4 col-sm-12 col-xs-12 thumbnail">
<div class="panel panel-default text-center slideanim">
<img src="../images/Omkar5.jpeg" class="img-responsive">
</div> <!-- ./panel -->
</div><!-- ./column -->

<div class="col-lg-4 col-md-4 col-sm-12 col-xs-12 thumbnail">
<div class="panel panel-default text-center slideanim">
<img src="../images/Omkar6.jpeg" class="img-responsive">
</div> <!-- ./panel -->
</div><!-- ./column -->
</div>
</div>

<?php include('../includes/footer.php');?>
30 changes: 30 additions & 0 deletions view/imageGallery-photography.php
@@ -0,0 +1,30 @@
<?php
include('../includes/headerForPosts.php');
;?>

<?php
$query2 = 'SELECT * FROM images WHERE category = "photography"';
$result2 = $con->query($query2);
while($row2 = $result2->fetch_assoc()){
?>
<div class='col-sm-12 col-xs-12 col-md-4 col-lg-4' style="margin-bottom: 20px;">
<a data-fancybox="gallery" href="<?php echo $row2['imagePath']; ?>">
<img class="img-responsive" alt="<?php echo $row2['imageAlt']; ?>" src="<?php echo $row2['imagePath']; ?>">
<!--<div class='text-right'>
<small class='text-muted'>Image Title</small>
</div> text-right / end -->
</a>
</div> <!-- col-6 / end -->
<?php } ?>

<script type="text/javascript">
$(document).ready(function(){
//FANCYBOX
//https://github.com/fancyapps/fancyBox
$(".fancybox").fancybox({
openEffect: "none",
closeEffect: "none"
});
});
</script>
<?php include('../includes/footer.php');?>
33 changes: 33 additions & 0 deletions view/imageGallery-sketches.php
@@ -0,0 +1,33 @@
<?php
include('../includes/headerForPosts.php');
;?>
<div class="list-group gallery">

<?php
$query2 = 'SELECT * FROM images WHERE category = "sketching"';
$result2 = $con->query($query2);
while($row2 = $result2->fetch_assoc()){
?>
<div class='col-sm-12 col-xs-12 col-md-4 col-lg-4' style="margin-bottom: 20px;">
<a data-fancybox="gallery" href="<?php echo $row2['imagePath']; ?>">
<img class="img-responsive" alt="<?php echo $row2['imageAlt']; ?>" src="<?php echo $row2['imagePath']; ?>">
<!--<div class='text-right'>
<small class='text-muted'>Image Title</small>
</div> text-right / end -->
</a>
</div> <!-- col-6 / end -->
<?php } ?>

</div>

<script type="text/javascript">
$(document).ready(function(){
//FANCYBOX
//https://github.com/fancyapps/fancyBox
$(".fancybox").fancybox({
openEffect: "none",
closeEffect: "none"
});
});
</script>
<?php include('../includes/footer.php');?>

0 comments on commit bb5607d

Please sign in to comment.