219 lines
9.4 KiB
PHP
219 lines
9.4 KiB
PHP
<!DOCTYPE html>
|
||
<html lang="en">
|
||
<head>
|
||
<meta charset="utf-8">
|
||
<title>Your Blog</title>
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
<meta name="description" content="">
|
||
<meta name="author" content="">
|
||
|
||
<!--styles -->
|
||
<link href="<?php echo base_url(); ?>asset/bootstrap/css/bootstrap.css" rel="stylesheet">
|
||
<link href="<?php echo base_url(); ?>asset/css/style2_css.css" rel="stylesheet">
|
||
<style type="text/css">
|
||
body {
|
||
padding-top: 60px;
|
||
padding-bottom: 40px;
|
||
}
|
||
.sidebar-nav {
|
||
padding: 9px 0;
|
||
}
|
||
|
||
@media (max-width: 980px) {
|
||
/* Enable use of floated navbar text */
|
||
.navbar-text.pull-right {
|
||
float: none;
|
||
padding-left: 5px;
|
||
padding-right: 5px;
|
||
}
|
||
}
|
||
</style>
|
||
<link href="<?php echo base_url(); ?>asset/bootstrap/css/bootstrap-responsive.css" rel="stylesheet">
|
||
<script src="<?php echo base_url(); ?>asset/bootstrap/js/jquery.js"></script>
|
||
<script>
|
||
$(document).ready(function(){
|
||
//$("#islogin").hide();
|
||
if (<?php echo $this->auth->CI->session->userdata('is_log_in'); ?>=="1") {
|
||
$("#isnotlogin").hide();
|
||
$("#islogin").show();
|
||
};
|
||
});
|
||
</script>
|
||
|
||
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
|
||
<!--[if lt IE 9]>
|
||
<script src="../assets/js/html5shiv.js"></script>
|
||
<![endif]-->
|
||
</head>
|
||
|
||
<body>
|
||
<!--Navigation bar-->
|
||
<div class="navbar navbar-inverse navbar-fixed-top">
|
||
<div class="navbar-inner">
|
||
<div class="container-fluid">
|
||
<button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
|
||
<span class="icon-bar"></span>
|
||
<span class="icon-bar"></span>
|
||
<span class="icon-bar"></span>
|
||
</button>
|
||
<a class="brand" href="#">Project name</a>
|
||
<div class="nav-collapse collapse">
|
||
<ul class="nav pull-right">
|
||
<!--if log in-->
|
||
<li id="islogin" class="dropdown" style="display:none">
|
||
<a href="#" id="drop3" role="button" class="dropdown-toggle" data-toggle="dropdown"><?php echo $this->auth->CI->session->userdata('nama'); ?><b class="caret"></b></a>
|
||
<ul class="dropdown-menu" role="menu" aria-labelledby="drop3">
|
||
<li role="presentation">
|
||
<a role="menuitem" tabindex="-1" href="<?php echo base_url(); ?>admin">Dashboard</a>
|
||
</li>
|
||
<li role="presentation" class="divider"></li>
|
||
<li role="presentation">
|
||
<a role="menuitem" tabindex="-1" href="<?php echo base_url(); ?>admin/logout">Logout</a>
|
||
</li>
|
||
</ul>
|
||
</li>
|
||
<!--if not log in-->
|
||
<li id="isnotlogin" class="dropdown">
|
||
<a href="#" id="drop3" role="button" class="dropdown-toggle" data-toggle="dropdown">Login<b class="caret"></b></a>
|
||
<ul class="dropdown-menu" role="menu" aria-labelledby="drop3">
|
||
<li role="presentation" class="row=fluid well">
|
||
<form action="<?php echo base_url(); ?>admin/login_auth" method="post">
|
||
<input class="span2" type="text" name="username" placeholder="Email">
|
||
<input class="span2" type="password" name="password" placeholder="Password">
|
||
<button type="submit" class="btn btn-primary">Sign in</button>
|
||
</form>
|
||
</li>
|
||
</ul>
|
||
</li>
|
||
|
||
</ul>
|
||
<!--
|
||
<ul class="nav">
|
||
<li class="active"><a href="#">Home</a></li>
|
||
<li><a href="#about">About</a></li>
|
||
<li><a href="#contact">Contact</a></li>
|
||
</ul>
|
||
-->
|
||
</div><!--/.nav-collapse -->
|
||
</div>
|
||
</div>
|
||
</div><!--/.navbar-->
|
||
|
||
<!--Container-->
|
||
<div class="container-fluid">
|
||
<div class="row-fluid"><!--hero-unit-->
|
||
<div class="span10 offset1 hero-unit">
|
||
<h1>Hello, world!</h1>
|
||
<p>This is a template for a simple marketing or informational website.</p>
|
||
<p><a href="#" class="btn btn-primary btn-large">Learn more <20></a></p>
|
||
</div>
|
||
</div>
|
||
<div class="row-fluid"><!--Navigation-->
|
||
<div class="span10 offset1 navbar">
|
||
<div class="navbar-inner">
|
||
<div class="container">
|
||
<ul class="nav">
|
||
<li class="active"><a href="#">Home</a></li>
|
||
<li><a href="#">Projects</a></li>
|
||
<li><a href="#">Services</a></li>
|
||
<li><a href="#">Downloads</a></li>
|
||
</ul>
|
||
<input type="text" class="input-medium search-query pull-right" placeholder="Search" valign="middle">
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="row-fluid"><!--Content-->
|
||
<!--section-->
|
||
<div class="span7 offset1 well">
|
||
<ul class="unstyled">
|
||
<?php
|
||
foreach($daftarpost as $post):
|
||
?>
|
||
<li id="post">
|
||
<div class="row-fluid">
|
||
<div class="navbar">
|
||
<div class="navbar-inner">
|
||
<a class="brand" color="#000" href="<?php echo base_url();?>blog/post/<?php echo $post["id"] ?>"><?php echo $post["post_title"] ?></a>
|
||
</div>
|
||
</div>
|
||
<div id="body"><p><?php echo $post["post_content"] ?></p></div>
|
||
<a style="color:#00F" href="<?php echo base_url();?>blog/post/<?php echo $post["id"] ?>"><button class="btn btn-small btn-info">Comment</button></a><hr >
|
||
</div>
|
||
</li>
|
||
<?php endforeach; ?>
|
||
</ul>
|
||
<?php echo $this->pagination->create_links(); ?>
|
||
</div><!--/span-->
|
||
<!--sidebar-->
|
||
<div class="span3 sidebar hidden-phone">
|
||
<div class="well ">
|
||
<ul class="nav nav-list">
|
||
<li class="active"><a href="#1">Section1</a></li>
|
||
<li class=""><a href="#2">Section1</a></li>
|
||
<li class=""><a href="#3">Section1</a></li>
|
||
<li class=""><a href="#4">Section1</a></li>
|
||
</ul>
|
||
</div><!--/.well -->
|
||
</div><!--/span3-->
|
||
</div><!--/row-->
|
||
<hr>
|
||
<div class="row well hidden-phone"><!--Heading-->
|
||
<div class="span3">
|
||
<h2>Heading</h2>
|
||
<p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. </p>
|
||
<p><a class="btn" href="#">View details <20></a></p>
|
||
</div>
|
||
<div class="span3">
|
||
<h2>Heading</h2>
|
||
<p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. </p>
|
||
<p><a class="btn" href="#">View details <20></a></p>
|
||
</div>
|
||
<div class="span3">
|
||
<h2>Heading</h2>
|
||
<p>Donec sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta felis euismod semper. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</p>
|
||
<p><a class="btn" href="#">View details <20></a></p>
|
||
</div>
|
||
<div class="span3">
|
||
<h2>Heading</h2>
|
||
<p>Donec sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta felis euismod semper. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</p>
|
||
<p><a class="btn" href="#">View details <20></a></p>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<hr>
|
||
<footer class="footer">
|
||
<div class="container">
|
||
<p>© Company 2013</p>
|
||
<ul class="footer-links">
|
||
<li><a href="http://blog.getbootstrap.com">Blog</a></li>
|
||
<li class="muted"><3E></li>
|
||
<li><a href="https://github.com/twitter/bootstrap/issues?state=open">Issues</a></li>
|
||
<li class="muted"><3E></li>
|
||
<li><a href="https://github.com/twitter/bootstrap/blob/master/CHANGELOG.md">Changelog</a></li>
|
||
</ul>
|
||
</div>
|
||
</div><!--/.fluid-container-->
|
||
|
||
<!--javascript-->
|
||
<script src="<?php echo base_url(); ?>asset/bootstrap/js/bootstrap-dropdown.js"></script>
|
||
<script src="<?php echo base_url(); ?>asset/bootstrap/js/bootstrap-tab.js"></script>
|
||
<script src="<?php echo base_url(); ?>asset/bootstrap/js/bootstrap-tooltip.js"></script>
|
||
<script src="<?php echo base_url(); ?>asset/bootstrap/js/bootstrap-collapse.js"></script>
|
||
<script src="<?php echo base_url(); ?>asset/bootstrap/js/bootstrap-carousel.js"></script>
|
||
<script src="<?php echo base_url(); ?>asset/bootstrap/js/bootstrap-modal.js"></script>
|
||
|
||
</body>
|
||
</html>
|
||
|
||
<!--
|
||
<script src="<?php //echo base_url(); ?>bootstrap/js/bootstrap-transition.js"></script>
|
||
<script src="<?php //echo base_url(); ?>bootstrap/js/bootstrap-alert.js"></script>
|
||
<script src="<?php //echo base_url(); ?>bootstrap/js/bootstrap-button.js"></script>
|
||
<script src="<?php //echo base_url(); ?>bootstrap/js/bootstrap-typeahead.js"></script>
|
||
<script src="<?php //echo base_url(); ?>bootstrap/js/bootstrap-scrollspy.js"></script>
|
||
<script src="<?php //echo base_url(); ?>bootstrap/js/bootstrap-popover.js"></script>
|
||
-->
|