当前位置: 首页>>代码示例>>PHP>>正文


PHP url::to方法代码示例

本文整理汇总了PHP中url::to方法的典型用法代码示例。如果您正苦于以下问题:PHP url::to方法的具体用法?PHP url::to怎么用?PHP url::to使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在url的用法示例。


在下文中一共展示了url::to方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 /**
  * 构造方法
  * @param null
  * @return boolean
  */
 public function __construct($app)
 {
     parent::__construct($app);
     // $this->notify_url = kernel::openapi_url('openapi.ectools_payment/parse/weixin/weixin_payment_plugin_wxpayjsapi', 'callback');
     $this->notify_url = url::to('wap/wxpayjsapi.html');
     #test
     $this->submit_charset = 'UTF-8';
     $this->signtype = 'sha1';
 }
开发者ID:453111208,项目名称:bbc,代码行数:14,代码来源:wxpayjsapi.php

示例2: exceptionHandler

 public function exceptionHandler($exception)
 {
     //如果不是逻辑错误, 则抛出让ecos处理. 如果是逻辑错误那么跳转页面
     if (!$exception instanceof LogicException) {
         throw $exception;
     }
     $msg = $exception->getMessage();
     $this->splash('error', $this->_action_url, $msg);
     return url::to($this->_action_url);
 }
开发者ID:453111208,项目名称:bbc,代码行数:10,代码来源:controller.php

示例3: statusIssue

function statusIssue($model)
{
    if ($model->STATUS == 1) {
        /*REVIEW*/
        // return Html::a('<i class="fa fa-square-o fa-md"></i> REVIEW','#',['class'=>'btn btn-info btn-xs', 'style'=>['width'=>'100px'],'title'=>'Review']);
        return Html::button(Yii::t('app', 'Review'), ['value' => url::to(['link-berita', 'id' => $model->ID]), 'id' => 'modal-btn-issue', 'class' => "btn btn-info btn-xs", 'style' => ['width' => '100px']]);
    } elseif ($model->STATUS == 2) {
        /*PROCESS*/
        return Html::a('<i class="fa fa-check-square-o fa-md"></i> OPEN', url::toRoute(['/widget/berita/detail-berita-open', 'id' => $model->ID_ISSUE_REF]), ['class' => 'btn btn-success btn-xs', 'style' => ['width' => '100px'], 'title' => 'Process']);
    } elseif ($model->STATUS == 3) {
        /*CLODED*/
        return Html::a('<i class="glyphicon glyphicon-remove"></i> CLOSED', url::toRoute(['/widget/berita/detail-berita-open', 'id' => $model->ID_ISSUE_REF]), ['class' => 'btn btn-danger btn-xs', 'style' => ['width' => '100px'], 'title' => 'Closed']);
    }
}
开发者ID:adem-team,项目名称:advanced,代码行数:14,代码来源:_indexIssue.php

示例4: theme_widget_nav

/**
 * ShopEx licence
 *
 * @copyright  Copyright (c) 2005-2010 ShopEx Technologies Inc. (http://www.shopex.cn)
 * @license  http://ecos.shopex.cn/ ShopEx License
 */
function theme_widget_nav($setting)
{
    $cur_url = $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'];
    $setting['max_leng'] = $setting['max_leng'] ? $setting['max_leng'] : 7;
    $setting['showinfo'] = $setting['showinfo'] ? $setting['showinfo'] : app::get('b2c')->_("更多");
    foreach ($setting['urls'] as $key => $val) {
        $ret[$key]['title'] = $val['title'];
        $ret[$key]['url'] = url::to($val['link']);
        if (request::url() == $ret[$key]['url']) {
            $ret[$key]['hilight'] = true;
        }
    }
    return $ret;
    //$result;
}
开发者ID:453111208,项目名称:bbc,代码行数:21,代码来源:theme_widget_nav.php

示例5:

<?php

