Пример #1
0
<div class="row-fluid">
	<div class="span3">
		<table class="table table-condensed table-hover">
			<thead>
				<tr>
					<th>
						Name 
					</th>
					<th>
						&nbsp;			
					</th>
				</tr>
			</thead>
			<tbody>
				<?php 
$shippers = Shipper::model()->findAll(array('order' => 'name ASC'));
?>
				<?php 
foreach ($shippers as $shipper) {
    ?>
				<tr>
					<td><?php 
    echo $shipper->name;
    ?>
</td>
					<td><a href="#">update</a> | <a href="#"> remove </a> </td>
				</tr>
				<?php 
}
?>
			</tbody>
Пример #2
0
	.inputable input.smallinput.datefield {
		width:100px;
	}


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


</style>


<form method="get">
<?php 
$this->widget('SelectField', array('model' => $shipper, 'field' => 'id', 'htmlOptions' => array('id' => 'shipperId'), 'label' => 'Shipping company', 'options' => Shipper::model()->findAll(array('order' => 'name ASC'))));
?>
</form>
<form method="POST" action="<?php 
echo Yii::app()->createUrl('shipper/oceanTrade', array('shipperId' => $shipper->id));
?>
">
<input type="hidden" name="Shipper[id]" value="<?php 
echo $shipper->id;
?>
"/>
<div class="row">
	<div class="span12">
		<h3> (APL Charges) Charges </h3>
		<table class="table table-condensed table-hover inputable" id="datatable">
			<thead>