Ejemplo n.º 1
0
 function _update_qty_($var_menuid, $var_qty)
 {
     global $session_userid;
     if (_is_session_registered_("session_userid")) {
         $var_prev_qty = (int) _set_field_value(def_table_keranjang, "qty", "userid='" . _set_input_string_($session_userid) . "' AND menuid='" . _set_input_string_($var_menuid) . "'");
         _set_query_("UPDATE " . def_table_keranjang . " SET qty=" . ($var_prev_qty + $var_qty) . ", tanggal=NOW() WHERE userid='" . _set_input_string_($session_userid) . "' AND menuid='" . _set_input_string_($var_menuid) . "'");
     }
 }
Ejemplo n.º 2
0
                     }
                 } else {
                     $session_error = "Harap Mengikuti Prosedur";
                     _set_session_register_("session_error");
                 }
             } else {
                 $session_error = "Harap Mengikuti Prosedur";
                 _set_session_register_("session_error");
             }
         } else {
             $var_pesanno = _set_variable_http_("processid");
             if (_is_not_null_($var_pesanno)) {
                 require_once "../" . def_directory_classes_master . "class_inbox.php";
                 $var_class_inbox = new _class_inbox_();
                 if ($var_class_inbox->_is_primary_exist_($var_pesanno)) {
                     $session_process = "Hapus : " . _set_field_value(def_table_inbox, "tanggal", "pesanno='" . $var_pesanno . "'") . " - " . _set_field_value(def_table_inbox, "nohp", "pesanno='" . $var_pesanno . "'");
                     _set_session_register_("session_process");
                 } else {
                     $session_error = "Harap Mengikuti Prosedur";
                     _set_session_register_("session_error");
                 }
             } else {
                 $session_error = "Harap Mengikuti Prosedur";
                 _set_session_register_("session_error");
             }
         }
     } else {
         $session_error = "Harap Mengikuti Prosedur";
         _set_session_register_("session_error");
     }
 } elseif ($HTTP_GET_VARS["process"] == "handphone") {
Ejemplo n.º 3
0
    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'] . "&notransaksi=" . $var_class_pesan->var_notransaksi . "&process=kirim&action=true");
    ?>
                                                </td>
                                            </tr>

                                            <?php 
}
?>
                                        </table>
                                    </td>
                                </tr>
								<tr>
									<td colspan="3" align="center">
										<?php 
echo _set_submit_("", "Simpan", "submit", 'class="mybutton"');
?>
Ejemplo n.º 4
0
			<?php 