use kartik\helpers\Html;
use yii\helpers\Url;
use yii\helpers\Json;
use yii\web\Response;
use yii\helpers\ArrayHelper;
use yii\web\Request;
use yii\bootstrap\Modal;
use ptrnov\fusionchart\Chart;
use ptrnov\fusionchart\ChartAsset;
ChartAsset::register($this);
$btn_srchChart = Html::button(Yii::t('app', 'Search Date'), ['value' => url::to(['ambil-tanggal-chart']), 'id' => 'modalButtonChartTgl', 'class' => "btn btn-info btn-sm"]);
$mslineCustomerVisit = Chart::Widget(['urlSource' => url::base() . '/dashboard/rpt-esm-chart-salesmd/visit', 'userid' => 'piter@lukison.com', 'dataArray' => '[]', 'dataField' => '[]', 'type' => 'msline', 'renderid' => 'msline-salesmd-visit', 'autoRender' => true, 'width' => '100%', 'height' => '500%', 'chartOption' => ['caption' => 'Daily Customers Visits', 'subCaption' => 'Custommer Call, Active Customer, Efictif Customer', 'xaxisName' => 'Parents', 'yaxisName' => 'Total Child ', 'theme' => 'fint', 'is2D' => "0", 'showValues' => "1", 'palettecolors' => "#583e78,#008ee4,#f8bd19,#e44a00,#6baa01,#ff2e2e", 'bgColor' => "#ffffff", 'showBorder' => "0", 'showCanvasBorder' => "0"]]);
$mslineCustomerVisitStock = Chart::Widget(['urlSource' => url::base() . '/dashboard/rpt-esm-chart-salesmd/visit-stock', 'userid' => 'piter@lukison.com', 'dataArray' => '[]', 'dataField' => '[]', 'type' => 'mscolumn3d', 'renderid' => 'msline-salesmd-visit-stock', 'autoRender' => true, 'width' => '100%', 'height' => '500%', 'chartOption' => ['caption' => 'Daily Customers Visits', 'subCaption' => 'Custommer Call, Active Customer, Efictif Customer', 'xaxisName' => 'Parents', 'yaxisName' => 'Total Child ', 'theme' => 'fint', 'is2D' => "0", 'showValues' => "1", 'palettecolors' => "#583e78,#008ee4,#f8bd19,#e44a00,#6baa01,#ff2e2e", 'bgColor' => "#ffffff", 'showBorder' => "0", 'showCanvasBorder' => "0"]]);
$mslineCustomerVisitRequest = Chart::Widget(['urlSource' => url::base() . '/dashboard/rpt-esm-chart-salesmd/visit-request', 'userid' => 'piter@lukison.com', 'dataArray' => '[]', 'dataField' => '[]', 'type' => 'mscolumn3d', 'renderid' => 'msline-salesmd-visit-request', 'autoRender' => true, 'width' => '100%', 'height' => '500%', 'chartOption' => ['caption' => 'Daily Customers Visits', 'subCaption' => 'Custommer Call, Active Customer, Efictif Customer', 'xaxisName' => 'Parents', 'yaxisName' => 'Total Child ', 'theme' => 'fint', 'is2D' => "0", 'showValues' => "1", 'palettecolors' => "#583e78,#008ee4,#f8bd19,#e44a00,#6baa01,#ff2e2e", 'bgColor' => "#ffffff", 'showBorder' => "0", 'showCanvasBorder' => "0"]]);
$mslineCustomerVisitSellout = Chart::Widget(['urlSource' => url::base() . '/dashboard/rpt-esm-chart-salesmd/visit-sellout', 'userid' => 'piter@lukison.com', 'dataArray' => '[]', 'dataField' => '[]', 'type' => 'mscolumn3d', 'renderid' => 'msline-salesmd-visit-sellout', 'autoRender' => true, 'width' => '100%', 'height' => '500%', 'chartOption' => ['caption' => 'Daily Customers Visits', 'subCaption' => 'Custommer Call, Active Customer, Efictif Customer', 'xaxisName' => 'Parents', 'yaxisName' => 'Total Child ', 'theme' => 'fint', 'is2D' => "0", 'showValues' => "1", 'palettecolors' => "#583e78,#008ee4,#f8bd19,#e44a00,#6baa01,#ff2e2e", 'bgColor' => "#ffffff", 'showBorder' => "0", 'showCanvasBorder' => "0"]]);
?>


<div class="container-fluid" style="font-family: verdana, arial, sans-serif ;font-size: 8pt; padding-top:-150px">
		<div class="col-xs-12 col-sm-12 col-dm-12  col-lg-12">
			<div class="row" style="padding-bottom:10px" >
				<?php 
echo $btn_srchChart;
?>
				
			</div>
		</div>	
		<div class="col-xs-12 col-sm-12 col-dm-12  col-lg-12">
			<div class="row" >
开发者ID:adem-team,项目名称:advanced,代码行数:31,代码来源:_indexSalesMdChart.php

示例6: configure

 public function configure()
 {
     // load all available config files
     $root = $this->roots()->config();
     $configs = array('main' => $root . DS . 'config.php', 'host' => $root . DS . 'config.' . server::get('HTTP_HOST') . '.php', 'addr' => $root . DS . 'config.' . server::get('SERVER_ADDR') . '.php');
     foreach ($configs as $config) {
         if (file_exists($config)) {
             include_once $config;
         }
     }
     // apply the options
     $this->options = array_merge($this->options, c::$data);
     // connect the url class with its handlers
     url::$home = $this->urls()->index();
     url::$to = $this->option('url.to', function ($url = '') {
         if (url::isAbsolute($url)) {
             return $url;
         }
         $start = substr($url, 0, 1);
         switch ($start) {
             case '#':
                 return $url;
                 break;
             case '.':
                 return page()->url() . '/' . $url;
                 break;
             default:
                 // don't convert absolute urls
                 return url::makeAbsolute($url);
                 break;
         }
     });
     // setup the thumbnail generator
     thumb::$defaults['root'] = $this->roots->thumbs();
     thumb::$defaults['url'] = $this->urls->thumbs();
     thumb::$defaults['driver'] = $this->option('thumbs.driver');
     thumb::$defaults['filename'] = $this->option('thumbs.filename');
 }
开发者ID:chrishiam,项目名称:LVSL,代码行数:38,代码来源:kirby.php

示例7: function

?>

<div class="yboard-ban-index">

    <p class="header2"><?php 
echo Html::encode($this->title);
?>
</p>

    <?php 
echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [['class' => 'yii\\grid\\SerialColumn'], ['attribute' => 'user_id', 'value' => function ($model, $index, $dataColumn) {
    return $model->member->profile->username;
}], ['attribute' => 'banned_by', 'value' => function ($model, $index, $dataColumn) {
    return $model->banner->profile->username;
}], ['attribute' => 'expires', 'format' => 'raw', 'value' => function ($model, $index, $dataColumn) {
    return Editable::widget(['value' => DateTimeCalculation::short($model->expires), 'name' => 'expires', 'options' => ['name' => 'expires'], 'format' => Editable::FORMAT_BUTTON, 'inputType' => Editable::INPUT_DATETIME, 'formOptions' => ['action' => url::to(['moderator/change-ban-period', 'id' => $model->id])]]);
}], 'ip', 'email:email', ['class' => 'yii\\grid\\ActionColumn', 'template' => '{lift} {reason}', 'buttons' => ['lift' => function ($url, $model, $key) {
    return Html::a('<span class="glyphicon glyphicon-tint"></span>', '#', ['title' => YBoard::t('yboard', 'Lift Ban'), 'onclick' => 'if(confirm("' . YBoard::t('yboard', 'Do you really Lift this Ban') . '")) { banLift("' . Yii::$app->urlManager->createAbsoluteUrl([$this->context->module->id . '/moderator/ban-lift', 'id' => $model->id]) . '"); }return false; ']);
}, 'reason' => function ($url, $model, $key) {
    return Html::a('<span class="glyphicon glyphicon-envelope"></span>', '#', ['title' => YBoard::t('yboard', 'Ban Reason'), 'onclick' => 'banMessage(\'' . $model->message . '\')']);
}]]]]);
?>

