forked from bastosmichael/biverr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deliver_work.php
94 lines (86 loc) · 3.13 KB
/
deliver_work.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<?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 ;?></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>
<script type="text/javascript" src="javascript/init1.js"></script>
<link type='text/css' href='css/stylesheet.css' rel='stylesheet' media='screen' />
<link type='text/css' href='css/basic.css' rel='stylesheet' media='screen' />
</head>
<body>
<div id="container">
<!--HEADER AREA-->
<?php include('header.php')?>
<!--HEADER AREA END-->
<div class="body_cont">
<div class="body_cont_top">
</div>
<div class="body_cont_center">
<div class="left_cont">
<div class="tweet_bx">
<form method="post" id="edit_user" enctype="multipart/form-data" class="settings-form" action="">
<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#EFFAFF" >
<tr >
<td width="1%"> </td>
<td><strong><h2>Devered Work</h2> </strong></td>
<td style="padding-left:6px;"> </td>
</tr>
<tr height="200">
<td width="1%"> </td>
<td><strong>Message </strong></td>
<td style="padding-left:6px;"><textarea name="message" rows="5" cols="25" class="textarea"></textarea></td>
</tr>
<tr height="40">
<td width="1%"> </td>
<td><strong>Attachment</strong></td>
<td><input type="file" size="30" name="attach" id="attach" class="browsefile"></td>
</tr>
<tr height="40">
<td width="1%"> </td>
<td> </td>
<td align="center"><input type="image" src="images/btn-2-save.png" name="submit" value="submit" class="btn-update" alt="Update"></td>
</tr>
</table>
</form>
</div>
</div>
<?php include('profile_right.php'); ?>
</div>
<div class="body_cont_bottom">
</div>
</div>
<?php
include('footer.php');
?>
</div>
</body>
</html>