if (isset($var_class_menu) && is_object($var_class_menu)) {
    if (_is_not_null_($var_class_menu->var_array_menu)) {
        while (list($var_key, $var_value) = each($var_class_menu->var_array_menu)) {
            ?>
			<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>
Ejemplo n.º 5
0
<table border="0" width="100%" cellpadding="10" cellspacing="0" align="center">
	<tr>
		<td align="center" class="mytitle">
            <?php 
if (isset($HTTP_GET_VARS["restoranid"])) {
    echo _set_label_("", "Daftar Menu (" . _set_field_value(def_table_restoran, "nama", "restoranid='" . _set_input_string_(_set_variable_http_("restoranid")) . "'") . ")", 'class="mylabel large"');
} else {
    echo _set_label_("", "Daftar Menu", 'class="mylabel large"');
}
?>
		</td>
	</tr>
    <tr>
        <td align="left">
            <?php 
if (isset($HTTP_GET_VARS["menuid"]) && isset($HTTP_GET_VARS["action"]) && _set_variable_http_("action") == "true") {
    ?>

            <?php 
    require_once def_directory_classes_master . "class_menu.php";
    $var_class_menu = new _class_menu_();
    $var_menuid = _set_variable_http_("menuid");
    $var_class_menu->_set_data_($var_menuid);
    ?>

            <table border="0" width="100%" cellpadding="5" cellspacing="5" class="myform">
                <tr>
                    <td align="center">
                        <table border="0" cellpadding="2" cellspacing="2">
                            <tr>
                                <td align="center" colspan="3">
Ejemplo n.º 6
0
    echo _set_label_("", "Menu");
    ?>
</td>
                                                <td><?php 
    echo _set_label_("", "Qty");
    ?>
</td>
                                            </tr>
                                            <?php 
    $var_query_link = _set_query_("SELECT * FROM " . def_table_pesan_detil . " WHERE notransaksi='" . _set_input_string_($var_class_pesan->var_notransaksi) . "'");
    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_("", $var_array_pesan['qty']);
        ?>
                                                </td>
                                            </tr>

                                            <?php 
    }
    ?>
                                        </table>
                                    </td>
                                </tr>
Ejemplo n.º 7
0
 function _calculate_sms_($var_value)
 {
     $var_total = 0;
     $var_array_value = _set_parse_(trim($var_value), ",");
     if (count($var_array_value) > 1) {
         for ($var_counter = 0; $var_counter < count($var_array_value); $var_counter++) {
             $var_array_pesan = _set_parse_(trim($var_array_value[$var_counter]), ' ');
             $var_total += (int) $var_array_pesan[1] * _set_double_($this->_set_harga_(_set_field_value(def_table_menu, "menuid", "kodemenu='" . _set_input_string_($var_array_pesan[0]) . "'")), 0);
         }
     } else {
         $var_array_pesan = _set_parse_(trim($var_array_value[0]), ' ');
         $var_total += (int) $var_array_pesan[1] * _set_double_($this->_set_harga_(_set_field_value(def_table_menu, "menuid", "kodemenu='" . _set_input_string_($var_array_pesan[0]) . "'")), 0);
     }
     return $var_total;
 }
Ejemplo n.º 8
0
                </tr>

                <?php 
    $var_class_keranjang->_restore_contents_();
    reset($var_class_keranjang->var_contents);
    require_once def_directory_classes_master . "class_menu.php";
    $var_class_menu = new _class_menu_();
    while (list($var_key, $var_value) = each($var_class_keranjang->var_contents)) {
        $var_class_menu->_set_data_($var_key);
        ?>

                <tr>
                    <td class="mytable_cnt">
                        <?php 
        echo _set_input_("txt_menuid[]", $var_key, "hidden");
        echo _set_label_("", _set_field_value(def_table_menu, "nama", "menuid='" . _set_input_string_($var_key) . "'"));
        ?>
                    </td>
                    <td align="center" class="mytable_cnt"><?php 
        echo _set_input_("txt_qty" . $var_key, $var_value['qty'], "text", 'maxlength="2" style="width: 30px" onkeyup="javascript:_get_total_(\'' . $session_userid . '\', \'' . $var_key . '\', \'txt_qty' . $var_key . '\', \'lbl_subtotal' . $var_key . '\', \'lbl_total\', \'tbl_conf\');"');
        ?>
</td>
                    <td class="mytable_cnt"><?php 
        echo _set_label_("", $var_value['tanggal']);
        ?>
</td>
                    <td class="mytable_cnt">
                        <?php 
        $var_class_keranjang->_calculate_($var_key);
        echo _set_label_("lbl_subtotal" . $var_key, "Rp. " . $var_class_keranjang->var_total);
        ?>
Ejemplo n.º 9
0
" method="post">
							<table border="0" cellpadding="3" cellspacing="0" align="center" class="myform">
								<tr>
									<td align="left">
										<?php 
echo _set_label_("", "Menu");
?>
									</td>
									<td>
										<?php 
echo _set_label_("", " : ");
?>
									</td>
									<td align="left">
                                        <?php 
echo _set_label_("", $var_class_daftarharga->var_menuid . '-' . _set_field_value(def_table_menu, "nama", "menuid='" . _set_input_string_($var_class_daftarharga->var_menuid) . "'"));
?>
										<?php 
echo _set_input_("txt_kode", $var_class_daftarharga->var_kode, "hidden");
?>
									</td>
								</tr>
                                <tr>
									<td align="left">
										<?php 
echo _set_label_("", "Harga");
?>
									</td>
									<td>
										<?php 
echo _set_label_("", " : ");
Ejemplo n.º 10
0
                echo $var_array_pesan['qty'];
                ?>
", "<?php 
                echo $var_class_pesan->var_total;
                ?>
");
                    <?php 
            }
            $var_class_pesan->_calculate_($var_notransaksi, "");
            ?>

                    _set_report_("<?php 
            echo $var_notransaksi;
            ?>
", "<?php 
            echo _set_field_value(def_table_pemakai, "username", "userid='" . _set_input_string_($var_class_pesan->var_userid) . "'");
            ?>
", "<?php 
            echo $var_class_pesan->var_tanggal;
            ?>
", "<?php 
            echo $var_class_pesan->var_total;
            ?>
");
                </script>

                <?php 
            require_once def_directory_modules . "pesan/" . "module_update.php";
        } else {
            $session_error = "Harap Mengikuti Prosedur";
            _set_session_register_("session_error");
Ejemplo n.º 11
0
									</td>
								</tr>
								<tr>
									<td align="left">
										<?php 
    echo _set_label_("", "Pemakai");
    ?>
									</td>
									<td>
										<?php 
    echo _set_label_("", " : ");
    ?>
									</td>
									<td align="left">
										<?php 
    echo _set_label_("", $var_class_voucher->var_userid . '-' . _set_field_value(def_table_pemakai, "username", "userid='" . _set_input_string_($var_class_voucher->var_userid) . "'"));
    ?>
									</td>
								</tr>
                                <tr>
									<td align="left">
										<?php 
    echo _set_label_("", "Jumlah");
    ?>
									</td>
									<td>
										<?php 
    echo _set_label_("", " : ");
    ?>
									</td>
									<td align="left">
Ejemplo n.º 12
0
</td>
				<td width="15px">&nbsp;</td>
                <td width="15px">&nbsp;</td>
			</tr>
			<?php 
if (isset($var_class_voucher) && is_object($var_class_voucher)) {
    if (_is_not_null_($var_class_voucher->var_array_voucher)) {
        while (list($var_key, $var_value) = each($var_class_voucher->var_array_voucher)) {
            ?>
			<tr>
				<td class="mytable_cnt"><?php 
            echo _set_label_("", $var_key);
            ?>
				</td>
                <td class="mytable_cnt"><?php 
            echo _set_label_("", $var_value['userid'] . '-' . _set_field_value(def_table_pemakai, "username", "userid='" . _set_input_string_($var_value['userid']) . "'"));
            ?>
				</td>
                <td class="mytable_cnt"><?php 
            echo _set_label_("", $var_value['tanggal']);
            ?>
				</td>
                <td class="mytable_cnt"><?php 
            echo _set_label_("", $var_value['jumlah']);
            ?>
				</td>
                <td align="center"><?php 
            echo _set_image_link_("../" . def_directory_images_buttons . "info.png", def_application_voucher, "", "20px", "20px", "Ubah", "", "process=update&processid=" . $var_key);
            ?>
				</td>
				<td align="center"><?php