-
Notifications
You must be signed in to change notification settings - Fork 49
/
Copy pathindex.php
131 lines (118 loc) · 4.59 KB
/
index.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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<?php
if(isset($_POST["txt_cname"]))
{
$to = "[email protected]";
$title = "Order Info";
$headers = 'From: [email protected]' . "\r\n" .
'Reply-To: [email protected]' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
$msg = "Hello. \r\n";
$msg = "The Order Info as bellow: \r\n";
$msg = "COMPANY NAME : ".$_POST["txt_cname"]."\r\n";
$msg = "CONTACT PERSON : ".$_POST["txt_contact"]."\r\n";
$msg = "PHONE : ".$_POST["txt_phone"]."\r\n";
$msg = "EMAIL : ".$_POST["txt_email"]."\r\n";
$msg = "PRODUCT COLOR : ".$_POST["txt_color"]."\r\n";
$msg = "DESIRED QUANTITY : ".$_POST["txt_quantity"]."\r\n";
$msg = "DATE REQUIRED BY : ".$_POST["txt_date"]."\r\n";
$msg = "DELIVERY ADDRESS : ".$_POST["txt_address"]."\r\n";
// mail ( string $to , string $subject , string $message [, string $additional_headers [, string $additional_parameters ]] )
mail($to, $title, $msg, $headers);
}
?>
<!DOCTYPE html>
<html>
<head>
<title>Upwork Model Viewer</title>
<script type="text/javascript" src="library/Three.js"></script>
<script type="text/javascript" src="library/OBJLoader.js"></script>
<script type="text/javascript" src="library/MTLLoader.js"></script>
<script type="text/javascript" src="library/OBJMTLLoader.js"></script>
<script type="text/javascript" src="library/Stats.js"></script>
<script type="text/javascript" src="library/Mirror.js"></script>
<script type="text/javascript" src="library/OrbitControls.js"></script>
<script type="text/javascript" src="library/jquery.min.js"></script>
<script type="text/javascript" src="library/jquery-webgl.js"></script>
<link rel="stylesheet" type="text/css" href="css/style.css" />
</head>
<body>
<div id="left_area">
<form id="sbm_form" action="index.php" method="POST">
<p class='title'>CHOOSE PEEL COLOR</p>
<input type="hidden" id="txt_color" name="txt_color" value="#CD2033">
<ul id="color_box">
<li color="#CD2033" class="sel"><p> </p></li>
<li color="#F87642"><p> </p></li>
<li color="#6D307E"><p> </p></li>
<li color="#F7A93C"><p> </p></li>
<li color="#309BBF"><p> </p></li>
<li color="#302D36"><p> </p></li>
<li color="#EE6291"><p> </p></li>
<li color="#5BB26B"><p> </p></li>
</ul>
<p class='title'>UPLOAD YOUR LOGO</p>
<div id="logo_area">
<input type="file" id="file_upload" name="file_upload">
<dl>
<dd>Allow File Format : (*.png)</dd>
<dd>Recommend Size : 100 X 100</dd>
</dl>
</div>
<p class='title'>YOUR DETAIL HERE</p>
<table>
<tr>
<td>COMPANY NAME</td>
<td><input type="text" name="txt_cname"></td>
</tr>
<tr>
<td>CONTACT PERSON</td>
<td><input type="text" name="txt_contact"></td>
</tr>
<tr>
<td>PHONE</td>
<td><input type="text" name="txt_phone"></td>
</tr>
<tr>
<td>EMAIL</td>
<td><input type="text" name="txt_email"></td>
</tr>
<tr>
<td>DESIRED QUANTITY</td>
<td><input type="number" name="txt_quantity"></td>
</tr>
<tr>
<td>DATE REQUIRED BY</td>
<td><input type="date" name="txt_date"></td>
</tr>
<tr>
<td>DELIVERY ADDRESS</td>
<td><input type="text" name="txt_address"></td>
</tr>
<tr>
<td colspan="2">
<center><input type="submit" value="SUBMIT"></center>
</td>
</tr>
</table>
</form>
</div>
<div id="WebGL-output">
<ul id="control_area">
<li><img src="img/Rotation-icon.png"/></li>
<li><img src="img/Zoom-In-icon.png"/></li>
<li><img src="img/Zoom-Out-icon.png"/></li>
</ul>
</div>
<script type="text/javascript">
var obj = $("#WebGL-output").showModel();
var param =
{
obj : 'model/16_2.obj',
mtl : 'model/16_2.mtl',
color : 0x1139BF,
pos_y : -30,
}
obj.addObject(param);
</script>
</body>
</html>