#The full software license can be found here:
#http://www.accounting-123.com/a.php?a=153/GPLv3
#
#
#
#
#
#
#
#
#
#
#
require "settings.php";
# show current stock
$OUTPUT = printOrders();
require "template.php";
##
# Functions
##
# show invoices
function printOrders()
{
    # Set up table to display in
    $printOrders = "\r\n        <h3>View previous credit invoices</h3>\r\n        <table border=0 cellpadding='" . TMPL_tblCellPadding . "' cellspacing='" . TMPL_tblCellSpacing . "'>\r\n        <tr><th>Sales Rep</th><th>Invoice Date</th><th>Customer Name</th><th>Invoice No</th><th>Grand total</th><th>Terms</th></tr>";
    # connect to database
    db_connect();
    # Query server
    $i = 0;
    $sql = "SELECT * FROM credit_invoices ORDER BY ordnum DESC";
    $invRslt = db_exec($sql) or errDie("Unable to retrieve invoices from database.");
示例#2
0
	
			<section id="eShop"> 
				<section id="breadcrumbs">
					<a href="eshop.php">eShop ></span></a>
						<a href="#"><span class="thisPageSelected"> Orders</span></a>
				</section>
				<section>
					<a href="#"><img src="images/icon-shop2.jpg"></a>
					<a href="cart.php"><img src="images/icon-shop1.jpg"></a>
					<span class = "counter">(<?php 
echo $cartCountNumber;
?>
)</span>
				</section>
				<div class="clear"></div>
			</section>
			<main id="buyNow">
				<?php 
printOrders($result);
?>
			</main>
		</div>
	</body>
</html>
<?php 
mysqli_close($connection);
//close DB connection
?>
	

示例#3
0
			<td></td>
			<td><a href="?logout">Выйти</a></td>
		</tr>
	</table>
	<h2>Админка</h2>
	<table id="tab_item">
		<?php 
tableItems($items);
?>
	</table>
	<form id="form_add" enctype="multipart/form-data" action="" method="post">
		<label>Наименование товара</label>
		<input type="text" name="name"/></br>
		<label>Цена товара</label>
		<input type="text" name="price"/></br>
		<input hidden type="MAX_FILE_SIZE" value="3000000"/> <!-- установка максимального размера файла -->
		<label>Фото товара</label>
		<input type="file" name="f"/></br>
		<label>Количество товара</label>
		<input type="text" name="quantity"/></br>
		<input type="submit" value="Добавить!">
	</form>
		<?php 
$orders = getOrders();
?>
	<h2>Заказы</h2>
		<?php 
printOrders($orders);
?>
</body>
</html>
示例#4
0
									style="padding-right: 0px !IMPORTANT;">
									<div class="input-group">
										<div class="input-group-addon">Tanggal Akhir</div>
										<input type="text" class="form-control" id="akhirTb"
											placeholder="Masukkan tanggal akhir...">
									</div>
								</div>
								<button type="submit" class="btn btn-info pull-right col-sm-1">
									<span class="glyphicon glyphicon-search"></span>
								</button>
							</form>
						</div>
					</div>
					<div id="orderstable">
						<?php 
echo printOrders();
?>
					</div>
				</div>
				<div role="tabpanel" class="tab-pane" id="others">
					<div style="padding-top: 2%; padding-bottom: 0%;" class="col-sm-6">
						<h3>Pengaturan Kategori</h3>
						<div style="padding-bottom: 2%;">
							<div class="row">
								<div class="col-sm-12" style="padding-bottom: 2% !IMPORTANT;">
									<button id="addcategory" class="btn btn-success">
										<span class="glyphicon glyphicon-plus"></span>&nbsp;Tambah
										Kategori
									</button>
								</div>
							</div>