codeigniter_test2/application/views/tes/v_admin_contoh.php

118 lines
3.6 KiB
PHP
Raw Normal View History

2020-01-02 23:07:40 +07:00
<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>