This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE `ci_session` ( | |
`id` varchar(40) NOT NULL, | |
`user_id` int(11) DEFAULT NULL, | |
`ip_address` varchar(45) NOT NULL, | |
`timestamp` int(10) unsigned NOT NULL DEFAULT '0', | |
`data` blob NOT NULL, | |
PRIMARY KEY (`id`), | |
KEY `ci_sessions_timestamp` (`timestamp`) | |
) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
defined('BASEPATH') OR exit('No direct script access allowed'); | |
class Contoh extends MY_Controller { | |
/*****************************************************************************/ | |
public function __construct() | |
{ | |
parent::__construct(); | |
$this->data['header'] = $this->parser->parse('contoh/header.html', $this->data, true); | |
$this->data['footer'] = $this->parser->parse('contoh/footer.html', $this->data, true); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title> | |
:: {site_title} :: | |
</title> | |
<meta content="Jerry Maheswara ([email protected]) +62-899-0055-099" name="author"/> | |
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" type="text/css" /> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> | |
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<nav class="navbar navbar-default" role="navigation"> | |
<div class="container"> | |
<div class="navbar-header"> | |
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse"> | |
<span class="sr-only">Toggle navigation</span> | |
<span class="icon-bar"></span> | |
<span class="icon-bar"></span> | |
<span class="icon-bar"></span> | |
</button> | |
<a class="navbar-brand" href="{base}/contoh">{site_title}</a> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="{is_login}"> | |
{user_info} | |
<h2>Welcome</h2> | |
<h4>{user_email} - Level : {user_level} </h4> | |
{/user_info} | |
</div> | |
<div class="{is_logout}"> | |
<h4>Title</h4> | |
<div>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod | |
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form action="" method="POST" class="form-horizontal" role="form"> | |
<div class="form-group"> | |
<legend>Login</legend> | |
</div> | |
<div class="form-group"> | |
<label class="col-sm-2 control-label">Email</label> | |
<div class="col-sm-10"> | |
<input type="email" name="user_email" class="form-control" /> | |
</div> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form action="" method="POST" class="form-horizontal" role="form"> | |
<div class="form-group"> | |
<legend>Register</legend> | |
</div> | |
<div class="form-group"> | |
<label class="col-sm-2 control-label">Email</label> | |
<div class="col-sm-10"> | |
<input type="email" name="user_email" class="form-control" /> | |
</div> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function opn($array) | |
{ | |
echo '<pre>';print_r($array);exit(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class=" "> | |
<div class=" "> | |
<table class="table table-bordered" id="example"> | |
<thead> | |
<tr class="bg-primary"> | |
<th> Kodepos </th> | |
<th> Desa / Kelurahan </th> | |
<th> Kecamatan </th> | |
<th> Kabupaten / Kota </th> | |
</tr> |