コード例 #1
0
ファイル: FeaturesApi.php プロジェクト: romeo14/pow
 public static function getFeaturesById($id)
 {
     return CategoryFeatures::model()->findByPk($id);
 }
コード例 #2
0
ファイル: update.php プロジェクト: romeo14/pow
				<ul>
					<li><span><label for="luggageSpaceAvailable">Luggage Space Available</label></span>
					<?php 
echo $form->dropDownList($model, 'luggage_space', array('empty' => 'Select', 'ENOUGH FOR MOVE A SMALL ONE ROOM APPARTMENT' => 'ENOUGH FOR MOVE A SMALL ONE ROOM APPARTMENT', 'ENOUGH FOR LARGE SIZE BAG' => 'ENOUGH FOR LARGE SIZE BAG', 'ENOUGH FOR MEDIUM SIZE BAG' => 'ENOUGH FOR MEDIUM SIZE BAG', 'ENOUGH FOR SMALL BRIEFCASE' => 'ENOUGH FOR SMALL BRIEFCASE', 'UNSPECIFIED' => 'UNSPECIFIED'), array('maxlength' => 255));
?>
</li>
					<li><?php 
echo $form->error($model, 'luggage_space');
?>
</li>
				</ul>

				<ul>
					<li><span><label for="wheelFeatures">Wheel Features</label></span>  </li>
					<li><div class="chkbox avg"><?php 
echo CHtml::checkBoxList('feature_id', $modelFeatures, CHtml::listData(CategoryFeatures::model()->findAll(), 'id', 'feature'));
?>
</div></li>
					<li>
					<?php 
echo $form->error($model, 'feature_id');
?>
</li>
				</ul>

				<ul>
					<li><span><label for="comments">Comments</label></span>  
					<?php 
echo $form->textArea($model, 'comments');
?>
</li>