Exemplo n.º 1
0
    $mes = editAdmin($id);
} elseif ($act == "delAdmin") {
    $mes = delAdmin($id);
} elseif ($act == "addProv") {
    $mes = addProv();
} elseif ($act == "editProv") {
    $where = "id={$id}";
    $mes = editProv($where);
} elseif ($act == "delProv") {
    $where = "id={$id}";
    $mes = delProv($where);
} elseif ($act == "addCity") {
    $mes = addCity();
} elseif ($act == "editCity") {
    $where = "id={$id}";
    $mes = editCity($where);
} elseif ($act == "delCity") {
    $where = "id={$id}";
    $mes = delCity($where);
} elseif ($act == "addUser") {
    $mes = addUser();
} elseif ($act == "editUser") {
    $mes = editUser($id);
} elseif ($act == "delUser") {
    $mes = delUser($id);
}
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
Exemplo n.º 2
0
function editCity_action($mysqli)
{
    $data = editCity($mysqli);
    require "templates/editCity.php";
}