コード例 #1
0
ファイル: five10.php プロジェクト: Vladimir-Kirov/PHP-MySQLi
<?php

include 'budget2013.php';
include 'printbudget.php';
?>

<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8"/> 
	<title>printBudget2013</title>
	<style type="text/css">
	</style>
</head>
<body>
<?php 
echo printBudget($budget2013);
?>
</body>
</html>
コード例 #2
0
ファイル: five9.php プロジェクト: Vladimir-Kirov/PHP-MySQLi
<?php

include 'budgetData.php';
include 'printBudget.php';
?>

<! DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8"/> 
	<title>printBudget</title>
	<style type="text/css">
	</style>
</head>
<body>
<?php 
echo printBudget($budget);
?>
</body>
</html>
コード例 #3
0
#
#
#
#
#
#
#
#
#
#
#
# get settings
require "../settings.php";
require "../core-settings.php";
# show current stock
$OUTPUT = printBudget();
require "../template.php";
# show stock
function printBudget()
{
    require "budget.lib.php";
    # Set up table to display in
    $printBudget = "\r\n\t\t\t\t\t\t<h3>Current Budgets</h3>\r\n\t\t\t\t\t\t<table " . TMPL_tblDflts . ">\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<th>Budget Name</th>\r\n\t\t\t\t\t\t\t\t<th>Entry Date</th>\r\n\t\t\t\t\t\t\t\t<th>Type</th>\r\n\t\t\t\t\t\t\t\t<th>Budget For</th>\r\n\t\t\t\t\t\t\t\t<th>Period/Year</th>\r\n\t\t\t\t\t\t\t\t<th colspan='5'>Options</th>\r\n\t\t\t\t\t\t\t</tr>";
    # connect to database
    db_connect();
    # Query server
    $i = 0;
    $sql = "SELECT * FROM budgets WHERE div = '" . USER_DIV . "' ORDER BY budid ASC";
    $budgRslt = db_exec($sql) or errDie("Unable to retrieve Budgets from database.");
    if (pg_numrows($budgRslt) < 1) {
        return "\r\n\t\t\t\t\t<li class='err'>There are no Budgets in Cubit.</li>\r\n\t\t\t\t\t<p>\r\n\t\t\t\t\t<table " . TMPL_tblDflts . " width='15%'>\r\n\t\t\t\t        <tr><td><br></td></tr>\r\n\t\t\t\t        <tr>\r\n\t\t\t\t        \t<th>Quick Links</th>\r\n\t\t\t\t        </tr>\r\n\t\t\t\t\t\t<tr class='" . bg_class() . "'>\r\n\t\t\t\t\t\t\t<td><a href='budget-new.php'>New Monthly Budget</a></td>\r\n\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t<tr class='" . bg_class() . "'>\r\n\t\t\t\t\t\t\t<td><a href='budget-yr-new.php'>New Yearly Budget</a></td>\r\n\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t<tr class='" . bg_class() . "'>\r\n\t\t\t\t\t\t\t<td><a href='main.php'>Main Menu</a></td>\r\n\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t</table>\r\n\t\t\t\t";
コード例 #4
0
ファイル: five11.php プロジェクト: Vladimir-Kirov/PHP-MySQLi
<?php

include 'budget2014.php';
include 'printbudget1.php';
?>

<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8"/> 
	<title>printBudget2014</title>
	<style type="text/css">
	
	</style>
</head>
<body>
<?php 
echo printBudget($budget2014, $head, $budget1, $budget2);
?>

</body>
</html>