[Vtigercrm-commits] [vtiger-commits] r10710 - in /vtigercrm/branches/5.0.3: Smarty/templates/ListViewEntries.tpl include/js/Merge.js
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Tue Apr 17 11:43:41 EDT 2007
Author: saraj
Date: Tue Apr 17 09:43:35 2007
New Revision: 10710
Log:
Mail merge doesnot work after navigation in listview
Modified:
vtigercrm/branches/5.0.3/Smarty/templates/ListViewEntries.tpl
vtigercrm/branches/5.0.3/include/js/Merge.js
Modified: vtigercrm/branches/5.0.3/Smarty/templates/ListViewEntries.tpl
==============================================================================
--- vtigercrm/branches/5.0.3/Smarty/templates/ListViewEntries.tpl (original)
+++ vtigercrm/branches/5.0.3/Smarty/templates/ListViewEntries.tpl Tue Apr 17 09:43:35 2007
@@ -1,226 +1,226 @@
-{*<!--
-/*********************************************************************************
- ** The contents of this file are subject to the vtiger CRM Public License Version 1.0
- * ("License"); You may not use this file except in compliance with the License
- * The Original Code is: vtiger CRM Open Source
- * The Initial Developer of the Original Code is vtiger.
- * Portions created by vtiger are Copyright (C) vtiger.
- * All Rights Reserved.
- *
- ********************************************************************************/
--->*}
-{if $smarty.request.ajax neq ''}
-&#&#&#{$ERROR}&#&#&#
-{/if}
-
-<form name="massdelete" method="POST">
- <input name='search_url' id="search_url" type='hidden' value='{$SEARCH_URL}'>
- <input name="idlist" id="idlist" type="hidden">
- <input name="change_owner" type="hidden">
- <input name="change_status" type="hidden">
- <input name="allids" type="hidden" value="{$ALLIDS}">
- <!-- List View Master Holder starts -->
- <table border=0 cellspacing=1 cellpadding=0 width=100% class="lvtBg">
- <tr>
- <td>
- <!-- List View's Buttons and Filters starts -->
- <table border=0 cellspacing=0 cellpadding=2 width=100% class="small">
- <tr>
- <!-- Buttons -->
- <td style="padding-right:20px" nowrap>
- {foreach key=button_check item=button_label from=$BUTTONS}
- {if $button_check eq 'del'}
- <input class="crmbutton small delete" type="button" value="{$button_label}" onclick="return massDelete('{$MODULE}')"/>
- {elseif $button_check eq 's_mail'}
- <input class="crmbutton small edit" type="button" value="{$button_label}" onclick="return eMail('{$MODULE}',this);"/>
- {elseif $button_check eq 's_cmail'}
- <input class="crmbutton small edit" type="submit" value="{$button_label}" onclick="return massMail('{$MODULE}')"/>
- {elseif $button_check eq 'c_status'}
- <input class="crmbutton small edit" type="button" value="{$button_label}" onclick="return change(this,'changestatus')"/>
- {elseif $button_check eq 'c_owner'}
- {if $MODULE neq 'Notes' && $MODULE neq 'Products' && $MODULE neq 'Faq' && $MODULE neq 'Vendors' && $MODULE neq 'PriceBooks'}
- <input class="crmbutton small edit" type="button" value="{$button_label}" onclick="return change(this,'changeowner')"/>
- {/if}
- {/if}
-
- {/foreach}
- </td>
- <!-- Record Counts -->
- <td style="padding-right:20px" class="small" nowrap>{$RECORD_COUNTS}</td>
- <!-- Page Navigation -->
- <td nowrap >
- <table border=0 cellspacing=0 cellpadding=0 class="small">
- <tr>{$NAVIGATION}</tr>
- </table>
- </td>
- <td width=100% align="right">
- <!-- Filters -->
- {if $HIDE_CUSTOM_LINKS neq '1'}
- <table border=0 cellspacing=0 cellpadding=0 class="small">
- <tr>
- <td>{$APP.LBL_VIEW}</td>
- <td style="padding-left:5px;padding-right:5px">
- <SELECT NAME="viewname" id="viewname" class="small" onchange="showDefaultCustomView(this,'{$MODULE}')">{$CUSTOMVIEW_OPTION}</SELECT></td>
- {if $ALL eq 'All'}
- <td><a href="index.php?module={$MODULE}&action=CustomView&parenttab={$CATEGORY}">{$APP.LNK_CV_CREATEVIEW}</a>
- <span class="small">|</span>
- <span class="small" disabled>{$APP.LNK_CV_EDIT}</span>
- <span class="small">|</span>
- <span class="small" disabled>{$APP.LNK_CV_DELETE}</span></td>
- {else}
- <td><a href="index.php?module={$MODULE}&action=CustomView&parenttab={$CATEGORY}">{$APP.LNK_CV_CREATEVIEW}</a>
- <span class="small">|</span>
- <a href="index.php?module={$MODULE}&action=CustomView&record={$VIEWID}&parenttab={$CATEGORY}">{$APP.LNK_CV_EDIT}</a>
- <span class="small">|</span>
- <a href="javascript:confirmdelete('index.php?module=CustomView&action=Delete&dmodule={$MODULE}&record={$VIEWID}&parenttab={$CATEGORY}')">{$APP.LNK_CV_DELETE}</a></td>
- {/if}
- </tr>
- </table>
- <!-- Filters END-->
- {/if}
-
- </td>
- </tr>
- </table>
- <!-- List View's Buttons and Filters ends -->
-
- <div >
- <table border=0 cellspacing=1 cellpadding=3 width=100% class="lvt small">
- <!-- Table Headers -->
- <tr>
- <td class="lvtCol"><input type="checkbox" name="selectall" onClick=toggleSelect(this.checked,"selected_id")></td>
- {foreach name="listviewforeach" item=header from=$LISTHEADER}
- <td class="lvtCol">{$header}</td>
- {/foreach}
- </tr>
- <!-- Table Contents -->
- {foreach item=entity key=entity_id from=$LISTENTITY}
- <tr bgcolor=white onMouseOver="this.className='lvtColDataHover'" onMouseOut="this.className='lvtColData'" id="row_{$entity_id}">
- <td width="2%"><input type="checkbox" NAME="selected_id" value= '{$entity_id}' onClick=toggleSelectAll(this.name,"selectall")></td>
- {foreach item=data from=$entity}
- <td>{$data}</td>
- {/foreach}
- </tr>
- {foreachelse}
- <tr><td style="background-color:#efefef;height:340px" align="center" colspan="{$smarty.foreach.listviewforeach.iteration+1}">
- <div style="border: 3px solid rgb(153, 153, 153); background-color: rgb(255, 255, 255); width: 45%; position: relative; z-index: 10000000;">
- {assign var=vowel_conf value='LBL_A'}
- {if $MODULE eq 'Accounts' || $MODULE eq 'Invoice'}
- {assign var=vowel_conf value='LBL_AN'}
- {/if}
- {assign var=MODULE_CREATE value=$SINGLE_MOD}
- {if $MODULE eq 'HelpDesk'}
- {assign var=MODULE_CREATE value='Ticket'}
- {/if}
-
- {if $CHECK.EditView eq 'yes' && $MODULE neq 'Emails' && $MODULE neq 'Webmails'}
-
- <table border="0" cellpadding="5" cellspacing="0" width="98%">
- <tr>
- <td rowspan="2" width="25%"><img src="{$IMAGE_PATH}empty.jpg" height="60" width="61"></td>
- <td style="border-bottom: 1px solid rgb(204, 204, 204);" nowrap="nowrap" width="75%"><span class="genHeaderSmall">
- {if $MODULE_CREATE eq 'SalesOrder' || $MODULE_CREATE eq 'PurchaseOrder' || $MODULE_CREATE eq 'Invoice' || $MODULE_CREATE eq 'Quotes'}
- {$APP.LBL_NO} {$APP.$MODULE_CREATE} {$APP.LBL_FOUND} !
- {elseif $MODULE eq 'Calendar'}
- {$APP.LBL_NO} {$APP.ACTIVITIES} {$APP.LBL_FOUND} !
- {else}
- {$APP.LBL_NO} {$APP.$MODULE_CREATE}s {$APP.LBL_FOUND} !
- {/if}
- </span></td>
- </tr>
- <tr>
- <td class="small" align="left" nowrap="nowrap">{$APP.LBL_YOU_CAN_CREATE} {$APP.$vowel_conf}
-
- {if $MODULE_CREATE eq 'SalesOrder' || $MODULE_CREATE eq 'PurchaseOrder' || $MODULE_CREATE eq 'Invoice' || $MODULE_CREATE eq 'Quotes'}
- {$MOD.$MODULE_CREATE}
- {else}
- {$APP.$MODULE_CREATE}
- {/if}
-
- {$APP.LBL_NOW}. {$APP.LBL_CLICK_THE_LINK}:<br>
- {if $MODULE neq 'Calendar'}
- -<a href="index.php?module={$MODULE}&action=EditView&return_action=DetailView&parenttab={$CATEGORY}">{$APP.LBL_CREATE} {$APP.$vowel_conf}
- {if $MODULE_CREATE eq 'SalesOrder' || $MODULE_CREATE eq 'PurchaseOrder' || $MODULE_CREATE eq 'Invoice' || $MODULE_CREATE eq 'Quotes'}
- {$MOD.$MODULE_CREATE}
- {else}
- {$APP.$MODULE_CREATE}
- {/if}
- </a><br>
- {else}
- -<a href="index.php?module={$MODULE}&action=EditView&return_module=Calendar&activity_mode=Events&return_action=DetailView&parenttab={$CATEGORY}">{$APP.LBL_CREATE} {$APP.LBL_AN} {$APP.Event}</a><br>
- -<a href="index.php?module={$MODULE}&action=EditView&return_module=Calendar&activity_mode=Task&return_action=DetailView&parenttab={$CATEGORY}">{$APP.LBL_CREATE} {$APP.LBL_A} {$APP.Task}</a>
- {/if}
- </td>
- </tr>
- </table>
- {else}
- <table border="0" cellpadding="5" cellspacing="0" width="98%">
- <tr>
- <td rowspan="2" width="25%"><img src="{$IMAGE_PATH}denied.gif"></td>
- <td style="border-bottom: 1px solid rgb(204, 204, 204);" nowrap="nowrap" width="75%"><span class="genHeaderSmall">
- {if $MODULE_CREATE eq 'SalesOrder' || $MODULE_CREATE eq 'PurchaseOrder' || $MODULE_CREATE eq 'Invoice' || $MODULE_CREATE eq 'Quotes'}
- {$APP.LBL_NO} {$APP.$MODULE_CREATE} {$APP.LBL_FOUND} !</span></td>
- {else}
- {$APP.LBL_NO} {$APP.$MODULE_CREATE}s {$APP.LBL_FOUND} !</span></td>
- {/if}
- </tr>
- <tr>
- <td class="small" align="left" nowrap="nowrap">{$APP.LBL_YOU_ARE_NOT_ALLOWED_TO_CREATE} {$APP.$vowel_conf}
- {if $MODULE_CREATE eq 'SalesOrder' || $MODULE_CREATE eq 'PurchaseOrder' || $MODULE_CREATE eq 'Invoice' || $MODULE_CREATE eq 'Quotes'}
- {$MOD.$MODULE_CREATE}
- {else}
- {$APP.$MODULE_CREATE}
- {/if}
- <br>
- </td>
- </tr>
- </table>
- {/if}
- </div>
- </td></tr>
- {/foreach}
- </table>
- </div>
-
- <table border=0 cellspacing=0 cellpadding=2 width=100%>
- <tr>
- <td style="padding-right:20px" nowrap>
- {foreach key=button_check item=button_label from=$BUTTONS}
- {if $button_check eq 'del'}
- <input class="crmbutton small delete" type="button" value="{$button_label}" onclick="return massDelete('{$MODULE}')"/>
- {elseif $button_check eq 's_mail'}
- <input class="crmbutton small edit" type="button" value="{$button_label}" onclick="return eMail('{$MODULE}',this)"/>
- {elseif $button_check eq 's_cmail'}
- <input class="crmbutton small edit" type="submit" value="{$button_label}" onclick="return massMail('{$MODULE}')"/>
- {elseif $button_check eq 'c_status'}
- <input class="crmbutton small edit" type="button" value="{$button_label}" onclick="return change(this,'changestatus')"/>
- {elseif $button_check eq 'c_owner'}
- {if $MODULE neq 'Notes' && $MODULE neq 'Products' && $MODULE neq 'Faq' && $MODULE neq 'Vendors' && $MODULE neq 'PriceBooks'}
- <input class="crmbutton small edit" type="button" value="{$button_label}" onclick="return change(this,'changeowner')"/>
- {/if}
- {/if}
-
- {/foreach}
- </td>
- <td style="padding-right:20px" class="small" nowrap>{$RECORD_COUNTS}</td>
- <td nowrap >
- <table border=0 cellspacing=0 cellpadding=0 class="small">
- <tr>{$NAVIGATION}</tr>
- </table>
- </td>
- <td align="right" width=100%>
- <table border=0 cellspacing=0 cellpadding=0 class="small">
- <tr>
- {$WORDTEMPLATEOPTIONS}{$MERGEBUTTON}
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
-
- </form>
-{$SELECT_SCRIPT}
-<div id="basicsearchcolumns" style="display:none;"><select name="search_field" id="bas_searchfield" class="txtBox" style="width:150px">{html_options options=$SEARCHLISTHEADER}</select></div>
+{*<!--
+/*********************************************************************************
+ ** The contents of this file are subject to the vtiger CRM Public License Version 1.0
+ * ("License"); You may not use this file except in compliance with the License
+ * The Original Code is: vtiger CRM Open Source
+ * The Initial Developer of the Original Code is vtiger.
+ * Portions created by vtiger are Copyright (C) vtiger.
+ * All Rights Reserved.
+ *
+ ********************************************************************************/
+-->*}
+{if $smarty.request.ajax neq ''}
+&#&#&#{$ERROR}&#&#&#
+{/if}
+
+<form name="massdelete" method="POST" id="massdelete">
+ <input name='search_url' id="search_url" type='hidden' value='{$SEARCH_URL}'>
+ <input name="idlist" id="idlist" type="hidden">
+ <input name="change_owner" type="hidden">
+ <input name="change_status" type="hidden">
+ <input name="allids" type="hidden" value="{$ALLIDS}">
+ <!-- List View Master Holder starts -->
+ <table border=0 cellspacing=1 cellpadding=0 width=100% class="lvtBg">
+ <tr>
+ <td>
+ <!-- List View's Buttons and Filters starts -->
+ <table border=0 cellspacing=0 cellpadding=2 width=100% class="small">
+ <tr>
+ <!-- Buttons -->
+ <td style="padding-right:20px" nowrap>
+ {foreach key=button_check item=button_label from=$BUTTONS}
+ {if $button_check eq 'del'}
+ <input class="crmbutton small delete" type="button" value="{$button_label}" onclick="return massDelete('{$MODULE}')"/>
+ {elseif $button_check eq 's_mail'}
+ <input class="crmbutton small edit" type="button" value="{$button_label}" onclick="return eMail('{$MODULE}',this);"/>
+ {elseif $button_check eq 's_cmail'}
+ <input class="crmbutton small edit" type="submit" value="{$button_label}" onclick="return massMail('{$MODULE}')"/>
+ {elseif $button_check eq 'c_status'}
+ <input class="crmbutton small edit" type="button" value="{$button_label}" onclick="return change(this,'changestatus')"/>
+ {elseif $button_check eq 'c_owner'}
+ {if $MODULE neq 'Notes' && $MODULE neq 'Products' && $MODULE neq 'Faq' && $MODULE neq 'Vendors' && $MODULE neq 'PriceBooks'}
+ <input class="crmbutton small edit" type="button" value="{$button_label}" onclick="return change(this,'changeowner')"/>
+ {/if}
+ {/if}
+
+ {/foreach}
+ </td>
+ <!-- Record Counts -->
+ <td style="padding-right:20px" class="small" nowrap>{$RECORD_COUNTS}</td>
+ <!-- Page Navigation -->
+ <td nowrap >
+ <table border=0 cellspacing=0 cellpadding=0 class="small">
+ <tr>{$NAVIGATION}</tr>
+ </table>
+ </td>
+ <td width=100% align="right">
+ <!-- Filters -->
+ {if $HIDE_CUSTOM_LINKS neq '1'}
+ <table border=0 cellspacing=0 cellpadding=0 class="small">
+ <tr>
+ <td>{$APP.LBL_VIEW}</td>
+ <td style="padding-left:5px;padding-right:5px">
+ <SELECT NAME="viewname" id="viewname" class="small" onchange="showDefaultCustomView(this,'{$MODULE}')">{$CUSTOMVIEW_OPTION}</SELECT></td>
+ {if $ALL eq 'All'}
+ <td><a href="index.php?module={$MODULE}&action=CustomView&parenttab={$CATEGORY}">{$APP.LNK_CV_CREATEVIEW}</a>
+ <span class="small">|</span>
+ <span class="small" disabled>{$APP.LNK_CV_EDIT}</span>
+ <span class="small">|</span>
+ <span class="small" disabled>{$APP.LNK_CV_DELETE}</span></td>
+ {else}
+ <td><a href="index.php?module={$MODULE}&action=CustomView&parenttab={$CATEGORY}">{$APP.LNK_CV_CREATEVIEW}</a>
+ <span class="small">|</span>
+ <a href="index.php?module={$MODULE}&action=CustomView&record={$VIEWID}&parenttab={$CATEGORY}">{$APP.LNK_CV_EDIT}</a>
+ <span class="small">|</span>
+ <a href="javascript:confirmdelete('index.php?module=CustomView&action=Delete&dmodule={$MODULE}&record={$VIEWID}&parenttab={$CATEGORY}')">{$APP.LNK_CV_DELETE}</a></td>
+ {/if}
+ </tr>
+ </table>
+ <!-- Filters END-->
+ {/if}
+
+ </td>
+ </tr>
+ </table>
+ <!-- List View's Buttons and Filters ends -->
+
+ <div >
+ <table border=0 cellspacing=1 cellpadding=3 width=100% class="lvt small">
+ <!-- Table Headers -->
+ <tr>
+ <td class="lvtCol"><input type="checkbox" name="selectall" onClick=toggleSelect(this.checked,"selected_id")></td>
+ {foreach name="listviewforeach" item=header from=$LISTHEADER}
+ <td class="lvtCol">{$header}</td>
+ {/foreach}
+ </tr>
+ <!-- Table Contents -->
+ {foreach item=entity key=entity_id from=$LISTENTITY}
+ <tr bgcolor=white onMouseOver="this.className='lvtColDataHover'" onMouseOut="this.className='lvtColData'" id="row_{$entity_id}">
+ <td width="2%"><input type="checkbox" NAME="selected_id" value= '{$entity_id}' onClick=toggleSelectAll(this.name,"selectall")></td>
+ {foreach item=data from=$entity}
+ <td>{$data}</td>
+ {/foreach}
+ </tr>
+ {foreachelse}
+ <tr><td style="background-color:#efefef;height:340px" align="center" colspan="{$smarty.foreach.listviewforeach.iteration+1}">
+ <div style="border: 3px solid rgb(153, 153, 153); background-color: rgb(255, 255, 255); width: 45%; position: relative; z-index: 10000000;">
+ {assign var=vowel_conf value='LBL_A'}
+ {if $MODULE eq 'Accounts' || $MODULE eq 'Invoice'}
+ {assign var=vowel_conf value='LBL_AN'}
+ {/if}
+ {assign var=MODULE_CREATE value=$SINGLE_MOD}
+ {if $MODULE eq 'HelpDesk'}
+ {assign var=MODULE_CREATE value='Ticket'}
+ {/if}
+
+ {if $CHECK.EditView eq 'yes' && $MODULE neq 'Emails' && $MODULE neq 'Webmails'}
+
+ <table border="0" cellpadding="5" cellspacing="0" width="98%">
+ <tr>
+ <td rowspan="2" width="25%"><img src="{$IMAGE_PATH}empty.jpg" height="60" width="61"></td>
+ <td style="border-bottom: 1px solid rgb(204, 204, 204);" nowrap="nowrap" width="75%"><span class="genHeaderSmall">
+ {if $MODULE_CREATE eq 'SalesOrder' || $MODULE_CREATE eq 'PurchaseOrder' || $MODULE_CREATE eq 'Invoice' || $MODULE_CREATE eq 'Quotes'}
+ {$APP.LBL_NO} {$APP.$MODULE_CREATE} {$APP.LBL_FOUND} !
+ {elseif $MODULE eq 'Calendar'}
+ {$APP.LBL_NO} {$APP.ACTIVITIES} {$APP.LBL_FOUND} !
+ {else}
+ {$APP.LBL_NO} {$APP.$MODULE_CREATE}s {$APP.LBL_FOUND} !
+ {/if}
+ </span></td>
+ </tr>
+ <tr>
+ <td class="small" align="left" nowrap="nowrap">{$APP.LBL_YOU_CAN_CREATE} {$APP.$vowel_conf}
+
+ {if $MODULE_CREATE eq 'SalesOrder' || $MODULE_CREATE eq 'PurchaseOrder' || $MODULE_CREATE eq 'Invoice' || $MODULE_CREATE eq 'Quotes'}
+ {$MOD.$MODULE_CREATE}
+ {else}
+ {$APP.$MODULE_CREATE}
+ {/if}
+
+ {$APP.LBL_NOW}. {$APP.LBL_CLICK_THE_LINK}:<br>
+ {if $MODULE neq 'Calendar'}
+ -<a href="index.php?module={$MODULE}&action=EditView&return_action=DetailView&parenttab={$CATEGORY}">{$APP.LBL_CREATE} {$APP.$vowel_conf}
+ {if $MODULE_CREATE eq 'SalesOrder' || $MODULE_CREATE eq 'PurchaseOrder' || $MODULE_CREATE eq 'Invoice' || $MODULE_CREATE eq 'Quotes'}
+ {$MOD.$MODULE_CREATE}
+ {else}
+ {$APP.$MODULE_CREATE}
+ {/if}
+ </a><br>
+ {else}
+ -<a href="index.php?module={$MODULE}&action=EditView&return_module=Calendar&activity_mode=Events&return_action=DetailView&parenttab={$CATEGORY}">{$APP.LBL_CREATE} {$APP.LBL_AN} {$APP.Event}</a><br>
+ -<a href="index.php?module={$MODULE}&action=EditView&return_module=Calendar&activity_mode=Task&return_action=DetailView&parenttab={$CATEGORY}">{$APP.LBL_CREATE} {$APP.LBL_A} {$APP.Task}</a>
+ {/if}
+ </td>
+ </tr>
+ </table>
+ {else}
+ <table border="0" cellpadding="5" cellspacing="0" width="98%">
+ <tr>
+ <td rowspan="2" width="25%"><img src="{$IMAGE_PATH}denied.gif"></td>
+ <td style="border-bottom: 1px solid rgb(204, 204, 204);" nowrap="nowrap" width="75%"><span class="genHeaderSmall">
+ {if $MODULE_CREATE eq 'SalesOrder' || $MODULE_CREATE eq 'PurchaseOrder' || $MODULE_CREATE eq 'Invoice' || $MODULE_CREATE eq 'Quotes'}
+ {$APP.LBL_NO} {$APP.$MODULE_CREATE} {$APP.LBL_FOUND} !</span></td>
+ {else}
+ {$APP.LBL_NO} {$APP.$MODULE_CREATE}s {$APP.LBL_FOUND} !</span></td>
+ {/if}
+ </tr>
+ <tr>
+ <td class="small" align="left" nowrap="nowrap">{$APP.LBL_YOU_ARE_NOT_ALLOWED_TO_CREATE} {$APP.$vowel_conf}
+ {if $MODULE_CREATE eq 'SalesOrder' || $MODULE_CREATE eq 'PurchaseOrder' || $MODULE_CREATE eq 'Invoice' || $MODULE_CREATE eq 'Quotes'}
+ {$MOD.$MODULE_CREATE}
+ {else}
+ {$APP.$MODULE_CREATE}
+ {/if}
+ <br>
+ </td>
+ </tr>
+ </table>
+ {/if}
+ </div>
+ </td></tr>
+ {/foreach}
+ </table>
+ </div>
+
+ <table border=0 cellspacing=0 cellpadding=2 width=100%>
+ <tr>
+ <td style="padding-right:20px" nowrap>
+ {foreach key=button_check item=button_label from=$BUTTONS}
+ {if $button_check eq 'del'}
+ <input class="crmbutton small delete" type="button" value="{$button_label}" onclick="return massDelete('{$MODULE}')"/>
+ {elseif $button_check eq 's_mail'}
+ <input class="crmbutton small edit" type="button" value="{$button_label}" onclick="return eMail('{$MODULE}',this)"/>
+ {elseif $button_check eq 's_cmail'}
+ <input class="crmbutton small edit" type="submit" value="{$button_label}" onclick="return massMail('{$MODULE}')"/>
+ {elseif $button_check eq 'c_status'}
+ <input class="crmbutton small edit" type="button" value="{$button_label}" onclick="return change(this,'changestatus')"/>
+ {elseif $button_check eq 'c_owner'}
+ {if $MODULE neq 'Notes' && $MODULE neq 'Products' && $MODULE neq 'Faq' && $MODULE neq 'Vendors' && $MODULE neq 'PriceBooks'}
+ <input class="crmbutton small edit" type="button" value="{$button_label}" onclick="return change(this,'changeowner')"/>
+ {/if}
+ {/if}
+
+ {/foreach}
+ </td>
+ <td style="padding-right:20px" class="small" nowrap>{$RECORD_COUNTS}</td>
+ <td nowrap >
+ <table border=0 cellspacing=0 cellpadding=0 class="small">
+ <tr>{$NAVIGATION}</tr>
+ </table>
+ </td>
+ <td align="right" width=100%>
+ <table border=0 cellspacing=0 cellpadding=0 class="small">
+ <tr>
+ {$WORDTEMPLATEOPTIONS}{$MERGEBUTTON}
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+
+ </form>
+{$SELECT_SCRIPT}
+<div id="basicsearchcolumns" style="display:none;"><select name="search_field" id="bas_searchfield" class="txtBox" style="width:150px">{html_options options=$SEARCHLISTHEADER}</select></div>
Modified: vtigercrm/branches/5.0.3/include/js/Merge.js
==============================================================================
--- vtigercrm/branches/5.0.3/include/js/Merge.js (original)
+++ vtigercrm/branches/5.0.3/include/js/Merge.js Tue Apr 17 09:43:35 2007
@@ -11,56 +11,35 @@
//to merge a list of acounts with a template
function massMerge(module)
{
- x = document.massdelete.selected_id.length;
- var viewid = document.massdelete.viewname.value;
- idstring = "";
+ var select_options = document.getElementsByName('selected_id');
+ var x = select_options.length;
+ var viewid =getviewId();
+ idstring = "";
- if ( x == undefined)
- {
-
- if (document.massdelete.selected_id.checked)
- {
- document.massdelete.idlist.value=document.massdelete.selected_id.value;
- }
- else
- {
-
- alert(alert_arr.SELECT);
- return false;
- }
- }
- else
- {
- xx = 0;
- for(i = 0; i < x ; i++)
- {
- if(document.massdelete.selected_id[i].checked)
- {
- idstring = document.massdelete.selected_id[i].value +";"+idstring
- xx++
- }
- }
- if (xx != 0)
- {
- document.massdelete.idlist.value=idstring;
- }
- else
- {
-
- alert(alert_arr.SELECT);
- return false;
- }
- }
-
- if(getObj('selectall').checked == true)
- {
- getObj('idlist').value = getObj('allids').value
- }
-
if(getObj('mergefile').value == '')
{
alert(alert_arr.SELECT_TEMPLATE_TO_MERGE);
return false;
}
- document.massdelete.action="index.php?module="+module+"&action=Merge&return_module="+module+"&return_action=index";
+ xx = 0;
+ for(i = 0; i < x ; i++)
+ {
+ if(select_options[i].checked)
+ {
+ idstring = select_options[i].value +";"+idstring
+ xx++
+ }
+ }
+ if (xx != 0)
+ {
+ document.getElementById('idlist').value=idstring;
+ }
+ else
+ {
+ alert(alert_arr.SELECT);
+ return false;
+ }
+
+
+ document.getElementById('massdelete').action="index.php?module="+module+"&action=Merge&return_module="+module+"&return_action=index";
}
More information about the vtigercrm-commits
mailing list