Example #1
0
									</div>
								<?php 
}
?>
							</div>
							<?php 
echo CHtml::link('Add Client', array('client/popupSelect', 'onSelect' => 'addClient', 'popup' => true, 'for' => 'offer_client', 'offerId' => $model->off_id ?: 0, 'instructionId' => $model->instruction->dea_id), ['class' => 'btn btn-smaller btn-green', 'id' => 'add-client-button']);
?>
						</div>
					</div>
					<div class="control-group">
						<label class="control-label">Client status</label>

						<div class="controls">
							<?php 
echo CHtml::dropDownList('clientStatus', $clientStatus, CHtml::listData(ClientStatus::model()->sales()->findAll(), 'cst_id', 'cst_title'), ['empty' => '']);
?>
						</div>
					</div>
					<?php 
if ($clientsHaveDifferentStatuses) {
    ?>
						<div class="control-group">
							<div class="controls force-margin">
								<?php 
    echo $differentStatusString;
    ?>
							</div>
						</div>
					<?php 
}
Example #2
0
<?php

/**
 * @var $offerClientList Deal Owners OR deal tenants
 * @ var $clientStatusType
 * @ var $instructionType
 */
ob_start();
$data = '';
if ($offerClientList) {
    $data = $data . '<table cellpadding="2 5 2 5">';
    foreach ($offerClientList as $offerClient) {
        $data = $data . '<tr><td>';
        if (!empty($offerClient->c2o_cli)) {
            $client = Client::model()->findByPk($offerClient->c2o_cli);
            $data = $data . CHtml::link($client->fullName, Yii::app()->createUrl('admin4/client/update', ['id' => $offerClient->c2o_cli]));
        }
        $data = $data . '</td><td>';
        $data = $data . CHtml::dropDownList('Offer[clientStatus][' . $client->cli_id . ']', $client->{$clientStatusType}, [0 => ''] + CHtml::listData(ClientStatus::model()->findAll(array('scopes' => array($instructionType))), 'cst_id', 'cst_title'), ['class' => 'input-xsmall']);
        $data = $data . '</td><td>';
        $data = $data . CHtml::link(CHtml::image(Yii::app()->params["imgUrl"] . "/sys/admin/icons/cross-icon.png", "Delete"), "#", ["onClick" => "deleteClient(" . $offerClient->c2o_id . ")"]);
        $data = $data . '</td></tr>';
    }
    $data = $data . '</table>';
}
echo json_encode(array('html' => $data));
Example #3
0
					</div>
					<div class="control-group">
						<label class="control-label">
							Branch
						</label>

						<div class="controls">
							<?php 
echo $form->checkBoxList($model, 'cli_branch', CHtml::listData(Branch::model()->active()->findAll(), 'bra_id', 'bra_title'), ['separator' => ' ']);
?>
						</div>
					</div>
				</div>
				<div class="span6">
					<div class="control-group">
						<label class="control-label">
							Current Status
						</label>

						<div class="controls">
							<?php 
echo $form->checkBoxList($model, 'cli_salestatus', CHtml::listData(ClientStatus::model()->sales()->findAll(), 'cst_id', 'cst_title'));
?>
						</div>
					</div>
				</div>
			</div>
		</div>
	</fieldset>
<?php 
$this->endWidget();
				<div class="input-wrapper">
					<?php 
echo $form->dropDownList($model, 'maxPrice', $maxPrices, ['empty' => 'No Maximum']);
?>
				</div>
			</div>
		</div>

		<div class="row">
			<div class="half-cell">
				<label class="block-label">Current Position</label>

				<div class="input-wrapper">
					<?php 
echo $form->dropDownList($model, 'currentPosition', CHtml::listData(ClientStatus::model()->sales()->findAll(), 'cst_id', 'cst_title'), ['empty' => '']);
?>
				</div>
			</div>
			<div class="half-cell">
				<label class="block-label">&nbsp;</label>
				<input type="submit" value="REGISTER" class="btn full-width">
			</div>
		</div>

		<?php 
$this->endWidget();
?>
	</div>
</div>
Example #5
0
?>
		<input type="button" value="Add phone number" id="addPhoneButton" class="btn btn-green">
		<br>
	</div>
	<input type="hidden" id="lastPhoneID" value="">
	<?php 
echo $form->endControlGroup();
?>
	<?php 
echo $form->beginControlGroup($model, 'cli_salestatus');
?>
	<label class="control-label" for="cli_salestatus">Current Status</label>

	<div class="controls">
		<?php 
echo $form->dropDownList($model, "cli_salestatus", CHtml::listData(ClientStatus::model()->sales()->findAll(), 'cst_id', 'cst_title'), ['empty' => '', 'class' => 'input-small']);
?>
	</div>
	<?php 
echo $form->endControlGroup();
?>
	<div class="control-group">
		<label class="control-label">Email updates</label>

		<div class="controls">
			<?php 
echo $form->radioButtonList($model, 'cli_saleemail', Client::getEmailNotifyOptions(), ['separator' => ' ', 'class' => 'email-updates-radio']);
?>
		</div>
	</div>