コード例 #1
0
ファイル: accounts.php プロジェクト: timoffmax/costs
print_options($connection, 'Pay_types', 'Pay_type', '', 'transfer[from]');
?>
			<?php 
print_options($connection, 'Pay_types', 'Pay_type', '', 'transfer[to]');
?>
			<input type="submit" value="Transfer">
		</form>
	</div>
	
	<div class="table_header">
		<p>Состояние счетов</p>
	</div>

	<div class="table">
		<?php 
print_accounts($connection);
?>
	</div>

	</div>

	<div class="table_header">
		<p>Общая информация</p>
	</div>
	<div class="table">
		<?php 
$query = "SELECT * FROM Sum_inf ORDER BY Date DESC LIMIT 30";
// Выполнить запрос (набор данных $rs содержит результат)
$result = mysqli_query($connection, $query);
echo "<table class=\"center\">";
echo "\n\t\t<tr>\n\t\t\t<th><b>Дата<b/></th>\n\t\t\t<th><b>Количество транзакций<b/></th>\n\t\t\t<th><b>Расходы<b/></th>\n\t\t\t<th><b>Доходы<b/></th>\n\t\t</tr>\n\t\t";
コード例 #2
0
ファイル: accounts.php プロジェクト: timoffmax/costs
print_options($connection, 'Pay_types', 'Pay_type', '', $user, 'transfer[from]');
?>
			<?php 
print_options($connection, 'Pay_types', 'Pay_type', '', $user, 'transfer[to]');
?>
			<input type="submit" value="Transfer">
		</form>
	</div>
	
	<div class="table_header">
		<p>Состояние счетов</p>
	</div>

	<div class="table">
		<?php 
print_accounts($connection, $user);
?>
	</div>

	</div>

	<div class="table_header">
		<p>Общая информация</p>
	</div>
	<div class="table">
		<?php 
$query = "SELECT * FROM Sum_inf WHERE User = {$user} ORDER BY Date DESC LIMIT 30";
// Выполнить запрос (набор данных $rs содержит результат)
$result = mysqli_query($connection, $query);
echo "<table class=\"center\">";
echo "\n\t\t<tr>\n\t\t\t<th><b>Дата<b/></th>\n\t\t\t<th><b>Количество транзакций<b/></th>\n\t\t\t<th><b>Расходы<b/></th>\n\t\t\t<th><b>Доходы<b/></th>\n\t\t</tr>\n\t\t";
コード例 #3
0
ファイル: accounts.php プロジェクト: timoffmax/costs
	<title>Текущий баланс</title>
	<?php 
include '../scripts/header.php';
?>
</head>
<body>

<div class="content_all">

	<div class="table_header">
		<p>Состояние счетов</p>
	</div>

	<div class="table">
		<?php 
$check->check_no_empty(print_accounts($connection, $user));
?>
	</div>

	<div class="table_header">
		<p>
			Управление счетами
		</p>
	</div>
	<div class="table">
		
		<?php 
include_once '../scripts/change_accounts.php';
?>

	</div>