Exemplo n.º 1
0
/**
 * Copyright (c) 2016. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
 * Morbi non lorem porttitor neque feugiat blandit. Ut vitae ipsum eget quam lacinia accumsan.
 * Etiam sed turpis ac ipsum condimentum fringilla. Maecenas magna.
 * Proin dapibus sapien vel ante. Aliquam erat volutpat. Pellentesque sagittis ligula eget metus.
 * Vestibulum commodo. Ut rhoncus gravida arcu.
 */
/**
 * Created by PhpStorm.
 * User: alejandro.sosa
 * Date: 24/06/2016
 * Time: 14:48
 */
use kartik\grid\GridView;
/* @var $this yii\web\View */
/* @var $searchModel common\models\buscadores\UsuariosBuscador */
/* @var $dataProvider yii\data\ActiveDataProvider */
?>

<?php 
echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'layout' => "\n{items}\n", 'columns' => [['header' => 'Id', 'attribute' => 'idusuario', 'filter' => false, 'mergeHeader' => true], ['header' => 'Propietario', 'value' => function ($data) {
    return $data->nombre;
}, 'filter' => false, 'mergeHeader' => true], ['header' => 'Municipio', 'value' => function ($data) {
    return $data->municipios->nombre;
}, 'filter' => false, 'mergeHeader' => true], ['header' => 'Correo', 'attribute' => 'correo', 'filter' => false, 'mergeHeader' => true], ['attribute' => 'fechacreado', 'filter' => false, 'value' => function ($data) {
    return $data->fechacreado;
}, 'mergeHeader' => true], ['class' => '\\kartik\\grid\\ActionColumn', 'template' => '{view}', 'width' => '40px', 'header' => '', 'buttons' => ['view' => function ($url, $model) {
    $url = Yii::$app->urlManager->createUrl(['usuarios/detalle', 'id' => $model->idusuario]);
    $options = ['title' => 'Ver usuario'];
    return yii\helpers\Html::a('<span class="glyphicon glyphicon-share-alt"></span>', $url, $options);
}]]]]);
Exemplo n.º 2
0
            
            <?php 
if (BreadcrumbsPanel::$links) {
    ?>
                <?php 
    echo Breadcrumbs::widget(\yii\helpers\ArrayHelper::merge($widget->breadcrumbsOptions, ['options' => [], 'links' => BreadcrumbsPanel::$links]));
    ?>
            <?php 
}
?>
            
            <?php 
if ($widget->backLink) {
    ?>
                <?php 
    echo yii\helpers\Html::a($widget->backLink, Yii::$app->user->getReturnUrl(), ['class' => 'back-link']);
    ?>
            <?php 
}
?>
        </div>
    </div>
    <div class="content-panel">
        <div class="breadcrumbs-cell">
            <?php 
echo $widget->content;
?>
        </div>
    </div>
</div>
Exemplo n.º 3
0
/**
 * @var yii\web\View $this
 * @var app\modules\auth\models\forms\Login $model
 * @var yii\bootstrap\ActiveForm $form
 */
$this->title = Yii::t('app', 'Password recovery');
?>
<div class="site-login">
    <?php 
