[Vtigercrm-commits] [vtiger-commits] r9670 - in /vtigercrm/branches/5.0.2: Smarty/templates/ActivityListView.tpl modules/PurchaseOrder/ListView.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Fri Oct 20 08:22:17 EDT 2006
Author: jerrydgeorge
Date: Fri Oct 20 06:22:04 2006
New Revision: 9670
Log:
* Modified to add the Group option in Change Owner in ListView
Modified:
vtigercrm/branches/5.0.2/Smarty/templates/ActivityListView.tpl
vtigercrm/branches/5.0.2/modules/PurchaseOrder/ListView.php
Modified: vtigercrm/branches/5.0.2/Smarty/templates/ActivityListView.tpl
==============================================================================
--- vtigercrm/branches/5.0.2/Smarty/templates/ActivityListView.tpl (original)
+++ vtigercrm/branches/5.0.2/Smarty/templates/ActivityListView.tpl Fri Oct 20 06:22:04 2006
@@ -18,7 +18,21 @@
<script language="JavaScript" type="text/javascript" src="include/js/search.js"></script>
<script language="JavaScript" type="text/javascript" src="modules/{$MODULE}/{$SINGLE_MOD}.js"></script>
<script language="javascript">
-
+function checkgroup()
+{ldelim}
+
+ if(document.change_ownerform_name.user_lead_owner[1].checked)
+ {ldelim}
+ document.change_ownerform_name.lead_group_owner.style.display = "block";
+ document.change_ownerform_name.lead_owner.style.display = "none";
+ {rdelim}
+ else
+ {ldelim}
+ document.change_ownerform_name.lead_owner.style.display = "block";
+ document.change_ownerform_name.lead_group_owner.style.display = "none";
+ {rdelim}
+
+{rdelim}
function callSearch(searchtype)
{ldelim}
for(i=1;i<=26;i++)
@@ -424,9 +438,16 @@
<td width="50%"><b>{$APP.LBL_TRANSFER_OWNERSHIP}</b></td>
<td width="2%"><b>:</b></td>
<td width="48%">
- <select name="lead_owner" id="lead_owner" class="detailedViewTextBox">
- {$CHANGE_OWNER}
- </select>
+ <form name="change_ownerform_name">
+ <input type = "radio" name = "user_lead_owner" onclick=checkgroup(); checked>user
+ <input type = "radio" name = "user_lead_owner" onclick=checkgroup(); >group<br>
+ <select name="lead_owner" id="lead_owner" class="detailedViewTextBox">
+ {$CHANGE_OWNER}
+ </select>
+ <select name="lead_group_owner" id="lead_group_owner" class="detailedViewTextBox" style="display:none;">
+ {$CHANGE_GROUP_OWNER}
+ </select>
+ </form>
</td>
</tr>
<tr><td colspan="3" style="border-bottom:1px dashed #CCCCCC;"> </td></tr>
@@ -457,12 +478,23 @@
}
else if(statusname == 'owner')
{
- fninvsh('changeowner');
- var url='&user_id='+document.getElementById('lead_owner').options[document.getElementById('lead_owner').options.selectedIndex].value;
-{/literal}
- var urlstring ="module=Users&action=updateLeadDBStatus&return_module={$MODULE}"+url+"&viewname="+viewid+"&idlist="+idstring;
-{literal}
+ if(document.change_ownerform_name.user_lead_owner[0].checked)
+ {
+ fninvsh('changeowner');
+ var url='&user_id='+document.getElementById('lead_owner').options[document.getElementById('lead_owner').options.selectedIndex].value;
+ {/literal}
+ var urlstring ="module=Users&action=updateLeadDBStatus&return_module={$MODULE}"+url+"&viewname="+viewid+"&idlist="+idstring;
+ {literal}
+ }
+ else
+ {
+ fninvsh('changeowner');
+ var url='&group_id='+document.getElementById('lead_group_owner').options[document.getElementById('lead_group_owner').options.selectedIndex].value;
+ {/literal}
+ var urlstring ="module=Users&action=updateLeadDBStatus&return_module={$MODULE}"+url+"&viewname="+viewid+"&idlist="+idstring;
+ {literal}
+ }
}
new Ajax.Request(
Modified: vtigercrm/branches/5.0.2/modules/PurchaseOrder/ListView.php
==============================================================================
--- vtigercrm/branches/5.0.2/modules/PurchaseOrder/ListView.php (original)
+++ vtigercrm/branches/5.0.2/modules/PurchaseOrder/ListView.php Fri Oct 20 06:22:04 2006
@@ -81,6 +81,7 @@
$viewnamedesc = $oCustomView->getCustomViewByCvid($viewid);
//<<<<<customview>>>>>
$smarty->assign("CHANGE_OWNER",getUserslist());
+$smarty->assign("CHANGE_GROUP_OWNER",getGroupslist());
if(isPermitted('PurchaseOrder','Delete','') == 'yes')
{
More information about the vtigercrm-commits
mailing list