working with new session class

This commit is contained in:
skeeter 2000-09-03 19:30:13 +00:00
parent 0f6842bd5b
commit ea856c8741
5 changed files with 7 additions and 14 deletions

View File

@ -103,8 +103,7 @@
} }
if ($action) { if ($action) {
echo "<FORM action=\"$action\" method=\"post\">\n" echo "<FORM action=\"".$phpgw->link($action)."\" method=\"post\">\n";
. $phpgw->session->hidden_var();
} }
?> ?>

View File

@ -166,8 +166,7 @@
?> ?>
</table> </table>
<form method="POST" action="add.php"> <form method="POST" action="<?php echo $phpgw->link("add.php"); ?>">
<?php echo $phpgw->session->hidden_var(); ?>
<input type="hidden" name="sort" value="<?php echo $sort; ?>"> <input type="hidden" name="sort" value="<?php echo $sort; ?>">
<input type="hidden" name="order" value="<?php echo $order; ?>"> <input type="hidden" name="order" value="<?php echo $order; ?>">
<input type="hidden" name="query" value="<?php echo $query; ?>"> <input type="hidden" name="query" value="<?php echo $query; ?>">

View File

@ -116,8 +116,7 @@ function validate_and_submit() {
<?php <?php
if ($can_edit) { if ($can_edit) {
?> ?>
<FORM ACTION="edit_entry_handler.php" METHOD="GET" name="addform"> <FORM ACTION="<?php echo $phpgw->link("edit_entry_handler.php"); ?>" METHOD="GET" name="addform">
<? echo $phpgw->session->hidden_var(); ?>
<?php if ($id) echo "<INPUT TYPE=\"hidden\" NAME=\"id\" VALUE=\"$id\">\n"; ?> <?php if ($id) echo "<INPUT TYPE=\"hidden\" NAME=\"id\" VALUE=\"$id\">\n"; ?>

View File

@ -22,8 +22,7 @@
<HR CLEAR="all"> <HR CLEAR="all">
<FONT SIZE="-1"> <FONT SIZE="-1">
<TABLE BORDER=0 WIDTH=100% CELLPADDING=0 CELLSPACING=0> <TABLE BORDER=0 WIDTH=100% CELLPADDING=0 CELLSPACING=0>
<FORM ACTION="index.php" METHOD="GET" NAME="SelectMonth"> <FORM ACTION="<?php echo $phpgw->link("index.php"); ?>" METHOD="GET" NAME="SelectMonth">
<?php echo $phpgw->session->hidden_var(); ?>
<TR><TD VALIGN="top" WIDTH=33%><FONT SIZE="-1"> <TR><TD VALIGN="top" WIDTH=33%><FONT SIZE="-1">
<B><?php echo lang_calendar("Month"); ?>:</B> <B><?php echo lang_calendar("Month"); ?>:</B>
@ -59,8 +58,7 @@
</FONT></TD> </FONT></TD>
</FORM> </FORM>
<FORM ACTION="week.php" METHOD="GET" NAME="SelectWeek"> <FORM ACTION="<?php echo $phpgw->link("week.php"); ?>" METHOD="GET" NAME="SelectWeek">
<?php echo $phpgw->session->hidden_var(); ?>
<TD VALIGN="top" align="center" WIDTH=33%><FONT SIZE="-1"> <TD VALIGN="top" align="center" WIDTH=33%><FONT SIZE="-1">
<B><?php echo lang_calendar("Week"); ?>:</B> <B><?php echo lang_calendar("Week"); ?>:</B>
@ -103,8 +101,7 @@
<FONT SIZE="-1"> <FONT SIZE="-1">
<FORM ACTION="year.php" METHOD="GET" NAME="SelectYear"> <FORM ACTION="<?php echo $phpgw->link("year.php"); ?>" METHOD="GET" NAME="SelectYear">
<?php echo $phpgw->session->hidden_var(); ?>
<TD VALIGN="top" align="right" WIDTH=33%><FONT SIZE="-1"> <TD VALIGN="top" align="right" WIDTH=33%><FONT SIZE="-1">
<B><?php echo lang_calendar("Year"); ?>:</B> <B><?php echo lang_calendar("Year"); ?>:</B>

View File

@ -19,8 +19,7 @@
</a> </a>
</td> </td>
<td align="right"> <td align="right">
<form action="search.php"> <form action="<?php echo $phpgw->link("search.php"); ?>">
<?php echo $phpgw->session->hidden_var(); ?>
<input type="hidden" name="from" value="<?php echo $PHP_SELF; ?>"> <input type="hidden" name="from" value="<?php echo $PHP_SELF; ?>">
<input type="hidden" name="date" value="<?php echo $date; ?>"> <input type="hidden" name="date" value="<?php echo $date; ?>">
<input type="hidden" name="month" value="<?php echo $thismonth; ?>"> <input type="hidden" name="month" value="<?php echo $thismonth; ?>">