Пример #1
0
use yii\helpers\Url;
$this->title = 'Details for short code - ' . $url->short_code;
$this->params['breadcrumbs'][] = $this->title;
?>

<h1><?php 
echo Html::encode('Details for short code - ' . Url::base(true) . Url::to(['site/forward', 'code' => $url->short_code]));
?>
</h1>
<div class="row">
    <div class="col-md-12">
        <?php 
array_unshift($details['date'], ['Date', 'Clicks']);
echo GoogleChart::widget(array('visualization' => 'LineChart', 'data' => $details['date'], 'options' => array('vAxis' => array('gridlines' => array('color' => 'transparent')))));
?>
    </div>
</div>
<div class="row">
    <div class="col-md-6">
        <?php 
array_unshift($details['user_refer'], ['Url', 'Clicks']);
echo GoogleChart::widget(array('visualization' => 'PieChart', 'data' => $details['user_refer'], 'options' => array('title' => 'Referrers')));
?>
    </div>
    <div class="col-md-6">
        <?php 
array_unshift($details['user_agent'], ['Url', 'Clicks']);
echo GoogleChart::widget(array('visualization' => 'PieChart', 'data' => $details['user_agent'], 'options' => array('title' => 'Browsers')));
?>
    </div>
</div>
Пример #2
0
use kartik\tabs\TabsX;
use kartik\date\DatePicker;
use kartik\builder\Form;
use scotthuangzl\googlechart\GoogleChart;
//use backend\assets\AppAsset; 	/* CLASS ASSET CSS/JS/THEME Author: -ptr.nov-*/
//AppAsset::register($this);		/* INDEPENDENT CSS/JS/THEME FOR PAGE  Author: -ptr.nov-*/
$this->sideCorp = 'PT. Efenbi Sukses Makmur';
/* Title Select Company pada header pasa sidemenu/menu samping kiri */
$this->sideMenu = 'esm_purchasing';
/* kd_menu untuk list menu pada sidemenu, get from table of database */
$this->title = Yii::t('app', 'ESM - Purchasing Dashboard');
/* title pada header page */
$this->params['breadcrumbs'][] = $this->title;
/* belum di gunakan karena sudah ada list sidemenu, on plan next*/
$pertama = GoogleChart::widget(array('visualization' => 'PieChart', 'data' => array(array('Task', 'Hours per Day'), array('Work', 11), array('Eat', 2), array('Commute', 2), array('Watch TV', 2), array('Sleep', 7))));
$kedua = GoogleChart::widget(array('visualization' => 'PieChart', 'data' => array(array('Task', 'Hours per Day'), array('Work', 11), array('Eat', 2), array('Commute', 2), array('Watch TV', 2), array('Sleep', 7))));
?>


<div class="body-content">
    <div class="row" style="padding-left: 5px; padding-right: 5px">

        <div class="col-sm-4 col-md-4 col-lg-4 ">
            <?php 
echo Html::panel(['heading' => 'Employee Status', 'body' => $pertama], Html::TYPE_SUCCESS);
?>
        </div>
        <div class="col-sm-4 col-md-4 col-lg-4">
            <?php 
echo Html::panel(['heading' => 'Employee Properties', 'body' => $kedua], Html::TYPE_SUCCESS);
?>
Пример #3
0
		  <div class="box box-info">
			<div class="box-header with-border">
			  <h3 class="box-title">Statistik</h3>
			</div><!-- /.box-header -->
			<div class="box-body">
			  <div class="row">
				<div class="col-md-11">
					<?php 
