| 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/Elements/ForeignOrganizations/ |
Upload File : |
<?php echo $this->Form->create('ForeignOrganization', array( 'type' => 'file', 'class' => 'form-horizontal admin' ) ); ?>
<div class="panel panel-default">
<div class="panel-heading"><?php echo __('ข้อมูลทั่วไป'); ?></div>
<div class="panel-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('eng_name',
sprintf('%s <b class="form-required">*</b>', __('ชื่อองค์กรภาษาอังกฤษ')),
array('class' => 'col-md-4 control-label text-right'));
echo $this->Form->input('eng_name', array(
'label' => false,
'class' => 'form-control required',
'div' => 'col-md-6',
'maxlength' => 500
));
?>
</div>
<div class="form-group">
<?php
echo $this->Form->label('short_name',
__('ชื่อย่อองค์กร'),
array('class' => 'col-md-4 control-label text-right'));
echo $this->Form->input('short_name', array(
'label' => false,
'class' => 'form-control',
'div' => 'col-md-6',
'maxlength' => 20
));
?>
</div>
<div class="form-group">
<?php
echo $this->Form->label('eng_short_name',
__('ชื่อย่อองค์กรภาษาอังกฤษ'),
array('class' => 'col-md-4 control-label text-right'));
echo $this->Form->input('eng_short_name', array(
'label' => false,
'class' => 'form-control',
'div' => 'col-md-6',
'maxlength' => 20
));
?>
</div>
<div class="form-group">
<?php
echo $this->Form->label('fax',
__('โทรสาร'),
array('class' => 'col-md-4 control-label text-right'));
echo $this->Form->input('fax', array(
'label' => false,
'type' => 'text',
'class' => 'form-control',
'div' => 'col-md-6',
'maxlength' => 15
));
?>
</div>
<div class="form-group">
<?php
echo $this->Form->label('email',
__('อีเมล์องค์กร'),
array('class' => 'col-md-4 control-label text-right'));
echo $this->Form->input('email', array(
'label' => false,
'type' => 'email',
'class' => 'form-control',
'div' => 'col-md-6',
'maxlength' => 100
));
?>
</div>
<div class="form-group">
<?php
echo $this->Form->label('url',
__('เว็บไซต์'),
array('class' => 'col-md-4 control-label text-right'));
echo $this->Form->input('url', array(
'type' => 'url',
'label' => false,
'class' => 'form-control',
'div' => 'col-md-6',
'maxlength' => 100,
'placeholder' => 'http://www.example.com'
));
?>
</div>
<div class="form-group">
<?php
echo $this->Form->label('telephone1',
sprintf('%s <b class="form-required">*</b>', __('หมายเลขโทรศัพท์องค์กร 1')),
array('class' => 'col-md-4 control-label text-right'));
echo $this->Form->input('telephone1', array(
'label' => false,
'type' => 'text',
'class' => 'form-control required',
'div' => 'col-md-6',
'maxlength' => 15
));
?>
</div>
<div class="form-group">
<?php
echo $this->Form->label('telephone2',
__('หมายเลขโทรศัพท์องค์กร 2'),
array('class' => 'col-md-4 control-label text-right'));
echo $this->Form->input('telephone2', array(
'label' => false,
'type' => 'text',
'class' => 'form-control',
'div' => 'col-md-6',
'maxlength' => 15
));
?>
</div>
<div class="form-group">
<?php
echo $this->Form->label('founded',
sprintf('%s', __('วันที่ก่อตั้ง')),
array('class' => 'col-md-4 control-label text-right'));
echo $this->Form->input('founded', array(
'label' => false,
'before' => '<span class="input-group-addon glyphicon glyphicon-calendar"></span>',
'type' => 'text',
'class' => 'form-control datepicker',
'div' => 'col-md-6 input-group'
));
?>
</div>
<div class="form-group">
<?php
echo $this->Form->label('joined', __('วันที่เริ่มเป็นสมาชิก <b class="form-required">*</b>'), array('class' => 'col-md-4 control-label text-right'));
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-6 input-group'
));
?>
</div>
<div class="form-group">
<?php
echo $this->Form->label('address', __('ที่อยู่'), array('class' => 'col-md-4 control-label text-right'));
echo $this->Form->input('address', array(
'label' => false,
'type' => 'textarea',
'class' => 'form-control',
'div' => 'col-md-6',
'maxlength' => 1000
));
?>
</div>
<div class="form-group">
<?php
echo $this->Form->label('country_id',
sprintf('%s <b class="form-required">*</b>', __('ประเทศ')),
array('class' => 'col-md-4 control-label text-right'));
echo $this->Form->input('country_id', array(
'label' => false,
'class' => 'form-control required',
'div' => 'col-md-6',
'empty' => __('เลือกประเทศ')
));
?>
</div>
<div class="form-group">
<?php
echo $this->Form->label('comment',
__('หมายเหตุ'),
array('class' => 'col-md-4 control-label text-right'));
echo $this->Form->input('comment', array(
'label' => false,
'class' => 'form-control',
'div' => 'col-md-6'
));
?>
</div>
<div class="form-group">
<?php
echo $this->Form->label('portfolio',
__('ผลงานที่ผ่านมา'),
array('class' => 'col-md-4 control-label text-right'));
echo $this->Form->input('portfolio', array(
'label' => false,
'class' => 'form-control',
'div' => 'col-md-6'
));
?>
</div>
<div class="form-group">
<?php
echo $this->Form->label('description',
__('ประวัติโดยย่อ'),
array('class' => 'col-md-4 control-label text-right'));
echo $this->Form->input('description', array(
'label' => false,
'class' => 'form-control',
'div' => 'col-md-6'
));
?>
</div>
<div class="form-group">
<?php
echo $this->Form->label('target',
__('กลุ่มเป้าหมาย'),
array('class' => 'col-md-4 control-label text-right'));
echo $this->Form->input('target', array(
'multiple' => true,
'label' => false,
'class' => 'form-control',
'div' => 'col-md-6'
));
?>
<?php echo __('คั่นแต่ละหัวข้อด้วยเครื่องหมายจุลภาค(,)'); ?>
</div>
<div class="form-group">
<?php
echo $this->Form->label('contact',
sprintf('%s <b class="form-required">*</b>', __('ผู้ติดต่อ')),
array('class' => 'col-md-4 control-label text-right'));
echo $this->Form->input('contact', array(
'multiple' => true,
'label' => false,
'class' => 'form-control required',
'div' => 'col-md-6'
));
?>
<?php echo __('คั่นแต่ละหัวข้อด้วยเครื่องหมายจุลภาค(,)'); ?>
</div>
<div class="form-group">
<?php
echo $this->Form->label('work_area',
sprintf('%s <b class="form-required">*</b>', __('พื้นที่การทำงาน')),
array('class' => 'col-md-4 control-label text-right'));
echo $this->Form->input('work_area', array(
'multiple' => true,
'label' => false,
'class' => 'form-control required',
'div' => 'col-md-6'
));
?>
<?php echo __('คั่นแต่ละหัวข้อด้วยเครื่องหมายจุลภาค(,)'); ?>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading"><?php echo __('รูปภาพ') ?></div>
<div class="panel-body">
<div class="form-group">
<?php
echo $this->Form->label('photo', __('เลือกรูปภาพ'), array('class' => 'col-md-4 control-label text-right'));
echo $this->Form->input('photo', array(
'type' => 'file',
'label' => false,
'class' => 'form-control',
'div' => 'col-md-6',
));
?>
</div> <!-- .form-group -->
<div class="form-group">
<?php echo $this->Form->label('AttachedPhotos', __('รูปภาพที่มีอยู่แล้ว'), array('class' => 'col-md-4 control-label text-right')); ?>
<ul id="existing-photos" class="list-photos">
<?php $nPhotos = isset( $this->request->data['Photo'] ) ? count( $this->request->data['Photo'] ) : 0; ?>
<?php for( $i = 0; $i < $nPhotos; $i++) : ?>
<li>
<?php $photo = $this->request->data['Photo'][$i]; ?>
<?php echo $this->Html->image( $photos_url . '/' . $photo['name'], array( 'alt' => $photo['name']) ); ?>
<?php echo $this->Form->input( 'ForeignOrganization.delete_photo.' . $i, array(
'type' => 'checkbox',
'class' => '',
'value' => $photo['id'],
'hiddenField' => false,
'label' => array( 'text' => 'delete' ),
'div' => 'form-control',
'legend' => false,
));
?>
</li>
<?php endfor; ?>
</ul>
</div> <!-- .form-group -->
</div> <!-- .pannel-body -->
</div>
<hr>
<div class="form-group">
<?php
echo $this->Form->end(array(
'label' => $submit_label,
'class' => 'btn btn-success',
'div' => 'col-md-offset-4 col-md-4'
));
?>
</div>