Exemplo n.º 1
0
    public static function showHeaderFront($header, $filter_arr, $list_sort, $list_order)
    {
        ?>
	      <tr>
	        <td></td>
	        <?php 
        foreach ($header as $rows) {
            switch ($rows['type']) {
                case 'list':
                    echo "<td>" . UI::createSelect("list_search[" . $rows['name'] . "]", $rows['value'], $filter_arr[$rows['name']], true, 'text_input hint', 'style="width:100%;padding: 6px 0px 6px 10px;" onchange="goSearch()"') . "</td>";
                    break;
                default:
                    echo "<td>" . UI::createTextBox("list_search[" . $rows['name'] . "]", $filter_arr[$rows['name']], '', '', true, 'text_input hint', 'style="width:100%;padding: 6px 0px 6px 10px;" placeholder="Search ' . $rows['label'] . '..."') . "</td>";
                    break;
            }
        }
        ?>
	      </tr>
	      <tr>
	        <th style="width:10px">#</th>
	        <input type='hidden' name='list_sort' id='list_sort'>
	        <input type='hidden' name='list_order' id='list_order'>
	        <?php 
        foreach ($header as $rows) {
            if ($list_sort == $rows['name']) {
                if (trim($list_order) == 'asc') {
                    $order = 'desc';
                } else {
                    $order = 'asc';
                }
                echo "<th style='width:{$rows['width']}'><a href='#' onclick=\"goSort('{$rows['name']}','{$order}')\">{$rows['label']}</a></th>";
            } else {
                echo "<th style='width:{$rows['width']}'><a href='#' onclick=\"goSort('{$rows['name']}','asc')\">{$rows['label']}</a></th>";
            }
        }
        ?>
	      </tr>
	    <script>
		    jQuery(function(){
		        jQuery("#main_form").submit(function(){
		            if(jQuery("#act").val()==''){
		                goSearch();
		            }
		        });
		    });

		    function goSort(name, order){
		        jQuery("#list_sort").val(name);
		        jQuery("#list_order").val(order);
		        jQuery("#act").val('list_sort');
		        jQuery("#main_form").submit();
		    }

		    function goSearch(){
		        jQuery("#act").val('list_search');
		        jQuery("#main_form").submit();
		    }
	    </script>
    <?php 
    }
Exemplo n.º 2
0
?>
</div>
<br/>
<table class="table table-form">
<tr>
<td class="td-label">Kode Klasifikasi</td>
<td class="td-input"><?php 
echo UI::createTextBox('kode_klasifikasi', $row['kode_klasifikasi'], '50', '50', $edited, $class = 'form-control ', "style='width:100%'");
?>
</td>
</tr>

<tr>
<td class="td-label"> Type Subjek</td>
<td class="td-input"><?php 
echo UI::createSelect('id_type_subjek', $typesubjekarr, $row['id_type_subjek'], $edited, $class = 'form-control ', "style='width:100%'");
?>
</td>
</tr>