// {{tanngal,count},{tanngal,count},{tanngal,count}}
$data = array();
array_push($data, array('Tanggal', 'Aktivitas User'));
foreach ($userAct as $key => $isi) {
    // echo var_dump($userAct);
    array_push($data, array($isi['tanggal'], (int) $isi['count']));
}
echo GoogleChart::widget(array('visualization' => 'LineChart', 'data' => $data, 'options' => array('title' => 'Jenis Kelamin')));
?>
				</div>
			  </div><!-- /.row -->
			</div><!-- /.box-body -->
		  </div><!-- /.box -->
		</div><!-- /.Left col -->
	  </div><!-- /.row (main row) -->
	  <div class="row">
		<!-- Left col -->
		<div class="col-lg-6">
		  <!-- Custom tabs (Charts with tabs)-->
		  <div class="box box-info">
			<div class="box-header with-border">
			  <h3 class="box-title">Top URI Request</h3>
			</div><!-- /.box-header -->
Пример #4
0
<ul>
    <li><label>Name</label>: <?php 
echo Html::encode($model->num_tom);
?>
</li>
    <li><label>Email</label>: <?php 
echo Html::encode($model->canton);
?>
</li>
    <li><label> EL NIÑO ESTA BIEN NUTRIDO <label>: <?php 
echo Html::encode($model->nutricion);
?>
 </li>
</ul>


           

<div class="col-sm-5">
            <?php 
use scotthuangzl\googlechart\GoogleChart;
echo GoogleChart::widget(array('visualization' => 'ColumnChart', 'data' => array(array('Task', 'Hours per Day'), array('Work', $model->nutricion), array('Eat', 2), array('Commute', 2), array('Watch TV', 2), array('Sleep', 7)), 'options' => array('title' => 'My Daily Activity')));
?>
        </div>
    
  
<div class="col-sm-5">
            <?php 
echo GoogleChart::widget(array('visualization' => 'Map', 'packages' => 'map', 'loadVersion' => 1, 'data' => array(['Country', 'Population'], ['China', 'China: 1,363,800,000'], ['India', 'India: 1,242,620,000'], ['US', 'US: 317,842,000'], ['Indonesia', 'Indonesia: 247,424,598'], ['Brazil', 'Brazil: 201,032,714'], ['Pakistan', 'Pakistan: 186,134,000'], ['Nigeria', 'Nigeria: 173,615,000'], ['Bangladesh', 'Bangladesh: 152,518,015'], ['Russia', 'Russia: 146,019,512'], ['Japan', 'Japan: 127,120,000']), 'options' => array('title' => 'My Daily Activity', 'showTip' => true)));
?>
        </div>
Пример #5
0
?>

<div class="col-sm-5">
            
  </div>

<p><li>GRAFICO Y UBICACION CANTON<li></p>

<div class="col-sm-50">
            <?php 
echo GoogleChart::widget(array('visualization' => 'ColumnChart', 'data' => array(array('Task', 'Toma- Canton'), array('BIEN NUTRIDO', $model->nutricion), array('BIEN ALIMENTADO', $model->alimentado), array('BIEN DE SALUD', $model->salud), array('BIEN ATENDIDO', $model->atencion), array('CUIDADORES PREPARADOS', $model->cuidador), array('VIVIENDA SALUDABLE', $model->vivienda), array('COMUNIDAD SALUDABLE', $model->com_sal), array('Media', 50)), 'options' => array('title' => 'Indicadores')));
?>
    
    
    <?php 
echo GoogleChart::widget(array('visualization' => 'Map', 'packages' => 'map', 'loadVersion' => 1, 'data' => array(['Country', 'Population'], ['Riobamba', 'Riobamba: 1,363,800,000'], ['Guano', 'Guano: 1,242,620,000'], ['Alausi', 'Alausi: 317,842,000'], ['Chambo', 'Chambo: 247,424,598'], ['Chunchi', 'Chunchi: 201,032,714'], ['Colta', 'Colta: 186,134,000'], ['Cumanda', 'Cumanda: 173,615,000'], ['Guamote', 'Guamote: 152,518,015'], ['Pallatanga', 'Pallatanga: 146,019,512'], ['Penipe', 'Penipe: 127,120,000']), 'options' => array('title' => 'My Daily Activity', 'showTip' => true)));
?>
    
    
        </div>

