git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@7178
7612ce4b-ef26-0410-bec9-
ea0150e637f0
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/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
/**
* default value for page_selector_max
if (!isset($hlt_color)) {
$hlt_color = $color_string;
}
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']]);
$col = 0;
$msg['SUBJECT'] = str_replace(' ', ' ', decodeHeader($msg['SUBJECT']));
$subject = processSubject($msg['SUBJECT'], $indent_array[$msg['ID']]);
switch ($index_order_part) {
case 1: /* checkbox */
echo html_tag( 'td',
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;
'center',
$hlt_color );
break;
- $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) {
/* build thread sorting links */
if ($allow_thread_sort == TRUE) {
return $handleAsSent_result;
}
return $handleAsSent_result;
}
-?>
\ No newline at end of file