Beispiel #1
0
</font>
       </td>
  <td bgcolor="#99ccff" align=right>

  <a href="javascript:window.history.back()"><img src="../../gui/img/control/default/en/en_back2.gif" border=0 width="110" height="24" alt="" style="filter:alpha(opacity=70)" onMouseover="hilite(this,1)" onMouseOut="hilite(this,0)" ></a>
 <a href="#"><img src="../../gui/img/control/default/en/en_hilfe-r.gif" border=0 width="75" height="24" alt="" style="filter:alpha(opacity=70)" onMouseover="hilite(this,1)" onMouseOut="hilite(this,0)"></a>

  <a href= "./index.php" ><img src="../../gui/img/control/default/en/en_close2.gif" border=0 width="103" height="24" alt="" style="filter:alpha(opacity=70)" onMouseover="hilite(this,1)" onMouseOut="hilite(this,0)"></a>  </td>

 </tr>
 </table>
<br/>
<?php 
global $purchaseorder, $results, $datetime, $user, $order1, $orderno, $items, $result3, $block, $Quantity, $unit_cost, $totalcost, $itemcode, $order_id;
$purchaseorder = new purchaseorder();
$purchaseorder->dbconnect();
$purchaseorder->dbselect();
$supplierid = $_REQUEST['supplier_id'];
$datetime = date("m/d/y");
$user = "******";
$addable = true;
if ($_REQUEST['mode'] == "create") {
    $results = $purchaseorder->add_order($datetime, $supplierid, $user);
    $order_id = $results;
    $order1 = $purchaseorder->get_order($order_id);
    while ($result1 = $purchaseorder->fetch_object($order1)) {
        $orderno = $result1->order_no;
        $supplierno = $result1->supplier_id;
        $datecreated = $result1->order_date;
        $orderedby = $result1->ordered_by;
    }
Beispiel #2
0
<?php

error_reporting(E_COMPILE_ERROR | E_ERROR | E_CORE_ERROR);
require './roots.php';
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;