<ul>
    <li><label> EL NIÑO ESTA BIEN NUTRIDO <label>: <?php 
echo Html::encode($model->nutricion);
?>
 </li>
    <li><label> EL NIÑO ESTA BIEN ALIMENTADO <label>: <?php 
echo Html::encode($model->alimentado);
?>
 </li>
    <li><label> EL NIÑO ESTA BIEN DE SALUD <label>: <?php 
Пример #6
0
			<div class="box-header with-border">
			  <h3 class="box-title">Statistik</h3>
			</div><!-- /.box-header -->
			<div class="box-body">
			  <div class="row">
				<div class="col-md-4">
					<?php 
echo GoogleChart::widget(array('visualization' => 'PieChart', 'data' => array(array('Jenis Kelamin', 'Jumlah'), array('Laki-laki', $laki['count'] != 0 ? (int) $laki['count'] : 0), array('Perempuan', $pr['count'] != 0 ? (int) $pr['count'] : 0)), 'options' => array('title' => 'Jenis Kelamin', 'sliceVisibilityThreshold' => '0', 'is3D' => true)));
?>
				</div>
				<div class="col-md-4">
					<?php 
echo GoogleChart::widget(array('visualization' => 'PieChart', 'data' => array(array('Status', 'Jumlah'), array('Hidup', $hidup['count'] != 0 ? (int) $hidup['count'] : 0), array('Meninggal', $mati['count'] != 0 ? (int) $mati['count'] : 0)), 'options' => array('title' => 'Jumlah Kematian dan Kelahiran', 'sliceVisibilityThreshold' => '0', 'is3D' => true)));
?>
				</div>
				<div class="col-md-4">
					<?php 
echo GoogleChart::widget(array('visualization' => 'PieChart', 'data' => array(array('Range', 'Jumlah'), array('0 - 5', (int) $balita['count']), array('6 - 12', (int) $anak['count']), array('13 - 20', (int) $remaja['count']), array('21 - 50', (int) $dewasa['count']), array('51 - 65', (int) $tua['count']), array('66 - ...', (int) $lansia['count'])), 'options' => array('title' => 'Umur rata-rata', 'sliceVisibilityThreshold' => '0', 'is3D' => true)));
?>
				</div>
			  </div><!-- /.row -->
			</div><!-- /.box-body -->
		  </div><!-- /.box -->


		</div><!-- /.Left col -->
	  </div><!-- /.row (main row) -->

	</section><!-- /.content -->
</div>
Пример #7
0
            </div><!-- ./col -->
          </div><!-- /.row -->
          <br />
          <div class="row">
              <div class="col-lg-6">
                <div class="box box-danger">
                <div class="box-header with-border">
                  <h3 class="box-title">กราฟแสดงจำนวนใบสั่งงาน</h3>
                  <div class="box-tools pull-right">
                    <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
                    <button class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
                  </div>
                </div>
                <div class="box-body chart-responsive">
                  <?php 
echo GoogleChart::widget(['visualization' => 'PieChart', 'data' => [['Task', 'Hours per Day'], ['โปรแกรม', 11], ['รายงาน', 2], ['ผู้ใช้งาน', 2], ['อุปกรณ์คอมฯ', 2], ['CCTV', 7], ['โทรศัพท์', 7], ['กู้ข้อมูล', 7]], 'options' => ['title' => '']]);
?>
                </div><!-- /.box-body -->
              </div><!-- /.box -->
              </div>
              <div class="col-lg-6">
                  <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">
                      
                    </ul>
                  </div>
                </div><!-- /.box-header -->
                <div class="box-body no-padding">
Пример #8
0


<ul>
    <li><label>Name</label>: <?php 
echo Html::encode($model->num_tom);
?>
</li>
    <li><label>Email</label>: <?php 
echo Html::encode($model->canton);
?>
</li>
    <li><label> EL NIÑO ESTA BIEN NUTRIDO <label>: <?php 
echo Html::encode($model->nutricion);
?>
 </li>
