更新到 5.2 正式版后第一次 SVN 提交。
yuchenghu@hawebs.net git-svn-id: https://svn.code.sf.net/p/hawebs/svn@650 a2543c7e-f6e9-4f8a-8bff-1ffc34733512
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/*********************************************************************************
|
||||
* The contents of this file are subject to the SugarCRM Public License Version 1.1.2
|
||||
* ("License"); You may not use this file except in compliance with the
|
||||
* License. You may obtain a copy of the License at http://www.sugarcrm.com/SPL
|
||||
* Software distributed under the License is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
|
||||
* the specific language governing rights and limitations under the License.
|
||||
* The Original Code is: SugarCRM Open Source
|
||||
* The Initial Developer of the Original Code is SugarCRM, Inc.
|
||||
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.;
|
||||
* All Rights Reserved.
|
||||
* Contributor(s): ______________________________________.
|
||||
********************************************************************************/
|
||||
|
||||
|
||||
require_once('Smarty_setup.php');
|
||||
require_once("include/calculator/Calc.php");
|
||||
global $theme,$app_strings;
|
||||
$theme_path="themes/".$theme."/";
|
||||
$image_path=$theme_path."images/";
|
||||
|
||||
$smarty = new vtigerCRM_Smarty;
|
||||
|
||||
$smarty->assign("APP", $app_strings);
|
||||
$smarty->assign("THEME", $theme);
|
||||
$smarty->assign("IMAGEPATH",$image_path);
|
||||
$smarty->assign("CALC",get_calc($image_path));
|
||||
$smarty->display("Calculator.tpl");
|
||||
?>
|
||||
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
/*********************************************************************************
|
||||
* The contents of this file are subject to the SugarCRM Public License Version 1.1.2
|
||||
* ("License"); You may not use this file except in compliance with the
|
||||
* License. You may obtain a copy of the License at http://www.sugarcrm.com/SPL
|
||||
* Software distributed under the License is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
|
||||
* the specific language governing rights and limitations under the License.
|
||||
* The Original Code is: SugarCRM Open Source
|
||||
* The Initial Developer of the Original Code is SugarCRM, Inc.
|
||||
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.;
|
||||
* All Rights Reserved.
|
||||
* Contributor(s): ______________________________________.
|
||||
********************************************************************************/
|
||||
|
||||
|
||||
require_once('Smarty_setup.php');
|
||||
|
||||
global $theme;
|
||||
$theme_path="themes/".$theme."/";
|
||||
$image_path=$theme_path."images/";
|
||||
$smarty = new vtigerCRM_Smarty;
|
||||
|
||||
$smarty->assign("THEME", $theme);
|
||||
$smarty->assign("IMAGEPATH",$image_path);
|
||||
$smarty->display("Clock.tpl");
|
||||
?>
|
||||
@@ -0,0 +1,143 @@
|
||||
<?php
|
||||
/*+**********************************************************************************
|
||||
* The contents of this file are subject to the vtiger CRM Public License Version 1.0
|
||||
* ("License"); You may not use this file except in compliance with the License
|
||||
* The Original Code is: vtiger CRM Open Source
|
||||
* The Initial Developer of the Original Code is vtiger.
|
||||
* Portions created by vtiger are Copyright (C) vtiger.
|
||||
* All Rights Reserved.
|
||||
************************************************************************************/
|
||||
|
||||
$currencies = array(
|
||||
'Albania, Leke' => array('ALL' ,'Lek'),
|
||||
'Argentina, Pesos' => array('ARS' ,'$'),
|
||||
'Aruba, Guilders' => array('AWG' ,'ƒ'),
|
||||
'Australia, Dollars' => array('AUD' ,'$'),
|
||||
'Azerbaijan, New Manats' => array('AZN' ,'ман'),
|
||||
'Bahamas, Dollars' => array('BSD' ,'$'),
|
||||
'Bahrain, Dinar'=>array('BHD','BD'),
|
||||
'Barbados, Dollars' => array('BBD' ,'$'),
|
||||
'Belarus, Rubles' => array('BYR' ,'p.'),
|
||||
'Belize, Dollars' => array('BZD' ,'BZ$'),
|
||||
'Bermuda, Dollars' => array('BMD' ,'$'),
|
||||
'Bolivia, Bolivianos' => array('BOB' ,'$b'),
|
||||
'China, Yuan Renminbi' => array('CNY', '¥'),
|
||||
'Convertible Marka' => array('BAM' ,'KM'),
|
||||
'Botswana, Pulas' => array('BWP' ,'P'),
|
||||
'Bulgaria, Leva' => array('BGN' ,'лв'),
|
||||
'Brazil, Reais' => array('BRL' ,'R$'),
|
||||
'Great Britain Pounds' => array('GBP' ,'£'),
|
||||
'Brunei Darussalam, Dollars' => array('BND' ,'$'),
|
||||
'Canada, Dollars'=>array('CAD','$'),
|
||||
'Cayman Islands, Dollars'=>array('KYD','$'),
|
||||
'Chile, Pesos'=>array('CLP','$'),
|
||||
'Colombia, Pesos'=>array('COP','$'),
|
||||
'Costa Rica, Colón'=>array('CRC','₡'),
|
||||
'Croatia, Kuna'=>array('HRK','kn'),
|
||||
'Cuba, Pesos'=>array('CUP','₱'),
|
||||
'Czech Republic, Koruny'=>array('CZK','Kč'),
|
||||
'Cyprus, Pounds' => array('CYP', '£'),
|
||||
'Denmark, Kroner'=>array('DKK','kr'),
|
||||
'Dominican Republic, Pesos'=>array('DOP','RD$'),
|
||||
'East Caribbean, Dollars'=>array('XCD','$'),
|
||||
'Egypt, Pounds'=>array('EGP','£'),
|
||||
'El Salvador, Colón'=>array('SVC','₡'),
|
||||
'England, Pounds'=>array('GBP','£'),
|
||||
'Estonia, Krooni'=>array('EEK','kr'),
|
||||
'Euro'=>array('EUR','€'),
|
||||
'Falkland Islands, Pounds'=>array('FKP','£'),
|
||||
'Fiji, Dollars'=>array('FJD','$'),
|
||||
'Ghana, Cedis'=>array('GHC','¢'),
|
||||
'Gibraltar, Pounds'=>array('GIP','£'),
|
||||
'Guatemala, Quetzales'=>array('GTQ','Q'),
|
||||
'Guernsey, Pounds'=>array('GGP','£'),
|
||||
'Guyana, Dollars'=>array('GYD','$'),
|
||||
'Honduras, Lempiras'=>array('HNL','L'),
|
||||
'LvHong Kong, Dollars '=>array('HKD','HK$'),
|
||||
'Hungary, Forint'=>array('HUF','Ft'),
|
||||
'Iceland, Krona'=>array('ISK','kr'),
|
||||
'India, Rupees'=>array('INR','₨'),
|
||||
'Indonesia, Rupiahs'=>array('IDR','Rp'),
|
||||
'Iran, Rials'=>array('IRR','﷼'),
|
||||
'Isle of Man, Pounds'=>array('IMP','£'),
|
||||
'Israel, New Shekels'=>array('ILS','₪'),
|
||||
'Jamaica, Dollars'=>array('JMD','J$'),
|
||||
'Japan, Yen'=>array('JPY','¥'),
|
||||
'Jersey, Pounds'=>array('JEP','£'),
|
||||
'Jordan, Dinar' => array('JOD', 'JOD'),
|
||||
'Kazakhstan, Tenge'=>array('KZT','〒'),
|
||||
'Kenya, Shilling' => array('KES', 'KES'),
|
||||
'Korea (North), Won'=>array('KPW','₩'),
|
||||
'Korea (South), Won'=>array('KRW','₩'),
|
||||
'Kuwait, Dinar' => array('KWD','KWD'),
|
||||
'Kyrgyzstan, Soms'=>array('KGS','лв'),
|
||||
'Laos, Kips'=>array('LAK','₭'),
|
||||
'Latvia, Lati'=>array('LVL','Ls'),
|
||||
'Lebanon, Pounds'=>array('LBP','£'),
|
||||
'Liberia, Dollars'=>array('LRD','$'),
|
||||
'Switzerland Francs'=>array('CHF','CHF'),
|
||||
'Lithuania, Litai'=>array('LTL','Lt'),
|
||||
'MADAGASCAR, Malagasy Ariary' => array('MGA', 'MGA'),
|
||||
'Macedonia, Denars'=>array('MKD','ден'),
|
||||
'Malaysia, Ringgits'=>array('MYR','RM'),
|
||||
'Malta, Liri' => array('MTL', '₤'),
|
||||
'Mauritius, Rupees'=>array('MUR','₨'),
|
||||
'Mexico, Pesos'=>array('MXN','$'),
|
||||
'Mongolia, Tugriks'=>array('MNT','₮'),
|
||||
'Mozambique, Meticais'=>array('MZN','MT'),
|
||||
'Namibia, Dollars'=>array('NAD','$'),
|
||||
'Nepal, Rupees'=>array('NPR','₨'),
|
||||
'Netherlands Antilles, Guilders'=>array('ANG','ƒ'),
|
||||
'New Zealand, Dollars'=>array('NZD','$'),
|
||||
'Nicaragua, Cordobas'=>array('NIO','C$'),
|
||||
'Nigeria, Nairas'=>array('NGN','₦'),
|
||||
'North Korea, Won'=>array('KPW','₩'),
|
||||
'Norway, Krone'=>array('NOK','kr'),
|
||||
'Oman, Rials'=>array('OMR','﷼'),
|
||||
'Pakistan, Rupees'=>array('PKR','₨'),
|
||||
'Panama, Balboa'=>array('PAB','B/.'),
|
||||
'Paraguay, Guarani'=>array('PYG','Gs'),
|
||||
'Peru, Nuevos Soles'=>array('PEN','S/.'),
|
||||
'Philippines, Pesos'=>array('PHP','Php'),
|
||||
'Poland, Zlotych'=>array('PLN','zł'),
|
||||
'Qatar, Rials' => array('QAR', '﷼'),
|
||||
'Romania, New Lei'=>array('RON','lei'),
|
||||
'Russia, Rubles'=>array('RUB','руб'),
|
||||
'Saint Helena, Pounds'=>array('SHP','£'),
|
||||
'Saudi Arabia, Riyals'=>array('SAR','﷼'),
|
||||
'Serbia, Dinars'=>array('RSD','Дин.'),
|
||||
'Seychelles, Rupees'=>array('SCR','₨'),
|
||||
'Singapore, Dollars'=>array('SGD','$'),
|
||||
'Solomon Islands, Dollars'=>array('SBD','$'),
|
||||
'Somalia, Shillings'=>array('SOS','S'),
|
||||
'South Africa, Rand'=>array('ZAR','R'),
|
||||
'South Korea, Won'=>array('KRW','₩'),
|
||||
'Sri Lanka, Rupees'=>array('LKR','₨'),
|
||||
'Sweden, Kronor'=>array('SEK','kr'),
|
||||
'Switzerland, Francs'=>array('CHF','CHF'),
|
||||
'Suriname, Dollars'=>array('SRD','$'),
|
||||
'Syria, Pounds'=>array('SYP','£'),
|
||||
'Taiwan, New Dollars'=>array('TWD','NT$'),
|
||||
'Thailand, Baht'=>array('THB','฿'),
|
||||
'Trinidad and Tobago, Dollars'=>array('TTD','TT$'),
|
||||
'Turkey, New Lira'=>array('TRY','YTL'),
|
||||
'Turkey, Liras'=>array('TRL','₤'),
|
||||
'Tuvalu, Dollars'=>array('TVD','$'),
|
||||
'Ukraine, Hryvnia'=>array('UAH','₴'),
|
||||
'United Arab Emirates, Dirham' => array('AED', 'AED'),
|
||||
'United Kingdom, Pounds'=>array('GBP','£'),
|
||||
'United Republic of Tanzania, Shilling' => array('TZS', 'TZS'),
|
||||
'USA, Dollars' => array('USD' ,'$'),
|
||||
'Uruguay, Pesos'=>array('UYU','$U'),
|
||||
'Uzbekistan, Sums'=>array('UZS','лв'),
|
||||
'Venezuela, Bolivares Fuertes'=>array('VEF','Bs'),
|
||||
'Vietnam, Dong'=>array('VND','₫'),
|
||||
'Zambia, Kwacha' => array('ZMK', 'ZMK'),
|
||||
'Yemen, Rials'=>array('YER','﷼'),
|
||||
'Zimbabwe Dollars'=>array('ZWD','Z$'),
|
||||
);
|
||||
/*
|
||||
'Afghanistan, Afghanis'=>array('SAR','﷼'),
|
||||
'Cambodia, Riels'=>array('SAR','﷼'),
|
||||
*/
|
||||
?>
|
||||
@@ -0,0 +1,88 @@
|
||||
<html>
|
||||
<body>
|
||||
<?php
|
||||
/*+********************************************************************************
|
||||
* The contents of this file are subject to the vtiger CRM Public License Version 1.0
|
||||
* ("License"); You may not use this file except in compliance with the License
|
||||
* The Original Code is: vtiger CRM Open Source
|
||||
* The Initial Developer of the Original Code is vtiger.
|
||||
* Portions created by vtiger are Copyright (C) vtiger.
|
||||
* All Rights Reserved.
|
||||
********************************************************************************/
|
||||
|
||||
require_once('include/database/PearDatabase.php');
|
||||
global $default_charset;
|
||||
|
||||
// Fix For: http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/2107
|
||||
$randomfilename = "vt_" . str_replace(array("."," "), "", microtime());
|
||||
|
||||
$mergeFileName = $_REQUEST['mergefile'];
|
||||
//get the particular file from db and store it in the local hard disk.
|
||||
//store the path to the location where the file is stored and pass it as parameter to the method
|
||||
$sql = "select filename,data,filesize from vtiger_wordtemplatestorage where filename=?";
|
||||
$result = $adb->pquery($sql, array($mergeFileName));
|
||||
$temparray = $adb->fetch_array($result);
|
||||
|
||||
$fileContent = $temparray['data'];
|
||||
$filename=html_entity_decode($temparray['filename'], ENT_QUOTES, $default_charset);
|
||||
// Fix For: http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/2107
|
||||
$filename= $randomfilename . "_word.doc";
|
||||
|
||||
$filesize=$temparray['filesize'];
|
||||
$wordtemplatedownloadpath =$_SERVER['DOCUMENT_ROOT'] ."/test/wordtemplatedownload/";
|
||||
checkFileAccess($wordtemplatedownloadpath);
|
||||
$handle = fopen($wordtemplatedownloadpath .$filename,"wb") ;
|
||||
fwrite($handle,base64_decode($fileContent),$filesize);
|
||||
fclose($handle);
|
||||
|
||||
|
||||
$query = "SELECT * FROM " .$adb->sql_escape_string($_REQUEST["module"]) ." WHERE id = ?";
|
||||
$result = $adb->pquery($query, array($_REQUEST['record']));
|
||||
|
||||
$y=$adb->num_fields($result);
|
||||
|
||||
for ($x=0; $x<$y; $x++)
|
||||
{
|
||||
$columnNames[$x] = "CONTACT_".strtoupper($adb->field_name($result, $x));
|
||||
}
|
||||
|
||||
$columnValues = $adb->fetch_array($result);
|
||||
for ($x=0; $x<$y; $x++)
|
||||
{
|
||||
$columnValString[$x] = $columnValues[$x];
|
||||
}
|
||||
|
||||
$columnString = implode(",",$columnNames);
|
||||
$columnValString = implode(",",$columnValString);
|
||||
|
||||
echo"<script type=\"text/javascript\">
|
||||
var dHdr = '$columnString';
|
||||
var dSrc = '$columnValString';
|
||||
</script>";
|
||||
?>
|
||||
|
||||
<OBJECT Name="vtigerVM" codebase="http://<?php echo $_SERVER["HTTP_HOST"] ?>/modules/Settings/vtigerVM.CAB#Version1,0,0,1"
|
||||
id="objMMPage" classid="clsid:42C50C38-1984-4393-A736-890357E7112B" width=0 height=0></object><!--METADATA TYPE="MsHtmlPageDesigner" endspan-->
|
||||
<Script>
|
||||
if(objMMPage.bDLTempDoc("http://"+"<?php echo $_SERVER["HTTP_HOST"] ?>/test/wordtemplatedownload/"+"<?php echo $filename?>","MMTemplate.doc"))
|
||||
{
|
||||
try
|
||||
{
|
||||
if(objMMPage.Init())
|
||||
{
|
||||
objMMPage.vLTemplateDoc();
|
||||
//objMMPage.vGetHDSrc(dHdr,dSrc);
|
||||
objMMPage.vBulkHDSrc(dHdr,dSrc);
|
||||
//objMMPage.vOpenDoc();
|
||||
objMMPage.vBulkOpenDoc();
|
||||
objMMPage.UnInit()
|
||||
document.write("Template Document Merged with selected contacts data");
|
||||
}
|
||||
}catch(errorObject)
|
||||
{
|
||||
}
|
||||
}
|
||||
</Script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
/*********************************************************************************
|
||||
** The contents of this file are subject to the vtiger CRM Public License Version 1.0
|
||||
* ("License"); You may not use this file except in compliance with the License
|
||||
* The Original Code is: vtiger CRM Open Source
|
||||
* The Initial Developer of the Original Code is vtiger.
|
||||
* Portions created by vtiger are Copyright (C) vtiger.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
********************************************************************************/
|
||||
|
||||
require_once('include/Ajax/CommonAjax.php');
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
/*********************************************************************************
|
||||
** The contents of this file are subject to the vtiger CRM Public License Version 1.0
|
||||
* ("License"); You may not use this file except in compliance with the License
|
||||
* The Original Code is: vtiger CRM Open Source
|
||||
* The Initial Developer of the Original Code is vtiger.
|
||||
* Portions created by vtiger are Copyright (C) vtiger.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
********************************************************************************/
|
||||
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
/*********************************************************************************
|
||||
** The contents of this file are subject to the vtiger CRM Public License Version 1.0
|
||||
* ("License"); You may not use this file except in compliance with the License
|
||||
* The Original Code is: vtiger CRM Open Source
|
||||
* The Initial Developer of the Original Code is vtiger.
|
||||
* Portions created by vtiger are Copyright (C) vtiger.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
********************************************************************************/
|
||||
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user