$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 if ($propertyStatus && $propertyStatus == 'Under Offer') { ?> <div class="row-fluid property-under-offer"> This property is currently <?php echo $propertyStatus; ?> </div> <?php } ?> <?php
<?php /** * @var $this InstructionController * @var $owner Client * @var $model Deal * @var $client Client * */ ?> <fieldset> <div class="block-header">Text message</div> <div class="content"> <h6>Vendor: <?php echo CHtml::link($owner->getFullName(), ['client/update', 'id' => $owner->cli_id]); ?> </h6> <?php echo $this->renderPartial('application.modules.admin4.views.sms.textForm', array('client' => $owner, 'defaultText' => $client->getFullName() . ' wants to view your property. Please contact them on ' . Locale::formatPhone($client->getPrimaryPhoneNumber()) . ' or ' . $client->email . '. W&S', 'callback' => isset($callback) ? $callback : null)); ?> </div> </fieldset>
<?php /** * @var $this InstructionController * @var $client Client * @var $model Deal * @var $owner Client * */ $text = "{$client->getFullName()} wants to view your property. Please call them to arrange a time and date.\nThey can be contacted on " . ($client->getPrimaryPhoneNumber() ? Locale::formatPhone($client->getPrimaryPhoneNumber()) : '') . " or at {$client->email}. Regards, W&S."; $id = uniqid(); ?> <fieldset id="<?php echo $id; ?> "> <div class="block-header">Email</div> <div class="content"> <form class="email-notification"> <div class="classssss"></div> <div class="control-group"> <label class="control-label">To</label> <div class="controls"> <?php echo CHtml::textField('to_name', $owner->getFullName()); ?> </div> </div> <div class="control-group"> <label class="control-label">Email</label>
?> <tr> <td><?php echo CHtml::link(CHtml::image(Icon::EDIT_ICON, 'edit', ['style' => 'vertical-align:middle']), ['client/update', 'id' => $client->cli_id]); ?> </td> <td><?php echo $client->getFullName(); ?> </td> <td><?php echo $client->email; ?> </td> <td><?php echo $client->telephones[0] ? Locale::formatPhone($client->telephones[0]->tel_number) : ''; ?> </td> </tr> <?php } ?> </table> </div> </div> </div> <?php } ?> </div>