示例#1
0
echo Yii::$app->user->isGuest ? 'Guest' : Yii::$app->user->identity->username;
?>
                                            <small>Member since Nov. <?php 
echo date('Y');
?>
</small>
                                        </p>
                                    </li>                                    
                                    <!-- Menu Footer-->
                                    <li class="user-footer">
                                        <div class="pull-left">
                                            <a href="#" class="btn btn-default btn-flat">Profile</a>
                                        </div>
                                        <div class="pull-right">
                                            <?php 
echo Yii::$app->user->isGuest ? yii\bootstrap\Html::a('Login', yii\helpers\Url::to(['/site/login']), ['class' => 'btn btn-default btn-flat']) : yii\bootstrap\Html::a('Logout', yii\helpers\Url::to(['/site/logout']), ['class' => 'btn btn-default btn-flat']);
?>
                                        </div>
                                    </li>
                                </ul>
                            </li>
                        </ul>
                    </div>
                </nav>
            </header>        
            <?php 
require 'left_menu.php';
?>
            <div class="content-wrapper">  
                <section class="content-header">
                    <h1>
示例#2
0
use app\models\Fregat\Grupa;
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use kartik\select2\Select2;
use app\func\Proc;
/* @var $this yii\web\View */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="materialfilter-form">
    <div class="form-group">
        <div class="row">
            <div class="col-xs-12">
                <?php 
echo yii\bootstrap\Html::input('text', null, null, ['class' => 'form-control inputuppercase searchfilterform', 'placeholder' => 'ПОИСК...', 'autofocus' => true]);
?>
            </div>
        </div>
    </div>

    <?php 
$form = ActiveForm::begin(['options' => ['id' => $model->formName() . '-form', 'data-pjax' => true]]);
?>
    <div class="insideforms">

        <div class="panel panel-<?php 
echo Yii::$app->params['panelStyle'];
?>
 panelblock">
            <div class="panel-heading"><?php 
示例#3
0
文件: index.php 项目: jibendi/shinda2
</h3>
  </div>
  <div class="panel-body">
          <?php 
if (Yii::$app->session->hasFlash('success')) {
    ?>
<div class="alert alert-success" role="alert">
    <a class="close" data-dismiss="alert" href="#" aria-hidden="true">&times;</a>
    <?php 
    echo Yii::$app->session->getFlash('success');
    ?>
<span class="glyphicon glyphicon-ok"></span>
</div>
<?php 
}
?>
<div class="urine-index">

    <?php 
echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => ['fk_person', ['label' => 'Names', 'format' => 'raw', 'value' => function ($model, $key, $index, $widget) {
    return $model->fkPerson->names;
}], ['attribute' => 'date_visit', 'value' => 'date_visit', 'filter' => \yii\jui\DatePicker::widget(['model' => $searchModel, 'attribute' => 'date_visit', 'options' => ['class' => 'form-control'], 'clientOptions' => ['changeMonth' => true, 'changeYear' => true, 'maxDate' => 'today'], 'language' => 'en', 'dateFormat' => 'yyyy-MM-dd']), 'format' => 'html'], 'time_visit', ['attribute' => 'Basics', 'format' => 'raw', 'value' => function ($model) {
    return yii\bootstrap\Html::a('Urine basic', ["urine/update/{$model->id}"], ['class' => 'btn btn-xs btn-link']);
}], ['attribute' => 'Results', 'format' => 'raw', 'value' => function ($model) {
    return yii\bootstrap\Html::a('Result', ["urine/updateresults/{$model->id}"], ['class' => 'btn btn-xs btn-link']);
}]]]);
?>

</div>
</div>
</div>
示例#4
0
文件: index.php 项目: nirantarnoy/st2
}
?>
        </div>
       <?php 
if (isset($_SESSION['module']) && $_SESSION['module'] != 2) {
    ?>
        <div class="row">
            <div class="col-md-2">
                 <label class="control-label col-sm-3" for="inputSuccess3">Sale</label>
            </div>
            <div class="col-sm-10">
                 
               
                <div class="col-sm-9">
                    <?php 
    echo yii\bootstrap\Html::dropDownList('sale_id', null, ArrayHelper::map($saledata->find()->all(), 'Sale_Code', 'Sale_Name'), ['prompt' => '*', 'class' => 'form-control']);
    ?>
                </div>
                
            </div>
        </div>
            <?php 
}
?>
    </div>
    <div class="panel-footer">
       
        <button type="submit" class="btn btn-primary">พิมพ์รายงาน</button>
       
    </div>
    
示例#5
0
文件: _form.php 项目: skamnev/members
        <?php 
echo Html::a('Back', ['cms-pages-categories/view', 'category_id' => $categoryModel->id], ['class' => 'btn btn-primary']);
?>
        <?php 
