Esempio n. 1
0
require $root_path . 'include/care_api_classes/supplier_database_class.php';
require $root_path . 'include/care_api_classes/class_purchase_order.php';
require_once 'index.php';
global $supplier, $del_order;
$supplier = $_REQUEST['supplier'];
$del_order = $_REQUEST['del_order'];
$orders = new purchaseorder();
$orders->dbconnect();
$orders->dbselect();
if (isset($del_order)) {
    $sql1 = "delete from care_tz_purchase_order_detail where order_no='{$del_order}'";
    $sql2 = "delete from care_tz_purchase_order where order_no='{$del_order}'";
    $orders->query($sql1);
    $orders->query($sql2);
}
$rs = $orders->orders($supplier);
?>
<html>
<head>
<link rel="stylesheet" href="../../css/themes/default/default.css" type="text/css">
<style type="text/css">

TH {
    font-family: verdana;
    font-size: 10pt;
    background-color: #CCCCE5;
    font-weight: bold;
}
A {
	text-decoration: none;
	color: #000099;