[ Index ]
 

Code source de vtiger CRM 5.0.2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/modules/Users/ -> ProfileDeleteStep1.php (source)

   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;
  18  global $app_strings;
  19  global $theme;
  20  $theme_path="themes/".$theme."/";
  21  $image_path=$theme_path."images/";
  22  $delete_prof_id = $_REQUEST['profileid'];
  23  $delete_prof_name = getProfileName($delete_prof_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="DeleteProfile">
  31  <input type="hidden" name="delete_prof_id" value="'.$delete_prof_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_PROFILE"].'</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_TRANSFER_ROLES_TO_PROFILE"].'</b></td>
  44          <td width="50%" class="cellText small"><b>'.$delete_prof_name.'</b></td>
  45      </tr>
  46      <tr>
  47          <td align="left" class="cellLabel small" nowrap><b>'.$mod_strings["LBL_PROFILE_TO_BE_DELETED"].'</b></td>
  48          <td align="left" class="cellText small">';
  49          $output.='<select class="select" name="transfer_prof_id">';
  50          global $adb;    
  51          $sql = "select * from vtiger_profile";
  52          $result = $adb->query($sql);
  53          $temprow = $adb->fetch_array($result);
  54          do
  55          {
  56              $prof_name=$temprow["profilename"];
  57              $prof_id=$temprow["profileid"];
  58              if($delete_prof_id     != $prof_id)
  59              {     
  60                      $output.='<option value="'.$prof_id.'">'.$prof_name.'</option>';
  61              }    
  62          }while($temprow = $adb->fetch_array($result));
  63          $output.='</select>';
  64  
  65          $output.='</td>
  66      </tr>
  67      </table>
  68      </td>
  69  </tr>
  70  </table>
  71  <table border=0 cellspacing=0 cellpadding=5 width=100% class="layerPopupTransport">
  72  <tr>
  73      <td align=center class="small">
  74      <input type="submit" name="Delete" value="'.$app_strings["LBL_SAVE_BUTTON_LABEL"].'" class="crmButton small">
  75      </td>
  76  </tr>
  77  </table>
  78  </form></div>';
  79  
  80  echo $output;
  81  ?>


Généré le : Sun Feb 25 10:22:19 2007 par Balluche grâce à PHPXref 0.7