if (Yii::$app->session->hasFlash('success')) {
    ?>
        <?php 
    echo Yii::$app->session->getFlash('success');
    ?>
        <?php 
    echo yii\helpers\Html::a(Yii::t('app', 'Home Page'), ['/'], ['class' => 'btn btn-primary']);
    ?>
    <?php 
} else {
    ?>

        <h1><?php 
    echo yii\helpers\Html::encode($this->title);
    ?>
</h1>

        <?php 
    $form = yii\bootstrap\ActiveForm::begin(['id' => 'forgot-form', 'options' => ['class' => 'form-horizontal'], 'fieldConfig' => ['template' => "{label}\n<div class=\"col-lg-4\">{input}\n{hint}</div>\n<div class=\"col-lg-4\">{error}</div>", 'labelOptions' => ['class' => 'col-lg-1 control-label']]]);
    ?>

        <?php 
Exemplo n.º 4
0
<?php 
if (Yii::$app->user->identity->isAdmin) {
    ?>

    <div class="row">
        <div class="col-sm-6">
            <!-- Default box -->
            <div class="box">
                <div class="box-header">
                    <h3 class="box-title">Modules</h3>
                </div>
                <div class="box-body">
                    <?php 
    foreach (\Yii::$app->getModules() as $name => $m) {
        $module = \Yii::$app->getModule($name);
        echo yii\helpers\Html::a($module->id, ['/' . $module->id], ['class' => 'btn btn-default btn-flat']);
    }
    ?>
                </div>
                <!-- /.box-body -->
                <div class="box-footer">
                    <small>Registered in application from configuration or bootstrapping.</small>
                </div>
                <!-- /.box-footer-->
            </div>
            <!-- /.box -->
        </div>

        <div class="col-sm-6">
            <!-- Default box -->
            <div class="box">
Exemplo n.º 5
0
    $remain = $model->sisa > 0 ? $d1->diff($d2)->days : false;
    $label_color = 'label-default';
    $label_color = $remain <= 14 ? 'label-success' : $label_color;
    $label_color = $remain <= 7 ? 'label-warning' : $label_color;
    $label_color = $remain <= 0 ? 'label-danger' : $label_color;
    ?>
    <li class="item" style="<?php 
    if ($index > 10000) {
        ?>
border-top: 1px whitesmoke solid;<?php 
    }
    ?>
 padding: 10px;">
        <div class="product-info">
            <?php 
    echo yii\helpers\Html::a($model->number, ['/accounting/invoice/view', 'id' => $model->id]);
    ?>
            <span class="label <?php 
    echo $label_color;
    ?>
 pull-right"><?php 
    echo number_format($model->sisa, 0);
    ?>
 </span>
            <span class="product-description">
                <?php 
    echo 'Supplier ' . $model->vendor->name . '; due date ' . $model->DueDate;
    ?>
            </span>
            <span class="product-description">
                <?php 
Exemplo n.º 6
0
echo \yii\helpers\Html::a($task->title, ['task/view', 'id' => $task->id], ['data-toggle' => 'modal', 'data-target' => '#modal', 'class' => $task->done ? 'task-done' : '']);
?>
        <div class="params">
            <?php 
echo \yii\helpers\Html::tag('span', $task->prioritize . ' приоритет', ['class' => 'prioritize']);
?>
            <?php 
if ($task->dedline) {
    echo \yii\helpers\Html::tag('span', 'Закончить до: ' . $task->dedline, ['class' => 'dedline']);
}
?>
        </div>

    </div>
    <div class="col-xs-5 col-sm-3 col-md-3 text-center">
        <div class="btn-group ">
            <?php 
echo yii\helpers\Html::a('', ['/task/increase-prioritize', 'id' => $task->id], ['name' => 'increasePrioritize', 'class' => 'btn btn-half-l btn-default glyphicon glyphicon-arrow-up']);
?>
            <?php 
echo yii\helpers\Html::a('', ['/task/decrease-prioritize', 'id' => $task->id], ['name' => 'increasePrioritize', 'class' => 'btn btn-half-r btn-default glyphicon glyphicon-arrow-down']);
?>
            <?php 
echo yii\helpers\Html::a('', ['/task/update', 'id' => $task->id], ['class' => 'btn btn-default glyphicon glyphicon-pencil', 'data-toggle' => 'modal', 'data-target' => '#modal']);
?>
            <?php 
echo yii\helpers\Html::a('', ['/task/delete', 'id' => $task->id], ['class' => 'btn btn-default glyphicon glyphicon-trash', 'name' => 'delete']);
?>
        </div>
    </div>
</li>
Exemplo n.º 7
0
<ul>
<?php 
foreach ($albums as $album) {
    ?>
    <li><?php 
    echo yii\helpers\Html::a($album->name, ['/photo/album/show', 'id' => $album->id]);
    ?>
</li>
<?php 
}
?>
</ul>
Exemplo n.º 8
0
                      'header' => Yii::t('app',"Select Company"),
                      //'width' => '800',
                      )); */
echo Yii::t('app', "Select Company");
?>

                    <?php 
echo app\widgets\GridView::widget(array('id' => 'comp-grid', 'dataProvider' => $model->search([]), 'pjax' => false, 'columns' => array(array('attribute' => 'id', 'value' => function ($data) {
    return $data->id;
}), array('attribute' => 'Name', 'value' => function ($data) {
    return $data->getName();
}, 'format' => 'raw'), array('attribute' => 'User', 'filter' => '', 'value' => function ($data) {
    return $data->user->username;
}), array('class' => 'yii\\grid\\ActionColumn', 'template' => '{delete}', 'buttons' => array('delete' => function ($url, $model, $key) {
    $url = yii\helpers\BaseUrl::base() . "/company/deletepermission/" . $model->id;
    return yii\helpers\Html::a('<i class="glyphicon glyphicon-remove"></i>', $url);
    //,['data-method' => 'post', 'data-confirm' => 'Are you sure you want to delete this item?']
    //'url' => 'yii\helpers\BaseUrl::base().("accounts/update", array("id"=>$data->id))',
})))));
//app\widgets\MiniForm::end();
?>






                </div><!-- tab-pane -->
            </div><!-- tab-content -->
        </div><!-- form -->
    </div><!-- text-center -->