</div>

<?php 
Dialog::begin(['id' => 'dlgBanMsg', 'clientOptions' => ['modal' => true, 'title' => YBoard::t('yboard', 'Ban Reason'), 'autoOpen' => false, 'modal' => true, 'height' => 'auto', 'min-height' => 100, 'width' => 200, 'buttons' => [['text' => YBoard::t('yboard', 'close'), 'class' => 'btn btn-sm btn-danger', 'click' => new \yii\web\JsExpression(' function() { $( this ).dialog( "close" ); }')]]]]);
?>
    
    <div id="dlgBanMsgText" class="alert alert-warning panel"></div>
    
开发者ID:dextercool,项目名称:yii2-yiiboard,代码行数:30,代码来源:ban.php

示例8: url

 /**
  * Generate a url for the application.
  *
  * @param  string  $path
  * @param  mixed   $parameters
  * @param  bool    $secure
  * @return string
  */
 function url($path = null, $parameters = array(), $secure = null)
 {
     return url::to($path, $parameters, $secure);
 }
开发者ID:453111208,项目名称:bbc,代码行数:12,代码来源:helpers.php

示例9:

use yii\widgets\ActiveForm;
use kartik\detail\DetailView;
use yii\helpers\Url;
use yii\helpers\ArrayHelper;
//use kartik\editable\Editable;
use kartik\grid\GridView;
use kartik\tabs\TabsX;
use kartik\money\MaskMoney;
use ptrnov\fusionchart\Chart;
use lukisongroup\assets\Profile;
Profile::register($this);
use lukisongroup\assets\AppAssetDahboardDatamaster;
AppAssetDahboardDatamaster::register($this);
use ptrnov\fusionchart\ChartAsset;
ChartAsset::register($this);
$btn_srchData = Html::button(Yii::t('app', 'Search Data'), ['value' => url::to(['ambil-monthly']), 'id' => 'modal-button-monthly-id', 'class' => "btn btn-info btn-sm"]);
$mslineCustomerVisit = Chart::Widget(['urlSource' => url::base() . '/dashboard/rpt-esm-chart-salesmd/visit-per-sales?id=56', 'userid' => 'piter@lukison.com', 'dataArray' => '[]', 'dataField' => '[]', 'type' => 'msline', 'renderid' => 'msline-monthly-salesmd-visit', 'autoRender' => true, 'width' => '100%', 'height' => '500%', 'chartOption' => ['caption' => 'Daily Customers Visits', 'subCaption' => 'Custommer Call, Active Customer, Efictif Customer', 'xaxisName' => 'Parents', 'yaxisName' => 'Total Child ', 'theme' => 'fint', 'is2D' => "0", 'showValues' => "1", 'palettecolors' => "#583e78,#008ee4,#f8bd19,#e44a00,#6baa01,#ff2e2e", 'bgColor' => "#ffffff", 'showBorder' => "0", 'showCanvasBorder' => "0"]]);
print_r('asd' . $test);
?>



<div class="container-fluid w3-content pale-blue" style="max-width:1400px;max-height:1400px;margin-top:10px;font-family: verdana, arial, sans-serif ;font-size: 8pt">
	<!-- The Grid -->
	<div class="row">
		<!-- Left Column -->
		<div class="col-lg-3">
			<!-- Profile -->
			<div class="w3-card-2 w3-round w3-pale-blue">
				<div class="w3-container">
					 <h4 class="w3-center">My Profile</h4>
开发者ID:adem-team,项目名称:advanced,代码行数:31,代码来源:_indexMonthSummary.php

示例10:

    .body_withdrawrecord_index{
        padding-top: 13px;
    }
    .body_withdrawrecord_index .portlet.box .portlet-body{
        position: relative;
        padding-bottom: 40px;
    }
    .error{
        color:red;
    }
</style>

<div class="body_withdrawrecord_index">
    <div class="container-fluid">
        <div class="apply_tit_div"><h2><img src="<?php 
echo url::to('@web/image/tx_tit_icon.png', true);
?>
">产品管理<span>withdraw center</span></h2></div>
        <div class="row-fluid">
            <ul id="myTab" class="nav nav-tabs">
                <li class="<?php 
echo $status == 'finishing' ? 'active' : '';
?>
"><a url="<?php 
echo Url::to('/product/index?status=finishing');
?>
" href="#waiting" data-toggle="tab">已处理</a></li>
                <li class="<?php 
echo $status == 'waiting' ? 'active' : '';
?>
"><a url="<?php 
开发者ID:BlackCodes,项目名称:Mymine,代码行数:31,代码来源:index.php

