Menu

[r28]: / html / posteditcolumn.php  Maximize  Restore  History

Download this file

49 lines (48 with data), 1.3 kB

 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
<?php
session_start();
$user_ID=$_SESSION[user_ID];
if (!$user_ID || $user_ID=='0')
{
header('location: index.php');
die('Login failed');
}
require("util.php");
$sql = new MySQL_class;
$sql->Create("generator");
$esql = new MySQL_class;
$esql->Create("generator");
$sheet=$_SESSION[var_sheet];
$ColumnID=$_SESSION[var_ColumnID];
?>
<?php
$ColumnID=($_POST['ColumnID']);
$Name=quote($_POST['Name']);
$Size=quote($_POST['Size']);
$Type=quote($_POST['Type']);
$intern=quote($_POST['intern']);
$Calculation=quote($_POST['Calculation']);
$Sort=quote($_POST['Sort']);
$sql->Update("UPDATE `column` SET
`name`=$Name,
`size`=$Size,
`type`=$Type,
`sql`=$intern,
`calculation`=$Calculation,
`order`=$Sort WHERE `column`='$ColumnID' AND `sheet`='$sheet'");
$affected_rows = $sql->a_rows;
echo "<P><FONT FACE=\"Verdana, sans-serif\"><FONT SIZE=1 STYLE=\"font-size: 8pt\">";
echo "Er is/zijn $affected_rows records gewijzigd<BR>";
echo "$ColumnID<BR>";
echo "$Name<BR>";
echo "$Size<BR>";
echo "$Type<BR>";
echo "$intern<BR>";
echo "$Calculation<BR>";
echo "$Sort<BR>";
echo "</P>";
if ($affected_rows=1) {
echo "<script>window.opener.location.reload(true)</script>";
echo "<script>window.close(self)</script>";
}
?>
<INPUT TYPE=BUTTON VALUE="Close" onClick="window.opener.location.reload(true);self.close()">
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.