Exemple #1
0
    // Show feedback
    $feedback = $record->getMessage();
    // See all the queries?
    //$record->deBug();
}
$record = new Talkback($ok_record_id);
// show feedback if it isn't already set
if (!$feedback) {
    $feedback = $record->getMessage();
}
if (isset($_GET["wintype"]) && $_GET["wintype"] == "pop") {
    print "<div id=\"maincontent\">";
} else {
    $_GET["wintype"] = "";
}
echo feedBack($feedback);
/////////////////////////
// SHOW FORM
// If the form isn't suppressed, output it.  It will be blank if there's no id
/////////////////////////
if (!$no_form) {
    $record->outputForm($_GET["wintype"]);
}
//$record->deBug();
include "../includes/footer.php";
?>

<script type="text/javascript">

    $(function (){
        ///////////////
Exemple #2
0
        $record->insertRecord();
        $ok_record_id = $record->getRecordId();
    } else {
        $record->updateRecord();
    }
    // Show feedback
    $feedback = $record->getMessage();
    // See all the queries?
    //$record->deBug();
}
$record = new Record($ok_record_id);
// show feedback if it isn't already set
if (!isset($feedback)) {
    $feedback = $record->getMessage();
}
print feedBack($feedback);
if (isset($_GET["wintype"]) && $_GET["wintype"] == "pop") {
    print "<div id=\"maincontent\">";
    $wintype = "pop";
}
//echo "<div class=\"feedback\">$feedback</div><br /><br />";
// output our record, which will be blank if there's no id
?>
 

<div id="maincontent">

<?php 
$record->outputForm($wintype);
//$record->deBug();
print "</div>";
    } else {
        $feedback_name = cleanInput($_POST["fbname"]);
    }
    if (empty($_POST["fbemail"])) {
        $feedback_email_error = "See väli on kohustuslik";
    } else {
        $feedback_email = cleanInput($_POST["fbemail"]);
    }
    if (empty($_POST["feedback"])) {
        $feedback_error = "See väli on kohustuslik";
    } else {
        $feedback = cleanInput($_POST["feedback"]);
    }
}
if ($feedback_email_error == "" && $feedback_name_error == "" && $feedback_error == "") {
    $message = feedBack($feedback_name, $feedback_email, $feedback);
    if ($message != "") {
        $feedback_name = "";
        $feedback_email = "";
        $feedback = "";
        echo $message;
    }
}
?>

<head>
  <title>LOOMAKLIINIK - Log in</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<link href='http://fonts.googleapis.com/css?family=Lato&subset=latin,latin-ext' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="materialize.min.css">
<link rel="stylesheet" href="style.css">