</ul>


           

<div class="col-sm-5">
            <?php 
$model = new EntryForm();
use scotthuangzl\googlechart\GoogleChart;
echo GoogleChart::widget(array('visualization' => 'ColumnChart', 'data' => array(array('Task', 'Hours per Day'), array('Work', $model->nutricion), array('Eat', 2), array('Commute', 2), array('Watch TV', 2), array('Sleep', 7)), 'options' => array('title' => 'My Daily Activity')));
?>
        </div>
    
  
<div class="col-sm-5">
use yii\helpers\Html;
use yii\grid\GridView;
use yii\data\ArrayDataProvider;
use scotthuangzl\googlechart\GoogleChart;
use yii\widgets\ActiveForm;
use yii\helpers\ArrayHelper;
$this->title = Yii::t('app', 'Relevator Charts');
$this->params['breadcrumbs'][] = $this->title;
?>


<div class="col-sm-8">
    <h2> <?php 
echo Yii::t('core', 'Relevator') . ': ' . $nombreRelevador;
?>
</h2>
    <h4> <?php 
echo Yii::t('core', 'These are the completitude of theroutes for this relevator');
?>
</h4>
    <?php 
$form = ActiveForm::begin(['options' => ['enctype' => 'multipart/form-data']]);
?>

    <?php 
echo GoogleChart::widget(array('visualization' => 'LineChart', 'data' => $arrayCompletitud, 'options' => array('title' => Yii::t('core', 'Accomplishment percentage'))));
?>
    <?php 
ActiveForm::end();
?>
</div>
Пример #10
0
 </h4>
<table>
    <tr>
        <td>
    <?php 
echo Html::img($model->picture, ['width' => '350', 'height' => '350'], ['alt' => $model->name]);
?>
        </td>


        <td>        <h3> Confirmed Budget: <?php 
echo $budgetsize->description;
?>
 </h3>
            <?php 
echo GoogleChart::widget(array('visualization' => 'PieChart', 'data' => array(array('Budget Categories', 'Percent'), array('Mandated', $model->budget_mandated), array('Maintenance', $model->budget_maintenance), array('Innovation', $model->budget_innovation), array('Growth', $model->budget_growth)), 'options' => array('title' => 'Budget Divisions')));
?>
        </td>
    </tr>
</table>

    <h3>Personal Bio</h3>

    <p> <?php 
echo Html::encode($model->person_biography);
?>
 </p>

    <h3> <?php 
echo Html::a($model->company, $model->company_url);
?>
Пример #11
0
<head>
    <title>Выгрузка адресной базы</title>
</head>
<?php 
use scotthuangzl\googlechart\GoogleChart;
?>
<div class="addressload-default-index">
    <?php 
echo GoogleChart::widget(['visualization' => 'LineChart', 'data' => $cities, 'options' => ['title' => 'Cities load stat']]);
echo GoogleChart::widget(['visualization' => 'LineChart', 'data' => $streets, 'options' => ['title' => 'Streets load stat']]);
echo GoogleChart::widget(['visualization' => 'LineChart', 'data' => $houses, 'options' => ['title' => 'Houses load stat']]);
?>
</div>
Пример #12
0
foreach ($dataProvider->getModels() as $key => $val) {
    $totaLine += $val->value;
}
?>
    <div class="col-lg-4">
        <?php 
echo GridView::widget(['dataProvider' => $dataProvider, 'tableOptions' => ['class' => 'table table-hover'], 'filterModel' => $searchModel, 'showFooter' => true, 'columns' => [['attribute' => 'date', 'format' => 'html', 'value' => function ($model) use($searchModel) {
    return Html::a($model->Date, ['/sales/sales/index', 'Sales[date]' => $model->date, 'Sales[branch_id]' => $searchModel->branch_id]);
}, 'filter' => Html::dropDownList('Sales[Date]', $dmonth, $bln, ['class' => 'form-control'])], ['attribute' => 'value', 'format' => ['decimal', 0], 'headerOptions' => ['style' => 'text-align:right; width:20%;'], 'contentOptions' => ['style' => 'text-align:right;'], 'footerOptions' => ['style' => 'text-align:right;', 'class' => 'text-bold'], 'footer' => number_format($totaLine, 0), 'filter' => false]]]);
?>
    </div>
    <div class="col-lg-8">
        <?php 
