| Server IP : 180.180.241.3 / Your IP : 216.73.216.35 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/Activities/ |
Upload File : |
<?php
echo $this->element('filter-start', array( 'display_helper_text' => true ));
echo $this->Form->create('Activity', array(
'type' => 'get',
'class' => 'form-horizontal'
));
?>
<div class="form-group">
<?php
echo $this->Form->label('filter_keyword', __('ค้นหาจากคีย์เวิร์ด'), array( 'class' => 'col-md-2 text-right filter-label' ));
echo $this->Form->input('filter_keyword', array(
'label' => false,
'class' => 'form-control',
'div' => 'col-md-2',
'type' => 'text',
'placeholder' => __('ค้นหาจากชื่อ ที่อยู่ ฯลฯ'),
'value' => $keyword
));
echo $this->Form->label('topic_id', __('ประเภทสิทธิ'), array( 'class' => 'col-md-2 text-right filter-label' ));
echo $this->Form->input('topic_id', array(
'label' => false,
'class' => 'form-control select-topic-id',
'div' => 'col-md-3',
'type' => 'select',
'options' => $topics,
'empty' => __('ทุกประเภทสิทธิหลัก'),
'value' => $topic_id,
'rel' => 'topics'
));
echo $this->Form->input('subtopic_id', array(
'label' => false,
'class' => 'form-control',
'div' => 'col-md-3',
'type' => 'select',
'value' => $subtopic_id,
'empty' => __('ทุกประเภทสิทธิย่อย'),
'rel' => 'topics'
));
?>
</div><!-- .form-group -->
<div class="form-group">
<?php
echo $this->Form->label('filter_chief', __('ค้นหาจากประธานกิจกรรม'), array( 'class' => 'col-md-2 text-right filter-label' ));
echo $this->Form->input('filter_chief', array(
'label' => false,
'class' => 'form-control',
'div' => 'col-md-4',
'type' => 'text',
'placeholder' => __('ค้นหาจากชื่อประธานกิจกรรม'),
'value' => $chief_name
));
echo $this->Form->label('target_id', __('กลุ่มเป้าหมาย'), array( 'class' => 'col-md-2 text-right filter-label' ));
echo $this->Form->input('target_id', array(
'type' => 'select',
'options' => $targets,
'label' => false,
'class' => 'form-control',
'div' => 'col-md-4',
'value' => $target_id,
'empty' => __('ไม่เจาะจง')
));
?>
</div>
<div class="form-group">
<?php
echo $this->Form->label('region_id', __('พื้นที่จัดกิจกรรม'), array('class' => 'col-md-2 filter-label text-center'));
echo $this->Form->input('region_id', array(
'label' => false,
'class' => 'form-control select-region-id',
'div' => 'col-md-3 ',
'type' => 'select',
'options' => $regions,
'value' => $region_id,
'empty' => __('ทุกภูมิภาค'),
'rel' => 'regions'
));
echo $this->Form->input('province_id', array(
'label' => false,
'class' => 'form-control select-province-id-custom',
'div' => 'col-md-3',
'type' => 'select',
'options' => $provinces,
'value' => $province_id,
'empty' => __('ทุกจังหวัด'),
'rel' => 'regions'
));
echo $this->Form->input('district_id', array(
'label' => false,
'class' => 'form-control',
'div' => 'col-md-3',
'type' => 'select',
'options' => $districts,
'value' => $district_id,
'empty' => __('ทุกอำเภอ'),
'id' => 'select-district-id'
));
?>
</div><!-- .form-group -->
<div class="form-group">
<?php
echo $this->Form->label('started', __('ในช่วงเวลาที่จัดกิจกรรม'), array('class' => 'col-md-2 text-right filter-label'));
// with using `created`, cake messes things up :/
echo $this->Form->input('started', array(
'label' => false,
'before' => '<span class="input-group-addon glyphicon glyphicon-calendar"></span>',
'type' => 'text',
'class' => 'form-control datepicker',
'div' => 'col-md-3 input-group',
'dateFormat' => 'YMD',
'value' => $started
));
echo $this->Form->label('ended', __( 'ถึง' ), array( 'class' => 'col-md-1 text-center filter-label' ));
echo $this->Form->input('ended', array(
'label' => false,
'before' => '<span class="input-group-addon glyphicon glyphicon-calendar"></span>',
'type' => 'text',
'class' => 'form-control datepicker',
'div' => 'col-md-3 input-group',
'dateFormat' => 'YMD',
'value' => $ended
));
echo $this->Form->submit('ค้นหา',
array(
'class' => 'btn btn-success',
'div' => 'col-md-2',
'escape' => false,
'class' => 'btn btn-success btn-block'
));
?>
</div>
<?php echo $this->Form->end(); ?>
<?php echo $this->element('filter-end'); ?>
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="frontend-content">
<div class="page-header">
<div class="pull-right"><?php echo $this->element('export-buttons'); ?></div>
<h2 class="frontend-content-title text-center">
<?php echo __('ข้อมูลการจัดกิจกรรมของเครือข่าย'); ?>
</h2>
<div class="clearfix"></div>
</div><!-- .page-header -->
<div class="table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th class="text-center"><?php echo __('ลำดับ') ?></th>
<th><?php echo $this->Paginator->sort('name', __('ชื่อกิจกรรม')); ?></th>
<th><?php echo $this->Paginator->sort('started', __('วันที่จัดกิจกรรม')); ?></th>
<th><?php echo __('ประธานกิจกรรม'); ?></th>
<th><?php echo $this->Paginator->sort('address', __('สำนักที่จัดกิจกรรม')); ?></th>
<th class="text-center">
<small><?php echo __('จำนวนองค์กรที่เข้าร่วม'); ?></small>
</th>
<th class="text-center">
<small><?php echo __('จำนวนบุคคลที่เข้าร่วม'); ?></small>
</th>
<th class="text-center">
<small><?php echo $this->Paginator->sort('budget', __('งบประมาณที่ใช้ (บาท)')); ?></small>
</th>
<th class="text-center">
<small><?php echo $this->Paginator->sort('satisfaction', __('ความพึงพอใจ (%)')); ?></small>
</th>
<th><?php echo $this->Paginator->sort('is_activated', __('สถานะ')); ?></th>
</tr>
</thead>
<tbody>
<?php for ( $i = 0; $i < count($activities); $i++ ) : ?>
<tr>
<td><?php echo $this->paginator->counter('{:start}') + $i; ?></td>
<td>
<?php if ( $activities[$i]['Activity']['is_activated'] == 1 ) : ?>
<?php
echo $this->Html->link( $activities[$i]['Activity']['name'],
array( 'action' => 'view', $activities[$i]['Activity']['id']),
array( 'title' => $activities[$i]['Activity']['name']));
?>
<?php else : ?>
<?php echo $activities[$i]['Activity']['name']; ?>
<?php endif; ?>
</td>
<td><?php echo $activities[$i]['Activity']['started']; ?></td>
<td><?php echo isset($activities[$i]['Chief'][0]) ? $activities[$i]['Chief'][0]['name'] : '<span class="text-muted">' . __('ไม่มีประธานกิจกรรม') . '</span>'; ?></td>
<td><?php echo $activities[$i]['Activity']['address']; ?></td>
<td class="text-center">
<?php echo count($activities[$i]['Organization']) ?>
</td>
<td class="text-center">
<?php echo count($activities[$i]['Person']) ?>
</td>
<td class="text-center">
<?php echo $this->Number->currency(
$activities[$i]['Activity']['budget'],
'',
array(
'places' => 0
)); ?>
</td>
<td class="text-center"><?php echo $activities[$i]['Activity']['satisfaction']; ?></td>
<td><?php echo ($activities[$i]['Activity']['is_activated'] == 1) ? __('ปกติ') : __('ปิดใช้งาน'); ?></td>
</tr>
<?php endfor; ?>
</tbody>
</table>
</div>
<?php echo $this->element('pagination'); ?>
</div><!-- .frontend-content -->
</div><!-- .col-md-12 -->
</div><!-- .row -->
</div><!-- .container -->