Add php files
This commit is contained in:
29
modules/EcmReportsBackUp20151106/ReportSalesByContractorCopy.php
Executable file
29
modules/EcmReportsBackUp20151106/ReportSalesByContractorCopy.php
Executable file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
require_once 'ReportSalesByContractor.inc';
|
||||
|
||||
/*****************************************************/
|
||||
/********************** SMARTY ***********************/
|
||||
/*****************************************************/
|
||||
$Calendar_daFormat = str_replace("d","%d",str_replace("m","%m",str_replace("Y","%Y",$GLOBALS['timedate']->get_date_format())));
|
||||
// Default value from date input
|
||||
$currentDate = $GLOBALS['timedate']->to_display_date($date_from);
|
||||
$date_from = $GLOBALS['timedate']->to_display_date($date_from);
|
||||
$date_to = $GLOBALS['timedate']->to_display_date($date_to);
|
||||
|
||||
// create & execute smarty
|
||||
$smarty = new Sugar_Smarty ();
|
||||
global $mod_strings;
|
||||
$smarty -> assign( "MOD", $mod_strings );
|
||||
$smarty -> assign( "SUM", $sum);
|
||||
$smarty -> assign( "ContractorData", $newArray);
|
||||
$smarty -> assign( "date_from", $date_from );
|
||||
$smarty -> assign( "date_to", $date_to );
|
||||
$smarty -> assign("dateFormat", $Calendar_daFormat);
|
||||
$smarty -> assign("searchByType", $searchByType);
|
||||
$smarty -> assign( "USERS", $datausers);
|
||||
$smarty -> assign( "selectedUser", $selectUser);
|
||||
$smarty -> assign( "group_media_saturn_holding", $group_media_saturn_holding);
|
||||
|
||||
echo $smarty->display ( 'modules/EcmReports/tpls/ReportSalesByContractorCopy.tpl' );
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user