| 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/ForeignOrganizations_bk/ |
Upload File : |
<?php
echo $this->element('filter-start', array(
'display_helper_text' => true
));
?>
<?php echo $this->Form->create(false, array( 'type' => 'get', 'role' => 'form', 'class' => 'form-horizontal' )); ?>
<div class="form-group">
<?php
echo $this->Form->label('org_name', __('ค้นหาตามชื่อ'), array('class' => 'col-md-2 text-right'));
echo $this->Form->input('org_name', array(
'class' => 'form-control',
'div' => array('class' => 'col-md-3'),
'label' => false,
'value' => isset($this->params->query['org_name']) ? $this->params->query['org_name'] : ''
));
echo $this->Form->label('org_country', __('ค้นหาตามประเทศ'), array('class' => 'col-md-2 text-center'));
echo $this->Form->input('org_country', array(
'options' => $countries,
'class' => 'form-control',
'div' => array('class' => 'col-md-3'),
'label' => false,
'empty' => __('ทั้งหมด'),
'value' => isset($this->params->query['org_country']) ? (int)$this->params->query['org_country'] : ''
));
echo $this->Form->submit(__('ค้นหา'), array( 'class' => 'btn btn-success' ));
?>
</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">
<h2 class="frontend-content-title text-center"><?php echo $topicTitle; ?></h2>
</div>
<table class="table table-striped admin-list-data">
<thead>
<tr>
<th class="text-center"><?php echo __('ลำดับ'); ?></th>
<th><?php echo $this->Paginator->sort('name', __('ชื่อองค์กร')); ?></th>
<th><?php echo __('ประเทศ'); ?></th>
<th><?php echo __('โทรศัพท์'); ?></th>
<th><?php echo __('อีเมลล์'); ?></th>
<th><?php echo __('ประเภทองค์กร'); ?></th>
<th><?php echo $this->Paginator->sort('joined', __('วันที่เป็นสมาชิก')); ?></th>
<th class="actions text-center"><?php echo $this->Paginator->sort('is_activated', __('สถานะ')); ?></th>
</tr>
</thead>
<tbody>
<?php for ( $i = 0; $i < count($foreignOrganizations) ; $i++ ) : ?>
<tr>
<td class="text-center"><?php echo $this->paginator->counter( '{:start}' ) + $i; ?></td>
<td>
<?php if ( $foreignOrganizations[$i]['ForeignOrganization']['is_activated'] == 1 ) : ?>
<?php echo $this->Html->link(h($foreignOrganizations[$i]['ForeignOrganization']['name']),
array(
'action' => 'view',
$foreignOrganizations[$i]['ForeignOrganization']['id'],
'admin' => false
)); ?>
<?php else : ?>
<?php echo $foreignOrganizations[$i]['ForeignOrganization']['name']; ?>
<?php endif; ?>
</td>
<td><?php echo $foreignOrganizations[$i]['Country']['nicename']; ?></td>
<td><?php echo $foreignOrganizations[$i]['ForeignOrganization']['telephone1']; ?></td>
<td><?php echo $foreignOrganizations[$i]['ForeignOrganization']['email']; ?></td>
<td><?php echo $foreignOrganizations[$i]['Type']['name']; ?></td>
<td><?php echo $this->Time->format($foreignOrganizations[$i]['ForeignOrganization']['joined'], '%d/%m/%Y'); ?></td>
<td class="text-center"><?php echo ($foreignOrganizations[$i]['ForeignOrganization']['is_activated'] == 1) ? __('ปกติ') : __('ปิดใช้งาน'); ?></td>
</tr>
<?php endfor; ?>
</tbody>
</table>
<?php echo $this->element('pagination'); ?>
</div>
</div>
</div>
</div>