[ 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 $app_strings; 18 global $mod_strings; 19 global $theme; 20 $theme_path="themes/".$theme."/"; 21 $image_path=$theme_path."images/"; 22 $delete_group_id = $_REQUEST['groupid']; 23 $delete_group_name = fetchGroupName($delete_group_id); 24 25 26 $output=''; 27 $output ='<div id="DeleteLay" class="layerPopup"> 28 <form name="deleteGroupForm" action="index.php"> 29 <input type="hidden" name="module" value="Users"> 30 <input type="hidden" name="action" value="DeleteGroup"> 31 <input type="hidden" name="delete_group_id" value="'.$delete_group_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_GROUP'].'</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 <td width="50%" class="cellLabel small"><b>'.$mod_strings['LBL_DELETE_GROUPNAME'].'</b></td> 44 <td width="50%" class="cellText small"><b>'.$delete_group_name.'</b></td> 45 </tr> 46 <tr> 47 <td align="left" class="cellLabel small" nowrap><b>'.$mod_strings['LBL_TRANSFER_GROUP'].'</b></td> 48 <td align="left" class="cellText small">'; 49 global $adb; 50 $sql = "select groupid,groupname from vtiger_groups"; 51 $result = $adb->query($sql); 52 $num_groups = $adb->num_rows($result); 53 54 $sql1 = "select id,user_name from vtiger_users where deleted=0"; 55 $result1= $adb->query($sql1); 56 $num_users = $adb->num_rows($result1); 57 58 59 $output.= '<input name="assigntype" checked value="U" onclick="toggleAssignType(this.value)" type="radio"> User'; 60 if($num_groups > 1) 61 { 62 $output .= '<input name="assigntype" value="T" onclick="toggleAssignType(this.value)" type="radio"> Group'; 63 } 64 65 $output .= '<span id="assign_user" style="display: block;">'; 66 67 $output .= '<select class="select" name="transfer_user_id">'; 68 69 70 for($i=0;$i<$num_users;$i++) 71 { 72 $user_name=$adb->query_result($result1,$i,"user_name"); 73 $user_id=$adb->query_result($result1,$i,"id"); 74 75 $output.='<option value="'.$user_id.'">'.$user_name.'</option>'; 76 } 77 78 $output .='</select></span>'; 79 80 if($num_groups > 1) 81 { 82 $output .= '<span id="assign_team" style="display: none;">'; 83 84 85 $output.='<select class="select" name="transfer_group_id">'; 86 87 $temprow = $adb->fetch_array($result); 88 do 89 { 90 $group_name=$temprow["groupname"]; 91 $group_id=$temprow["groupid"]; 92 if($delete_group_id != $group_id) 93 { 94 $output.='<option value="'.$group_id.'">'.$group_name.'</option>'; 95 } 96 }while($temprow = $adb->fetch_array($result)); 97 $output.='</select></span>'; 98 } 99 100 $output.='</td> 101 </tr> 102 </table> 103 </td> 104 </tr> 105 </table> 106 <table border=0 cellspacing=0 cellpadding=5 width=100% class="layerPopupTransport"> 107 <tr> 108 <td class="small" align="center"><input type="submit" name="Delete" value="'.$app_strings["LBL_SAVE_BUTTON_LABEL"].'" class="crmbutton small save"> 109 </td> 110 </tr> 111 </table> 112 </form></div>'; 113 114 echo $output; 115 ?>
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 |