Exemple #1
0
<?php

session_start();
include_once 'config/db_conn.php';
include_once 'db_config/db_delivered.php';
include_once 'db_config/db_order_payment.php';
$order_payment = new order_payment();
$delivered = new delivered();
$orderid = base64_decode($_REQUEST['orderid']);
if ($_REQUEST['submit']) {
    $data = array("order_id" => $orderid, "message" => $_REQUEST['message'], "attachment" => date("ymdhi") . $_FILES['attach']['name']);
    //	$_FILES['attach']['name'];
    $rs_delivered = $delivered->dataInsert('ninerr_delivered', $data);
    $dataArray = array("order_status" => "compleated");
    $fldArray = array("order_id" => $orderid);
    $order_payment->dataUpdate("ninerr_order_payment", $dataArray, $fldArray);
    $fileName = $_FILES['attach']['name'];
    $fileSize = '2000';
    $fileTempName = $_FILES['attach']['tmp_name'];
    $folderPath = 'attach';
    $oldfileName = '';
    fileUpload($fileName, $oldfileName, $fileSize, $fileTempName, $folderPath, $maxSize = 5242880);
    reDirect('manage_order.php');
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title><?php 
echo SITE_TITLE;
Exemple #2
0
$data_trans_sum_withdraw = mysql_fetch_array($rs_trans_sum_withdraw);
$data_trans = mysql_fetch_array($rs_trans);
//echo $data_trans['pending_fund'];
$user = new user();
$gigs = new gigs();
$order_payment = new order_payment();
$rs = $order_payment->uniq_order_payment_list_double('buyer_id', $_SESSION['user_id'], 'order_id', $_REQUEST['orderid']);
$data = mysql_fetch_array($rs);
if ($_REQUEST['orderid'] == '') {
    reDirect('manage_order.php');
}
if ($_REQUEST['submit']) {
    $table = "ninerr_order_payment";
    $dataArray = array("order_status" => $_REQUEST['order_status']);
    $fldArray = array("order_id" => $_REQUEST['orderid']);
    $order_payment->dataUpdate($table, $dataArray, $fldArray);
    reDirect('manage_order.php');
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title><?php 
echo SITE_TITLE;
?>
</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="javascript/jquery.min.js"></script>
<script type="text/javascript" src="javascript/jquery.simplemodal.js"></script>
<script type="text/javascript" src="javascript/init.js"></script>