Server IP : 103.233.192.212 / Your IP : 18.116.49.6 Web Server : Apache/2 System : Linux sv1.inde.co.th 3.10.0-1160.36.2.el7.x86_64 #1 SMP Wed Jul 21 11:57:15 UTC 2021 x86_64 User : sumpatuan ( 1058) PHP Version : 5.5.38 Disable Function : symlink,shell_exec,exec,proc_close,proc_open,popen,system,dl,putenv,passthru,escapeshellarg,escapeshellcmd,pcntl_exec,proc_get_status,proc_nice,proc_terminate,pclose,ini_alter,virtual,openlog,ini_restore MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/sumpatuan/domains/sumpatuan.go.th/private_html/backup/protected/views/main/ |
Upload File : |
<script type="text/javascript"> $(document).ready(function(){ $('input[type=submit]').click(function(){ $('#recaptcha_reload').trigger('click'); }) setTimeout(function(){ $('a.close').trigger('click'); }, 1500); // script ตรวจสอบข้อมูล เลขบัตรประจำตัวประชาขน $('#tbHelping_help_personal_card').change(function(){ if($('#tbHelping_help_personal_card').val().length == 13) { var result = checkID($('#tbHelping_help_personal_card').val()); if(result != true) { alert('เลขบัตรประจำตัวประชาชน ไม่มีอยู่จริง!!'); $('#tbHelping_help_personal_card').val(null); $('#tbHelping_help_personal_card').focus(); } } }); }); // ตรวจสอบ เลขบัตรประจำตัวประชาชน function checkID(id) { if(id.length != 13) return false; for(i=0, sum=0; i < 12; i++) sum += parseFloat(id.charAt(i))*(13-i); if((11-sum%11)%10!=parseFloat(id.charAt(12))) return false; return true; } </script> <style type="text/css"> /* Message แสดงรูปแบบสี Error */ div.errorMessage { color: red; } </style> <h3>รับเรื่องร้องเรียน</h3> <div class="helping-message"> <p>* กรุณากรอกข้อมูลจริง เพื่อง่ายต่อการตรวจสอบ และ แก้ไขปัญหา</p> <p>* มีการเก็บ ข้อมูลบางส่วนเพื่อใช้ตรวจสอบ ผู้ร้องเรียน</p> <p>* ถ้าเลขบัตรประจำตัวประชาชน กับ ชื่อ-นามสกุล ไม่ตรงกัน จะทำการลบเรื่องร้องเรียนนี้</p> </div> <?php $model = new tbHelping(); $form = $this->beginWidget('CActiveForm', array( 'id' => 'form', 'action' => Yii::app()->controller->createUrl('Main/HelpingAdd'), 'enableAjaxValidation' => true, 'clientOptions' => array( 'validateOnSubmit' => true, 'validateOnChange' => true, ), 'htmlOptions' => array('enctype' => 'multipart/form-data'), )); ?> <?php $this->widget('bootstrap.widgets.TbAlert', array( 'alerts' => array( 'success' => array('block' => true), ))); ?> <table class="tableForm-helping" border="0" cellspacing="0" cellpadding="0"> <tr> <td class="tableFormRight-helping" width="220"><?php echo $form->labelEx($model, 'help_title'); ?></td> <td> <?php echo $form->TextField($model, 'help_title', array('class' => 'span6 input-problem', 'placeholder' => 'หัวข้อร้องเรียน')); echo $form->error($model, 'help_title'); ?> </td> </tr> <tr> <td class="tableFormRight-helping"><?php echo $form->labelEx($model, 'help_personal_card'); ?></td> <td> <?php echo $form->TextField($model, 'help_personal_card', array('class'=>'span3 input-problem', 'placeholder'=>'เลขบัตรประจำตัวประชาชน', 'maxlength'=>'13')); echo $form->error($model, 'help_personal_card'); ?> </td> </tr> <tr> <td class="tableFormRight-helping"><?php echo $form->labelEx($model, 'help_fullname'); ?></td> <td> <?php echo $form->TextField($model, 'help_fullname', array('class'=>'span3 input-problem', 'placeholder'=>'ชื่อ-นามสกุล')); echo $form->error($model, 'help_fullname'); ?> </td> </tr> <tr> <td class="tableFormRight-helping"><?php echo $form->labelEx($model, 'help_address'); ?></td> <td> <?php echo $form->TextField($model, 'help_address', array('class'=>'span6 input-problem', 'placeholder'=>'ที่อยู่')); echo $form->error($model, 'help_address'); ?> </td> </tr> <tr> <td class="tableFormRight-helping"><?php echo $form->labelEx($model, 'help_tel'); ?></td> <td> <?php echo $form->TextField($model, 'help_tel', array('class'=>'span3 input-problem', 'placeholder'=>'เบอร์โทร')); echo $form->error($model, 'help_tel'); ?> </td> </tr> <tr> <td class="tableFormRight-helping"><?php echo $form->labelEx($model, 'help_email'); ?></td> <td> <?php echo $form->TextField($model, 'help_email', array('class'=>'span4 input-problem', 'placeholder'=>'อีเมล')); echo $form->error($model, 'help_email'); ?> </td> </tr> <tr> <td class="tableFormRight-helping"><?php echo $form->labelEx($model, 'path_file'); ?></td> <td> <?php echo $form->FileField($model, 'path_file'); echo $form->error($model, 'path_file'); ?> </td> </tr> </table> <hr /> <table class="tableForm-helping"> <tr> <td colspan="2" style="padding-left: 17px;"> <h4>รายละเอียด</h4> </td> </tr> <tr> <td colspan="2"> <?php $this->widget('application.extensions.eckeditor.ECKEditor', array( 'model' => $model, 'attribute' => 'help_detail', 'config' => array( 'toolbar' => array( array('RemoveFormat', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'), array('Bold', 'Italic', 'Underline', 'Format', 'TextColor', '-', 'Source'), ) ), )); ?> <?php echo $form->error($model, 'help_detail'); ?> </td> </tr> <tr> <td width="33%"></td> <td> <div class="g-recaptcha" data-sitekey="6Lf4PgkTAAAAAOHPpk7-H_upCl0c_vJGvEG8_Ivw"></div> </td> </tr> <tr> <td colspan="2" style="text-align: center; padding-top: 7px;"> <?php echo CHtml::submitButton('ส่งเรื่องร้องเรียน', array('class'=>'btn btn-primary btn-large')); ?> </td> </tr> </table> <?php $this->endWidget(); ?>