示例#1
0
<?php

/**
 * @var Branch[] $branches
 * @var          $this  BookAViewing
 * @var          $model Deal
 */
/** @var $branch Branch */
$branch = Branch::model()->findByPk($model->dea_branch);
$property = new PropertyController($model->dea_id);
$propertyStatus = $property->getStatusString($model->dea_status, $model->dea_type);
$name = isset($_POST['contact']['name']) ? $_POST['contact']['name'] : "";
$email = isset($_POST['contact']['email']) ? $_POST['contact']['email'] : "";
$phoneNumber = isset($_POST['contact']['tel']) ? $_POST['contact']['tel'] : "";
$message = isset($_POST['contact']['message']) ? $_POST['contact']['message'] : "";
?>

<div class="top-widget-container narrow book-viewing-widget">
	<div class="inner-padding">
		<div class="row-fluid">
			<div class="form-header">Arrange Viewing</div>
			<div class="branch-name"><?php 
echo $branch->bra_title;
?>
</div>
			<div class="branch-telephone"><?php 
echo Locale::formatPhone($branch->bra_tel);
?>
</div>
		</div>
		<?php 
示例#2
0
文件: myClass.php 项目: srccn/f3
 function calculate()
 {
     $myRequest = $this->f3->get('REQUEST');
     //         if (! isset($myRequest['submit'])) { //in case call calculate directly, redirect to front
     //         	$this->f3->reroute('/front');
     //         }
     $myProperty = new PropertyController($myRequest);
     $myProperty->searchRate();
     echo Template::instance()->render('result.htm');
 }