Server IP : 180.180.241.3 / Your IP : 216.73.216.252 Web Server : Microsoft-IIS/7.5 System : Windows NT NETWORK-NHRC 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586 User : IUSR ( 0) PHP Version : 5.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /AppServ/www/app/View/Pages/ |
Upload File : |
<?php echo $this->element('filter-start'); echo $this->Form->create(null, array( 'type' => 'get', 'class' => 'form-horizontal disctrict-filter' )); ?> <div class="form-group"> <?php echo $this->Form->label('results_type', __('Type of results'), array( 'class' => 'col-md-2 text-right filter-label' )); echo $this->Form->input('results_type', array( 'options' => array( __( 'all' ), __( 'Increased' ), ), 'label' => false, 'class' => 'form-control', 'div' => 'col-md-3', 'empty' => false, 'value' => isset( $this->params->query['results_type'] ) ? ( int )$this->params->query['results_type'] : 0 )); echo $this->Form->label('member_id', __('Member'), array( 'class' => 'col-md-2 text-right filter-label' )); echo $this->Form->input('member_id', array( 'options' => $members, 'label' => false, 'class' => 'form-control', 'div' => 'col-md-3', 'empty' => __('Select member'), 'value' => isset( $this->params->query['member_id'] ) ? ( int )$this->params->query['member_id'] : 0 )); ?> </div><!-- .form-group --> <div class="form-group"> <?php echo $this->Form->label('type_id', __('ประเภทเครือข่าย'), array( 'class' => 'col-md-2 text-right filter-label' )); echo $this->Form->input('type_id', array( 'options' => $types, 'label' => false, 'class' => 'form-control', 'div' => 'col-md-3', 'empty' => __('ทุกประเภท'), 'value' => isset( $this->params->query['type_id'] ) ? ( int )$this->params->query['type_id'] : 0 )); ?> </div><!-- .form-group --> <div class="form-group"> <?php echo $this->Form->label('topic_id', __('ประเภทสิทธิหลัก'), array( 'class' => 'col-md-2 text-right filter-label' )); echo $this->Form->input('topic_id', array( 'options' => $topics, 'label' => false, 'class' => 'form-control select-topic-id', 'div' => 'col-md-3', 'empty' => __('ทุกประเภทสิทธิ'), 'rel' => 'topics', 'value' => isset( $this->params->query['topic_id'] ) ? ( int )$this->params->query['topic_id'] : 0 )); echo $this->Form->label('subtopic_id', __('ประเภทสิทธิย่อย'), array( 'class' => 'col-md-2 text-right filter-label' )); echo $this->Form->input('subtopic_id', array( 'options' => array(), 'label' => false, 'class' => 'form-control', 'div' => 'col-md-3', 'empty' => __('ทุกประเภทสิทธิ'), 'disabled' => true, 'rel' => 'topics', 'value' => isset( $this->params->query['subtopic_id'] ) ? ( int )$this->params->query['subtopic_id'] : 0 )); ?> </div><!-- .form-group --> <div class="form-group"> <?php $years = Configure::read( 'YEARS' ); echo $this->Form->label( 'filter_since_month', __('ตั้งแต่'), array( 'class' => 'col-md-2 text-right filter-label', )); ?> <div class="col-md-1"> <?php echo $this->Form->select( 'filter_since_year', $years, array( 'div' => false, 'legend' => false, 'class' => 'form-control', 'div' => 'col-md-3', 'empty' => __( 'Year' ), 'id' => 'select-create-year', 'value' => isset( $this->request->query['filter_since_year'] ) ? $this->request->query['filter_since_year'] : '', )); ?> </div> <?php echo $this->Form->label( 'filter_until_month', __('ช่วงวันที่'), array( 'class' => 'col-md-2 text-right filter-label', )); ?> <div class="col-md-1"> <?php echo $this->Form->select( 'filter_until_year', $years, array( 'div' => false, 'legend' => false, 'class' => 'form-control', 'div' => 'col-md-3', 'empty' => __( 'Year' ), 'id' => 'select-create-year', 'value' => isset( $this->request->query['filter_until_year'] ) ? $this->request->query['filter_until_year'] : '', )); ?> </div> </div> <!-- .form-group --> <div class="form-group"> <?php echo $this->Form->label('results_type', __('ประเภทรายงาน'), array( 'class' => 'col-md-2 text-right filter-label' )); echo $this->Form->radio('year_type', array( __( 'Normal' ), __( 'Business' ), ), array( 'class' => 'form-control', 'div' => 'col-md-3', 'empty' => false, 'default' => '0', 'legend' => false, 'value' => isset( $this->params->query['year_type'] ) ? ( int )$this->params->query['year_type'] : 0 ) ); echo $this->Form->label('year_type', __('Location'), array( 'class' => 'col-md-2 text-right filter-label' )); ?> </div> <!-- .form-group --> <div class="form-group"> <?php echo $this->Form->input('region_id', array( 'options' => $regions, 'label' => false, 'class' => 'form-control', 'div' => 'col-md-3', 'empty' => __('Select region'), )); echo $this->Form->input('province_id', array( 'options' => isset( $provinces ) ? $provinces : array(), 'label' => false, 'class' => 'form-control', 'div' => 'col-md-3', 'disabled' => !isset( $provinces ), 'empty' => __('Select province'), )); echo $this->Form->input('district_id', array( 'options' => isset( $districts ) ? $districts : array(), 'label' => false, 'class' => 'form-control', 'div' => 'col-md-3', 'disabled' => !isset( $districts ), 'empty' => __('Select district'), )); ?> <div class="col-md-1"> <?php echo $this->Form->submit(__('ค้นหา'), array( 'class' => 'btn btn-primary' )); ?> </div><!-- .col-md-2 --> </div><!-- .form-group --> <?php echo $this->Form->end(); ?> <?php echo $this->element('filter-end'); ?> <?php $options = array( 'chart_title' => 'จำนวนองค์กร แยกตามภาค', 'y_title' => 'เครื่อข่ายองค์กร', 'x_title' => 'จำนวนองค์กร', ); $chart_orientation = ( $display_vertical_graph ? 'vertical' : 'horizontal' ); echo $this->element( 'Pages/Charts/' . $chart_orientation . '-chart', $options ); $this->Html->script('highcharts', array( 'inline'=>false ) ); ?> <div class="container frontend-content"> <div class="row"> <div id="container"></div> </div> </div>