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-17 22:47:28 +00:00
parent 822a72c74d
commit c0cecbd25b
2 changed files with 14 additions and 2 deletions

View File

@@ -141,6 +141,7 @@ function display_outcomes($contacted,$ca,$case_id)
global $db; global $db;
$db->StartTrans();
$operator_id = get_operator_id(); $operator_id = get_operator_id();
@@ -201,6 +202,7 @@ if (isset($_POST['submit']))
print "<p></p>"; //for XHTML print "<p></p>"; //for XHTML
xhtml_foot(); xhtml_foot();
$db->CompleteTrans();
exit(); exit();
} }
@@ -432,6 +434,6 @@ switch($state)
xhtml_foot(); xhtml_foot();
$db->CompleteTrans();
?> ?>

View File

@@ -49,6 +49,8 @@ $operator_id = get_operator_id();
if (isset($_GET['endwork'])) if (isset($_GET['endwork']))
{ {
$db->StartTrans();
if (isset($_GET['note'])) if (isset($_GET['note']))
{ {
$case_id = get_case_id($operator_id); $case_id = get_case_id($operator_id);
@@ -59,6 +61,9 @@ if (isset($_GET['endwork']))
} }
end_call_attempt($operator_id); end_call_attempt($operator_id);
end_case($operator_id); end_case($operator_id);
$db->CompleteTrans();
include("endwork.php"); include("endwork.php");
exit(); exit();
} }
@@ -66,6 +71,8 @@ if (isset($_GET['endwork']))
if (isset($_GET['endcase'])) if (isset($_GET['endcase']))
{ {
$db->StartTrans();
if (isset($_GET['note'])) if (isset($_GET['note']))
{ {
$case_id = get_case_id($operator_id); $case_id = get_case_id($operator_id);
@@ -76,8 +83,11 @@ if (isset($_GET['endcase']))
} }
end_call_attempt($operator_id); end_call_attempt($operator_id);
end_case($operator_id); end_case($operator_id);
$db->CompleteTrans();
} }
$db->StartTrans();
xhtml_head(T_("queXS"), true, array("css/index.css","css/tabber.css") , array("js/popup.js","js/tabber.js")); xhtml_head(T_("queXS"), true, array("css/index.css","css/tabber.css") , array("js/popup.js","js/tabber.js"));
?> ?>
@@ -157,6 +167,6 @@ xhtml_head(T_("queXS"), true, array("css/index.css","css/tabber.css") , array("j
<? <?
xhtml_foot(); xhtml_foot();
$db->CompleteTrans();
?> ?>