本文整理匯總了PHP中project::insertProject方法的典型用法代碼示例。如果您正苦於以下問題:PHP project::insertProject方法的具體用法?PHP project::insertProject怎麽用?PHP project::insertProject使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類project
的用法示例。
在下文中一共展示了project::insertProject方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: Util
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">