Beispiel #1
0
                    die;
                }
                break;
            case 3:
                $sql = 'SELECT p.*, c.*, f.*
					FROM _prov p, _constancia c, _factura f
					WHERE p.p_nit = c.c_nit
						AND c.c_exe = f.f_exe
						AND c.c_date >= ?
						AND c.c_date <= ?
					ORDER BY c.c_exe';
                if ($data = sql_rowset(sql_filter($sql, $s_date, $e_date))) {
                    $d =& new Cezpdf('LETTER');
                    $d->selectFont('../includes/pdf/verdana.afm');
                    $d2 = new Cpdf();
                    $aop = new aop();
                    $aop->import_pdf();
                    $total_rows = sizeof($data);
                    $total = 0;
                    $total_fp = 0;
                    $line_height = 11;
                    $new_page = true;
                    $create_page = false;
                    $page_created = true;
                    $nulled = array();
                    //
                    // Process all data
                    //
                    foreach ($data as $i => $row) {
                        if ($row['c_null']) {
                            if (isset($nulled[$row['c_exe']])) {
Beispiel #2
0
<?php

/**
 * @author Jean-Lou Dupont
 * @package HookPack
 * @category Enhancements
 * @version @@package-version@@
 * @Id $Id$
 */
//<source lang=php>
require 'aop/aop.php';
// add Mediawiki's includes directory
aop::register_class_pointcut_definition('Linker', dirname(__FILE__) . '/hooks/Linker.pointcut.definition.php');
aop::register_class_path($IP . '/includes');
aop::register_class_bypass("SpecialPage");
aop::register_class_bypass("EditPage");
$logger =& Log::singleton('file', dirname(__FILE__) . '/log.txt', '');
aop::setDebug();
aop::setLogger($logger);
//</source>