Exemple #1
0
function confirm()
{
    $token = StorageAPI::Get("token");
    ProgressIndicator::ShowWithTitle("Adding budget...");
    $httpUpdate = new httpClient();
    $httpUpdate->addVariable('money', $money_value);
    $httpUpdate->addVariable('dates', $input_date);
    $httpUpdate->addVariable("id", $token);
    $httpUpdate->Execute('POST', "http://demo.kikapptools.com/Gastos/crud/updateAccount.php");
    ProgressIndicator::Hide();
    AndroidAction::GoHome();
}
Exemple #2
0
function login()
{
    if ($email == null) {
        echo "E-Mail is a required field.";
        //you can't leave it blank
    } else {
        ProgressIndicator::ShowWithTitle("Loading...");
        ProgressIndicator::Hide();
        //Closes the ProgressIndicator when everything is done
        AndroidAction::GoHome();
    }
}
function confirm()
{
    $token = StorageAPI::Get("token");
    ProgressIndicator::ShowWithTitle("Inserting movement...");
    $httpUpdate = new httpClient();
    $httpUpdate->addVariable('value', $input_value);
    $httpUpdate->addVariable('moveType', $moveType);
    $httpUpdate->addVariable('description', $input_desc);
    $httpUpdate->addVariable("id", $token);
    $httpUpdate->addVariable('idCat', $dc_cat);
    $httpUpdate->addVariable('dates', $input_date);
    $httpUpdate->Execute('POST', "http://demo.kikapptools.com/Gastos/crud/insertMovements.php");
    ProgressIndicator::Hide();
    AndroidAction::GoHome();
}
function delete()
{
    $input_boolean = new InputBoolean();
    $input_boolean = Interop::Confirm("Are you sure you want to delete this movement?");
    if ($input_boolean) {
        ProgressIndicator::ShowWithTitle("Deleting...");
        $httpC = new httpClient();
        $httpC->addVariable("idMov", $idMov_trans);
        $httpC->addVariable('value', $value);
        $httpC->addVariable('dates', $date);
        $httpC->addVariable('move_type', $move_type);
        $httpC->addVariable("id", $token);
        $httpC->Execute('POST', "http://demo.kikapptools.com/Gastos/crud/deleteMovement.php");
        ProgressIndicator::Hide();
        return;
    }
}