Menu

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

Download this file

169 lines (168 with data), 5.9 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
<?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[sheet]) { $_SESSION[var_sheet] = $_GET[sheet]; }
if ($_GET[ColumnID]) { $_SESSION[var_ColumnID] = $_GET[ColumnID]; }
$sheet=$_SESSION[var_sheet];
$ColumnID=$_SESSION[var_ColumnID];
?>
<?php
if ($_POST['Name']!='') {
$Name = ($_POST['Name']);
$Size = $_POST['Size'];
$Type = $_POST['Type'];
$intern = ($_POST['intern']);
$Calculation = ($_POST['Calculation']);
$Sort = $_POST['Sort'];
}
?>
<HTML>
<HEAD>
<META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=windows-1252">
<TITLE>Column add</TITLE>
</HEAD>
<BODY LANG="en-US" DIR="LTR" ONLOAD="Insert.<?php
if ($_POST[FOCUS]==470) {echo 'intern';}
else {echo 'name';}
?>.focus();">
<FORM NAME="Insert" ACTION="postaddcolumn.php" METHOD=POST>
<INPUT TYPE="HIDDEN" NAME="FOCUS" VALUE="">
<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>Column add
</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">
Name
</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['Name']!='');
$strdefault = $_POST['Name'];
echo "<INPUT TYPE=TEXT NAME=\"Name\" SIZE=0 VALUE=\"$strdefault\">";
?>
</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">
Size
</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['Size']!='');
$strdefault = $_POST['Size'];
echo "<INPUT TYPE=TEXT NAME=\"Size\" SIZE=0 VALUE=\"$strdefault\">";
?>
</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">
Type
</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['Type']!='');
echo ("<SELECT NAME=\"Type\" OnChange=\"Insert.action=''; Insert.FOCUS.value='470'; Insert.submit();\">");
if ('date' == $_POST['Type']) {$sel='SELECTED ';} else {$sel='';};
echo "<OPTION VALUE=\"date\"$sel>date</OPTION>\n";
if ('datemin' == $_POST['Type']) {$sel='SELECTED ';} else {$sel='';};
echo "<OPTION VALUE=\"datemin\"$sel>datemin</OPTION>\n";
if ('datemax' == $_POST['Type']) {$sel='SELECTED ';} else {$sel='';};
echo "<OPTION VALUE=\"datemax\"$sel>datemax</OPTION>\n";
if ('number' == $_POST['Type']) {$sel='SELECTED ';} else {$sel='';};
echo "<OPTION VALUE=\"number\"$sel>number</OPTION>\n";
if ('select' == $_POST['Type']) {$sel='SELECTED ';} else {$sel='';};
echo "<OPTION VALUE=\"select\"$sel>select</OPTION>\n";
if ('char' == $_POST['Type']) {$sel='SELECTED ';} else {$sel='';};
echo "<OPTION VALUE=\"char\"$sel>char</OPTION>\n";
if ('text' == $_POST['Type']) {$sel='SELECTED ';} else {$sel='';};
echo "<OPTION VALUE=\"text\"$sel>text</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">
SQL Table
</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['intern']!='');
$strdefault = $_POST['intern'];
echo "<INPUT TYPE=TEXT NAME=\"intern\" SIZE=0 VALUE=\"$strdefault\">";
?>
</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">
Calculation
</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['Calculation']!='');
$strdefault = $_POST['Calculation'];
echo "<TEXTAREA NAME=\"Calculation\" ROWS=5 COLS=0>$strdefault</TEXTAREA>";
?>
</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">
Sort
</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['Sort']!='');
$strdefault = $_POST['Sort'];
echo "<INPUT TYPE=TEXT NAME=\"Sort\" SIZE=0 VALUE=\"$strdefault\">";
?>
</FONT></FONT></FONT></P>
</TD>
</TR>
</TBODY>
</TABLE>
<P ALIGN=RIGHT>
<INPUT TYPE=submit VALUE=Add>
<INPUT TYPE=BUTTON VALUE="Cancel" 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.