function _set_pulldown_($var_pulldown_id = "", $var_default = "", $var_parameter = "", $var_reinsert_value = true) { reset($this->var_array_jenis); $var_array_jenis = array(); $var_array_jenis[] = array('id' => '', 'text' => 'Silahkan Pilih'); while (list($var_key, $var_value) = each($this->var_array_jenis)) { $var_array_jenis[] = array('id' => $var_key, 'text' => $var_value['nama']); } return _set_pulldown_db_($var_pulldown_id, $var_array_jenis, $var_default, $var_parameter, $var_reinsert_value); }
function _set_pulldown_($var_pulldown_id = "", $var_default = "", $var_parameter = "", $var_reinsert_value = true) { reset($this->var_array_daftarharga); $var_array_daftarharga = array(); while (list($var_key, $var_value) = each($this->var_array_daftarharga)) { $var_array_daftarharga[] = array('id' => $var_key, 'text' => $var_value['tanggal'] . ' - ' . $var_value['harga']); } return _set_pulldown_db_($var_pulldown_id, $var_array_daftarharga, $var_default, $var_parameter, $var_reinsert_value); }
function _set_pulldown_($var_pulldown_id = "", $var_default = "", $var_admin = false, $var_parameter = "", $var_reinsert_value = true) { reset($this->var_array_pemakai); $var_array_pemakai = array(); $var_array_pemakai[] = array('id' => '', 'text' => 'Silahkan Pilih'); while (list($var_key, $var_value) = each($this->var_array_pemakai)) { if ($var_admin == true) { $var_array_pemakai[] = array('id' => $var_key, 'text' => $var_key . '-' . $var_value['username']); } else { if ($var_key != "administrator") { $var_array_pemakai[] = array('id' => $var_key, 'text' => $var_key . '-' . $var_value['username']); } } } return _set_pulldown_db_($var_pulldown_id, $var_array_pemakai, $var_default, $var_parameter, $var_reinsert_value); }
function _set_pulldown_($var_pulldown_id = "", $var_default = "", $var_parameter = "", $var_reinsert_value = true) { reset($this->var_array_handphone); $var_array_handphone = array(); while (list($var_key, $var_value) = each($this->var_array_handphone)) { if ($var_value['activeyn'] == "Y") { $var_default = $var_key; } $var_array_handphone[] = array('id' => $var_key, 'text' => $var_value['model'] . " | " . $var_value['port'] . " | " . $var_value['connection']); } return _set_pulldown_db_($var_pulldown_id, $var_array_handphone, $var_default, $var_parameter, $var_reinsert_value); }
function _set_pulldown_($var_pulldown_id = "", $var_default = "", $var_parameter = "", $var_reinsert_value = true) { reset($this->var_array_menu); $var_array_menu = array(); $var_array_menu[] = array('id' => '', 'text' => 'Silahkan Pilih'); while (list($var_key, $var_value) = each($this->var_array_menu)) { if ($var_value['activeyn'] == def_yes) { $var_array_menu[] = array('id' => $var_key, 'text' => $var_value['nama']); } } return _set_pulldown_db_($var_pulldown_id, $var_array_menu, $var_default, $var_parameter, $var_reinsert_value); }