[Vtigercrm-commits] [vtiger-commits] r6386 - in /vtigercrm/trunk/Smarty/templates: UserDetailView.tpl UserListView.tpl
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed May 24 16:19:10 EDT 2006
Author: don
Date: Wed May 24 14:19:06 2006
New Revision: 6386
Log:
Fixed issue in delete User
Modified:
vtigercrm/trunk/Smarty/templates/UserDetailView.tpl
vtigercrm/trunk/Smarty/templates/UserListView.tpl
Modified: vtigercrm/trunk/Smarty/templates/UserDetailView.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/UserDetailView.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/UserDetailView.tpl Wed May 24 14:19:06 2006
@@ -16,6 +16,7 @@
<script language="JavaScript" type="text/javascript" src="include/js/prototype_fade.js"></script>
<script language="JavaScript" type="text/javascript" src="include/js/effectspack.js"></script>
<script language="javascript" type="text/javascript" src="include/js/general.js"></script>
+<script language="JavaScript" type="text/javascript" src="include/js/ajax.js"></script>
<style type="text/css">@import url(themes/blue/style.css);</style>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
@@ -273,5 +274,41 @@
</tr>
</table>
+<div id="tempdiv" style="display:block;position:absolute;left:350px;top:200px;"></div>
{$JAVASCRIPT}
+<script>
+{literal}
+function deleteUser(userid)
+{
+ show("status");
+ var ajaxObj = new Ajax(ajaxDeleteResponse);
+ var urlstring = "action=UsersAjax&file=UserDeleteStep1&return_action=ListView&return_module=Users&module=Users&parenttab=Settings&record="+userid;
+ ajaxObj.process("index.php?",urlstring);
+}
+
+function ajaxDeleteResponse(response)
+{
+ hide("status");
+ document.getElementById("tempdiv").innerHTML= response.responseText;
+}
+
+function transferUser(del_userid)
+{
+ show("status");
+ hide("DeleteLay");
+ var ajaxObj = new Ajax(ajaxSaveResponse);
+ var trans_userid=document.getElementById('transfer_user_id').options[document.getElementById('transfer_user_id').options.selectedIndex].value;
+ var urlstring ="page=detailview&module=Users&action=UsersAjax&file=DeleteUser&ajax=true&delete_user_id="+del_userid+"&transfer_user_id="+trans_userid;
+ ajaxObj.process("index.php?",urlstring);
+
+}
+
+function ajaxSaveResponse(response)
+{
+ hide("status");
+ window.location.href ='index.php?action=index&module=Administration';
+}
+{/literal}
+</script>
+
{include file='SettingsSubMenu.tpl'}
Modified: vtigercrm/trunk/Smarty/templates/UserListView.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/UserListView.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/UserListView.tpl Wed May 24 14:19:06 2006
@@ -76,6 +76,32 @@
hide("status");
document.getElementById("ListViewContents").innerHTML= response.responseText;
}
+
+function deleteUser(userid)
+{
+ show("status");
+ var ajaxObj = new Ajax(ajaxDeleteResponse);
+ var urlstring = "action=UsersAjax&file=UserDeleteStep1&return_action=ListView&return_module=Users&module=Users&parenttab=Settings&record="+userid;
+ ajaxObj.process("index.php?",urlstring);
+
+}
+
+function ajaxDeleteResponse(response)
+{
+ hide("status");
+ document.getElementById("tempdiv").innerHTML= response.responseText;
+}
+
+function transferUser(del_userid)
+{
+ show("status");
+ hide("DeleteLay");
+ var ajaxObj = new Ajax(ajaxSaveResponse);
+ var trans_userid=document.getElementById('transfer_user_id').options[document.getElementById('transfer_user_id').options.selectedIndex].value;
+ var urlstring ="module=Users&action=UsersAjax&file=DeleteUser&ajax=true&delete_user_id="+del_userid+"&transfer_user_id="+trans_userid;
+ ajaxObj.process("index.php?",urlstring);
+
+}
</script>
{/literal}
More information about the vtigercrm-commits
mailing list