Exemplo n.º 9
0
    <?php 
echo $form->field($model, 'username');
?>

    <?php 
echo $form->field($model, 'password')->passwordInput();
?>


    <?php 
echo $form->field($model, 'rememberMe')->checkbox();
?>

    <div class="form-group">
        <div class="col-lg-offset-1 col-lg-11">
            <?php 
echo yii\helpers\Html::submitButton(Yii::t('app', 'Login'), ['class' => 'btn btn-primary', 'name' => 'login-button']);
?>

            <?php 
echo yii\helpers\Html::a(Yii::t('app', 'Forgot password?'), ['forgot'], ['class' => 'btn btn-link']);
?>
        </div>
    </div>

    <?php 
ActiveForm::end();
?>

</div>
Exemplo n.º 10
0
<?php

/* @var $this yii\web\View */
$this->title = 'Crowd Notes - Dashboard';
?>
<div class="site-index">
    <h1>Dashboard</h1>
    <div class="text-center">
        <?php 
echo yii\helpers\Html::a('Frontend', Yii::$app->urlManagerFrontend->createUrl(['site/index']), ['class' => 'btn btn-default btn-lg']);
?>
    </div>
</div>
Exemplo n.º 11
0
echo $course->name;
?>
</td>
                </tr>
                <tr>
                    <td valign="top"><strong>Description</strong></td>
                    <td><?php 
echo $course->description;
?>
</td>
                </tr>
                <tr>
                    <td><strong>Created at</strong></td>
                    <td>
                        <?php 
echo date("M j, Y, g:i a", strtotime($course->created_at));
?>
                    </td>
                </tr>
            </table>


            <p class="text-right">
                <?php 
echo yii\helpers\Html::a('Videos', ['video/index', 'VideoSearch[courseName]' => $course->name], ['class' => 'btn btn-primary btn-xs']);
?>
            </p>
        </div>
    </div>
</div>
Exemplo n.º 12
0
 public function showCreateLink($sheet)
 {
     return yii\helpers\Html::a("create", array("balance-amount/create-master", "item_id" => $this->id, 'sheet_id' => $sheet->id));
 }
Exemplo n.º 13
0
<?php

return ['yii\\grid\\ActionColumn' => ['class' => 'app\\components\\ActionColumn', 'visibleCallback' => function ($name, $model) {
    return method_exists($model, 'visibleButton') ? call_user_func([$model, 'visibleButton'], $name) : true;
}, 'buttons' => ['apply' => function ($url, $model) {
    return yii\helpers\Html::a('<span class="glyphicon glyphicon-save"></span>', $url, ['title' => Yii::t('yii', 'Apply'), 'data-confirm' => Yii::t('yii', 'Are you sure you want to apply this item?'), 'data-method' => 'post', 'data-pjax' => '0']);
}]]];
Exemplo n.º 14
0
 /**
  * Get the link to commentable entity
  *
  * @return string
  */
 public function getCommentableLink()
 {
     return yii\helpers\Html::a($this->getCommentableType() . '/' . $this->commentable_id, [$this->getCommentableUrl()]);
 }
Exemplo n.º 15
0
<div class="container" style="margin-top: 160px; text-align: center">
    <div class="col-lg-8 col-lg-offset-2">
        <?php 
echo Yii::$app->session->getFlash('success');
?>
    <div style="font-size: 22px">
        <p>
        Iklan Anda akan tayang setelah dilakukan pengecekan berdasarkan syarat dan ketentuan diadoo.<br>
        Pemasangan iklan diluar jam kerja akan ditinjau pada jam kerja hari berikutnya. diadoo.com
        </p>
    </div>
        <br>
        <div>
            <?php 
echo yii\helpers\Html::a('View Your Classified', ['detail-classified', 'id' => $model->id], ['class' => 'btn btn-primary btn-large d-font-size']);
?>
            OR
            <?php 
