Beispiel #1
0
require_once 'class/areawises/areawises.php';
$Util = new Util();
require_once 'common/include/alert.php';
$alert = new alert();
if (isset($_POST['areawise']) && $_POST['areawise'] != "" && isset($_POST["name"]) && isset($_POST['picture']) && isset($_POST['summary']) && isset($_POST['description'])) {
    $project = new objProject();
    $project->setID(0);
    $project->setCateID(1);
    $project->setAreaID($_POST['areawise']);
    $project->setName($_POST["name"]);
    $project->setPicture($_POST['picture']);
    $project->setSummary($_POST['summary']);
    $project->setDescription($_POST['description']);
    $project->setStatus(1);
    $doInsert = new project();
    $doInsert->insertProject($project, $conn, $alert);
}
?>
<script>
    $(document).ready(function(){
        $("#frmAdd").validationEngine('attach', {promptPosition : "centerLeft", autoPositionUpdate : true});
    });
</script>
<h2>
    Add Realestate
    <span class="l"></span><span class="r"></span>
</h2>
<div class="hide"><span class="s">Show</span><span class="h">Hide</span></div>
<div class="block">
    <div class="block_in">
        <div class="grid_12">