Ejemplo n.º 1
0
<?php

ini_set('display_errors', 'on');
require_once 'include/session.php';
include "class.docket.php";
$obj = new docket();
if ($_POST) {
    $id = $_POST['id'];
    $status_name = $_POST['status_name'];
    $parent_status = $_POST['parent_status'];
    $radio_option = $_POST['radio_option'];
    $time_to_execute = $_POST['time_to_execute'];
    //session_start();
    $obj->update_status($id, $status_name, $parent_status, $radio_option, $time_to_execute);
}
$parent_id = '';
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Update Status</title>
 <link rel="stylesheet" href="css/custom.css" />
 	<link rel="stylesheet" href="css/menu.css" />
 	 <script src="js/jquery-1.8.3.min.js"></script>
    <script src="js/custom.js"></script>

</head>
<?php 
if ($_GET['action'] == 'edit') {
    $id = $_GET['id'];
    $obj->edit_status($id);