Exemplo n.º 1
0
                            } else {
                                display_item();
                            }
                        }
                    }
                }
            } else {
                if ($page == "getdetails") {
                    require_once "./include/getdetails.inc";
                } else {
                    if (isset($_POST['Bill'])) {
                        bill();
                    } else {
                        if (isset($_GET['view'])) {
                            if ($_GET['view'] != NULL) {
                                display_bill($_GET['view']);
                            } else {
                                global $tpl;
                                $tpl->title = "Bill Details";
                                $tpl->content = $tpl->fetch("./template/billno.php.tpl");
                                $tpl->display("./template/index.php.tpl");
                            }
                        } else {
                            generate_bill();
                        }
                    }
                }
            }
        }
    }
}
        $condition = 0;
        if ($group[3] == 'OR') {
            $condition = 1;
        }
        $and_or = $group[1];
        $grouped[$group[0]] = array($operation, $group[2], $condition);
    }
}
if ($p['profile_parameter_arr']['profile_name'] == '') {
    $profile = default_profile();
    $profile_name = 'default';
} else {
    $profile = $p['profile_parameter_arr'];
}
if (isset($_POST['preview'])) {
    generate_bill($_POST['example_order_id']);
}
$languages_arr = get_languages();
//echo "<pre>"; print_r($languages_arr); echo "</pre>";
foreach ($languages_arr as $lang) {
    if ($lang['default'] == 1) {
        $default_language = $lang;
    }
}
require DIR_WS_INCLUDES . 'head.php';
?>

<link rel="stylesheet" type="text/css" href="includes/ipdfbill/pdfbill.css">
<script type="text/javascript" src="includes/ipdfbill/movablewindow.js" language="javascript1.2"></script>
<script language="javascript" type="text/javascript">
Exemplo n.º 3
0
//
// mails dump back
/*
 * published under the GPL Licence
 *
 * (c) Mar 2010
 *     by Karsten Hinz
 */
require_once "./config.php";
require_once "./formmail.lib.php";
require_once './Template.php';
//testing
extract_csv(0);
$daten_org = recive_formular();
$daten_no_html = $daten_org;
//ka ob das nur die addresse rüber kopiert ist hier aber auch egal
//löscht die zeilenumbrüche
clean_array($daten_no_html, 0);
//ersetzt alle sonderzeichen durch html
clean_array($daten_org, 1);
$stat = statistics($daten_org, $preise);
if (!empty($daten_org["bemerkung"])) {
    sends_info($daten_org, $stat);
}
//die nicht escapte version, damit man die datei einfacher wo anders importieren kann
save_data($daten_no_html);
//erzeugt eine Rechnung aus einen Template
$rechnung = generate_bill($daten_org, $preise);
$fehler = generate_mail($daten_org, $rechnung);
//und auch noch was anzeigen
print_page($daten_org, $rechnung, $fehler);