-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathedit_stock.php
75 lines (56 loc) · 1.77 KB
/
edit_stock.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
<?php
//including common files
require_once './include/common.php';
require_once './template/header.php';
//Checking stock already exists in table
$id = $_GET['id'];
$field = array("sName,murl,curl,cSymbol,grow");
$table = "stocklistbackup";
$condition = "id='$id'";
$arugment = array( "field" => $field , "table" => $table, "condition" => $condition);
$data = select($arugment,"one");
?>
<br/>
<center>
<form action="edit_process.php" method="post" enctype="multipart/form-data">
<table class="gridtable">
<tr>
<td>Stock Name</td>
<td>
<input type="hidden" name="id" value="<?php echo $id ?>" />
<input type="text" name="stock_name" value="<?php echo $data['sName']?>"></td>
</tr>
<tr>
<td>Money Control</td>
<td><textarea name="murl" rows="5" cols="50"><?php echo $data['murl']?></textarea></td>
</tr>
<tr>
<td>ChartInk</td>
<td><textarea name="curl" rows="5" cols="50"><?php echo $data['curl']?></textarea></td>
</tr>
<tr>
<td>Grow Link</td>
<td><textarea name="notes" rows="5" cols="50"><?php echo $data['grow']?></textarea></td>
</tr>
<tr>
<td>Company Info</td>
<?php
$company = $data['cSymbol'];
?>
<td><a href="https://www.google.com/search?q=<?php echo $company ?>+News+today" target="_blank">Company Info</a></td>
</tr>
<tr>
<td>Upload Trend</td>
<td><input type="file" name="fileToUpload" id="fileToUpload"></td>
</tr>
<tr>
<td colspan="2"><input type="submit" name="save" value="Save"></td>
</tr>
</table>
</form>
</center>
<?php
if(!empty($_GET['msg'])) {
echo $_GET['msg'];
}
?>