Server IP : 180.180.241.3 / Your IP : 216.73.216.127 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 : C:/AppServ/www/app/View/ForeignOrganizations_bk/ |
Upload File : |
<div class="admin-list-filters"> <?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')); 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')); 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']) ? $this->params->query['org_country'] : '' )); echo $this->Form->submit(__('ค้นหา'), array( 'class' => 'btn btn-success' )); ?> </div> <?php echo $this->Form->end(); ?> </div> <div class="page-header clearfix"> <h2 class="pull-left admin-title-with-btn"><?php echo __('ทั้งหมด ') . $this->paginator->counter( '{:count}' ) . __(' องค์กร'); ?></h2> <div class="pull-left status-filter"> <?php echo $this->Form->create(false, array('type' => 'get', 'id' => 'status-form')); ?> <?php echo $this->Form->select('status', array( 1 => __('เปิดใช้งาน'), 0 => __('ปิดการใช้งาน') ), array( 'value' => $this->params->query['status'] , 'empty' => false, 'class' => 'form-control', 'id' => 'status-select' ) ); ?> <?php echo $this->Form->end(); ?> </div> <?php echo $this->Html->link('เพิ่ม', array( 'action' => 'add', 'admin' => true ), array( 'class' => 'btn btn-success pull-left' )) ?> <?php echo $this->element('export-buttons'); ?> </div> <div class="admin-wrapper"> <div class="table-responsive"> <table class="table table-striped admin-list-data"> <thead> <tr> <th class="text-center"><?php echo __('ลำดับ') ?></th> <th><?php echo __('ชื่อองค์กร'); ?></th> <th><?php echo __('ประเทศ') ?></th> <th><?php echo __('โทรศัพท์') ?></th> <th><?php echo __('อีเมลล์') ?></th> <th><?php echo __('วันที่เป็นสมาชิก') ?></th> <th class="text-center"><?php echo __('แก้ไข'); ?></th> <th class="actions text-center"><?php echo __('สถานะ'); ?></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 echo $this->Html->link(h($foreignOrganizations[$i]['ForeignOrganization']['name']), array( 'action' => 'view', $foreignOrganizations[$i]['ForeignOrganization']['id'], 'admin' => false )); ?> </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 $this->Time->format($foreignOrganizations[$i]['ForeignOrganization']['joined'], '%d/%m/%Y'); ?></td> <td class="actions text-center"> <?php echo $this->Html->link('<span class="glyphicon glyphicon-pencil"></a>', array('action' => 'edit', $foreignOrganizations[$i]['ForeignOrganization']['id']), array('escape' => false)); ?> </td> <td class="text-center"> <?php if ( $this->params->query['status'] == 1 ) : ?> <?php echo $this->Form->postLink('<span class="glyphicon glyphicon-minus-sign"></span>', array('action' => 'delete', $foreignOrganizations[$i]['ForeignOrganization']['id']), array('escape' => false), __('ยืนยันการปิดการใช้งาน')); ?> <?php else : ?> <?php echo $this->Form->postLink('<span class="glyphicon glyphicon-refresh"></span>', array('action' => 'active', $foreignOrganizations[$i]['ForeignOrganization']['id']), array('escape' => false), __('ยืนยันการเปิดการใช้งาน')); ?> <?php endif; ?> </td> </tr> <?php endfor; ?> </tbody> </table> </div> </div> <?php echo $this->element('pagination'); ?> <script> $(function() { $('#status-select').on('change', function() { $('form#status-form').submit(); }); }); </script>