<?php checkauthentication(); $p = $_GET['p']; $y = $_GET['y']; $s = $_GET['s']; if ($y == "") { $y = date("Y"); } $table = "libur"; $field = get_field($table); $ed_link = "index.php?p=" . get_edit_link($p) . "&s=" . $s . "&y=" . $y; $del_link = "index.php?p=" . get_delete_link($p) . "&s=" . $s . "&y=" . $y; $oList = libur_list($y, $s); $count = mysql_num_rows($oList); while ($List = mysql_fetch_object($oList)) { foreach ($field as $k => $val) { $col[$k][] = $List->{$val}; } $ed[] = $ed_link . "&q=" . $List->{$field}[0]; $del[] = $del_link . "&q=" . $List->{$field}[0]; } ?> <form action="" method="get" name="form"> <input name="p" type="hidden" value="<?php echo $p; ?> "> <fieldset> <table class="admintable" cellspacing="1"> <tr>
function get_jumlah_cuti_bersama($tahun) { $query = libur_list($tahun, "C"); $jumlah = mysql_num_rows($query); return $jumlah; }