[Vtigercrm-commits] [vtiger-commits] r6415 - in /vtigercrm/trunk: Smarty/templates/Webmails.tpl modules/Webmails/ListView.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Thu May 25 10:02:02 EDT 2006
Author: mmbrich
Date: Thu May 25 08:02:01 2006
New Revision: 6415
Log:
added check_all function
Modified:
vtigercrm/trunk/Smarty/templates/Webmails.tpl
vtigercrm/trunk/modules/Webmails/ListView.php
Modified: vtigercrm/trunk/Smarty/templates/Webmails.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/Webmails.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/Webmails.tpl Thu May 25 08:02:01 2006
@@ -13,8 +13,8 @@
<table width="100%" border="0" cellpadding="0" cellspacing="0" height="100%">
<tr>
<td class="showPanelBg" valign="top" width="95%" style="padding-left:20px; ">
- <span class="lvtHeaderText">{$CATEGORY} -> {$MODULE} </span>
- <span id="status" style="display:none"><img src="{$IMAGE_PATH}busy.gif"> Executing Command...</span><hr noshade="noshade" size="1" /><br />
+ <span class="lvtHeaderText">{$CATEGORY} -> {$MODULE} </span>
+ <hr noshade="noshade" size="1" /><br />
</td>
<td width="5%" class="showPanelBg"> </td>
</tr>
@@ -62,7 +62,7 @@
<tr>
<td width="28%" bgcolor="#949494"><span class="subHdr"><b>{$MOD.LBL_EMAIL_FOLDERS}</b></span> </td>
<td width="2%"> </td>
- <td width="60%" class="subHdr"><strong>{$MOD.LBL_MAILS} {$ACCOUNT} > {$MAILBOX} </strong></td>
+ <td width="60%" class="subHdr"><span style="float:left"><strong>{$MOD.LBL_MAILS} {$ACCOUNT} > {$MAILBOX} </strong></span> <span style="float:right">{$NAVIGATION}</span></td>
</tr>
<tr>
<td rowspan="6" valign="top" bgcolor="#FFFFFF" style="padding:10px; ">
@@ -118,7 +118,7 @@
<div id="rssScroll">
<table class="rssTable" cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
- <th width="5%"><input type="checkbox" name="checkbox" value="checkbox" /></th>
+ <th width="5%"><input type="checkbox" name="checkbox" value="checkbox" onclick="select_all();"/></th>
{foreach item=element from=$LISTHEADER}
<th>{$element}</th>
{/foreach}
Modified: vtigercrm/trunk/modules/Webmails/ListView.php
==============================================================================
--- vtigercrm/trunk/modules/Webmails/ListView.php (original)
+++ vtigercrm/trunk/modules/Webmails/ListView.php Thu May 25 08:02:01 2006
@@ -43,6 +43,15 @@
}
}
);
+}
+function select_all() {
+ var els = document.getElementsByClassName("msg_check");
+ for(var i=0;i<els.length;i++) {
+ if(els[i].checked)
+ els[i].checked = false;
+ else
+ els[i].checked = true;
+ }
}
function check_for_new_mail(mbox) {
$("status").style.display="block";
@@ -354,12 +363,12 @@
$displayed_msgs++;
if ($mails[$start_message]->deleted && !$show_hidden) {
- $flags = "<tr id='row_".$mails[$start_message]->msgno."' class='deletedRow' style='display:none'><td colspan='1'><input type='checkbox' name='checkbox_".$mails[$start_message]->msgno."'></td><td colspan='1'>";
+ $flags = "<tr id='row_".$mails[$start_message]->msgno."' class='deletedRow' style='display:none'><td colspan='1'><input type='checkbox' name='checkbox_".$mails[$start_message]->msgno."' class='msg_check'></td><td colspan='1'>";
$displayed_msgs--;
} elseif ($mails[$start_message]->deleted && $show_hidden)
- $flags = "<tr id='row_".$mails[$start_message]->msgno."' class='deletedRow'><td colspan='1'><input type='checkbox' name='checkbox_".$mails[$start_message]->msgno."'></td><td colspan='1'>";
+ $flags = "<tr id='row_".$mails[$start_message]->msgno."' class='deletedRow'><td colspan='1'><input type='checkbox' name='checkbox_".$mails[$start_message]->msgno."' class='msg_check'></td><td colspan='1'>";
else
- $flags = "<tr id='row_".$mails[$start_message]->msgno."'><td colspan='1'><input type='checkbox' name='checkbox_".$mails[$start_message]->msgno."'></td><td colspan='1'>";
+ $flags = "<tr id='row_".$mails[$start_message]->msgno."'><td colspan='1'><input type='checkbox' name='checkbox_".$mails[$start_message]->msgno."' class='msg_check'></td><td colspan='1'>";
// Attachment Icons
if(getAttachmentDetails($start_message,$mbox))
More information about the vtigercrm-commits
mailing list