示例11: function

    // readonly
    if ($model->CUST_GRP == $model->CUST_KD) {
        return true;
    } else {
        return false;
    }
}, 'label' => 'Customer.Id', 'hAlign' => 'left', 'vAlign' => 'top', 'filter' => false, 'mergeHeader' => true, 'headerOptions' => ['style' => ['text-align' => 'center', 'width' => '120px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '8pt', 'background-color' => 'rgba(255, 154, 48, 1)']], 'contentOptions' => ['style' => ['vertical-align' => 'text-middle', 'text-align' => 'left', 'width' => '120px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '8pt']], 'editableOptions' => ['header' => 'Customers', 'inputType' => \kartik\editable\Editable::INPUT_SELECT2, 'size' => 'md', 'options' => ['data' => $parent, 'pluginOptions' => ['allowClear' => true]]]], ['attribute' => 'CUST_NM', 'label' => 'Customer Name', 'hAlign' => 'left', 'vAlign' => 'middle', 'headerOptions' => ['style' => ['text-align' => 'center', 'width' => '250px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '8pt', 'background-color' => 'rgba(255, 154, 48, 1)']], 'contentOptions' => ['style' => ['text-align' => 'left', 'width' => '250px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '8pt']]], ['attribute' => 'cus.CUST_KTG_NM', 'label' => 'Category', 'filter' => $dropType, 'hAlign' => 'left', 'vAlign' => 'middle', 'headerOptions' => ['style' => ['text-align' => 'center', 'width' => '100px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '8pt', 'background-color' => 'rgba(255, 154, 48, 1)']], 'contentOptions' => ['style' => ['text-align' => 'left', 'width' => '100px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '8pt']]], ['attribute' => 'custype.CUST_KTG_NM', 'filter' => $dropKtg, 'label' => 'Type', 'hAlign' => 'left', 'vAlign' => 'middle', 'headerOptions' => ['style' => ['text-align' => 'center', 'width' => '230px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '8pt', 'background-color' => 'rgba(255, 154, 48, 1)']], 'contentOptions' => ['style' => ['text-align' => 'left', 'width' => '230px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '8pt']]], ['class' => 'kartik\\grid\\EditableColumn', 'attribute' => 'GEO', 'refreshGrid' => true, 'label' => 'Geo', 'hAlign' => 'left', 'vAlign' => 'top', 'filter' => true, 'filterType' => GridView::FILTER_SELECT2, 'filter' => $data_group, 'filterWidgetOptions' => ['pluginOptions' => ['allowClear' => true, 'contentOptions' => ['style' => ['text-align' => 'left', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '8pt']]]], 'filterInputOptions' => ['placeholder' => 'Select'], 'headerOptions' => ['style' => ['text-align' => 'center', 'width' => '120px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '8pt', 'background-color' => 'rgba(255, 154, 48, 1)']], 'contentOptions' => ['style' => ['vertical-align' => 'text-middle', 'text-align' => 'center', 'width' => '120px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '8pt']], 'editableOptions' => ['header' => 'GEO', 'inputType' => \kartik\editable\Editable::INPUT_SELECT2, 'size' => 'xs', 'options' => ['data' => $data_group, 'pluginOptions' => ['allowClear' => true]], 'displayValueConfig' => $data_group]], ['class' => 'kartik\\grid\\EditableColumn', 'attribute' => 'LAYER', 'refreshGrid' => true, 'label' => 'Layer', 'hAlign' => 'left', 'vAlign' => 'top', 'filter' => true, 'filterType' => GridView::FILTER_SELECT2, 'filter' => $data_layer, 'filterWidgetOptions' => ['pluginOptions' => ['allowClear' => true, 'contentOptions' => ['style' => ['text-align' => 'left', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '8pt']]]], 'filterInputOptions' => ['placeholder' => 'Select'], 'headerOptions' => ['style' => ['text-align' => 'center', 'width' => '120px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '8pt', 'background-color' => 'rgba(255, 154, 48, 1)']], 'contentOptions' => ['style' => ['vertical-align' => 'text-middle', 'text-align' => 'center', 'width' => '120px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '8pt']], 'editableOptions' => ['header' => 'layer', 'inputType' => \kartik\editable\Editable::INPUT_SELECT2, 'size' => 'xs', 'options' => ['data' => $data_layer, 'pluginOptions' => ['allowClear' => true]], 'displayValueConfig' => $data_layer]], ['class' => 'kartik\\grid\\EditableColumn', 'attribute' => 'DC_STATUS', 'refreshGrid' => true, 'hAlign' => 'left', 'vAlign' => 'top', 'filter' => true, 'filterType' => GridView::FILTER_SELECT2, 'filter' => $arraySttDC, 'filterWidgetOptions' => ['pluginOptions' => ['allowClear' => true, 'contentOptions' => ['style' => ['text-align' => 'left', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '8pt']]]], 'filterInputOptions' => ['placeholder' => 'Select'], 'headerOptions' => ['style' => ['text-align' => 'center', 'width' => '120px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '8pt', 'background-color' => 'rgba(255, 154, 48, 1)']], 'contentOptions' => ['style' => ['vertical-align' => 'text-middle', 'text-align' => 'center', 'width' => '120px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '8pt']], 'editableOptions' => ['header' => 'INVENTORY', 'inputType' => \kartik\editable\Editable::INPUT_SELECT2, 'size' => 'xs', 'options' => ['data' => $arraySttDC, 'pluginOptions' => ['allowClear' => true]], 'displayValueConfig' => $arraySttDC]], ['attribute' => 'STATUS', 'filter' => $valStt, 'format' => 'raw', 'hAlign' => 'center', 'value' => function ($model) {
    if ($model->STATUS == 1) {
        return Html::a('<i class="fa fa-edit"></i> &nbsp;Enable', '', ['class' => 'btn btn-success btn-xs', 'title' => 'Aktif']);
    } else {
        if ($model->STATUS == 0) {
            return Html::a('<i class="fa fa-close"></i> &nbsp;Disable', '', ['class' => 'btn btn-danger btn-xs', 'title' => 'Deactive']);
        }
    }
}, 'hAlign' => 'left', 'vAlign' => 'middle', 'headerOptions' => ['style' => ['text-align' => 'center', 'width' => '80px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '8pt', 'background-color' => 'rgba(255, 154, 48, 1)']], 'contentOptions' => ['style' => ['text-align' => 'center', 'width' => '80px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '8pt']]], ['class' => 'kartik\\grid\\ActionColumn', 'template' => '{view}{edit}', 'header' => 'Action', 'dropdown' => true, 'dropdownOptions' => ['class' => 'pull-right dropup'], 'dropdownButton' => ['class' => 'btn btn-default btn-xs'], 'buttons' => ['view' => function ($url, $model, $key) {
    return Html::button(Yii::t('app', 'View Customers'), ['value' => url::to(['viewcust', 'id' => $model->CUST_KD]), 'id' => 'modalButtonCustomers', 'class' => "btn btn-default btn-xs", 'style' => ['width' => '170px', 'height' => '25px', 'border' => 'none']]);
}, 'edit' => function ($url, $model, $key) {
    return '<li>' . Html::a('<i class="glyphicon glyphicon-globe"></i>' . Yii::t('app', 'Create Map'), ['create-map', 'id' => $model->CUST_KD], []) . '</li>';
}], 'headerOptions' => ['style' => ['text-align' => 'center', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '8pt', 'background-color' => 'rgba(255, 154, 48, 1)']], 'contentOptions' => ['style' => ['text-align' => 'left', '//width' => '150px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '8pt']]]], 'toolbar' => [''], 'panel' => ['type' => GridView::TYPE_INFO, 'heading' => '<i class="fa fa fa-tags fa-1x"></i> NOO - New Customer', 'before' => Html::a('<i class="glyphicon glyphicon-plus"></i> ' . Yii::t('app', 'Create  ', ['modelClass' => 'Customers']), '/master/customers-noo/createcustomers', ['data-toggle' => "modal", 'id' => 'modcus', 'data-target' => "#createcus", 'class' => 'btn btn-success btn-sm']) . ' ' . Html::a('<i class="fa fa-history "></i> ' . Yii::t('app', 'Refresh', ['modelClass' => 'Customers1']), '/master/customers-noo', ['id' => 'refresh-cust-erp', 'data-pjax' => 0, 'class' => 'btn btn-info btn-sm']) . ' ' . Html::a('<i class="fa fa-file-excel-o"></i> ' . Yii::t('app', 'Export All'), '/export/export/export-data', ['id' => 'export-data-erp-customers', 'data-pjax' => 0, 'class' => 'btn btn-info btn-sm']) . ' ' . Html::a('<i class="fa fa-file-excel-o"></i> ' . Yii::t('app', 'Export selected'), '', ['id' => 'exportmodal-erp', 'data-pjax' => 0, 'data-toggle-export-erp' => 'erp-customers-modal', 'class' => 'btn btn-success btn-sm']) . ' ' . Html::a('<i class="fa fa-file-excel-o"></i> ' . Yii::t('app', 'Pilih Export'), '/export/export/pilih-export-data', ['data-toggle' => "modal", 'id' => 'exportmodal-erp-pilih', 'data-target' => "#export-mod", 'class' => 'btn btn-success btn-sm']) . ' ' . Html::a('<i class="fa fa-file-excel-o"></i> ' . Yii::t('app', 'Pilih delete'), '', ['data-toggle-delete-erp' => 'erp-customers-delete', 'id' => 'delete-all-erp', 'data-pjax' => 0, 'class' => 'btn btn-danger btn-sm'])], 'pjax' => true, 'pjaxSettings' => ['options' => ['enablePushState' => false, 'id' => 'gv-cus-erp']], 'summary' => false, 'hover' => true, 'responsive' => true, 'responsiveWrap' => true, 'bordered' => true, 'striped' => '4px', 'autoXlFormat' => true, 'export' => ['fontAwesome' => true, 'showConfirmAlert' => false, 'target' => GridView::TARGET_BLANK]]);
?>
<div class="content">
  <div  class="row" style="padding-left:3px">
		<div class="col-sm-12">
			<?php 
echo $tabcustomersData;
?>
		</div>
	</div>
</div>

<?php 
开发者ID:adem-team,项目名称:advanced,代码行数:31,代码来源:index.php

示例12: is_null

$this->registerJsFile('/static/typeahead/typeahead.bundle.min.js', ['position' => $this::POS_BEGIN]);
// $this->registerJsFile('/static/typeahead/bloodhound.min.js', ['position' => $this::POS_BEGIN]);
// $this->registerCssFile('/static/typeahead/bootstrap-tagsinput.css');
$model->news_type = is_null($model->news_type) ? 'news_post' : $model->news_type;
$model->rel_tag = is_null($model->rel_tag) ? '' : $model->rel_tag;
$model->rel_user = is_null($model->rel_user) ? '' : $model->rel_user;
$model->rel_product = is_null($model->rel_product) ? '' : $model->rel_product;
// 表单验证临时显示图片
if (!is_array($model->news_cover_url) && !is_null($model->news_cover_url) && !empty($model->news_cover_url)) {
    $model->news_cover_url = ['path' => $model->news_cover_url, 'base_url' => Yii::$app->urlManagerFrontend->createUrl('source')];
}
// print_r($model->news_cover_url);exit;
// 异步请求JS
$remote['tag_url'] = url::to(['news/tags'], TRUE);
$remote['news_url'] = url::to(['news/user?s=%QUERY'], TRUE);
$remote['product_url'] = url::to(['news/product'], TRUE);
?>
<style type="text/css">
.multi_radio label {
    margin-right: 20px;
}
.multi_radio input {
    margin-right: 2px;
}
</style>
<div class="col-xs-12">
     <?php 
$form = ActiveForm::begin(['options' => ['ENCTYPE' => 'multipart/form-data', 'type' => 'horizontal']]);
?>
    <?php 
echo $form->field($model, 'news_type')->radioList(['news_post' => '资讯文章', 'news_video' => '资讯视频'], ['class' => "multi_radio", 'separator' => ""])->label('');
开发者ID:songhongyu,项目名称:idaiyan,代码行数:31,代码来源:create.php

示例13:

$this->title = 'Perfil Eventos';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="perfil-evento-index">

    <h1><?php 
echo Html::encode($this->title);
?>
</h1>
    <?php 
// echo $this->render('_search', ['model' => $searchModel]);
?>

    <p>
        <?php 
echo Html::button('Crear Eventos', ['value' => url::to('index.php?r=perfil-evento/create'), 'class' => 'btn btn-success', 'id' => 'modalButton']);
?>
    </p>
    
    <?php 
Modal::begin(['header' => '<h1>Crear Eventos</h1>', 'id' => 'modal', 'size' => 'modal-lg']);
echo "<div id='modalContent'></div>";
Modal::end();
?>
    


    <?php 
Pjax::begin();
?>
    <?php 
开发者ID:godzukison,项目名称:PROYECTOFINALDESARROLLO,代码行数:31,代码来源:index.php

示例14: configure

 /**
  * Sets all defaults and loads the user configuration
  *
  * @param array $config
  */
 protected static function configure($config = array())
 {
     // start with a fresh configuration
     c::$data = array();
     // set some defaults
     c::$data['root'] = dirname(__DIR__);
     c::$data['root.kirby'] = __DIR__;
     c::$data['root.content'] = c::$data['root'] . DS . 'content';
     c::$data['root.site'] = c::$data['root'] . DS . 'site';
     // the default timezone
     c::$data['timezone'] = 'UTC';
     // tinyurl handling
     c::$data['tinyurl.enabled'] = true;
     c::$data['tinyurl.folder'] = 'x';
     // disable the cache by default
     c::$data['cache'] = false;
     c::$data['cache.driver'] = 'file';
     c::$data['cache.options'] = array();
     // set the default license code
     c::$data['license'] = null;
     // url rewriting
     c::$data['rewrite'] = true;
     // markdown defaults
     c::$data['markdown'] = true;
     c::$data['markdown.extra'] = false;
     c::$data['markdown.breaks'] = true;
     // pass the config vars from the constructor
     // to be able to set all roots
     c::$data = array_merge(c::$data, $config);
     // set the subroots for site
     c::$data['root.cache'] = c::$data['root.site'] . DS . 'cache';
     c::$data['root.plugins'] = c::$data['root.site'] . DS . 'plugins';
     c::$data['root.templates'] = c::$data['root.site'] . DS . 'templates';
     c::$data['root.snippets'] = c::$data['root.site'] . DS . 'snippets';
     c::$data['root.controllers'] = c::$data['root.site'] . DS . 'controllers';
     c::$data['root.config'] = c::$data['root.site'] . DS . 'config';
     c::$data['root.tags'] = c::$data['root.site'] . DS . 'tags';
     c::$data['root.accounts'] = c::$data['root.site'] . DS . 'accounts';
     // auto css and js setup
     c::$data['auto.css.url'] = 'assets/css/templates';
     c::$data['auto.css.root'] = c::$data['root'] . DS . 'assets' . DS . 'css' . DS . 'templates';
     c::$data['auto.js.url'] = 'assets/js/templates';
     c::$data['auto.js.root'] = c::$data['root'] . DS . 'assets' . DS . 'js' . DS . 'templates';
     // load all available config files
     $configs = array('main' => c::$data['root.config'] . DS . 'config.php', 'host' => c::$data['root.config'] . DS . 'config.' . server::get('HTTP_HOST') . '.php', 'addr' => c::$data['root.config'] . DS . 'config.' . server::get('SERVER_ADDR') . '.php');
     foreach ($configs as $confile) {
         if (file_exists($confile)) {
             include_once $confile;
         }
     }
     // pass the config vars from the constructor again to overwrite
     // stuff from the user config
     c::$data = array_merge(c::$data, $config);
     // detect and store the url
     static::url();
     // default url handler
     if (empty(c::$data['url.to'])) {
         c::$data['url.to'] = function ($url = '') {
             if (url::isAbsolute($url)) {
                 return $url;
             }
             $start = substr($url, 0, 1);
             switch ($start) {
                 case '#':
                     return $url;
                     break;
                 case '.':
                     return page()->url() . '/' . $url;
                     break;
                 default:
                     // don't convert absolute urls
                     return url::makeAbsolute($url);
                     break;
             }
         };
     }
     // connect the url class with its handlers
     url::$home = c::$data['url'];
     url::$to = c::$data['url.to'];
     // setup the thumbnail generator
     thumb::$defaults['root'] = isset(c::$data['thumb.root']) ? c::$data['thumb.root'] : c::$data['root'] . DS . 'thumbs';
     thumb::$defaults['url'] = isset(c::$data['thumb.url']) ? c::$data['thumb.url'] : 'thumbs';
     thumb::$defaults['driver'] = isset(c::$data['thumb.driver']) ? c::$data['thumb.driver'] : 'gd';
     thumb::$defaults['filename'] = isset(c::$data['thumb.filename']) ? c::$data['thumb.filename'] : '{safeName}-{hash}.{extension}';
     // build absolute urls
     c::$data['auto.css.url'] = url::makeAbsolute(c::$data['auto.css.url'], url::$home);
     c::$data['auto.js.url'] = url::makeAbsolute(c::$data['auto.js.url'], url::$home);
     thumb::$defaults['url'] = url::makeAbsolute(thumb::$defaults['url'], url::$home);
     // cache setup
     if (c::$data['cache']) {
         if (c::$data['cache.driver'] == 'file' and empty(c::$data['cache.options'])) {
             c::$data['cache.options'] = array('root' => c::get('root.cache'));
         }
         cache::setup(c::$data['cache.driver'], c::$data['cache.options']);
     } else {
//.........这里部分代码省略.........
开发者ID:gBokiau,项目名称:kirby,代码行数:101,代码来源:kirby.php

示例15: date_format

?>
                
<?php 
$basicInfo = DetailView::widget(['model' => $model, 'options' => ['class' => 'table table-striped detail-view'], 'attributes' => [['label' => YBoard::t('yboard', 'Birthday'), 'value' => $birthday == null ? YBoard::t('yboard', 'None') : $model->profile->{$birthday}], ['label' => YBoard::t('yboard', 'Gender'), 'value' => $model->profile->{$gender} == 1 ? YBoard::t('yboard', 'Male') : YBoard::t('yboard', 'Female')], ['label' => YBoard::t('yboard', 'Joined'), 'value' => $regdate == null ? YBoard::t('yboard', 'None') : date_format(date_timezone_set(date_timestamp_set(date_create(), $model->profile->{$regdate}), $timezone), 'l, d-M-y H:i T')], ['attribute' => 'location', 'format' => 'raw', 'value' => Editable::widget(['model' => $model, 'attribute' => 'location', 'type' => 'primary', 'format' => Editable::FORMAT_BUTTON, 'inputType' => Editable::INPUT_TEXT, 'editableValueOptions' => ['class' => 'text-success pad15-right'], 'formOptions' => ['action' => url::to(['member/usercp', 'id' => $model->id])]])], ['attribute' => 'signature', 'format' => 'raw', 'value' => Editable::widget(['model' => $model, 'attribute' => 'signature', 'type' => 'primary', 'format' => Editable::FORMAT_BUTTON, 'inputType' => Editable::INPUT_TEXT, 'editableValueOptions' => ['class' => 'text-success pad15-right'], 'formOptions' => ['action' => url::to(['member/usercp', 'id' => $model->id])]])], 'status']]);
?>
 


<?php 
$foroStatistics = DetailView::widget(['model' => $model, 'options' => ['class' => 'table table-striped detail-view'], 'attributes' => [['label' => YBoard::t('yboard', 'Last Visit'), 'value' => date_format(date_timezone_set(date_create($model->last_visit), $timezone), 'l, d-M-y H:i T')], 'appreciations', 'startedTopics', 'totalReplies', 'recentTopics:html']]);
?>
  

 
<?php 
$webInfo = DetailView::widget(['model' => $model, 'options' => ['class' => 'table table-striped detail-view'], 'attributes' => [['attribute' => 'blogger', 'format' => 'raw', 'value' => Editable::widget(['model' => $model, 'attribute' => 'blogger', 'type' => 'primary', 'format' => Editable::FORMAT_BUTTON, 'inputType' => Editable::INPUT_TEXT, 'editableValueOptions' => ['class' => 'text-success pad15-right'], 'formOptions' => ['action' => url::to(['member/usercp', 'id' => $model->id])]])], ['attribute' => 'contact_email', 'format' => 'raw', 'value' => Editable::widget(['model' => $model, 'attribute' => 'contact_email', 'type' => 'primary', 'format' => Editable::FORMAT_BUTTON, 'inputType' => Editable::INPUT_DROPDOWN_LIST, 'data' => [1 => 'Allow', 0 => 'Forbid'], 'displayValueConfig' => [0 => YBoard::t('yboard', 'Forbidden'), 1 => YBoard::t('yboard', 'Allowed')], 'editableValueOptions' => ['class' => 'text-success pad15-right'], 'formOptions' => ['action' => url::to(['member/usercp', 'id' => $model->id])], 'pluginEvents' => ["editableSuccess" => "function(event, val) { \n                        //console.log('Successful submission of value ' + val); \n                    }"]])], ['attribute' => 'contact_pm', 'format' => 'raw', 'value' => Editable::widget(['model' => $model, 'attribute' => 'contact_pm', 'type' => 'primary', 'format' => Editable::FORMAT_BUTTON, 'inputType' => Editable::INPUT_DROPDOWN_LIST, 'data' => [1 => 'Allow', 0 => 'Forbid'], 'displayValueConfig' => [0 => YBoard::t('yboard', 'Forbidden'), 1 => YBoard::t('yboard', 'Allowed')], 'editableValueOptions' => ['class' => 'text-success pad15-right'], 'formOptions' => ['action' => url::to(['member/usercp', 'id' => $model->id])], 'pluginEvents' => ["editableSuccess" => "function(event, val) { \n                        //console.log('Successful submission of value ' + val); \n                    }"]])], ['attribute' => 'facebook', 'format' => 'raw', 'value' => Editable::widget(['model' => $model, 'attribute' => 'facebook', 'type' => 'primary', 'format' => Editable::FORMAT_BUTTON, 'inputType' => Editable::INPUT_TEXT, 'editableValueOptions' => ['class' => 'text-success pad15-right'], 'formOptions' => ['action' => url::to(['member/usercp', 'id' => $model->id])]])], ['attribute' => 'skype', 'format' => 'raw', 'value' => Editable::widget(['model' => $model, 'attribute' => 'skype', 'type' => 'primary', 'format' => Editable::FORMAT_BUTTON, 'inputType' => Editable::INPUT_TEXT, 'editableValueOptions' => ['class' => 'text-success pad15-right'], 'formOptions' => ['action' => url::to(['member/usercp', 'id' => $model->id])]])], ['attribute' => 'google', 'format' => 'raw', 'value' => Editable::widget(['model' => $model, 'attribute' => 'google', 'type' => 'primary', 'format' => Editable::FORMAT_BUTTON, 'inputType' => Editable::INPUT_TEXT, 'editableValueOptions' => ['class' => 'text-success pad15-right'], 'formOptions' => ['action' => url::to(['member/usercp', 'id' => $model->id])]])], ['attribute' => 'linkedin', 'format' => 'raw', 'value' => Editable::widget(['model' => $model, 'attribute' => 'linkedin', 'type' => 'primary', 'format' => Editable::FORMAT_BUTTON, 'inputType' => Editable::INPUT_TEXT, 'editableValueOptions' => ['class' => 'text-success pad15-right'], 'formOptions' => ['action' => url::to(['member/usercp', 'id' => $model->id])]])], ['attribute' => 'metacafe', 'format' => 'raw', 'value' => Editable::widget(['model' => $model, 'attribute' => 'metacafe', 'type' => 'primary', 'format' => Editable::FORMAT_BUTTON, 'inputType' => Editable::INPUT_TEXT, 'editableValueOptions' => ['class' => 'text-success pad15-right'], 'formOptions' => ['action' => url::to(['member/usercp', 'id' => $model->id])]])], ['attribute' => 'github', 'format' => 'raw', 'value' => Editable::widget(['model' => $model, 'attribute' => 'github', 'type' => 'primary', 'format' => Editable::FORMAT_BUTTON, 'inputType' => Editable::INPUT_TEXT, 'editableValueOptions' => ['class' => 'text-success pad15-right'], 'formOptions' => ['action' => url::to(['member/usercp', 'id' => $model->id])]])], ['attribute' => 'orkut', 'format' => 'raw', 'value' => Editable::widget(['model' => $model, 'attribute' => 'orkut', 'type' => 'primary', 'format' => Editable::FORMAT_BUTTON, 'inputType' => Editable::INPUT_TEXT, 'editableValueOptions' => ['class' => 'text-success pad15-right'], 'formOptions' => ['action' => url::to(['member/usercp', 'id' => $model->id])]])], ['attribute' => 'tumblr', 'format' => 'raw', 'value' => Editable::widget(['model' => $model, 'attribute' => 'tumblr', 'type' => 'primary', 'format' => Editable::FORMAT_BUTTON, 'inputType' => Editable::INPUT_TEXT, 'editableValueOptions' => ['class' => 'text-success pad15-right'], 'formOptions' => ['action' => url::to(['member/usercp', 'id' => $model->id])]])], ['attribute' => 'twitter', 'format' => 'raw', 'value' => Editable::widget(['model' => $model, 'attribute' => 'twitter', 'type' => 'primary', 'format' => Editable::FORMAT_BUTTON, 'inputType' => Editable::INPUT_TEXT, 'editableValueOptions' => ['class' => 'text-success pad15-right'], 'formOptions' => ['action' => url::to(['member/usercp', 'id' => $model->id])]])], ['attribute' => 'website', 'format' => 'raw', 'value' => Editable::widget(['model' => $model, 'attribute' => 'website', 'type' => 'primary', 'format' => Editable::FORMAT_BUTTON, 'inputType' => Editable::INPUT_TEXT, 'editableValueOptions' => ['class' => 'text-success pad15-right'], 'formOptions' => ['action' => url::to(['member/usercp', 'id' => $model->id])]])], ['attribute' => 'wordpress', 'format' => 'raw', 'value' => Editable::widget(['model' => $model, 'attribute' => 'wordpress', 'type' => 'primary', 'format' => Editable::FORMAT_BUTTON, 'inputType' => Editable::INPUT_TEXT, 'editableValueOptions' => ['class' => 'text-success pad15-right'], 'formOptions' => ['action' => url::to(['member/usercp', 'id' => $model->id])]])], ['attribute' => 'yahoo', 'format' => 'raw', 'value' => Editable::widget(['model' => $model, 'attribute' => 'yahoo', 'type' => 'primary', 'format' => Editable::FORMAT_BUTTON, 'inputType' => Editable::INPUT_TEXT, 'editableValueOptions' => ['class' => 'text-success pad15-right'], 'formOptions' => ['action' => url::to(['member/usercp', 'id' => $model->id])]])], ['attribute' => 'youtube', 'format' => 'raw', 'value' => Editable::widget(['model' => $model, 'attribute' => 'youtube', 'type' => 'primary', 'format' => Editable::FORMAT_BUTTON, 'inputType' => Editable::INPUT_TEXT, 'editableValueOptions' => ['class' => 'text-success pad15-right'], 'formOptions' => ['action' => url::to(['member/usercp', 'id' => $model->id])]])]]]);
?>
  


<div class="yboard-member-view container">         
    <div class="row">
        <div class="col-md-2">
           <div class="center">
               <?php 
echo Html::img(isset($model->profile->image) ? $model->profile->image : $this->context->module->getRegisteredImage("empty.jpeg"), ['id' => 'user-avatar']);
?>
               <p class="pad5-top"><?php 
echo ucfirst($model->profile->{$this->context->module->userNameColumn});
?>
</p>
开发者ID:dextercool,项目名称:yii2-yiiboard,代码行数:31,代码来源:profile.php


注:本文中的url::to方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。