if (isset($_REQUEST["acod"])) { $_SESSION["acod"] = $_REQUEST["acod"]; } if (isset($_POST["btnsub"])) { $obj3 = new clsasg(); $obj3->asghrlprc = $_POST["txthrlrat"]; $obj3->asghrs = $_POST["txthrs"]; $obj3->asgtskcod = $_SESSION["tcod"]; $obj3->asgregcod = $_SESSION["rcod"]; $obj3->save_asg(); // header("location:frmmytsk.php"); //update tsksts $obj4 = new clstsk(); $obj4->tskcod = $_SESSION["tcod"]; $obj4->tsksts = 'G'; $obj4->updtsksts(); unset($_SESSION["tcod"]); header("location:frmmytsk.php"); } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>TaskRabbit</title> <link href="../css/style.css" rel="stylesheet" type="text/css" /> <link href="../css/bootstrap.min.css" rel="stylesheet" type="text/css" /> <link href="../css/font-awesome.min.css" rel="stylesheet" type="text/css" /> </head> <body>
} if (isset($_REQUEST["tcod"])) { $_SESSION["tcod"] = $_REQUEST["tcod"]; } if (isset($_POST["btnsub"])) { $obj = new clsrev(); $obj->revdat = date('y-m-d'); $obj->revscr = $_POST["r1"]; $obj->revdsc = $_POST["txtdsc"]; $obj2 = new clsasg(); $obj->revasgcod = $obj2->srcasgcod($_SESSION["tcod"]); $obj->save_rev(); $obj1 = new clstsk(); $obj1->tskcod = $_SESSION["tcod"]; $obj1->tsksts = 'C'; $obj1->updtsksts(); unset($_SESSION["tcod"]); header("location:frmmytsk.php"); } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>TaskRabbit</title> <link href="../css/style.css" rel="stylesheet" type="text/css" /> <link href="../css/bootstrap.min.css" rel="stylesheet" type="text/css" /> <link href="../css/font-awesome.min.css" rel="stylesheet" type="text/css" /> </head> <body>