codeigniter_test/application/views/blog/vSingle.php
2020-01-02 22:49:45 +07:00

250 lines
10 KiB
PHP
Raw Permalink Blame History

<!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 rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>asset/css/wmd-master/wmd.css"/>
<link href="<?php echo base_url(); ?>asset/css/style2_css.css" rel="stylesheet">
<style type="text/css">
textarea {width:90%;margin:0;}
textarea, #notes-preview {border:1px solid gray;}
#notes-preview {overflow-x:hidden;overflow-y:scroll;}
#copy_html{display:none;}
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>
</div>
</div>
</div>
</div>
<div class="row-fluid"><!--Content-->
<!--section-->
<div class="span7 offset1 well">
<?php
$att = array('id' => 'biodata-form');
echo form_open('', $att);
echo form_hidden('id',$edit->id);
?>
<div class="row-fluid">
<div class="navbar">
<div class="navbar-inner">
<a class="brand" color="#000" href=""><?php echo $edit->post_title; ?></a>
</div>
</div>
<div id="body"><p><?php echo $edit->post_content; ?></p></p></div>
</div>
<hr ><span style="color:#000;font-size:18px">Comment</span>
<div class="row-fluid">
<form>
<input type="text" class="span6" placeholder="Email">
<div class="control-group">
<div id="notes-button-bar"></div>
<div class="controls">
<textarea id="notes" placeholder="Type your comment.." rows="8"></textarea>
<textarea id="copy_html" name="content"></textarea>
</div>
</div>
<div class="control-group">
<div class="controls">
<button type="submit" class="btn btn-primary">Submit</button>
</div>
</div>
</form>
</div>
</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>
<hr>
<footer class="footer">
<div class="container">
<p>&copy; 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>
</footer>
</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/css/wmd-master/wmd.js"></script>
<script src="<?php echo base_url(); ?>asset/css/wmd-master/showdown.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('ul.sf-menu').sooperfish();
});
new WMDEditor({
input: "notes",
button_bar: "notes-button-bar",
preview: "notes-preview",
output: "copy_html",
buttons: "bold italic link ol ul heading undo redo",
modifierKeys: true,
autoFormatting: false
});
</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-modal.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>
-->