echo Html::submitButton($model->isNewRecord ? Yii::t('backend', 'Create') : Yii::t('backend', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
        <?php 
echo Html::a(Yii::t('backend', 'Preview'), ["preview", 'category_id' => $categoryModel->id, 'id' => $model->id], ['class' => 'btn btn-success', 'target' => '_blank']);
?>
    </div>
    <p>
        <?php 
$frontend_url = Yii::$app->urlManagerFrontEnd->createAbsoluteUrl(['/article/' . $categoryModel->id . '/' . ($model->identifier ? $model->identifier : $model->id)]);
?>
        <?php 
echo yii\bootstrap\Html::textInput('frontend_link', $frontend_url, ['maxlength' => true, 'style' => 'width: 100%', 'disabled' => 'disabled']);
?>
    </p>

    <?php 
echo $form->errorSummary($model);
?>

    <?php 
$language_items = [];
$redactorClientOptions = ['imageManagerJson' => ['/redactor/upload/image-json'], 'imageUpload' => ['/redactor/upload/image'], 'fileUpload' => ['/redactor/upload/file'], 'lang' => Yii::$app->language, 'plugins' => ['fontsize', 'bufferbuttons', 'fontcolor', 'imagemanager', 'emotions']];
foreach ($languages as $key => $language) {
    $field_title = $form->field($model, "title_{$language->url}")->textInput(['maxlength' => true])->label('Page Title');
    $field_content = $form->field($model, "content_{$language->url}")->widget(\yii\redactor\widgets\Redactor::className(), ['clientOptions' => $redactorClientOptions]);
    $field_content_heading = $form->field($model, "content_heading_{$language->url}")->textInput(['maxlength' => true])->label(Yii::t('backend', 'Page Heading'));
    $field_meta_keywords = $form->field($model, "meta_keywords_{$language->url}")->textarea(['rows' => 4])->label(Yii::t('backend', 'Page Keywords'));
<?php

use yii\bootstrap\Html;
include 'ChromePhp.php';
require_once 'FirePHPCore/FirePHP.class.php';
$firstClass = "active";
$fire_php = FirePHP::getInstance(true);
ob_start();
//$fire_php->info($this);
$fire_php->group(array("this" => "is", "group" => "output"));
$fire_php->table("table", $user);
$fire_php->groupEnd();
$thumbs_icon = yii\bootstrap\Html::icon("thumbs-up");
$justMyRepIdVal = array();
foreach ($myrep as $val) {
    $justMyRepIdVal[] = $val['rep_id'];
}
?>
<div class="panel panel-default" xmlns="http://www.w3.org/1999/html">
    <div
        class="panel-heading"><?php 
echo Yii::t('UserModule.views_profile_reputation', '<strong>Reputation & Priviledges</strong> of this user');
?>
</div>


    <div class="panel-body">

        <?php 
$firstClass = "active";
?>
示例#7
0
                            <th>#</th>
                            <th>Paymnt Number</th>
                            <th>Date</th>
                            <th>Status</th>
                            <th>Method</th>
                            <th>Value</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php 
$i = 1;
$tpyval = 0;
foreach ($model->payments as $payment) {
    echo Html::beginTag('tr');
    echo '<td>' . $i . '</td>';
    echo '<td>' . yii\bootstrap\Html::a($payment->number, ['/accounting/payment/view', 'id' => $payment->id]) . '</td>';
    echo '<td>' . $payment->date . '</td>';
    echo '<td>' . $payment->nmStatus . '</td>';
    echo '<td>' . $payment->paymentMethod->method . '</td>';
    echo Html::beginTag('td');
    $pyval = 0;
    foreach ($payment->items as $item) {
        $pyval += $item->value;
    }
    echo number_format($pyval, 0);
    echo Html::endTag('td');
    echo Html::endTag('tr');
    $tpyval += $pyval;
    $i++;
}
echo Html::beginTag('tr');
            <div class="form-group">
                <?php 
echo $form->labelEx($calendarEntry, 'description');
?>
                <?php 
echo $form->textArea($calendarEntry, 'description', array('class' => 'form-control', 'rows' => '3', 'placeholder' => Yii::t('CalendarModule.views_entry_edit', 'Description')));
?>
            </div>
            <div class="form-group">
                <?php 
echo $form->labelEx($calendarEntry, 'color');
?>
		<div class="input-group event-color-chooser">
		 <?php 
echo yii\bootstrap\Html::activeTextInput($calendarEntry, 'color', ['class' => 'form-control', 'id' => 'event-color-picker']);
?>
		 <span class="input-group-addon"><i></i></span>
		</div>
            </div>
            <div class="form-group row">
                <div class="col-md-6">
                <div class="checkbox">
                    <label>
                        <?php 
echo $form->checkBox($calendarEntry, 'is_public', array());
?>
 <?php 
echo $calendarEntry->getAttributeLabel('is_public');
?>
                    </label>
示例#9
0
</style>

<div class="site-index">

    <?php 
if (Yii::$app->user->isGuest) {
    ?>
        <div class="jumbotron">
            To access the Calculator please
            <?php 
    echo yii\bootstrap\Html::a('register', ['site/register']);
    ?>
            or 
            <?php 
    echo yii\bootstrap\Html::a('login', ['site/login']);
    ?>
        </div>    
        <?php 
} else {
    ?>


        <div class="row-fluid">

            <div class="col-md-8 well">

                <div id="calc-board">
                    <div class="row-fluid">              
                        <a href="#" class="btn btn-danger" data-meth="reset">C</a>
                    </div>
示例#10
0
    ?>
, <?php 
    echo $row['region'];
    ?>
 </span> </span>
                        <div class="ads-image">


                            <h1 class="pricetag">Rp. <?php 
    echo $row['price'];
    ?>
</h1>
                            <div class="bx-wrapper" style="max-width: 100%;">
                                <div class="bx-viewport" style="width: 100%; overflow: hidden; position: relative; height: 550px;">
                                    <?php 
    echo \yii\bootstrap\Carousel::widget(['items' => $item, 'options' => ['class' => 'slide'], 'controls' => [yii\bootstrap\Html::tag('span', '', ['class' => 'glyphicon glyphicon-chevron-left']), yii\bootstrap\Html::tag('span', '', ['class' => 'glyphicon glyphicon-chevron-right'])]]);
    ?>

                                </div>
                            </div>

                        </div>

                        <div class="Ads-Details">
                            <h5 class="list-title"><strong>Ads Details</strong></h5>
                            <div class="row">
                                <div class="ads-details-info col-md-8">
                                    <?php 
    echo $row['description'];
    ?>
                                </div>