Example #1
0
<?php 
echo CHtml::beginForm();
?>
<table class="list">
    <tbody>
        <tr>
            <td>Логин</td>
            <td><?php 
echo Chtml::textField('filter[username]', array_key_exists('username', $filter) ? $filter['username'] : '');
?>
</td>
        </tr>
        <tr>
            <td><a href="javascript: void(0)" onClick="location.href='/admin/roles/authmanager/assignment'">Сбросить фильтр</a></td>
            <td><?php 
echo Chtml::button('Найти', array('name' => 'btn_filter', 'onClick' => 'saveFilter()'));
?>
</td>
        </tr>                
    </tbody>            
</table>
<?php 
echo CHtml::endForm();
?>
<br /><br />

<table class="list" id="roles">
    <tbody>
        <tr class="top-table" >
            <th class="photo">Логин</th>
            <th class="photo">Email</th>
Example #2
0
echo $form->dropDownList($model, 'table', array(1, 2, 3, 4, 5, 6, 7, 8, 9), array('class' => 'form-control'));
?>
 &nbsp; &nbsp;

            </div>
            <div class="col-xs-3">

                <label>официант</label>
                <?php 
echo $form->dropDownList($model, 'employee_id', CHtml::listData(Employee::model()->findAll(), 'employee_id', 'name'), array('class' => 'form-control'));
?>
            </div>
            <div class="col-xs-3">

                <?php 
echo Chtml::button('Текущие заказы', array('type' => 'button', 'class' => 'btn btn-info pull-right', 'id' => 'orders'));
?>
            </div>
            <div class="col-xs-3">
                <label>Долг</label>
                <?php 
echo $form->checkBox($model, 'debt', array('class' => 'form-control'));
?>
            </div>
            <?php 
echo $form->textField($model, 'comment', array('style' => 'display:none'));
?>
        </div>
        <div class="tab-panels" id="data">
                    
        </div>