echo yii\helpers\Html::a('Post Classified Again', ['post-classified'], ['class' => 'btn btn-orange btn-large d-font-size']);
?>
        </div>
    </div>
</div>
Exemplo n.º 16
0
<?php

use yii\helpers\Inflector;
?>

<div class="crud-default-index">
    <h1><?php 
echo $this->context->action->uniqueId;
?>
</h1>

    <div class="box">
        <div class="box-header">
            <h3 class="box-title">Module Controllers</h3>
        </div>
        <div class="box-body">
            <?php 
foreach (\Yii::$app->getModule('admin')->getControllers($this->context->module->id) as $i => $controller) {
    echo yii\helpers\Html::a(Inflector::camel2words(Inflector::id2camel($controller)), ["/{$this->context->module->id}/{$controller}"], ['class' => 'col-sm-3 btn btn-lg btn-default btn-flat']);
}
?>
            <div class="clearfix"></div>
        </div>
        <!-- /.box-body -->
    </div>

</div>
Exemplo n.º 17
0
    Пользователь
    </br>
    Кошельки
    </br>
        
    <h3>Ежемесячно <small>(доходы / расходы)</small> <span class="label label-default">New</span></h3>
    <!-- Tab panes -->
    <div class="tab-content">
        <div role="tabpanel" class="tab-pane active" id="home">
            <div class="panel panel-default" style="margin: 10px auto;"> 
                <div class="panel-body"> 

                    <?php 
echo yii\grid\GridView::widget(['dataProvider' => $dataProvider, 'columns' => [['attribute' => 'catalog.name', 'label' => 'Статья', 'format' => 'html', 'value' => function ($model) {
    return yii\helpers\Html::a($model->catalog->name, yii\helpers\Url::toRoute(['catalog/view', 'id' => $model->catalog->id]));
}], ['attribute' => 'amount', 'label' => 'Размер, ₽'], ['attribute' => 'period.name', 'label' => 'Период'], ['attribute' => 'source.name', 'label' => 'Источник'], ['attribute' => 'date', 'format' => 'date', 'label' => 'Дата начала'], ['attribute' => 'enddate', 'label' => 'Окончание', 'format' => 'html', 'value' => function ($model) {
    return $model->enddate ? $model->enddate : "-";
}]], 'emptyText' => '-', 'showFooter' => true]);
?>
              

                </div> 
            </div>            
        </div>
        <div role="tabpanel" class="tab-pane" id="profile">2..</div>
        <div role="tabpanel" class="tab-pane" id="messages">.3..</div>
        <div role="tabpanel" class="tab-pane" id="settings">.4..</div>
    </div>
</div>  
          
Exemplo n.º 18
0
<?php

use yii\grid\GridView;
use kartik\icons\Icon;
/* @var $this yii\web\View */
$this->title = '首页';
echo GridView::widget(['dataProvider' => $dataProvider, 'columns' => [['class' => 'yii\\grid\\CheckboxColumn'], ['class' => 'yii\\grid\\SerialColumn'], 'id', 'username', 'updated_at' => ['class' => 'yii\\grid\\DataColumn', 'value' => function ($data) {
    return Yii::$app->formatter->asDatetime($data->updated_at, 'yyyy-MM-dd H:i:s');
}, 'attribute' => 'updated_at', 'label' => '更新时间'], ['class' => 'yii\\grid\\ActionColumn', 'header' => '操作', 'template' => '{view}{update}{delete}{audit}', 'buttons' => ['audit' => function ($url, $model, $key) {
    return $model->status !== 'editable' ? yii\helpers\Html::a('<span class="glyphicon glyphicon-user"></span>', $url, ['title' => '审核']) : '';
}], 'headerOptions' => ['width' => '80']]]]);
?>

<?php 
Icon::map($this, Icon::FA);
echo Icon::show('home', ['class' => 'fa-2x']);
echo Icon::show('leaf', ['class' => 'fa-2x'], Icon::FA);
Exemplo n.º 19
0
echo \yii\helpers\Html::a('Logout (' . $user->identity->username . ')', ['/site/logout'], ['class' => 'btn btn-primary pull-right', 'data-method' => 'post']);
?>
    </div>
    <div class="container-fluid text-center text-uppercase">
        <h2>Simple TODO Lists</h2>
        <h4>From ruby garge</h4>
    </div>
    <div class="container-fluid todolists">
        <?php 
