function _set_success_() { $var_array_alamat = array('id' => array("Gedung 1, Lantai 1", "Gedung 1, Lantai 2", "Gedung 1, Lantai 3", "Gedung 1, Lantai 4", "Gedung 1, Lantai 5", "Gedung 2, Lantai 1", "Gedung 2, Lantai 2", "Gedung 2, Lantai 3", "Gedung 2, Lantai 4", "Gedung 2, Lantai 5", "Gedung 3, Lantai 1", "Gedung 3, Lantai 2", "Gedung 3, Lantai 3", "Gedung 3, Lantai 4", "Gedung 3, Lantai 5", "Gedung 4, Lantai 1", "Gedung 4, Lantai 2", "Gedung 4, Lantai 3", "Gedung 4, Lantai 4", "Gedung 4, Lantai 5", "Gedung 5, Lantai 1", "Gedung 5, Lantai 2", "Gedung 5, Lantai 3", "Gedung 5, Lantai 4", "Gedung 5, Lantai 5"), 'text' => array("Gedung 1, Lantai 1", "Gedung 1, Lantai 2", "Gedung 1, Lantai 3", "Gedung 1, Lantai 4", "Gedung 1, Lantai 5", "Gedung 2, Lantai 1", "Gedung 2, Lantai 2", "Gedung 2, Lantai 3", "Gedung 2, Lantai 4", "Gedung 2, Lantai 5", "Gedung 3, Lantai 1", "Gedung 3, Lantai 2", "Gedung 3, Lantai 3", "Gedung 3, Lantai 4", "Gedung 3, Lantai 5", "Gedung 4, Lantai 1", "Gedung 4, Lantai 2", "Gedung 4, Lantai 3", "Gedung 4, Lantai 4", "Gedung 4, Lantai 5", "Gedung 5, Lantai 1", "Gedung 5, Lantai 2", "Gedung 5, Lantai 3", "Gedung 5, Lantai 4", "Gedung 5, Lantai 5")); $var_html = '<tr>'; $var_html .= '<td>' . _set_label_("", "Kirim ke") . '</td>'; $var_html .= '<td>'; $var_html .= _set_pulldown_("slt_alamat", $var_array_alamat, 24); $var_html .= '</td></tr><tr>'; $var_html .= '<td colspan="2" align="right" class="mytable_cpt">' . _set_submit_("", "Konfirmasi") . '</td></tr>'; return $var_html; }
<div class="myheader"> <table border="0" width="100%" cellpadding="0" cellspacing="0"> <tr> <td class="mycaption" align="center"> <?php echo _set_label_("", def_text_description); ?> </td> </tr> </table> <table border="0" cellpadding="0" cellspacing="0"> <tr> <td> <?php echo _set_image_link_("../" . def_directory_images . "Gambar untuk halaman depan.gif", "", "", "187", "269"); ?> </td> </tr> </table> </div>
<tr> <td align="left"> <?php echo _set_label_("", "Nama"); ?> </td> <td align="left"> <?php echo _set_input_("txt_nama", "", "text", 'tabindex="2" maxlength="50" style="width: 300px;"', $var_reinsert_value); ?> </td> </tr> <tr> <td align="left"> <?php echo _set_label_("", "Pesan"); ?> </td> <td align="left"> <?php echo _set_textarea_("txt_pesan", "", "", $var_reinsert_value); ?> </td> </tr> <tr> <td colspan="2" align="right"> <?php echo _set_submit_("", "Kirim"); ?> </td> </tr>
</td> </tr> <tr> <td align="left"> <?php echo _set_label_("", "Nama"); ?> </td> <td> <?php echo _set_label_("", " : "); ?> </td> <td align="left"> <?php echo _set_label_("", $var_class_pemakai->var_username); ?> </td> </tr> <tr> <td colspan="3" align="center"> <?php echo _set_submit_("", "Hapus", "submit", 'class="mybutton"'); ?> </td> </tr> <?php } ?> <tr> <td colspan="3" align="center">
<tr> <td colspan="3" align="left"> <?php echo _set_checkbox_("chk_activeyn", def_yes, "checkbox", false, "Aktif", 'class="mycheckbox"'); ?> </td> </tr> <tr> <td align="left"> <?php echo _set_label_("", "Handphone"); ?> </td> <td> <?php echo _set_label_("", " : "); ?> </td> <td align="left"> <?php echo _set_input_("txt_handphone", "", "text", 'maxlength="30"', $var_reinsert_value); ?> </td> </tr> <tr> <td colspan="3" align="center"> <?php echo _set_submit_("", "Simpan", "submit", 'class="mybutton"'); ?> </td> </tr>
</tr> <tr> <td> </td> <td align="right"> <?php echo _set_submit_("", "Login", "submit", 'class="mybutton"'); ?> </td> </tr> <?php if (_is_session_registered_("session_error")) { ?> <tr> <td colspan="2" align="center" class="myerror"> <?php echo _set_label_("", $session_error); ?> </td> </tr> <?php _set_session_unregister_("session_error"); } ?> </table> </form> </td> </tr> </table> </td> </tr> </table>
</td> </tr> </table> </td> </tr> <?php _set_session_unregister_("session_success"); } ?> <tr> <td> <table border="0" cellpadding="0" cellspacing="0" align="center"> <tr> <td align="center" class="mycaption"> <?php echo _set_label_("", "JENIS"); ?> </td> </tr> <tr> <td> <table border="0" cellpadding="3" cellspacing="0" align="center" class="myform"> <tr> <td colspan="3" align="center"> <?php echo _set_hyperlink_(def_application_jenis, "Kembali"); ?> </td> </tr> </table> </td>
<?php echo _set_image_link_(def_directory_images_buttons . "success.png", "", "", "48px", "48px"); ?> <?php echo _set_label_("", $session_success); ?> </td> </tr> <?php _set_session_unregister_("session_success"); } ?> <tr> <td align="left"> <?php echo _set_label_("", "Id Pemakai"); ?> </td> <td align="left"> <?php echo _set_input_("txt_userid", "", "text", 'tabindex="1" maxlength="30" style="width: 400px;"'); ?> </td> </tr> <tr> <td colspan="2" align="right"> <?php echo _set_submit_("", "Konfirmasi"); ?> </td> </tr>
<?php echo _set_image_link_(def_directory_images . "ads_1.gif", "", "", "170", "150"); ?> <table border="0" width="100%" cellpadding="10" cellspacing="0" align="center"> <tr> <td align="center"> <?php echo _set_label_("", "Pesan sekarang juga dari komputer kamu ataupun handphone kamu."); ?> <br /> <?php echo _set_label_("", "Dapatkan diskon menarik dari online ordering dan exclusive kupon dari kantin favorite kamu."); ?> <br /> <?php echo _set_label_("", "ORDER SMS adalah daftar menu makanan all in one."); ?> </td> </tr> <tr> <td align="center"> <?php echo _set_label_("", "Sangat mudah, Hanya Click, Order, dan Makan", 'class="mylabel"'); ?> </td> </tr> </table>
</tr> </table> <table border="0" width="100%" cellpadding="0" cellspacing="0" class="myform"> <tr> <td align="left"> <table border="0" cellpadding="5" cellspacing="5"> <?php for ($var_counter = 0; $var_counter < sizeof($var_respon); $var_counter++) { $var_content = explode(':', $var_respon[$var_counter]); ?> <tr> <?php for ($var_content_counter = 0; $var_content_counter < sizeof($var_content); $var_content_counter++) { ?> <td align="left" class="mytext"> <?php echo _set_label_("", $var_content[$var_content_counter]); ?> </td> <?php } ?> </tr> <?php } ?> </table> </td> </tr> </table>
?> </td> </tr> <tr> <td> <?php echo _set_label_("", "Harga"); ?> </td> <td><?php echo _set_label_("", " : "); ?> </td> <td> <?php echo _set_label_("", "Rp. " . $var_class_menu->var_harga); ?> </td> </tr> </table> </td> </tr> <tr> <td align="center"> <?php echo _set_hyperlink_(def_application_pesan, "Pesan Sekarang", "", "menuid=" . $var_menuid . "&restoranid=" . _set_variable_http_("restoranid") . "&process=pesan"); ?> </td> </tr> </table>
<?php _set_session_close_(); _set_close_connection_(); ?> <table border="0" width="100%" cellpadding="0" cellspacing="0"> <tr> <td class="mycaption" align="center"> <?php echo _set_label_("", def_text_copyright); ?> </td> </tr> </table>
?> <tr> <td class="mytable_cnt"><?php echo _set_label_("", $var_key); ?> </td> <td class="mytable_cnt"><?php echo _set_label_("", $var_value['nama']); ?> </td> <td class="mytable_cnt"><?php echo _set_label_("", _set_field_value(def_table_restoran, "nama", "restoranid='" . _set_input_string_($var_value['restoranid']) . "'")); ?> </td> <td class="mytable_cnt"><?php echo _set_label_("", $var_value['kodemenu']); ?> </td> <td align="center"><?php echo _set_image_link_("../" . def_directory_images_buttons . "info.png", def_application_menu, "", "20px", "20px", "Ubah", "", "process=update&processid=" . $var_key); ?> </td> <td align="center"><?php echo _set_image_link_("../" . def_directory_images_buttons . "delete.png", def_application_menu, "", "20px", "20px", "Hapus", "", "process=delete&processid=" . $var_key); ?> </td> </tr> <?php } }
<tr> <td colspan="5" align="center" class="myerror"> <?php echo _set_input_("txt_confirm", "false", "hidden"); echo _set_label_("", "Belum terdapat pesan"); ?> </td> </tr> <?php } else { ?> <tr> <td colspan="3"><?php echo _set_label_("", "Kirim ke"); ?> </td> <td colspan="2"> <?php $var_array_alamat = array('id' => array("Gedung 1, Lantai 1", "Gedung 1, Lantai 2", "Gedung 1, Lantai 3", "Gedung 1, Lantai 4", "Gedung 1, Lantai 5", "Gedung 2, Lantai 1", "Gedung 2, Lantai 2", "Gedung 2, Lantai 3", "Gedung 2, Lantai 4", "Gedung 2, Lantai 5", "Gedung 3, Lantai 1", "Gedung 3, Lantai 2", "Gedung 3, Lantai 3", "Gedung 3, Lantai 4", "Gedung 3, Lantai 5", "Gedung 4, Lantai 1", "Gedung 4, Lantai 2", "Gedung 4, Lantai 3", "Gedung 4, Lantai 4", "Gedung 4, Lantai 5", "Gedung 5, Lantai 1", "Gedung 5, Lantai 2", "Gedung 5, Lantai 3", "Gedung 5, Lantai 4", "Gedung 5, Lantai 5"), 'text' => array("Gedung 1, Lantai 1", "Gedung 1, Lantai 2", "Gedung 1, Lantai 3", "Gedung 1, Lantai 4", "Gedung 1, Lantai 5", "Gedung 2, Lantai 1", "Gedung 2, Lantai 2", "Gedung 2, Lantai 3", "Gedung 2, Lantai 4", "Gedung 2, Lantai 5", "Gedung 3, Lantai 1", "Gedung 3, Lantai 2", "Gedung 3, Lantai 3", "Gedung 3, Lantai 4", "Gedung 3, Lantai 5", "Gedung 4, Lantai 1", "Gedung 4, Lantai 2", "Gedung 4, Lantai 3", "Gedung 4, Lantai 4", "Gedung 4, Lantai 5", "Gedung 5, Lantai 1", "Gedung 5, Lantai 2", "Gedung 5, Lantai 3", "Gedung 5, Lantai 4", "Gedung 5, Lantai 5")); echo _set_pulldown_("slt_alamat", $var_array_alamat, 24); ?> </td> </tr> <tr> <td colspan="5" align="right" class="mytable_cpt"><?php echo _set_submit_("", "Konfirmasi"); ?> </td> </tr>
echo _set_label_("", $var_value['model']); ?> </td> <td class="mytable_cnt"><?php echo _set_label_("", $var_value['port']); ?> </td> <td class="mytable_cnt"><?php echo _set_label_("", $var_value['connection']); ?> <td class="mytable_cnt"> <?php if ($var_value['activeyn'] == "Y") { echo _set_label_("", "Ya"); } else { echo _set_label_("", "Tidak"); } ?> </td> <td align="center"><?php echo _set_image_link_("../" . def_directory_images_buttons . "delete.png", def_application_handphone, "", "20px", "20px", "Hapus", "", "process=delete&processid=" . $var_key); ?> </td> </tr> <?php } } } ?> </table>
</td> </tr> <tr> <td align="left"> <?php echo _set_label_("", "Nama"); ?> </td> <td> <?php echo _set_label_("", " : "); ?> </td> <td align="left"> <?php echo _set_label_("", $var_class_jenis->var_nama); ?> </td> </tr> <tr> <td colspan="3" align="center"> <?php echo _set_submit_("", "Hapus", "submit", 'class="mybutton"'); ?> </td> </tr> <?php } ?> <tr> <td colspan="3" align="center">
</td> </tr> </table> </td> </tr> <?php _set_session_unregister_("session_success"); } ?> <tr> <td> <table border="0" cellpadding="0" cellspacing="0" align="center"> <tr> <td align="center" class="mycaption"> <?php echo _set_label_("", "RESTORAN"); ?> </td> </tr> <tr> <td> <table border="0" cellpadding="3" cellspacing="0" align="center" class="myform"> <tr> <td colspan="3" align="center"> <?php echo _set_hyperlink_(def_application_restoran, "Kembali"); ?> </td> </tr> </table> </td>
<?php echo _set_image_link_(def_directory_images_restoran . $var_key . ".jpg", "", "", "150px", "200px"); ?> </td> </tr> <tr> <td align="center"> <?php echo _set_hyperlink_(def_application_menu, $var_value['nama'], "", "restoranid=" . $var_key); ?> </td> </tr> <tr> <td align="center"> <?php echo _set_label_("", "Buka dari jam " . $var_value['buka'] . " sampai " . $var_value['tutup'], ""); ?> </td> </tr> </table> </td> <?php if ($var_counter % 2 != 0) { ?> </tr> <?php } ?> <?php } ?>
</td> </tr> <tr> <td align="left"> <?php echo _set_label_("", "Nama"); ?> </td> <td> <?php echo _set_label_("", " : "); ?> </td> <td align="left"> <?php echo _set_label_("", $var_class_menu->var_nama); ?> </td> </tr> <tr> <td colspan="3" align="center"> <?php echo _set_submit_("", "Hapus", "submit", 'class="mybutton"'); ?> </td> </tr> <?php } ?> <tr> <td colspan="3" align="center">
<?php echo _set_hyperlink_(def_application_jenis, "Jenis", "", "", false); ?> <?php echo _set_hyperlink_(def_application_menu, "Menu", "", "", false); ?> <?php echo _set_hyperlink_(def_application_pemakai, "Pemakai", "", "", false); ?> <?php echo _set_hyperlink_(def_application_daftarharga, "Daftar Harga", "", "", false); ?> </div> <div class="collapsed"> <span><?php echo _set_label_("", "Transaksi"); ?> </span> <?php echo _set_hyperlink_(def_application_voucher, "Isi Voucher", "", "", false); ?> <?php echo _set_hyperlink_(def_application_order, "Order", "", "", false); ?> </div> </div> </form> </td> </tr> </table>
?> <tr> <td class="mytable_cnt"><?php echo _set_label_("", $var_key); ?> </td> <td class="mytable_cnt"><?php echo _set_label_("", $var_value['username']); ?> </td> <td class="mytable_cnt"><?php echo _set_label_("", $var_value['handphone']); ?> </td> <td class="mytable_cnt"><?php echo _set_label_("", $var_value['email']); ?> </td> <td align="center"><?php echo _set_image_link_("../" . def_directory_images_buttons . "info.png", def_application_pemakai, "", "20px", "20px", "Ubah", "", "process=update&processid=" . $var_key); ?> </td> <td align="center"><?php echo _set_image_link_("../" . def_directory_images_buttons . "delete.png", def_application_pemakai, "", "20px", "20px", "Hapus", "", "process=delete&processid=" . $var_key); ?> </td> </tr> <?php } }
while ($var_array_pesan = _set_fetch_array_($var_query_link)) { ?> <tr> <td> <?php echo _set_label_("", $var_array_pesan['menuid'] . ' - ' . _set_field_value(def_table_menu, "nama", "menuid='" . _set_input_string_($var_array_pesan['menuid']) . "'")); ?> </td> <td> <?php echo _set_label_("", _set_field_value(def_table_restoran, "nama", "restoranid='" . _set_input_string_(_set_field_value(def_table_menu, "restoranid", "menuid='" . _set_input_string_($var_array_pesan['menuid']) . "'")) . "'")); ?> </td> <td> <?php echo _set_label_("", $var_array_pesan['qty']); ?> </td> <td align="center"> <?php echo _set_image_link_("../" . def_directory_images_buttons . "reply.gif", def_application_order, "", "20px", "20px", "Kirim Lagi", "", "restoranid=" . _set_field_value(def_table_menu, "restoranid", "menuid='" . _set_input_string_($var_array_pesan['menuid']) . "'") . "&menuid=" . $var_array_pesan['menuid'] . "&qty=" . $var_array_pesan['qty'] . "¬ransaksi=" . $var_class_pesan->var_notransaksi . "&process=kirim&action=true"); ?> </td> </tr> <?php } ?> </table> </td> </tr>
</td> </tr> </table> </td> </tr> <?php _set_session_unregister_("session_success"); } ?> <tr> <td> <table border="0" cellpadding="0" cellspacing="0" align="center"> <tr> <td align="center" class="mycaption"> <?php echo _set_label_("", "DAFTAR HARGA"); ?> </td> </tr> <tr> <td> <table border="0" cellpadding="3" cellspacing="0" align="center" class="myform"> <tr> <td colspan="3" align="center"> <?php echo _set_hyperlink_(def_application_daftarharga, "Kembali"); ?> </td> </tr> </table> </td>
</td> </tr> </table> </td> </tr> <?php _set_session_unregister_("session_success"); } ?> <tr> <td> <table border="0" cellpadding="0" cellspacing="0" align="center"> <tr> <td align="center" class="mycaption"> <?php echo _set_label_("", "VOUCHER"); ?> </td> </tr> <tr> <td> <table border="0" cellpadding="3" cellspacing="0" align="center" class="myform"> <tr> <td colspan="3" align="center"> <?php echo _set_hyperlink_(def_application_voucher, "Kembali"); ?> </td> </tr> </table> </td>
</td> </tr> </table> </td> </tr> <?php _set_session_unregister_("session_success"); } ?> <tr> <td> <table border="0" cellpadding="0" cellspacing="0" align="center"> <tr> <td align="center" class="mycaption"> <?php echo _set_label_("", "ORDER"); ?> </td> </tr> <tr> <td> <table border="0" cellpadding="3" cellspacing="0" align="center" class="myform"> <tr> <td colspan="3" align="center"> <?php echo _set_hyperlink_(def_application_order, "Kembali"); ?> </td> </tr> </table> </td>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="mycaption"> <tr> <td> <?php echo _set_label_("", "Anda Mempunyai ") . _set_hyperlink_(def_application_inbox, $var_class_gammu->var_phonemessageunreadcount + $var_class_gammu->var_phonemessageunreadcount) . _set_label_("", " SMS "); ?> </td> </tr> </table>
echo _set_label_("", $session_error); ?> </td> </tr> </table> </td> </tr> <?php _set_session_unregister_("session_error"); } ?> <?php if (_is_session_registered_("session_success")) { ?> <tr> <td align="center" class="mysuccess"> <table border="0" cellpadding="0" cellspacing="0"> <tr> <td><?php echo _set_label_("", $session_success); ?> </td> </tr> </table> </td> </tr> <?php _set_session_unregister_("session_success"); } ?> </table>
</td> </tr> <tr> <td align="left"> <?php echo _set_label_("", "Jenis Koneksi"); ?> </td> <td> <?php echo _set_label_("", " : "); ?> </td> <td align="left"> <?php echo _set_label_("", $var_class_handphone->var_connection); ?> </td> </tr> <tr> <td colspan="3" align="center"> <?php echo _set_submit_("", "Hapus", "submit", 'class="mybutton"'); ?> </td> </tr> <?php } ?> <tr> <td colspan="3" align="center">
</tr> <tr> <td><?php echo _set_label_("", "Sisa Voucher"); ?> </td> <td><?php echo _set_label_("", " : "); ?> </td> <td> <?php require_once def_directory_classes_transaksi . "class_voucher.php"; $var_class_voucher = new _class_voucher_(); $var_voucher = $var_class_voucher->_get_voucher_($var_class_pemakai->var_userid); echo _set_label_("", "Rp. " . $var_voucher); ?> </td> </tr> </table> </td> </tr> <tr> <td align="center"> <table border="0" cellpadding="3" cellspacing="0"> <tr> <td align="center"> <?php echo _set_hyperlink_(def_application_account, "Ubah Account", "", "process=changeaccount"); ?> </td>
function _set_checkbox_($var_check_id, $var_default_value = "", $var_type = "checkbox", $var_checked = false, $var_text = "", $var_parameter = "", $var_reinsert_value = true) { global $HTTP_GET_VARS, $HTTP_POST_VARS; $var_checkbox_value = '<input type="' . $var_type . '" id="' . $var_check_id . '" name="' . $var_check_id . '"'; if ($var_reinsert_value == true) { if (isset($HTTP_GET_VARS[$var_check_id]) && is_string($HTTP_GET_VARS[$var_check_id])) { if (_set_variable_http_($var_check_id) == $var_default_value) { $var_checkbox_value .= ' CHECKED'; } } elseif (isset($HTTP_POST_VARS[$var_check_id]) && is_string($HTTP_POST_VARS[$var_check_id])) { if (_set_variable_http_($var_check_id, false) == $var_default_value) { $var_checkbox_value .= ' CHECKED'; } } } else { if ($var_checked == def_yes) { $var_checkbox_value .= ' CHECKED'; } } if (_is_not_null_($var_default_value)) { $var_checkbox_value .= ' value="' . $var_default_value . '"'; } if (_is_not_null_($var_parameter)) { $var_checkbox_value .= ' ' . $var_parameter; } $var_checkbox_value .= ' />' . _set_label_("", $var_text, 'for="' . $var_check_id . '"'); return $var_checkbox_value; }