From: Thijs K. <ki...@us...> - 2004-04-19 20:53:03
|
Update of /cvsroot/squirrelmail/squirrelmail/functions In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6695 Modified Files: mailbox_display.php Log Message: Use form functions in mailbox_display Index: mailbox_display.php =================================================================== RCS file: /cvsroot/squirrelmail/squirrelmail/functions/mailbox_display.php,v retrieving revision 1.376 retrieving revision 1.377 diff -u -w -r1.376 -r1.377 --- mailbox_display.php 18 Apr 2004 17:35:38 -0000 1.376 +++ mailbox_display.php 19 Apr 2004 20:52:35 -0000 1.377 @@ -20,6 +20,7 @@ require_once(SM_PATH . 'functions/imap_mailbox.php'); require_once(SM_PATH . 'functions/imap_messages.php'); require_once(SM_PATH . 'functions/mime.php'); +require_once(SM_PATH . 'functions/forms.php'); /** * default value for page_selector_max @@ -228,7 +229,6 @@ if (!isset($hlt_color)) { $hlt_color = $color_string; } - $checked = ($checkall == 1) ? ' checked' : ''; $col = 0; $msg['SUBJECT'] = str_replace(' ', ' ', decodeHeader($msg['SUBJECT'])); $subject = processSubject($msg['SUBJECT'], $indent_array[$msg['ID']]); @@ -237,7 +237,7 @@ switch ($index_order_part) { case 1: /* checkbox */ echo html_tag( 'td', - "<input type=\"checkbox\" name=\"msg[$t]\" value=\"".$msg['ID']."\"$checked />", + addCheckBox("msg[$t]", $checkall, $msg['ID']), 'center', $hlt_color ); break; @@ -889,10 +889,10 @@ $location = $php_self; } - $moveFields = '<input type="hidden" name="msg" value="'.htmlspecialchars($msg).'" />' . - '<input type="hidden" name="mailbox" value="'.htmlspecialchars($mailbox).'" />' . - '<input type="hidden" name="startMessage" value="'.htmlspecialchars($start_msg).'" />'. - '<input type="hidden" name="location" value="'.$location.'" />'; + $moveFields = addHidden('msg', $msg). + addHidden('mailbox', $mailbox). + addHidden('startMessage', $start_msg). + addHidden('location', $location); /* build thread sorting links */ if ($allow_thread_sort == TRUE) { |