2
0
mirror of https://github.com/ACSPRI/queXS synced 2024-04-02 12:12:16 +00:00

Added transactions

This commit is contained in:
azammitdcarf
2009-02-19 03:02:29 +00:00
parent 8c7c0c014d
commit ee3c57a18c
5 changed files with 20 additions and 8 deletions

View File

@@ -45,11 +45,12 @@ include ("functions/functions.xhtml.php");
*/
include("functions/functions.operator.php");
$db->StartTrans();
$operator_id = get_operator_id();
if (isset($_GET['endwork']))
{
$db->StartTrans();
if (isset($_GET['note']))
{
@@ -72,7 +73,6 @@ if (isset($_GET['endwork']))
if (isset($_GET['endcase']))
{
$db->StartTrans();
if (isset($_GET['note']))
{
@@ -86,11 +86,8 @@ if (isset($_GET['endcase']))
end_case($operator_id);
//if ($db->HasFailedTrans()) {print "<p>FAILED AT ENDCASE</p>"; exit();}
$db->CompleteTrans();
}
$db->StartTrans();
xhtml_head(T_("queXS"), true, array("css/index.css","css/tabber.css") , array("js/popup.js","js/tabber.js"));
?>