Exemple #1
0
            } else {
                $session_error = "Harap Mengikuti Prosedur";
                _set_session_register_("session_error");
                require_once def_directory_modules . "daftarharga/" . "module_error.php";
            }
            ?>
</td>
                    <?php 
        }
    } else {
        if (isset($HTTP_GET_VARS["process"]) && $HTTP_GET_VARS["process"] == "delete") {
            if (isset($HTTP_GET_VARS["processid"])) {
                $var_kode = _set_variable_http_("processid");
                if (_is_not_null_($var_kode)) {
                    require_once "../" . def_directory_classes_master . "class_daftarharga.php";
                    $var_class_daftarharga = new _class_daftarharga_();
                    if (!$var_class_daftarharga->_is_primary_exist2_($var_kode)) {
                        ?>
                <td valign="top"><?php 
                        if (isset($HTTP_GET_VARS["action"])) {
                            require_once def_directory_modules . "daftarharga/" . "module_delete.php";
                        } else {
                            $session_error = "Harap Mengikuti Prosedur";
                            _set_session_register_("session_error");
                            require_once def_directory_modules . "daftarharga/" . "module_error.php";
                        }
                        ?>
</td>
                    <?php 
                    } else {
                        ?>
Exemple #2
0
 $var_gambar = $HTTP_POST_FILES['txt_gambar']['tmp_name'];
 $var_namagambar = $HTTP_POST_FILES['txt_gambar']['name'];
 $var_errorgambar = $HTTP_POST_FILES['txt_gambar']['error'];
 if (_is_not_null_($var_menuid)) {
     if (_is_not_null_($var_nama)) {
         if (_is_not_null_($var_kodemenu)) {
             require_once "../" . def_directory_classes_master . "class_menu.php";
             $var_class_menu = new _class_menu_();
             if (!$var_class_menu->_is_primary_exist_($var_menuid)) {
                 if (!$var_class_menu->_is_kodemenu_exist_($var_kodemenu)) {
                     $var_class_menu->_save_data_($var_menuid, $var_nama, $var_kodemenu, $var_restoranid, $var_jenisid, $var_activeyn, $var_keterangan);
                     if (is_uploaded_file($var_gambar)) {
                         move_uploaded_file($var_gambar, "../" . def_directory_images_menu . $var_menuid . ".jpg");
                     }
                     require_once "../" . def_directory_classes_master . "class_daftarharga.php";
                     $var_class_daftarharga = new _class_daftarharga_();
                     $var_class_daftarharga->_save_data_($var_menuid, "NOW()", $var_harga);
                     $session_success = $var_menuid . " & " . $var_nama . " (Sudah disimpan)";
                     _set_session_register_("session_success");
                 } else {
                     $session_error = "Menu Inisial sudah ada";
                     _set_session_register_("session_error");
                 }
             } else {
                 $session_error = "Menu Id sudah ada";
                 _set_session_register_("session_error");
             }
         } else {
             $session_error = "Kode Inisital harap diisi terlebih dahulu";
             _set_session_register_("session_error");
         }