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/Elements/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/AppServ/www/app/View/Elements/contact-form.ctp
<?php
/**
 * This form will be appear on `Add organization` and `Person` page.
 */
?>
<div class="alert alert-success" id="contact-alert" style="display: none;"><?php echo __('ไม่สามารถเพิ่มข้อมูลได้ กรุณาตรวจสอบข้อมูลที่กรอกอีกครั้ง') ?></div>
<?php echo $this->Form->create('Contact', array(
                'class' => 'form-horizontal admin',
                'id' => 'add-contact',
                'url' => array('controller' => 'contacts', 'action' => 'add')
            )); ?>
    <div class="modal-body">
        <div class="form-group">
            <?php
                echo $this->Form->label('name',
                    sprintf('%s <b class="form-required">*</b>', __('ชื่อผู้ประสานงาน')),
                    array(
                        'class' => 'col-md-4 control-label text-right',
                    ));
                echo $this->Form->input('name', array(
                        'label' => false,
                        'class' => 'form-control required',
                        'div' => 'col-md-6',
                        'maxlength' => '500'
                    ));
            ?>
        </div>
        <div class="form-group">
            <?php
                echo $this->Form->label('address',
                    sprintf('%s <b class="form-required">*</b>', __('ที่อยู่')),
                    array('class' => 'col-md-4 control-label text-right'));
                echo $this->Form->input('address', array(
                        'label' => false,
                        'class' => 'form-control required',
                        'div' => 'col-md-6',
                        'maxlength' => '500'
                    ));
            ?>
        </div>
        <div class="district-filter">
            <div class="form-group">
                <?php
                    echo $this->Form->label('province_id',
                        sprintf('%s', __('จังหวัด')),
                        array('class' => 'col-md-4 control-label text-right'));
                    echo $this->Form->input('province_id', array(
                            'options' => $provinces,
                            'label' => false,
                            'class' => 'form-control selected-province',
                            'div' => 'col-md-6',
                            'data-name' => 'districts',
                            'empty' => __('เลือกจังหวัด')
                        ));
                ?>
            </div>
            <div class="form-group">
                <?php
                    echo $this->Form->label('district_id',
                        sprintf('%s', __('อำเภอ / เขต')),
                        array('class' => 'col-md-4 control-label text-right'));
                    echo $this->Form->input('district_id', array(
                            'options' => array(),
                            'label' => false,
                            'class' => 'form-control district-select',
                            'div' => 'col-md-6',
                            'disabled' => true
                        ));
                ?>
            </div>
        </div>
        <div class="form-group">
            <?php
                echo $this->Form->label('postcode',
                    sprintf('%s', __('รหัสไปรษณีย์')),
                    array('class' => 'col-md-4 control-label text-right'));
                echo $this->Form->input('postcode', array(
                        'label' => false,
                        'class' => 'form-control',
                        'div' => 'col-md-6',
                        'maxlength' => 10
                    ));
            ?>
        </div>
        <div class="form-group">
            <?php
                echo $this->Form->label('phone',
                    sprintf('%s <b class="form-required">*</b>', __('หมายเลขโทรศัพท์')),array('class' => 'col-md-4 control-label text-right'));
                echo $this->Form->input('phone', array(
                        'label' => false,
                        'class' => 'form-control required',
                        'div' => 'col-md-6',
                        'maxlength' => 20
                    ));
            ?>
        </div>
        <div class="form-group">
            <?php
                echo $this->Form->label('fax',
                    sprintf('%s', __('หมายเลขโทรสาร')),
                    array('class' => 'col-md-4 control-label text-right'));
                echo $this->Form->input('fax', array(
                        'label' => false,
                        'class' => 'form-control',
                        'div' => 'col-md-6',
                        'maxlength' => 20
                    ));
            ?>
        </div>
        <div class="form-group">
            <?php
                echo $this->Form->label('email',
                    sprintf('%s', __('อีเมล์')),
                    array('class' => 'col-md-4 control-label text-right'));
                echo $this->Form->input('email', array(
                        'type' => 'email',
                        'label' => false,
                        'class' => 'form-control',
                        'div' => 'col-md-6',
                        'maxlength' => 254
                    ));
            ?>
        </div>
        <div class="form-group">
            <?php
                echo $this->Form->label('note',
                    sprintf('%s', __('หมายเหตุ')),
                    array('class' => 'col-md-4 control-label text-right'));
                echo $this->Form->input('note', array(
                        'type' => 'textarea',
                        'label' => false,
                        'class' => 'form-control',
                        'div' => 'col-md-6',
                        'maxlength' => 500
                    ));
            ?>
        </div>
    </div>
    <div class="modal-footer">
        <?php echo $this->Form->submit(__('เพิ่มข้อมูล'),
            array(
                'class' => 'btn btn-success',
                'id' => 'contact-submit'
            )); ?>
    </div>
<?php echo $this->Form->end(); ?>

Anon7 - 2022
AnonSec Team