mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
Added transactions
This commit is contained in:
4
call.php
4
call.php
@@ -141,6 +141,7 @@ function display_outcomes($contacted,$ca,$case_id)
|
||||
|
||||
global $db;
|
||||
|
||||
$db->StartTrans();
|
||||
|
||||
$operator_id = get_operator_id();
|
||||
|
||||
@@ -201,6 +202,7 @@ if (isset($_POST['submit']))
|
||||
|
||||
print "<p></p>"; //for XHTML
|
||||
xhtml_foot();
|
||||
$db->CompleteTrans();
|
||||
exit();
|
||||
}
|
||||
|
||||
@@ -432,6 +434,6 @@ switch($state)
|
||||
|
||||
|
||||
xhtml_foot();
|
||||
|
||||
$db->CompleteTrans();
|
||||
|
||||
?>
|
||||
|
||||
12
index.php
12
index.php
@@ -49,6 +49,8 @@ $operator_id = get_operator_id();
|
||||
|
||||
if (isset($_GET['endwork']))
|
||||
{
|
||||
$db->StartTrans();
|
||||
|
||||
if (isset($_GET['note']))
|
||||
{
|
||||
$case_id = get_case_id($operator_id);
|
||||
@@ -59,6 +61,9 @@ if (isset($_GET['endwork']))
|
||||
}
|
||||
end_call_attempt($operator_id);
|
||||
end_case($operator_id);
|
||||
|
||||
$db->CompleteTrans();
|
||||
|
||||
include("endwork.php");
|
||||
exit();
|
||||
}
|
||||
@@ -66,6 +71,8 @@ if (isset($_GET['endwork']))
|
||||
|
||||
if (isset($_GET['endcase']))
|
||||
{
|
||||
$db->StartTrans();
|
||||
|
||||
if (isset($_GET['note']))
|
||||
{
|
||||
$case_id = get_case_id($operator_id);
|
||||
@@ -76,8 +83,11 @@ if (isset($_GET['endcase']))
|
||||
}
|
||||
end_call_attempt($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"));
|
||||
?>
|
||||
@@ -157,6 +167,6 @@ xhtml_head(T_("queXS"), true, array("css/index.css","css/tabber.css") , array("j
|
||||
<?
|
||||
|
||||
xhtml_foot();
|
||||
|
||||
$db->CompleteTrans();
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user