Example #1
0
<?php

if (!isset($_GET['act'])) {
    ?>
	<h1>Major <small>| <a href="?p=major&act=add">Add Major</a></small></h1>
	<div class="row">
		<div class="col-md-12">
			<?php 
    tabel();
    ?>
			<table class="table " id="tbl">
			  <thead>
			    <tr>
			      <th class="col-md-1 text-center">No</th>
			      <th>Major Name</th>
			      <th class="col-md-2 text-center">#</th>
			    </tr>
			  </thead>
			  <tbody>
			    <?php 
    $i = 1;
    $qc = mysql_query("select * from major order by date(dtmcrt) desc");
    while ($dc = mysql_fetch_array($qc)) {
        ?>
			    <tr>
			      <td class="text-center"><?php 
        echo $i;
        ?>
</td>
			      <td><?php 
        echo $dc['MAJOR_NAME'];
Example #2
0
        print "</td>";
        print "</tr>";
    }
    print "<table>";
}
function generateJQuery(array $woorden)
{
    foreach ($woorden as $woord) {
        $w = implode('', $woord);
        print "\$('#{$w}').hover(function() { \n jQuery('.{$w}').css({'background-color': 'yellow'}) \n }  );\n";
    }
}
$wz[] = str_split('aad');
$wz[] = str_split('bc-');
$ws[] = str_split('ad');
$ws[] = str_split('ac');
$wxc[] = array('', ' ac ad', ' ad');
$wxc[] = array('', ' ac', '');
print '<script src="https://code.jquery.com/jquery-2.2.0.min.js"></script>';
print '<head><script>$(document).ready(function() {';
generateJQuery($ws);
print '})</script></head>';
tabel($wz, $wxc);
displayWoorden($ws);
/*
 rij = hele woordzoeker, dus 2d [][]
 x = hoeveelheid regels in woordzoeker
 l = lengte van regels
 r = welke regel hij staat
 cell = welk vakje op regel r
*/
Example #3
0
<?php

if (!isset($_GET['a'])) {
    ?>
<h3>Tautan <small>| <a href="?hal=link&a=tambah">Tambah Tautan</a></small></h3>
<?php 
    echo tabel();
    ?>
<table id="tbl">
	<thead>
		<tr>
			<th data-field="no" width="10%">No</th>
			<th data-field="teks">Teks</th>
			<th data-field="tautan">Tautan</th>
			<th data-field="tautan">Bagian</th>
			<th data-field="price" width="15%">Aksi</th>
		</tr>
	</thead>

	<tbody>
	<?php 
    $i = 1;
    $ql = $db->query("select * from tautan order by bagian asc, urutan asc");
    while ($d = $ql->fetch_array()) {
        ?>
		<tr>
			<td><?php 
        echo $i;
        ?>
</td>
			<td><?php 
Example #4
0
 *   => ini adalah judul kolom yang akan muncul pada baris teratas sebuah tabel
 *   => boleh menggunakan petik dua (") maupun petik satu (')
 * 
 * '$item["nama_kolom_dlm_database"]'
 *   => ini adalah referensi nama kolom yg ada dalam tabel pada database
 *   => penggunaannya petik paling luar harus petik satu (')
 *   => misal, pada tabel user ada kolom nama, maka penggunaannya
 *   ===> '$item["nama"]' <===
 * 
 *   => untuk beberapa kebutuhan kita bisa memanfaatkan atau membuat fungsi sendiri
 *      beberapa contoh penggunaan fungsi:
 *      - untuk mencetak angka dalam format ribuan, bisa digunakan: angka()
 *        contoh: 'angka($item["harga"])'
 *      - untuk mencetak tautan/link (biasanya untuk foto atau file), bisa digunakan: link_href()
 *        contoh: 'link_href($item["file"])'
 *      - untuk menampilkan gambar (biasanya untuk foto), bisa digunakan: gambar()
 *        contoh: 'gambar($item["file"],FILES_URL,200)'
 *        keterangan: 
 *        - hasil uploadan biasanya disimpan di folder files (dalam contoh diwakili oleh FILES_URL)
 *        - untuk ukuran width, bisa diatur dengan memasukkan parameter ketiga (dalam contoh diwakili oleh 200)
 */
?>
<div class="page-header">
  <h1><?php 
echo $judul;
?>
</h1>
</div>
<?php 
tabel("nama_tabel", $data, array(), $aksi);
Example #5
0
<?php

if (!defined('BASEPATH')) {
    exit('No direct script access allowed');
}
$path = 'application/views/laporan';
link_js('FusionCharts.js', 'asset/js');
link_js('penjualan_graph.js', $path . '/js');
panel_begin('Grafik Penjualan');
panel_multi('grafikpenjualan', 'block', false);
if ($all_grafikpenjualan != '') {
    addText(array('Bulan', 'Tahun', '', '', 'Model Grafik'), array("<select id='bln' name='bln'></select>", "<select id='thn' name='thn'></select>", "<input type='button' id='okelah' value='OK'>", '', "<select id='j_graph' name='j_graph'>\r\n\t\t\t  \t  <option value='FCF_MSLine' selected>Grafik Garis</option>\r\n\t\t\t  \t  <option value='FCF_MSColumn3D'>Grafik Bar 3D</option>\r\n\t\t\t\t  <option value='FCF_MSArea2D'>Grafik Area</option>\r\n\t\t\t\t  </select>"));
    echo "<div id='chartdiv' align='center'>";
    echo tabel() . "<thead>";
    echo tr('headere\' align=\'left') . th('Kalkulasi Data');
    echo _tr() . "</thead><tbody>";
    /**/
    echo _tabel(true);
    echo "</div>";
} else {
    no_auth();
}
panel_multi_end();
panel_end();
loading_ajax();
?>

<script language="javascript">
$(document).ready(function(e) {
    
});
Example #6
0
<div class="page-header">
  <h1><?php 
echo $judul;
?>
</h1>
</div>
<?php 
tabel("user", $data, array("Nama" => '$item["nama"]', "Email" => '$item["email"]', "Handphone" => 'angka($item["hp"],0)', "Username" => '$item["username"]', "Role" => '$item["role"]', "Tanggal Diangkat" => 'tanggal($item["tgl_diangkat"])'), $aksi);
Example #7
0
$len = strlen($wz[0]);
$c = 0;
$woorden = array();
$registreren = false;
foreach ($m as $w) {
    $w = trim($w);
    if ($registreren == true) {
        $c++;
        $woorden[$c] = $w;
    }
    if (strlen($w) == 0) {
        $registreren = true;
    }
}
print "<pre>";
tabel($wz, $x, $len);
displaywoorden($woorden);
if ($lvl = 1) {
    niveau1($woorden, $wz, $len, $x);
}
if ($lvl = 2) {
    niveau2($woorden, $wz, $len, $x);
}
if ($lvl = 3) {
    niveau3($woorden, $wz, $len, $x);
}
print "</pre>";
include 'kleuren.php';
?>
</body>
</html>
Example #8
0
<div class="page-header">
  <h1><?php 
echo $judul;
?>
</h1>
</div>
<?php 
tabel("page", $data, array("Kode" => '$item["kode"]', "Nama" => '$item["nama"]', "Akses" => '$item["akses"]'), $aksi);