Example #1
0
						</tr>		
					</thead>
					<tbody>
						<?php 
foreach ($terminals as $n => $terminal) {
    ?>
							<tr>
								<td>
									<?php 
    echo $terminal;
    ?>
 &nbsp;
								</td>
								<td>
									<?php 
    $dropOffs = PortTo::model()->findAll();
    $shipper->dropoffCity = $n + 1;
    ?>
									<?php 
    $this->widget('SelectField', array('model' => $shipper, 'field' => 'dropoffCity', 'htmlOptions' => array('style' => 'width:100px'), 'naked' => true, 'label' => 'Drop off', 'options' => $dropOffs));
    ?>
								</td>
								<td>
									<input type="text"/>
								</td>
								<td>
									<a href="#"> remove </a>
								</td>
							</tr>
						<?php 
}
Example #2
0
	.inputable input.smallinput.datefield {
		width:100px;
	}


	.inputable.bigs input {
		width:280px;
	}

</style>

<div class="row-fluid" style="margin-bottom:15px">
	<div class="span12">
		<?php 
$dropoffs = PortTo::model()->findAll(array('order' => 'name asc'));
?>
		<!-- @TODO: toto neni drop off city -->
		<?php 
$this->widget('SelectField', array('model' => $shipper, 'field' => 'dropoffCity', 'label' => 'Port to', 'options' => $dropoffs));
?>
	</div>
</div>

<?php 
$fields = array((object) array('id' => '20', 'name' => '20\' < 14t'), (object) array('id' => '20', 'name' => '20\' < 25t'), (object) array('id' => '20', 'name' => '20\' < 29t'), (object) array('id' => '20', 'name' => '40\' < 27t'), (object) array('id' => '20', 'name' => '40\' < 32t'));
?>
<div class="row">
	<div class="span12">
		<table class="table table-condensed table-hover inputable" id="datatable">
			<thead>