Exemplo n.º 1
0
$this->title = "自定义日志类型";
?>
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
            类型列表
        </h1>
        <?php 
echo Breadcrumbs::widget(['tag' => 'ol', 'itemTemplate' => "<li>{link}</li>\n", 'links' => [['label' => '导航面板', 'url' => ['/ajax/trace/index']]]]);
?>
    </section>
    <section class="content">
        <?php 
#获得日志统计记录
$dataProvider = LogTypeService::findLogType();
?>
        <div class="row">
            <div class="col-xs-12">
                <div class="box">
                    <div class="box-header">
                        <h3 class="box-title">跟踪日志</h3>
                        <div class="box-tools">
                            <ul class="pagination pagination-sm no-margin pull-right">
                                <li><a href="<?php 
echo Url::toRoute('/ajax/logtype/add');
?>
"><i class="fa fa-fw fa-plus"></i></a></li>
                            </ul>
                        </div>
                    </div><!-- /.box-header -->
Exemplo n.º 2
0
                        <h3 class="box-title">增加自定义日志</h3>
                        <div class="box-tools">
                            <ul class="pagination pagination-sm no-margin pull-right">
                                <li><a href="<?php 
echo Url::toRoute('/ajax/customlog/add');
?>
"><i class="fa fa-fw fa-plus"></i></a></li>
                            </ul>
                        </div>
                    </div><!-- /.box-header -->
                    <div class="box-body">
                        <?php 
$form = ActiveForm::begin(['id' => 'login-form']);
?>
                        <?php 
echo $form->field($model, 'logtype_id', ['labelOptions' => ['label' => '选择日志类型']])->dropDownList(LogTypeService::findLogTypelists());
?>
                        <?php 
echo $form->field($model, 'call_methods', ['labelOptions' => ['label' => '调用的函数']]);
?>
                        <?php 
echo $form->field($model, 'call_parameter', ['labelOptions' => ['label' => '调用的参数']]);
?>
                        <?php 
echo \kucha\ueditor\UEditor::widget(['model' => $model, 'attribute' => 'errormsg', 'clientOptions' => ['initialFrameHeight' => '200', 'lang' => 'zh-cn', 'toolbars' => [['fullscreen', 'source', 'undo', 'redo', '|', 'fontsize', 'bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'removeformat', 'formatmatch', 'autotypeset', 'blockquote', 'pasteplain', '|', 'forecolor', 'backcolor', '|', 'lineheight', '|', 'indent', '|', 'simpleupload', 'insertimage', '|']]]]);
?>
                        <div class="text-center">
                            <?php 
echo Html::submitButton('确认提交', ['class' => 'btn btn-primary', 'name' => 'login-button']);
?>
                        </div>
Exemplo n.º 3
0
?>
        </ol>
        <?php 
//<div id="social" class="pull-right">
//    <a href="#"><i class="fa fa-google-plus"></i></a>
//    <a href="#"><i class="fa fa-facebook"></i></a>
//    <a href="#"><i class="fa fa-twitter"></i></a>
//    <a href="#"><i class="fa fa-linkedin"></i></a>
//    <a href="#"><i class="fa fa-youtube"></i></a>
//</div>
?>
    </div>
</div>
<?php 
#获得日志统计记录
$dataProvider = LogTypeService::findCustomlogType();
?>
<div class="row">
    <div class="col-xs-12">
        <div class="box">
            <div class="box-header">
                <div class="box-name">
                    <i class="fa fa-table"></i>
                    <span>日志总览</span>
                </div>
                <div class="box-icons">
                    <a class="ajax-link" href="<?php 
echo Url::toRoute('/ajax/customlog/add');
?>
">
                        <i class="fa fa-plus"></i>