[Vtigercrm-commits] [vtiger-commits] r6384 - in /vtigercrm/trunk/modules/Users: DeleteUser.php UserDeleteStep1.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Wed May 24 16:09:06 EDT 2006


Author: don
Date: Wed May 24 14:08:59 2006
New Revision: 6384

Log:
fixed user delete issue

Modified:
    vtigercrm/trunk/modules/Users/DeleteUser.php
    vtigercrm/trunk/modules/Users/UserDeleteStep1.php

Modified: vtigercrm/trunk/modules/Users/DeleteUser.php
==============================================================================
--- vtigercrm/trunk/modules/Users/DeleteUser.php (original)
+++ vtigercrm/trunk/modules/Users/DeleteUser.php Wed May 24 14:08:59 2006
@@ -54,6 +54,5 @@
 //delete from user table;
 $sql9 = "delete from users where id=".$del_id;
 $adb->query($sql9);
-
-header("Location: index.php?action=index&module=Administration");
+header("Location: index.php?action=UsersAjax&module=Users&file=ListView&ajax=true");
 ?>

Modified: vtigercrm/trunk/modules/Users/UserDeleteStep1.php
==============================================================================
--- vtigercrm/trunk/modules/Users/UserDeleteStep1.php (original)
+++ vtigercrm/trunk/modules/Users/UserDeleteStep1.php Wed May 24 14:08:59 2006
@@ -43,7 +43,7 @@
 	<td ><b>:</b></td>
 	<td align="left">';
            
-$output.='<select class="select" name="transfer_user_id">';
+$output.='<select class="select" name="transfer_user_id" id="transfer_user_id">';
 	     
 		 global $adb;	
          $sql = "select * from users";
@@ -58,13 +58,12 @@
             	$output.='<option value="'.$user_id.'">'.$user_name.'</option>';
 		    }	
          }while($temprow = $adb->fetch_array($result));
-$output.='</select>';
 
 $output.='</td>
 </tr>
 <tr><td colspan="3" style="border-bottom:1px dashed #CCCCCC;">&nbsp;</td></tr>
 <tr>
-	<td colspan="3" align="center"><input type="submit" name="Delete" value="'.$app_strings["LBL_SAVE_BUTTON_LABEL"].'" class="small">
+	<td colspan="3" align="center"><input type="button" onclick="transferUser('.$delete_user_id.')" name="Delete" value="'.$app_strings["LBL_SAVE_BUTTON_LABEL"].'" class="small">
 	</td>
 </tr>
 </table>





More information about the vtigercrm-commits mailing list