X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=functions%2Fpage_header.php;h=424d420a7f563a3c23ab8e740118363fae10ac86;hb=f8a4ef2dc5fef964738d410ecef9fa4b06ba9650;hp=c9698c9c765121603a279ed590578bbfa2c97bf1;hpb=f603fc957c0916695d3ebbec53aaadad11441158;p=squirrelmail.git
diff --git a/functions/page_header.php b/functions/page_header.php
index c9698c9c..424d420a 100644
--- a/functions/page_header.php
+++ b/functions/page_header.php
@@ -273,7 +273,22 @@ function displayPageHeader($color, $mailbox, $xtra='', $session=false) {
var marked_row = new Array;
-/**
+/*
+ * (un)Checks checkbox for the row that the current table cell is in
+ * when it gets clicked.
+ *
+ * @param string the name of the checkbox that should be (un)checked
+ */
+function row_click(chkboxName) {
+ chkbox = document.getElementById(chkboxName);
+ if (chkbox) {
+ chkbox.checked = (chkbox.checked ? false : true);
+ }
+}
+
+
+
+/*
* Sets/unsets the pointer and marker in browse mode
*
* @param object the table row
@@ -404,7 +419,25 @@ function setPointer(theRow, theRowNum, theAction, theDefaultColor, thePointerCol
} // end of the 'setPointer()' function
EOS;
$js = "\n".'\n";
+ "\n\n\n";
$onload = '';
displayHtmlHeader ('SquirrelMail', $js);
break;
@@ -511,9 +544,12 @@ EOS;
if (!$hide_sm_attributions)
{
echo html_tag( 'td', '', 'right' ) ."\n";
- if (!isset($provider_uri)) $provider_uri= 'http://www.squirrelmail.org/';
- if (!isset($provider_name)) $provider_name= 'SquirrelMail';
- echo ''.$provider_name.'';
+ if (empty($provider_uri)) {
+ echo 'SquirrelMail';
+ } else {
+ if (empty($provider_name)) $provider_name= 'SquirrelMail';
+ echo ''.$provider_name.'';
+ }
echo "\n";
}
echo " \n".