Menu

[r7]: / html / addaction.php  Maximize  Restore  History

Download this file

118 lines (117 with data), 4.2 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
 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
<?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");
if ($_GET[]) { $_SESSION[var_] = $_GET[]; }
$TableID=$_SESSION[var_TableID];
?>
<?php
$sql = new MySQL_class;
$sql->Create("generator");
if ($_POST['Action']!='') {
$Action = $_POST['Action'];
$Part = $_POST['Part'];
$Code = ($_POST['Code']);
}
?>
<HTML>
<HEAD>
<META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=windows-1252">
<TITLE>Action toevoegen</TITLE>
</HEAD>
<BODY LANG="en-US" DIR="LTR">
<FORM NAME="Insert" ACTION="postaddaction.php" METHOD=POST>
<TABLE WIDTH=100% BORDER=0 CELLPADDING=4 CELLSPACING=1>
<THEAD>
<TR>
<TD COLSPAN=2 WIDTH=100% VALIGN=TOP BGCOLOR="#000080">
<P><FONT COLOR="#ffffff"><FONT FACE="Verdana, sans-serif"><FONT SIZE=1 STYLE="font-size: 8pt"><B>Action toevoegen
</B></FONT></FONT></FONT></P>
</TD>
</TR>
</THEAD>
<TBODY>
<TR VALIGN=TOP>
<TD WIDTH=20% BGCOLOR="#e6e6ff">
<P><FONT COLOR="#000080"><FONT FACE="Verdana, sans-serif"><FONT SIZE=1 STYLE="font-size: 8pt">
Action
</FONT></FONT></FONT></P>
</TD>
<TD WIDTH=80%>
<P><FONT COLOR="#000080"><FONT FACE="Verdana, sans-serif"><FONT SIZE=1 STYLE="font-size: 8pt">
<?php
$current=($_POST['Action']!='');
echo ("<SELECT NAME=\"Action\" STYLE=\"width: 210px\" OnChange=\"Insert.action=''; Insert.submit();\">");
if ('show' == $_POST['Action']) {$sel='SELECTED ';} else {$sel='';};
echo "<OPTION VALUE=\"show\"$sel>show</OPTION>\n";
if ('add' == $_POST['Action']) {$sel='SELECTED ';} else {$sel='';};
echo "<OPTION VALUE=\"add\"$sel>add</OPTION>\n";
if ('edit' == $_POST['Action']) {$sel='SELECTED ';} else {$sel='';};
echo "<OPTION VALUE=\"edit\"$sel>edit</OPTION>\n";
if ('remove' == $_POST['Action']) {$sel='SELECTED ';} else {$sel='';};
echo "<OPTION VALUE=\"remove\"$sel>remove</OPTION>\n";
echo ("</SELECT></FONT></FONT>");
?>
</FONT></FONT></FONT></P>
</TD>
</TR>
<TR VALIGN=TOP>
<TD WIDTH=20% BGCOLOR="#e6e6ff">
<P><FONT COLOR="#000080"><FONT FACE="Verdana, sans-serif"><FONT SIZE=1 STYLE="font-size: 8pt">
Part
</FONT></FONT></FONT></P>
</TD>
<TD WIDTH=80%>
<P><FONT COLOR="#000080"><FONT FACE="Verdana, sans-serif"><FONT SIZE=1 STYLE="font-size: 8pt">
<?php
$current=($_POST['Part']!='');
echo ("<SELECT NAME=\"Part\" STYLE=\"width: 210px\" OnChange=\"Insert.action=''; Insert.submit();\">");
if ('session' == $_POST['Part']) {$sel='SELECTED ';} else {$sel='';};
echo "<OPTION VALUE=\"session\"$sel>session</OPTION>\n";
if ('allow' == $_POST['Part']) {$sel='SELECTED ';} else {$sel='';};
echo "<OPTION VALUE=\"allow\"$sel>allow</OPTION>\n";
if ('complete' == $_POST['Part']) {$sel='SELECTED ';} else {$sel='';};
echo "<OPTION VALUE=\"complete\"$sel>complete</OPTION>\n";
if ('header' == $_POST['Part']) {$sel='SELECTED ';} else {$sel='';};
echo "<OPTION VALUE=\"header\"$sel>header</OPTION>\n";
if ('footer' == $_POST['Part']) {$sel='SELECTED ';} else {$sel='';};
echo "<OPTION VALUE=\"footer\"$sel>footer</OPTION>\n";
echo ("</SELECT></FONT></FONT>");
?>
</FONT></FONT></FONT></P>
</TD>
</TR>
<TR VALIGN=TOP>
<TD WIDTH=20% BGCOLOR="#e6e6ff">
<P><FONT COLOR="#000080"><FONT FACE="Verdana, sans-serif"><FONT SIZE=1 STYLE="font-size: 8pt">
Code
</FONT></FONT></FONT></P>
</TD>
<TD WIDTH=80%>
<P><FONT COLOR="#000080"><FONT FACE="Verdana, sans-serif"><FONT SIZE=1 STYLE="font-size: 8pt">
<?php
$current=($_POST['Code']!='');
$strdefault = $_POST['Code'];
echo "<TEXTAREA NAME=\"Code\" ROWS=10 COLS=50>$strdefault</TEXTAREA>";
?>
</FONT></FONT></FONT></P>
</TD>
</TR>
</TBODY>
</TABLE>
<P ALIGN=RIGHT>
<INPUT TYPE="submit" VALUE="Bewaren">
<INPUT TYPE=BUTTON VALUE="Annuleren" onClick="window.close()">
</P>
</FORM>
</BODY>
</HTML>
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.