<div class="row-fluid"> <div class="span3"> <table class="table table-condensed table-hover"> <thead> <tr> <th> Name </th> <th> </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>
.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>