public function go() { $aOutput = \YcheukfReport\Lib\ALYS\Report\Start::getOutput(); $sHtml = ""; $oPluginStatic = \YcheukfReport\Lib\ALYS\ALYSFunction::loadPlugin("Statichtml"); if (isset($aOutput['flash.output'])) { $sHtml .= $oPluginStatic->ALYSfmtOutputFlash($aOutput['flash.output']); } if (isset($aOutput['total.output'])) { $aOutput['total.output'] = parent::_forma_html_total($aOutput['total.output']); $sHtml .= $oPluginStatic->ALYSfmtOutputTotal($aOutput['total.output']); } if (isset($aOutput['detail.output'])) { $aOutput['detail.output'] = parent::_format_html_list($aOutput['detail.output']); $sHtml .= $oPluginStatic->ALYSfmtOutputList($aOutput['detail.output']); } $sHtml = self::_fmtHtml($sHtml); $cache = \YcheukfReport\Lib\ALYS\ALYSFunction::loadClass("ALYSCache"); $cache->setHandle('report_static_html'); $keyName = uniqid(); $cache->save($keyName, $sHtml); $aOutput['output'] = $keyName; \YcheukfReport\Lib\ALYS\Report\Start::setOutput($aOutput); return $keyName; }
function go() { // \YcheukfReport\Lib\ALYS\ALYSFunction::debug($this->aOutput, 'a', 'www'); $flashHtmlFormat = isset($this->aInput['output']['flashHtmlFormat']) ? $this->aInput['output']['flashHtmlFormat'] : 'fusion'; $oHtmlFormat = \YcheukfReport\Lib\ALYS\ALYSFunction::loadClass("Report.Output.Flash.Format.Html." . $flashHtmlFormat . "." . $this->aInput['input']['flash']['type']); $oHtmlFormat->go(); }
public function _fmtOutput() { $type = 'detail'; $this->_fmtDimen_Metric($type); $aInput = \YcheukfReport\Lib\ALYS\Report\Start::getInput(); $o = \YcheukfReport\Lib\ALYS\ALYSFunction::loadClass("report.output." . $type . ".format." . $this->aInput['output']['format']); $o->go(); }
public function _fmtOutput() { // $this->ALYSformat($type); $this->_getPercent(); $type = 'detail'; $this->aOutput[$type] = $this->_fmtTdStyle($type); \YcheukfReport\Lib\ALYS\Report\Start::setOutput($this->aOutput); //$aOutput['detail'] = $this->_fmtData(); $o = \YcheukfReport\Lib\ALYS\ALYSFunction::loadClass("report.output." . $type . ".format." . $this->aInput['output']['format']); $o->go(); }
public function go() { $o = \YcheukfReport\Lib\ALYS\ALYSFunction::loadClass("report.output.format.statichtml"); // $aOutput = \YcheukfReport\Lib\ALYS\Report\Start::getOutput(); $sStaticKey = $o->go(); $oPlugin = \YcheukfReport\Lib\ALYS\ALYSFunction::loadPlugin("email"); $aInfo = $oPlugin->ALYSbefore_email($sStaticKey); $m = \YcheukfReport\Lib\ALYS\ALYSFunction::loadClass("ALYSEmail"); $m->send($aInfo['toEmail'], $aInfo['subject'], $aInfo['body']); // return $flag?1:0; }
/** * @生成PDF文件 **/ function _createPdf($sFlash, $aTotal, $aList, $visitType, $top, $headFoot, $pageFooter = '') { $pdfname = 'allyes_' . uniqid() . ".pdf"; /** * @获取图表基础数据 **/ $css_total = $aTotal; $css_list = $aList; /** * @初使PDF对象 * 默认是I:在浏览器中打开,D:下载,F:在服务器生成pdf ,S:只返回pdf的字符串 **/ $pdf = \YcheukfReport\Lib\ALYS\ALYSFunction::loadClass("pdf"); $_pdfname = $pdf->setInfo($pdfname, strtoupper($visitType), $top, $headFoot, $pageFooter); $pdf->addPage(); /** * @初使图表配置样式 **/ // $aCssConfig = \YcheukfReport\Lib\ALYS\ALYSFunction::loadPlugin("Formatpdf"); // $aCss = $aCssConfig->ALYSload_style(); // // $akv = array(); // // 处理基本数据与样式的搭配(1) // $akv = $pdf->aRecur($aCss['total']); // $css_total = $pdf->replaceCss($akv,$total); // // // 处理基本数据与样式的搭配(2) // $akv = $pdf->aRecur($aCss['detail']); // $css_list = $pdf->replaceCss($akv,$list); // // //处理图片 $css_flash = $pdf->setImg($sFlash); //进一步处理不规则样式 // $css_list = preg_replace("/\<div class\=\"color\"\>\<\/div\>/i","",$css_list); // $css_total = preg_replace("/<div class=\"mdata\">/i","",$css_total); // $css_total = preg_replace("/\<\/div\>/i","",$css_total); //将数据添加至PDF类,使其形成PDF文件 $pdf->writeHTML(\YcheukfReport\Lib\ALYS\ALYSLang::_("PDF_FLASH_TITLE")); $pdf->Ln(); $pdf->writeHTML($css_flash); $pdf->writeHTML(\YcheukfReport\Lib\ALYS\ALYSLang::_("PDF_TOTAL_TITLE")); $pdf->Ln(); $pdf->writeHTML($css_total); $pdf->writeHTML(\YcheukfReport\Lib\ALYS\ALYSLang::_("PDF_LIST_TITLE")); $pdf->Ln(); $pdf->writeHTML($css_list); $pdf->read(); return $_pdfname; }
/** * set db object */ public function setOdbp() { $sDboperator = \YcheukfReport\Lib\ALYS\ALYSConfig::get('dboperator'); self::$oInstant = \YcheukfReport\Lib\ALYS\ALYSFunction::loadClass("dboperate." . $sDboperator); }
function _fmtOutput($type) { $o = \YcheukfReport\Lib\ALYS\ALYSFunction::loadClass("report.output." . $type . ".format." . $this->aInput['output']['format']); $o->go(); }
public function __construct() { // $_ALYSconfig = \YcheukfReport\Lib\ALYS\ALYSConfig::get(); $this->DB = \YcheukfReport\Lib\ALYS\ALYSFunction::loadClass("Dboperate.Sql"); }
public function go() { $aInput = \YcheukfReport\Lib\ALYS\Report\Start::getInput(); $o = \YcheukfReport\Lib\ALYS\ALYSFunction::loadClass("report.output.format." . $aInput['output']['format']); $o->go(); }
function go() { $o = \YcheukfReport\Lib\ALYS\ALYSFunction::loadClass("report.output.Flash.format.statichtml"); $o->go(); }
function go() { $o = \YcheukfReport\Lib\ALYS\ALYSFunction::loadClass("report.output.Total.format.html"); $o->go(); }
private function _getFlsTotal() { $aInput = $this->_aInput; if (empty($aInput['input']['total']) && empty($aInput['input']['flash'])) { return false; } $aInput['input']['detail'] = array(); \YcheukfReport\Lib\ALYS\ALYSFunction::clear(); $oReport = \YcheukfReport\Lib\ALYS\ALYSFunction::loadClass('report.start', $aInput); $oRe = $oReport->go(); return $oRe['output']; }
public function _output() { $o = \YcheukfReport\Lib\ALYS\ALYSFunction::loadClass("Report.Output.format"); $o->go(); $aRe = self::$aOutput; if (isset($aRe['flash'])) { unset($aRe['flash']); } if (isset($aRe['total'])) { unset($aRe['total']); } if (isset($aRe['detail'])) { unset($aRe['detail']); } return $aRe; }
public function loadClass($sClass, $aInput = array()) { // var_dump(class_exists('Zend\ServiceManager\ServiceManager2')); // $aInput = $this->fmtReportParams($aInput); return \YcheukfReport\Lib\ALYS\ALYSFunction::loadClass($sClass, $aInput); }