Esempio n. 1
0
    extract($_POST);
    $mid = $_GET['id'];
    $addcustomer = $memo->add_customer($mid, $name, $det, $ddate, $time);
    if ($addcustomer) {
        header("Location:todaymemo.php?id={$mid}");
        $_SESSION['msg'] = "Customer Create Successful";
    } else {
        $msg = "Please Enter A Customer Name";
    }
}
include 'layouts/header.php';
include 'layouts/sidebar_layout.php';
?>
<div class="main_body">
	<div class="headline"><?php 
$memo->show_today_or_not($cid);
?>
		<a href="costs.php?id=<?php 
echo "{$cid}";
?>
">Your Cost</a>
	</div>

	<div class="col-sm-12 cfrom">
	<h4>Add Your Customer</h4>
	<p class="session_msg f_none"><?php 
if (@$msg) {
    echo $msg;
    if (@$_SESSION['msg']) {
        echo $_SESSION['msg'] = "";
    }