[ Index ] |
|
Code source de vtiger CRM 5.0.2 |
1 <?php 2 3 /********************************************************************************* 4 ** The contents of this file are subject to the vtiger CRM Public License Version 1.0 5 * ("License"); You may not use this file except in compliance with the License 6 * The Original Code is: vtiger CRM Open Source 7 * The Initial Developer of the Original Code is vtiger. 8 * Portions created by vtiger are Copyright (C) vtiger. 9 * All Rights Reserved. 10 * 11 ********************************************************************************/ 12 13 14 require_once ('include/database/PearDatabase.php'); 15 require_once ('include/utils/utils.php'); 16 17 global $mod_strings, $app_strings; 18 global $theme; 19 $theme_path="themes/".$theme."/"; 20 $image_path=$theme_path."images/"; 21 22 $delete_user_id = $_REQUEST['record']; 23 $delete_user_name = getUserName($delete_user_id); 24 25 26 $output=''; 27 $output ='<div id="DeleteLay" class="layerPopup"> 28 <form name="newProfileForm" action="index.php"> 29 <input type="hidden" name="module" value="Users"> 30 <input type="hidden" name="action" value="DeleteUser"> 31 <input type="hidden" name="delete_user_id" value="'.$delete_user_id.'"> 32 <table border=0 cellspacing=0 cellpadding=5 width=100% class=layerHeadingULine> 33 <tr> 34 <td class=layerPopupHeading " align="left">'.$mod_strings['LBL_DELETE'].' '.$mod_strings['LBL_USER'].'</td> 35 <td align="right" class="small"><img src="'.$image_path.'close.gif" border=0 alt="'.$app_strings["LBL_CLOSE"].'" title="'.$app_strings["LBL_CLOSE"].'" style="cursor:pointer" onClick="document.getElementById(\'DeleteLay\').style.display=\'none\'";></td> 36 </tr> 37 </table> 38 <table border=0 cellspacing=0 cellpadding=5 width=95% align=center> 39 <tr> 40 <td class="small"> 41 <table border=0 celspacing=0 cellpadding=5 width=100% align=center bgcolor=white> 42 <tr> 43 44 <td width="50%" class="cellLabel small"><b>'.$mod_strings['LBL_DELETE_USER'].'</b></td> 45 <td width="50%" class="cellText small"><b>'.$delete_user_name.'</b></td> 46 </tr> 47 <tr> 48 <td align="left" class="cellLabel small" nowrap><b>'.$mod_strings['LBL_TRANSFER_USER'].'</b></td> 49 <td align="left" class="cellText small">'; 50 51 $output.='<select class="select" name="transfer_user_id" id="transfer_user_id">'; 52 53 global $adb; 54 $sql = "select * from vtiger_users"; 55 $result = $adb->query($sql); 56 $temprow = $adb->fetch_array($result); 57 do 58 { 59 $user_name=$temprow["user_name"]; 60 $user_id=$temprow["id"]; 61 if($delete_user_id != $user_id) 62 { 63 $output.='<option value="'.$user_id.'">'.$user_name.'</option>'; 64 } 65 }while($temprow = $adb->fetch_array($result)); 66 67 $output.='</td> 68 </tr> 69 70 </table> 71 </td> 72 </tr> 73 </table> 74 <table border=0 cellspacing=0 cellpadding=5 width=100% class="layerPopupTransport"> 75 <tr> 76 <td align=center class="small"><input type="button" onclick="transferUser('.$delete_user_id.')" name="Delete" value="'.$app_strings["LBL_SAVE_BUTTON_LABEL"].'" class="small"> 77 </td> 78 </tr> 79 </table> 80 </form></div>'; 81 82 echo $output; 83 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 10:22:19 2007 | par Balluche grâce à PHPXref 0.7 |