DonatShell
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 :  C:/AppServ/www/app/View/Organizations/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/AppServ/www/app/View/Organizations/index.ctp
<?php
    echo $this->element('filter-start', array( 'display_helper_text' => true ));
    echo $this->Form->create('Organization',
        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('is_member', __('จาก'), array('class' => 'col-md-1 text-center filter-label')); ?>

        <div class="'col-md-5  js-org-type-filter">
            <?php
                echo $this->Form->input('is_member', array(
                    'options' => array(
                                __('ทั้งหมด'),
                                __('โครงการพิเศษ')
                            ),
                    'div' => false,
                    'type' => 'radio',
                    'legend' => false,
                    'value' => $is_member,
                    'before' => '<div class="pull-left radio-filter">',
                    'separator' => '</div><div class="pull-left radio-filter">',
                    'after' => '</div>'
                ));
            ?>
        </div>
        <?php
            echo $this->Form->input('member_id', array(
                'type' => 'select',
                'options' => $members,
                'value' => $member_id,
                'label' => false,
                'empty' => __('ทุกโครงการ'),
                'class' => 'form-control',
                'div' => 'col-md-3',
                'disabled' => !$is_member,
                'id' => 'member-id'
            ));
    ?>
</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'
        ));

        echo $this->Form->label('target_id',
            __('กลุ่มเป้าหมาย'),
            array(
                'class' => 'col-md-2 text-center filter-label'
            ));
        echo $this->Form->input('target_id', array(
            'label' => false,
            'class' => 'form-control',
            'div' => 'col-md-2',
            'type' => 'select',
            'options' => $targets,
            'value' => $target_id,
            'empty' => __('ไม่เจาะจง')
        ));
    ?>
</div>
<div class="form-group">
    <?php
        echo $this->Form->label('filter_type', __('ประเภทองค์กร'), array( 'class' => 'text-right filter-label col-md-2' ));

        echo $this->Form->input('filter_type', array(
            'label' => false,
            'class' => 'form-control',
            'div' => 'col-md-2',
            'type' => 'select',
            'options' => $types,
            'empty' => __('ทุกประเภท'),
            'value' => $type_id
        ));

        echo $this->Form->label('joined', __('ช่วงเวลา'), array('class' => 'col-md-1 text-center filter-label'));
        // 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',
            'dateFormat' => 'YMD',
            'value' => $joined
        ));

        echo $this->Form->label('joined_to', __( 'ถึง' ), array( 'class' => 'col-md-1 text-center 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">
    <?php
        echo $this->Form->label('address_type', __('ค้นหาโดย'), array('class' => 'col-md-2 filter-label text-right'));
        echo $this->Form->input('address_type', array(
            'options' => array(
                        'address' => __('ที่ตั้ง'),
                        'work' => __('พื้นที่การทำงาน')
                    ),
            'class' => 'form-control',
            'div' => array('class' => 'col-md-2'),
            'label' => false,
            'value' => $address_type,
        ));

        echo $this->Form->label('address', __('ตาม'), array( 'class' => 'col-md-1 text-center filter-label' ));

        echo $this->Form->input('region_id', array(
            'label' => false,
            'class' => 'form-control select-region-id',
            'div' => 'col-md-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-2',
            '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-2',
            'type' => 'select',
            'options' => $districts,
            'value' => $district_id,
            'empty' => __('ทุกอำเภอ'),
            'id' => 'select-district-id'
        ));

        echo $this->Form->submit('ค้นหา', array(
                'class' => 'btn btn-success',
                'div' => 'col-md-1',
                '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">
                    <h2 class="frontend-content-title text-center">
                    <div class="pull-right"><?php echo $this->element('export-buttons'); ?></div>
                        <?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 __('ที่อยู่'); ?></th>
                                <th><?php echo __('ผู้ประสานงาน'); ?></th>
                                <th><?php echo __('โทรศัพท์'); ?></th>
                                <th><?php echo __('อีเมลล์'); ?></th>
                                <th><?php echo __('ประเภทองค์กร'); ?></th>
                                <th><?php echo $this->Paginator->sort('founded', __('วันที่เป็นสมาชิก')); ?></th>
                                <th><?php echo __('จำนวนกิจกรรมเข้าร่วม'); ?></th>
                                <th class="hidden"><?php echo $this->Paginator->sort('is_activated', __('สถานะ')); ?></th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php $nOrganizations = count( $organizations ); ?>
                            <?php for( $i = 0; $i < $nOrganizations; $i++ ): ?>
                            <?php $organization = $organizations[$i]; ?>
                            <tr>
                                <td class="text-center"><?php echo $this->paginator->counter( '{:start}' ) + $i; ?></td>
                                <td>
                                    <?php if ( $organizations[$i]['Organization']['is_activated'] == 1 ) : ?>
                                        <?php echo $this->Html->link(h($organization['Organization']['name']),
                                            array(
                                                'action' => 'view',
                                                $organization['Organization']['id'],
                                                'admin' => false
                                            )); ?>&nbsp;
                                    <?php else : ?>
                                        <?php echo $organization['Organization']['name']; ?>
                                    <?php endif; ?>
                                </td>
                                <td><?php echo h($organization['Organization']['address1']); ?>&nbsp;</td>
                                <td><?php echo isset($organization['Contact'][0]['name']) ? h($organization['Contact'][0]['name']) : '<span class="text-muted">' . __('ไม่มีผู้ประสานงาน') . '</span>'; ?>&nbsp;</td>
                                <td><?php echo h($organization['Organization']['telephone1']); ?>&nbsp;</td>
                                <td><?php echo h($organization['Organization']['email']); ?>&nbsp;</td>
                                <td><?php echo h($organization['Type'][0]['name']); ?>&nbsp;</td>
                                <td><?php echo $this->Time->format('d/m/Y', $organization['Organization']['joined']); ?></td>
                                <td class="text-center"><?php echo count($organization['Activity']); ?>&nbsp;</td>
                                <td class="hidden"><?php echo ($organization['Organization']['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 -->

Anon7 - 2022
AnonSec Team