You've already forked codeigniter_test2
first commit
This commit is contained in:
55
application/views/tes/HalamanUtama.php
Normal file
55
application/views/tes/HalamanUtama.php
Normal file
@ -0,0 +1,55 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title><?php echo $judul; ?></title>
|
||||
<link href="../../css/barang.css" rel="stylesheet" type="text/css" />
|
||||
<script>
|
||||
function myFunction(id)
|
||||
{
|
||||
var url="<?php echo base_url();?>";
|
||||
var r=confirm("Do you want to delete this?");
|
||||
if (r==true)
|
||||
{
|
||||
window.location = url+"index.php/barang_controller/delete/"+id;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body class="bg">
|
||||
<div class="content">
|
||||
<a href="<?php echo base_url().'index.php/user_controller/logout'; ?>">Logout</a>
|
||||
<div class="barang">
|
||||
<h3>Daftar Barang</h3>
|
||||
<table border="5">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Nama Barang</th>
|
||||
<th>Harga</th>
|
||||
<th>Action</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
foreach($daftar_barang as $barang){
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $barang->nama; ?></td>
|
||||
<td><?php echo $barang->harga; ?></td>
|
||||
<td><?php echo '<a href="'.base_url().'index.php/barang_controller/edit/'.$barang->id.'"><button id="bt">Edit</button></a>' ?>
|
||||
<button id="bt" onclick="myFunction(<?php echo $barang->id;?>)">Delete</button>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
53
application/views/tes/View_login.php
Normal file
53
application/views/tes/View_login.php
Normal file
@ -0,0 +1,53 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html>
|
||||
<head>
|
||||
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>Login Form</title>
|
||||
|
||||
<link href="style.css" rel="stylesheet" type="text/css" />
|
||||
|
||||
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
<div id="wrapper">
|
||||
|
||||
|
||||
<div class="user-icon"></div>
|
||||
<div class="pass-icon"></div>
|
||||
|
||||
|
||||
|
||||
<form name="loginform" class="form" action="validasi" method="post">
|
||||
|
||||
|
||||
<div class="header">
|
||||
<h1>Login</h1>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="content">
|
||||
<p>Email</p>
|
||||
<input name="username" type="text" class="input" value="email" onfocus="[this.value='']"/> <br /><br />
|
||||
<p>Password</p>
|
||||
<input name="password" type="password" class="input" value="Password" onfocus="[this.value='']" />
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="footer">
|
||||
<input type="submit" name="submit" value="Login" class="button" />
|
||||
</div>
|
||||
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
BIN
application/views/tes/image/Untitled-3.png
Normal file
BIN
application/views/tes/image/Untitled-3.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.0 KiB |
38
application/views/tes/login.php
Normal file
38
application/views/tes/login.php
Normal file
@ -0,0 +1,38 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>Login</title>
|
||||
<link href="../../css/login.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body class="bg">
|
||||
<div class="login">
|
||||
<!--
|
||||
<h1 style="padding-left:20px;padding-top:30px">Login</h1>
|
||||
<form action="validasi" method="post">
|
||||
<table width="390" style="padding-left:15px;border-spacing:10px">
|
||||
<tr><td width="70"><a3>Username</a3></td><td width="3">:</td><td width="144"><input type="text" name="username" /></td></tr>
|
||||
<tr><td><a3>Password</a3></td><td>:</td><td><input type="password" name="password" /></td></tr>
|
||||
<tr><td></td></td><td></td><td width="151" style="padding-left:100px"><input type="submit" name="login" onclick="halo" /></td></tr>
|
||||
</table>
|
||||
</form>
|
||||
-->
|
||||
<form id="form1" action="validasi" method="post">
|
||||
|
||||
<fieldset>
|
||||
<legend><h3 style="font-family:'Palatino Linotype', 'Book Antiqua', Palatino, serif">Login</h3></legend>
|
||||
<table width="200" style="border-spacing:10px;margin-left:10%">
|
||||
<tr>
|
||||
<td><input type="text" name="username" value="Username" onfocus="{this.value = '';}" onblur="if (this.value == '') {this.value = 'Username';}"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><input type="password" name="password" value="password" onfocus="{this.value = '';}" onblur="if (this.value == '') {this.value = 'Password';}/></td>
|
||||
<tr>
|
||||
<td colspan="2"><p class="submit"><button type="submit">Login</button></p><td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
29
application/views/tes/v_admin.dwt
Normal file
29
application/views/tes/v_admin.dwt
Normal file
@ -0,0 +1,29 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>Halaman Admin</title>
|
||||
<link rel="stylesheet" type="text/css" href="css2.css">
|
||||
|
||||
</style></head>
|
||||
|
||||
<body>
|
||||
|
||||
<div class="wrapper">
|
||||
<div class="header"></a>
|
||||
</div>
|
||||
|
||||
<div class="header2"></a>
|
||||
</div>
|
||||
|
||||
<div class="sidebar1">
|
||||
<br />
|
||||
<ul class="nav">
|
||||
<li><a href="">Kelola Data Admin</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="content">
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
28
application/views/tes/v_admin.php
Normal file
28
application/views/tes/v_admin.php
Normal file
@ -0,0 +1,28 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>Halaman Admin</title>
|
||||
<link rel="stylesheet" type="text/css" href="css2.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div class="wrapper">
|
||||
<div class="header"><a href="v_admin.php"><img src="image/Untitled-3.png" /></a>
|
||||
</div>
|
||||
|
||||
<div class="header2">
|
||||
</div>
|
||||
|
||||
<div class="sidebar1">
|
||||
<ul class="nav">
|
||||
<li><a href="">Kelola Data Barang</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="content">
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
118
application/views/tes/v_admin_contoh.php
Normal file
118
application/views/tes/v_admin_contoh.php
Normal file
@ -0,0 +1,118 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Admin Pemesanan Tiket</title>
|
||||
|
||||
<base href="<?php echo base_url() ?>" />
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="file:///C|/wamp/www/tiket_rai/application/views/admin/css/smoothness/jquery-ui-1.8.2.custom.css" />
|
||||
<link type="text/css" rel="stylesheet" href="styles.css">
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="ajaxLoadAni">
|
||||
<img src="file:///C|/wamp/www/tiket_rai/application/views/admin/images/ajax-loader.gif" alt="Ajax Loading Animation" />
|
||||
<span>Loading...</span>
|
||||
</div>
|
||||
<center><h1>List Admin</h1></center>
|
||||
<div id="tabs">
|
||||
|
||||
<ul>
|
||||
<li><a href="#read">List Admin</a></li>
|
||||
<li><a href="#create">Admin Baru</a></li>
|
||||
</ul>
|
||||
|
||||
<div id="read">
|
||||
<div class="testing"></div>
|
||||
<table id="records">
|
||||
<thead>
|
||||
<tr>
|
||||
<td>ID Admin</td><td>Nama Admin</td><td>Email</td><td>Aksi</td>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
</div>
|
||||
<div id="create">
|
||||
<form action="http://localhost/tiket_rai/index.php/admin/admin/insert" method="post">
|
||||
<table>
|
||||
<tr>
|
||||
<td width="300px"><label for="id_admin">ID Admin</label></td>
|
||||
<td><input type="text" name="id_admin" /></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="nama_admin">Nama</label></td>
|
||||
<td><input type="text" name="nama_admin" /></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="email">Email</label></td>
|
||||
<td><input type="text" name="email" /></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="sandi">Sandi</label></td>
|
||||
<td><input type="password" name="sandi" /></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td></td>
|
||||
<td><input type="submit" value="Tambah"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div> <!-- end tabs -->
|
||||
|
||||
<!-- update form in dialog box -->
|
||||
<div id="updateDialog" title="Update">
|
||||
<div>
|
||||
<form action="" method="post">
|
||||
<p>
|
||||
<label for="nama_admin">Nama:</label>
|
||||
<input type="text" id="nama_admin" name="nama_admin" />
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<label for="email">Email:</label>
|
||||
<input type="text" id="email" name="email" />
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<label for="sandi">Sandi:</label>
|
||||
<input type="password" id="sandi" name="sandi" />
|
||||
</p>
|
||||
|
||||
<input type="hidden" id="id_admin" name="id_admin" />
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- delete confirmation dialog box -->
|
||||
<div id="delConfDialog" title="Confirm">
|
||||
<p>Apakah Anda Yakin</p>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- message dialog box -->
|
||||
<div id="msgDialog"><p></p></div>
|
||||
|
||||
|
||||
<script type="text/javascript" src="file:///C|/wamp/www/tiket_rai/application/views/admin/js/jquery-1.4.2.min.js"></script>
|
||||
<script type="text/javascript" src="file:///C|/wamp/www/tiket_rai/application/views/admin/js/jquery-ui-1.8.2.min.js"></script>
|
||||
<script type="text/javascript" src="file:///C|/wamp/www/tiket_rai/application/views/admin/js/jquery-templ.js"></script>
|
||||
|
||||
<script type="text/template" id="readTemplate">
|
||||
<tr id="${id_admin}">
|
||||
<td>${id_admin}</td>
|
||||
<td>${nama_admin}</td>
|
||||
<td>${email}</td>
|
||||
<td><a class="updateBtn" href="${updateLink}">Ubah</a> | <a class="deleteBtn" href="${deleteLink}">Hapus</a></td>
|
||||
</tr>
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" src="file:///C|/wamp/www/tiket_rai/application/views/admin/js/adminall.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user