Ejemplo n.º 1
0
        <button type="button" class="btn btn-info">MENU</button>
        <button type="button" class="btn btn-danger dropdown-toggle" data-toggle="dropdown">
          <span class="caret"></span>
          <span class="sr-only">Toggle Dropdown</span>
        </button>
          <ul class="dropdown-menu" role="menu">
          <li><?php 
echo tombolCustomers();
?>
</li>
          <li><?php 
echo tombolKota();
?>
</li>
          <li><?php 
echo tombolProvince();
?>
</li>
          <li><?php 
echo tombolKategori();
?>
</li>
          <li><?php 
echo tombolMap();
?>
</li>
          <li><?php 
echo tombolLoginalias();
?>
</li>
          <li class="divider"></li>
Ejemplo n.º 2
0
    return '<li>' . Html::a('<span class="glyphicon glyphicon-user"></span>' . Yii::t('app', 'Update Detail'), ['update-cust', 'id' => $model->CUST_KD], ['data-toggle' => "modal", 'data-target' => "#createcus", 'data-title' => $model->CUST_KD]) . '</li>';
}, '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>';
}, 'alias' => function ($url, $model, $key) {
    return '<li>' . Html::a('<span class="glyphicon glyphicon-pencil"></span>' . Yii::t('app', 'Set alias'), ['create-alias-customers', 'id' => $model->CUST_KD], ['data-toggle' => "modal", 'data-target' => "#formalias", 'data-title' => $model->CUST_KD]) . '</li>';
}], 'headerOptions' => ['style' => ['text-align' => 'center', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '8pt', 'background-color' => 'rgba(126, 189, 188, 0.9)']], 'contentOptions' => ['style' => ['text-align' => 'left', '//width' => '150px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '8pt']]]], 'toolbar' => [''], 'panel' => ['before' => Html::a('<i class="glyphicon glyphicon-plus"></i> ' . Yii::t('app', 'Create  ', ['modelClass' => 'Customers']), '/master/customers/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', ['id' => 'refresh-cust', 'class' => 'btn btn-info btn-sm']) . ' ' . Html::a('<i class="fa fa-file-excel-o"></i> ' . Yii::t('app', 'Export'), '/export/export/export-data', ['class' => 'btn btn-info btn-sm'])], 'pjax' => true, 'pjaxSettings' => ['options' => ['enablePushState' => false, 'id' => 'gv-cus-data']], 'summary' => false, 'hover' => true, 'responsive' => true, 'responsiveWrap' => true, 'bordered' => true, 'striped' => '4px', 'autoXlFormat' => true, 'export' => ['fontAwesome' => true, 'showConfirmAlert' => false, 'target' => GridView::TARGET_BLANK]]);
?>
 <?php 
$navmenu = NavX::widget(['options' => ['class' => 'nav nav-tabs'], 'encodeLabels' => false, 'items' => [['label' => 'MENU', 'active' => true, 'items' => [['label' => '<span class="fa fa-user fa-md"></span>Customers', 'url' => '/master/customers/esm-index'], ['label' => '<span class="fa fa-cogs fa-md"></span>Alias Customers', 'url' => '/master/customers/login-alias', 'linkOptions' => ['id' => 'performance', 'data-toggle' => 'modal', 'data-target' => '#formlogin']], '<li class="divider"></li>', ['label' => 'Properties', 'items' => [['label' => '<span class="fa fa-flag fa-md"></span>Kota', 'url' => '/master/customers/esm-index-city'], ['label' => '<span class="fa fa-flag-o fa-md"></span>Province', 'url' => '/master/customers/esm-index-provinsi'], ['label' => '<span class="fa fa-table fa-md"></span>Category', 'url' => '/master/customers/esm-index-kategori'], '<li class="divider"></li>', ['label' => '<span class="fa fa-map-marker fa-md"></span>Customers Map', 'url' => '/master/customers/esm-map']]]]]]]);
?>
<div class="content">
  <div  class="row" style="padding-left:3px">
		<div class="col-sm-12 col-md-12 col-lg-12" >
		  <!-- CUTI !-->
		  <?php 
$test = '<div class="btn-group pull-left" >' . '<button type="button" class="btn btn-info">MENU</button>' . '<button type="button" class="btn btn-danger dropdown-toggle" data-toggle="dropdown">' . '<span class="caret"></span>' . '<span class="sr-only">Toggle Dropdown</span>' . '</button>' . '<ul class="dropdown-menu" role="menu">' . '<li>' . tombolCustomers() . '</li>' . '<li>' . tombolKota() . '</li>' . '<li>' . tombolProvince() . '</li>' . '<li>' . tombolKategori() . '</li>' . '<li>' . tombolMap() . '</li>' . '<li>' . tombolLoginalias() . '</li>' . '</ul>' . '</div>';
//echo  $test;
echo $navmenu;
?>
		  <!-- CUTI !-->
		</div>
		<div class="col-sm-12">
			<?php 
echo $tabcustomersData;
?>
		</div>
	</div>
</div>

<!-- div class="modal fade" id="myModal" role="dialog"> -->
    <!-- <div class="modal-dialog">