include "todolists.php";
?>
    </div>
    <div class="container-fluid">
        <div class="row text-center">
            <?php 
echo yii\helpers\Html::a('Add TODO List', ['/todolists/create'], ['class' => 'btn btn-primary', 'type' => 'button', 'data-toggle' => 'modal', 'data-target' => '#modal']);
?>
        </div>
    </div>
    <div class="modal fade" id="modal" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog modal-lg">
            <div class="modal-content">
            </div><!-- /.modal-content -->
        </div><!-- /.modal-dialog -->
    </div><!-- /.modal -->
    <div class="modal" id="error">
        <div class="modal-dialog modal-lg">
            <div class="modal-content">
                <div class="modal-header">
                    <div class="modal-title">
                        <button type="button" class="close" data-dismiss="modal">&times;</button>
Exemplo n.º 20
0
<?php

use yii\helpers\Url;
?>

<div class="btn-group">
    <button data-toggle="dropdown" class="btn btn-warning btn-xs dropdown-toggle">
        <?php 
echo Yii::t('common', $current->name);
?>
        <span class="caret"></span>
    </button>
    <ul class="dropdown-menu">
        <?php 
foreach ($languages as $language) {
    ?>
            <li>
                <?php 
    echo yii\helpers\Html::a(Yii::t('common', $language->name), ['language' => $language->lang_id]);
    ?>
            </li>
        <?php 
}
?>
    </ul>
</div>
Exemplo n.º 21
0
        </div>

        <div class="col-sm-6">
            <!-- Default box -->
            <div class="box">
                <div class="box-header">
                    <h3 class="box-title">Documentation</h3>
                </div>
                <div class="box-body">
                    <div class="alert alert-info">
                        <i class="fa fa-warning"></i>
                        <b>Notice!</b> Use the <i>yii2-apidoc</i> extension to
                        create the HTML documentation for this application.
                    </div>
                </div>
                <!-- /.box-body -->
                <div class="box-footer">
                    <small>Need help? Get <?php 
    echo yii\helpers\Html::a('support', 'mailto:' . \Yii::$app->params['supportEmail']);
    ?>
.
                    </small>
                </div>
                <!-- /.box-footer-->
            </div>
            <!-- /.box -->
        </div>
    </div>

<?php 
}
Exemplo n.º 22
0
/* @var $this \yii\web\View */
?>
<div class="container container-error">
    <div class="panel panel-danger">
        <div class="panel-heading">
            <?php 
echo Yii::t('error', "<strong>Login</strong> required");
?>
        </div>
        <div class="panel-body">

            <strong><?php 
echo yii\helpers\Html::encode($message);
?>
</strong>

            <br />
            <hr>

            <?php 
echo yii\helpers\Html::a(Yii::t('base', 'Login'), Yii::$app->user->loginUrl, array('class' => 'btn btn-success'));
?>
            <a href="javascript:history.back();" class="btn btn-primary  pull-right"><?php 
echo Yii::t('base', 'Back');
?>
</a>
        </div>
    </div>
</div>
Exemplo n.º 23
0
?>
<!-- /.item -->
<?php 
//if($model->sisa>0){
?>
<li class="item" style="<?php 
if ($index > 10000) {
    ?>
border-top: 1px whitesmoke solid;<?php 
}
?>
 padding: 10px;">
    <div class="product-info">
        <label>
            <?php 
echo yii\helpers\Html::a($model->number, ['/inventory/transfer/view', 'id' => $model->id]);
?>
            <?php 
echo '/&nbsp;' . $model->Date;
?>
        </label>        
<!--        <span class="label label-success pull-right"><?php 
echo '';
?>
 </span>-->
        <span class="product-description">
            <?php 
echo 'Source: ' . $model->branch->name;
?>
            <?php 
echo 'Destination: ' . $model->branchDest->name . '<br>';
Exemplo n.º 24
0
                    </li>
                    <!-- Menu Body -->
                    <li class="user-body">
                        <div class="col-xs-4 text-center">
                            <a href="#">Followers</a>
                        </div>
                        <div class="col-xs-4 text-center">
                            <a href="#">Sales</a>
                        </div>
                        <div class="col-xs-4 text-center">
                            <a href="#">Friends</a>
                        </div>
                    </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\helpers\Html::a('Sign out', ['/site/logout'], ['class' => 'btn btn-default btn-flat', 'data-method' => 'post']);
?>
                        </div>
                    </li>
                </ul>
            </li>
        </ul>
    </div>
</nav>