-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaddGUI.php
55 lines (40 loc) · 1.36 KB
/
addGUI.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
<?
require("sessionCheck.php");
require("config.php");
?>
<html>
<?
print $pageStyle;
?>
<?
$Connect = mysqli_connect($DB_SERVER, $user, $password) or die ("Cant connect to MySQL at $DB_SERVER");
mysqli_select_db($DATABASE,$Connect) or die ("Cant connect to $DATABASE database");
$toggle=0;
$sql_query="SELECT * FROM guiconfig WHERE selected=1";
$result=mysqli_query ($sql_query);
if(!$result) {
print "sq: $sql_q <br>\n";
print "Mysql Problems: " . mysqli_error() . "<br>\n";
}
if(mysqli_num_rows($result)>0) {
?>
<form action="addGUI2.php?SID=<? print $sid;?>&ID=<? print $_GET["ID"]; ?>" method="POST" target="view">
<?
$row = mysqli_fetch_array($result);
print "<table border=0>";
print "<tr><th><b>pageStyle</b></th></tr>";
print "<tr><td><textarea name=good rows=20 cols=80>". $row["pageStyle"] ."</textarea></td></tr>";
print "<tr><th><b>pageStyleBad</b></th></tr>";
print "<tr><td><textarea name=bad rows=20 cols=80>". $row["pageStyleBad"] . "</textarea></td></tr>";
print "<tr><th><b>projectName</b></th></tr>";
print "<tr><td><input type=text name=name size=60 maxlength=80 value='". $row["projectName"] . "'></td></tr>";
print "</table>";
?>
<tr><td><input type="submit" value="Add"></td><td><input type="reset" value="Reset"></td></td>
<?
} else {
print "No entries in the access table, How the hell did you get here!?!?!? ";
exit;
}
?>
</body></html>