[ 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; 18 global $app_strings; 19 global $theme; 20 $theme_path="themes/".$theme."/"; 21 $image_path=$theme_path."images/"; 22 23 $delete_currency_id = $_REQUEST['id']; 24 $sql = "select * from vtiger_currency_info where id=".$delete_currency_id; 25 $result = $adb->query($sql); 26 $delete_currencyname = $adb->query_result($result,0,"currency_name"); 27 28 29 $output=''; 30 $output ='<div id="CurrencyDeleteLay" class="layerPopup"> 31 <form name="newCurrencyForm" action="index.php" style="margin="0"> 32 <input type="hidden" name="module" value="Settings"> 33 <input type="hidden" name="action" value="CurrencyDelete"> 34 <input type="hidden" name="delete_currency_id" value="'.$delete_currency_id.'"> 35 <table width="100%" border="0" cellpadding="3" cellspacing="0" class="layerHeadingULine"> 36 <tr> 37 <td class="layerPopupHeading" align="left" width="60%">'.$mod_strings["LBL_DELETE_CURRENCY"].'</td> 38 <td align="right" width="40%"><img src="'.$image_path.'close.gif" border=0 alt="'.$app_strings["LBL_CLOSE"].'" title="'.$app_strings["LBL_CLOSE"].'" style="cursor:pointer;" onClick="document.getElementById(\'CurrencyDeleteLay\').style.display=\'none\'";></td> 39 </tr> 40 <table> 41 <table border=0 cellspacing=0 cellpadding=5 width=95% align=center> 42 <tr> 43 <td class=small > 44 <table border=0 celspacing=0 cellpadding=5 width=100% align=center bgcolor=white> 45 <tr> 46 <td width="50%" class="cellLabel small"><b>'.$mod_strings['LBL_CURRDEL'].'</b></td> 47 <td width="50%" class="cellText small"><b>'.$delete_currencyname.'</b></td> 48 </tr> 49 <tr> 50 <td class="cellLabel small"><b>'.$mod_strings['LBL_TRANSCURR'].'</b></td> 51 <td class="cellText small">'; 52 53 $output.='<select class="select" name="transfer_currency_id" id="transfer_currency_id">'; 54 55 global $adb; 56 $sql = "select * from vtiger_currency_info where currency_status = 'Active'"; 57 $result = $adb->query($sql); 58 $temprow = $adb->fetch_array($result); 59 do 60 { 61 $currencyname=$temprow["currency_name"]; 62 $currencyid=$temprow["id"]; 63 if($delete_currency_id != $currencyid) 64 { 65 $output.='<option value="'.$currencyid.'">'.$currencyname.'</option>'; 66 } 67 }while($temprow = $adb->fetch_array($result)); 68 69 $output.='</td> 70 </tr> 71 </table> 72 </td> 73 </tr> 74 </table> 75 <table border=0 cellspacing=0 cellpadding=5 width=100% class="layerPopupTransport"> 76 <tr> 77 <td align="center"><input type="button" onclick="transferCurrency('.$delete_currency_id.')" name="Delete" value="'.$app_strings["LBL_SAVE_BUTTON_LABEL"].'" class="crmbutton small save"> 78 </td> 79 </tr> 80 </table> 81 </form></div>'; 82 83 echo $output; 84 ?>
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 |