if (strlen($str) < 4) { $resstr .= "<b>"; } $resstr .= "{$r['1']}"; $resstr .= "</b></a>"; $resstr .= "<br>"; } $r[types] += $this->DrawPart($r[0], $str); } return $r[types]; } function Draw($table, $id, $type, $val) { global $resstr; $this->type = $type; $this->val = $val; $this->table = $table; $this->id = $id; $this->DrawPart(0); return $resstr; } } $catalog = new cls_catalog(); $leftcontent = $catalog->Draw('fn_operation_types', 'TypeID', 'list', $id); require $site_path . "left.php"; ?> <center><img src="/images/art/treasury.jpg" width=500px height=300px></center> <?php print "<img src=/images/hr.gif width=473 height=10>"; $form->Draw(); require $site_path . "bottom.php";
print "<b>Outcome:</b> " . dots($q1[0]) . "<br>"; print "<b>Income:</b> " . dots($q2[0]) . "<br>"; print "<b>Balance:</b> " . dots($q3[0]) . "<br>"; $q = select("select OperationID,SenderBalance from fn_operations where SenderID='{$team}' and OperationDate>unix_timestamp()-3*24*3600 order by OperationID asc limit 0,1"); $q1 = select("select sum(Money) from fn_operations where SenderID='{$team}' and OperationID>'{$q['0']}'"); $q2 = select("select sum(Money) from fn_operations where ReceiverID='{$team}' and OperationID>'{$q['0']}'"); $q3 = select("select Money from fn_accounts where AccountID='{$team}'"); $error = -$q[1] + $q1[0] + $q3[0] - $q2[0]; if ($error) { print "<font color=red>"; } else { print "<font color=green>"; } print "<br>Three days error: " . dots($error) . "<br>"; print "</font>"; print "<b>Start balance:</b> " . dots($q[1]) . "<br>"; print "<b>Outcome:</b> " . dots($q1[0]) . "<br>"; print "<b>Income:</b> " . dots($q2[0]) . "<br>"; print "<b>Balance:</b> " . dots($q3[0]) . "<br>"; print "<br>"; } } require $engine_path . "cls/common/cls_catalog.php"; $catalog = new cls_catalog(); print "<table border=0 cellspacing=1 bgcolor=D3E1EC cellpadding=4><form action=\"{$PHP_SELF}\" method=\"post\"><tr><td><select name=\"id\" onchange=\"this.form.submit()\">"; print "<option value=''>" . message(54) . "</option>"; $catalog->Draw('fn_operation_types', 'TypeID', 'select', $id); print "</select></td></form></table>"; print "<hr>"; $form->Draw(); require $site_path . "bottom.php";