DonatShell
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/People/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/AppServ/www/app/View/People/admin_index_20170928.ctp
<div class="admin-list-filters">
    <?php
    echo $this->Form->create('Person',
        array(
            'class' => 'form-horizontal',
            'type' => 'get'
        ));
    ?>
    <div class="form-group">
        <?php
        echo $this->Form->label('filter_keyword',
            __('ค้นหาจากคีย์เวิร์ด'),
            array(
                'class' => 'col-md-3 text-right filter-label'
            ));
        echo $this->Form->input('filter_keyword', array(
            'label' => false,
            'class' => 'form-control',
            'div' => 'col-md-8',
            'type' => 'text',
            'placeholder' => __('ค้นหาจากชื่อ ที่อยู่ ฯลฯ'),
            'value' => $keyword
        ));
        ?>
    </div>
    <div class="row">
        <div class="col-md-10 col-md-offset-2">
            <h4><?php echo __('ค้นหาตามเงื่อนไข'); ?></h4>
        </div>
    </div>
    <div class="form-group">
        <div class="col-md-9 col-md-offset-2">

            <?php echo $this->Form->input('search_by_position',
            array(
                'options' => array(
                    __('ทั้งหมด'),
                    __('สถานะที่เกี่ยวข้องกับ กสม.')
                ),
                'div' => false,
                'type' => 'radio',
                'legend' => false,
                'value' => $search_by_position,
                'before' => '<div class="pull-left radio-filter">',
                'separator' => '</div><div class="pull-left radio-filter">',
                'after' => '</div>'
            )); ?>

            <?php
            echo $this->Form->input('position_id', array(
                'type' => 'select',
                'options' => $positions,
                'label' => false,
                'class' => 'form-control',
                'div' => 'col-md-6',
                'value' => $position_id,
                'empty' => __('ทุกสถานะ')
            ));
            ?>
        </div>
    </div>
    <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(
            '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',
            'empty' => __('ทุกประเภทสิทธิย่อย'),
            'rel' => 'topics',
            'value' => $subtopic_id
        ));
        ?>
    </div><!-- .form-group -->
    <div class="form-group">
    <?php
    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-3',
        'value' => $target_id,
        'empty' => __('ไม่เจาะจง')
    ));
    ?>
    </div>
    <div class="form-group">
        <div class="col-md-9 col-md-offset-2">

            <?php echo $this->Form->input('address_type',
            array(
                'options' => array(
                    'address' => __('ที่อยู่'),
                    'work' => __('พื้นที่การทำงาน')
                ),
                'div' => false,
                'type' => 'radio',
                'legend' => false,
                'value' => $address_type,
                'before' => '<div class="pull-left radio-filter">',
                'separator' => '</div><div class="pull-left radio-filter">',
                'after' => '</div>'
            )); ?>
        </div>
    </div>
    <div class="form-group">
        <?php

        echo $this->Form->input('region_id', array(
            'label' => false,
            'class' => 'form-control select-region-id',
            'div' => 'col-md-3 col-md-offset-2',
            '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="row">
        <div class="col-md-10 col-md-offset-2">
            <h4><?php echo __( 'ในช่วงเวลา (วันที่เริ่มเป็นสมาชิกเครือข่าย)' ); ?></h4>
        </div>
    </div>
    <div class="form-group">
        <?php
        // with using `created`, cake messes things up :/
        echo $this->Form->input('joined', 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 col-md-offset-2',
            'dateFormat' => 'YMD',
            'value' => $joined
        ));

        echo $this->Form->label('joined_to',
            __( 'ถึง' ),
            array(
                'class' => 'col-md-1 alignright filter-label'
            ));

        echo $this->Form->input('joined_to', 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' => $joined_to
        ));
        ?>
    </div><!-- .form-group -->
    <div class="form-group">
        <div class="col-md-2 col-md-offset-9 text-right">
            <?php echo $this->Form->submit(__('ค้นหา'), array(
                'class' => 'btn btn-success btn-block'
            )); ?>
        </div>
    </div>
    <?php echo $this->Form->end(); ?>

</div><!-- .admin-list-filters -->
<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="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 class="text-center"><?php echo __('แก้ไข'); ?></th>
                <th class="text-center"><?php echo __('สถานะ'); ?></th>
            </tr>
        </thead>
        <tbody>
        <?php foreach ($people as $index => $person): ?>
            <tr>
                <td class="text-center"><?php echo $index + 1; ?></td>
                <td>
                <?php echo $this->Html->link(h($person['Person']['name']),
                        array(
                            'action' => 'view',
                            $person['Person']['id'],
                            'admin' => false
                        )); ?>&nbsp;
                </td>

                <td>
                    <?php if( !empty( $person['PeoplePosition'] ) ): ?>
                        <?php foreach( $person['PeoplePosition'] as $personPosition ): ?>
                            <strong><?php echo $positions[ $personPosition['position_id'] ] ?></strong><br />
                        <?php endforeach; ?>
                    <?php else: ?>
                        -
                    <?php endif; ?>
                </td>

                <td><?php echo $this->Time->format('d/m/Y', $person['Person']['joined']); ?></td>
                <td class="actions text-center">
                    <?php echo $this->Html->link(
                        '<span class="glyphicon glyphicon-pencil"></a>',
                        array(
                            'action' => 'edit',
                            $person['Person']['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', $person['Person']['id']),
                                array('escape' => false),
                                __('ยืนยันการปิดการใช้งาน')); ?>
                        <?php else : ?>
                            <?php echo $this->Form->postLink('<span class="glyphicon glyphicon-refresh"></span>',
                                array('action' => 'active', $person['Person']['id']),
                                array('escape' => false),
                                __('ยืนยันการเปิดการใช้งาน')); ?>
                    <?php endif; ?>
                </td>
            </tr>
        <?php endforeach; ?>
        </tbody>
    </table>
</div>
<?php echo $this->element('pagination'); ?>
<script>
    $(function() {
        $('#status-select').on('change', function() {
            $('form#status-form').submit();
        });
    });
</script>

Anon7 - 2022
AnonSec Team