$data = [];
$is_first = true;
$kum = 0;
foreach ($dataProvider->models as $row) {
    if ($is_first) {
        $data = array_merge($data, array(['Day', 'Value', 'Kumulatif']));
        $is_first = false;
    }
    $kum += $row->value;
    $data = array_merge($data, array([$row->Date, $row->value, $kum]));
}
if (count($data) > 0) {
    echo GoogleChart::widget(['visualization' => 'ComboChart', 'data' => $data, 'htmlOptions' => ['style' => 'height:650px;'], 'options' => ['title' => 'My Daily Sales', 'vAxis' => ['title' => 'Sales'], 'hAxis' => ['title' => 'Date'], 'seriesType' => 'bars', 'series' => [1 => ['type' => 'line']]]]);
}
?>
    </div>
</div>
 * Date: 7/12/2015
 * Time: 3:58
 */
use scotthuangzl\googlechart\GoogleChart;
use yii\widgets\ActiveForm;
$this->title = Yii::t('core', 'Store Sales Charts');
$this->params['breadcrumbs'][] = $this->title;
?>


<div class="col-sm-8">
    <h2> <?php 
echo Yii::t('core', 'Store') . ': ' . $nombreTienda;
?>
</h2>
    <h4> <?php 
echo Yii::t('core', 'These are the Orders requested for this Store');
?>
</h4>
    <?php 
$form = ActiveForm::begin(['options' => ['enctype' => 'multipart/form-data']]);
?>

    <?php 
echo GoogleChart::widget(array('visualization' => 'BarChart', 'data' => $arrayPedidos, 'options' => array('title' => Yii::t('core', 'Requested Orders'))));
?>
    <?php 
ActiveForm::end();
?>
</div>
Пример #14
0
echo Html::submitButton('OK', ['class' => 'btn btn-primary']);
?>
						</div>
					</div>
				</div>
				<?php 
ActiveForm::end();
?>
			  </div>
			  <div class="row">
				<div class="col-md-11">
					<?php 
$data = array();
array_push($data, array('Tanggal', 'Jumlah'));
foreach ($query as $isi) {
    array_push($data, array($isi['tanggal_diterbitkan'], (int) $isi['count']));
}
echo GoogleChart::widget(array('visualization' => 'LineChart', 'data' => $data, 'options' => array('title' => 'Pertumbuhan Penduduk')));
?>
				</div>
			  </div><!-- /.row -->
			</div><!-- /.box-body -->
		  </div><!-- /.box -->


		</div><!-- /.Left col -->
	  </div><!-- /.row (main row) -->

	</section><!-- /.content -->
</div>
 * Date: 06/12/2015
 * Time: 04:19
 */
use scotthuangzl\googlechart\GoogleChart;
use yii\widgets\ActiveForm;
$this->title = Yii::t('core', 'Store Sales Charts');
$this->params['breadcrumbs'][] = $this->title;
?>


<div class="col-sm-5">
    <h2> <?php 
echo Yii::t('core', 'Store') . ': ' . $nombreTienda;
?>
</h2>
    <h4> <?php 
echo Yii::t('core', 'These are the top 5 best sellers from this store');
?>
</h4>
    <?php 
$form = ActiveForm::begin(['options' => ['enctype' => 'multipart/form-data']]);
?>

    <?php 
echo GoogleChart::widget(array('visualization' => 'BarChart', 'data' => $arrayVentas, 'options' => array('title' => Yii::t('core', 'Most wanted products'))));
?>
    <?php 
ActiveForm::end();
?>
</div>