Beispiel #1
0
 public static function adminLink($url, $text = 'Create')
 {
     $view = '';
     if (Yii::app()->user->checkAccess('admin')) {
         $view .= '<div class = "b-admin_edit">';
         $view .= BsHtml::link(Yii::t('main', $text), $url, array('icon' => BsHtml::GLYPHICON_PENCIL, 'class' => 'btn btn-default btn-sm'));
         $view .= '</div>';
     }
     return $view;
 }
            </tr>
        <?php 
}
?>
            <tr>
                <th></th>
                <th>Итого</th>
                <th></th>
                <th></th>
                <th><?php 
echo $totalCost;
?>
</th>
                <th><?php 
echo $totalDuration;
?>
</th>
                <th></th>
            </tr>
    </tbody>
</table>

<?php 
echo $form->textAreaControlGroup($formModel, 'comment', array('disabled' => "disabled"));
?>

<div style="margin: 20px 0">
    <?php 
echo BsHtml::link('Примеры наших работ', '/clients/primeryi-rabot', array('target' => '_blank'));
?>
</div>
Beispiel #3
0
                </div>
                <div class="col-xs-6">
                    <div class="checkbox aw_check">
                        <input type="checkbox" id="hasPhoto" name="hasPhoto">
                        <label for="hasPhoto">
                            С фото
                        </label>
                    </div>
                </div>
            </div>
        </div>
        <div class="sf_el">

        </div>
        <!--div class="sf_el text-right">
            <?php 
echo BsHtml::link('Подробный поиск', '#', array('onclick' => 'return false;'));
?>
        </div-->
    </div>
</div>

<?php 
echo BsHtml::linkButton('Найти', array('color' => BsHtml::BUTTON_COLOR_SUCCESS, 'block' => true, 'icon' => BsHtml::GLYPHICON_SEARCH, 'url' => '#', 'onclick' => 'return false;', 'id' => 'sa_submit'));
?>

<div class="add_search_area">
    <?php 
echo BsHtml::link('Подробный поиск', '#', array('onclick' => 'return false;'));
?>
</div>
Beispiel #4
0
<?php

if (Yii::app()->db->createCommand()->select('COUNT(`id`)')->from('region')->queryScalar() > 1) {
    ?>

    <?php 
    $regions = Yii::app()->db->createCommand()->select('id, name')->from('region')->order('zIndex ASC, id ASC')->queryAll();
    ?>
    <div id="regionArea">
        <div class="container">
            <div id="changeRegion">
                <?php 
    foreach ($regions as $region) {
        ?>
                    <?php 
        echo BsHtml::link($region['name'], '#', array('region_id' => $region['id']));
        ?>
                    <span>|</span>
                <?php 
    }
    ?>
            </div>
        </div>
    </div>

<?php 
}