Skip to content

Instantly share code, notes, and snippets.

View jerry-maheswara-github's full-sized avatar

Jerry Maheswara jerry-maheswara-github

View GitHub Profile
<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>
<?php
function opn($array)
{
echo '<pre>';print_r($array);exit();
}
<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>
<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>
<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,
<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>
<!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>
<?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);
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;