<tr>
<td class="td-label">Daftar Terkendali</td>
<td class="td-input"><?php 
echo UI::createTextBox('daftar_terkendali', $row['daftar_terkendali'], '50', '50', $edited, $class = 'form-control ', "style='width:100%'");
?>
</td>
</tr>
<?php 
if ($edited) {
    ?>
<tr><td></td><td><?php 
Exemplo n.º 3
0
					<?php 
echo UI::createSelect('newEarrings', $desc->earringsNew, $data->newEarrings, range(0, 2));
?>
					<?php 
echo UI::createSelect('oldEarrings', $desc->earringsOld, $data->oldEarrings, range(0, 2));
?>
					<?php 
echo UI::createSpacing();
?>

					<?php 
echo UI::createSelect('earringBonusLeft', $desc->earringBonusLeft, $data->earringBonusLeft, $earringBonuses);
?>
					<?php 
echo UI::createSelect('earringBonusRight', $desc->earringBonusRight, $data->earringBonusRight, $earringBonuses);
?>
					<?php 
echo UI::createSpacing();
?>

					<?php 
echo UI::createCheck('heartPotion', $desc->targetHeartPotion, $data->heartPotion, true);
?>
				</section>
			</fieldset>

			<?php 
echo UI::createCheck('showGlyphs', null, $data->showGlyphs);
?>
			<fieldset>
Exemplo n.º 4
0
<?php 
echo UI::showButtonMode($mode, $row[$pk]);
?>
</div>
<br/>
<table class="table table-form">
<tr><td class="td-label">Nama</td><td><?php 
echo UI::createTextBox('nama', $row['nama'], '', '', $edited, 'form-control');
?>
</td></tr>
<tr><td class="td-label">Tgl. Lahir</td><td><?php 
echo UI::createTextDate('tgl_lahir', $row['tgl_lahir'], '', '', $edited, 'form-control');
?>
</td></tr>
<tr><td class="td-label">Jenis Kelamin</td><td><?php 
echo UI::createSelect('jk', $jkarr, $row['jk'], $edited, 'form-control');
?>
</td></tr>
<tr><td class="td-label">Alamat</td><td><?php 
echo UI::createTextArea('alamat', $row['alamat'], '', '', $edited, 'form-control');
?>
</td></tr>
<tr><td class="td-label">Telephone</td><td><?php 
echo UI::createTextBox('telp', $row['telp'], '', '', $edited, 'form-control');
?>
</td></tr>

<?php 
if ($edited) {
    ?>
Exemplo n.º 5
0
?>
</td>
</tr>

<tr>
<td class="td-label">Tahun Lahir</td>
<td class="td-input"><?php 
echo UI::createTextBox('tahun_lahir', $row['tahun_lahir'], '', '', $edited, $class = 'form-control ', "style='width:100%'");
?>
</td>
</tr>

<tr>
<td class="td-label"> Kepengarangan</td>
<td class="td-input"><?php 
echo UI::createSelect('id_kepengarangan', $kepengaranganarr, $row['id_kepengarangan'], $edited, $class = 'form-control ', "style='width:100%'");
?>
</td>
</tr>

<tr>
<td class="td-label">Daftar Terkendali</td>
<td class="td-input"><?php 
echo UI::createTextBox('daftar_terkendali', $row['daftar_terkendali'], '', '', $edited, $class = 'form-control ', "style='width:100%'");
?>
</td>
</tr>
<?php 
if ($edited) {
    ?>
<tr><td></td><td><?php 
Exemplo n.º 6
0
?>
</div>
<br/>
<table class="table table-form">
<tr>
<td class="td-label">Username</td>
<td class="td-input"><?php 
echo UI::createTextBox('username', $row['username'], '100', '100', $edited, $class = 'form-control ', "style='width:100%'");
?>
</td>
</tr>

<tr>
<td class="td-label">Group </td>
<td class="td-input"><?php 
echo UI::createSelect('group_id', $publicsysgrouparr, $row['group_id'], $edited, $class = 'form-control ', "style='width:100%'");
?>
</td>
</tr>

<tr>
<td class="td-label">Name</td>
<td class="td-input"><?php 
echo UI::createTextBox('name', $row['name'], '200', '100', $edited, $class = 'form-control ', "style='width:100%'");
?>
</td>
</tr>

<tr>
<td class="td-label">Last Ip</td>
<td class="td-input"><?php 
Exemplo n.º 7
0
?>
</td>
</tr>

<tr>
<td class="td-label">Abstrak</td>
<td class="td-input" colspan="5"><?php 
echo UI::createTextArea('abstrak', $row['abstrak'], '', '', $edited, $class = 'form-control ', "style='width:100%'");
?>
</td>
</tr>

<tr>
<td class="td-label"> Kategori</td>
<td class="td-input" colspan="5"><?php 
echo UI::createSelect('id_kategori', $kategoriarr, $row['id_kategori'], $edited, $class = 'form-control ', "style='width:25%'");
?>
</td>
</tr>

<tr>
<td class="td-label">File</td>
<td colspan="5"><?php 
echo UI::createInputFile('file', $row['nama_file'], URL::Base("panelbackend/buku/preview_file/{$row['id_buku']}"), URL::Base("panelbackend/buku/delete_file/{$row['id_buku']}"), $edited, true, 'form-control');
?>
</td>
</tr>


<?php 
if ($edited) {