コード例 #1
0
ファイル: Helper.php プロジェクト: blrtromax/seobility
 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;
 }
コード例 #2
0
            </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>
コード例 #3
0
ファイル: _search_area.php プロジェクト: postfx/fermion
                </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>
コード例 #4
0
ファイル: _regionArea.php プロジェクト: postfx/fermion
<?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 
}