Server IP : 103.233.192.212 / Your IP : 216.73.216.158 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/public_html/backup/protected/views/main/etc/ |
Upload File : |
<script type="text/javascript"> $(function(){ $("#saveForm").click(function(){ if(confirm('ต้องการส่งข้อมูล') == true) { $("#form1").submit(); alert('ทำการเพิ่มผลสำรวจ เรียบร้อยแล้ว!'); parent.$.fancybox.close(); } }); }) </script> <?php $criteria = new CDbCriteria(); $criteria->compare('tb_poll_id', $model->id); $criteria->compare('log_ip', OtherFunction::getIp()); $result = tbPollLog::model()->findAll($criteria); ?> <!-- Question --> <table class="table-poll-question" border="0" cellspacing="0" cellpadding="0"> <tr> <td class="poll-question"><i class="icon-tag"></i></td> <td class="poll-question"> <h4>คำถาม :</h4> </td> <td> <h4><?php echo $model->topic_question; ?></h4> </td> </tr> </table> <!-- Answer --> <?php $this->beginWidget('CActiveForm', array( 'id' => 'form1', )); ?> <?php echo CHtml::activeHiddenField($model, 'id'); ?> <table class="table-poll-answer" border="0" cellspacing="0" cellpadding="0"> <?php if ($model->op1 != ''): ?> <tr> <td width="80" class="poll-answer-style"><?php echo CHtml::activeLabel($model, 'op1'); ?></td> <td><?php echo CHtml::radioButton('pollValue', true, array('value' => 1)); ?></td> <td class="poll-answer-text"> <?php echo $model->op1; ?> </td> </tr> <?php endif; ?> <?php if ($model->op2 != ''): ?> <tr> <td class="poll-answer-style"><?php echo CHtml::activeLabel($model, 'op2'); ?></td> <td><?php echo CHtml::radioButton('pollValue', false, array('value' => 2)); ?></td> <td class="poll-answer-text"> <?php echo $model->op2; ?> </td> </tr> <?php endif; ?> <?php if ($model->op3 != ''): ?> <tr> <td class="poll-answer-style"><?php echo CHtml::activeLabel($model, 'op3'); ?></td> <td><?php echo CHtml::radioButton('pollValue', false, array('value' => 3)); ?></td> <td class="poll-answer-text"> <?php echo $model->op3; ?> </td> </tr> <?php endif; ?> <?php if ($model->op4 != ''): ?> <tr> <td class="poll-answer-style"><?php echo CHtml::activeLabel($model, 'op4'); ?></td> <td><?php echo CHtml::radioButton('pollValue', false, array('value' => 4)); ?></td> <td class="poll-answer-text"> <?php echo $model->op4; ?> </td> </tr> <?php endif; ?> <?php if ($model->op5 != ''): ?> <tr> <td class="poll-answer-style"><?php echo CHtml::activeLabel($model, 'op5'); ?></td> <td><?php echo CHtml::radioButton('pollValue', false, array('value' => 5)); ?></td> <td class="poll-answer-text"> <?php echo $model->op5; ?> </td> </tr> <?php endif; ?> <tr> <td colspan="3" style="padding-top: 20px;"> <a class="btn" id="saveForm" href="#"> <i class="icon-ok" style="padding-right: 6px;"></i> <span>ส่งคำตอบของคุณ</span> </a> </td> </tr> </table> <?php $this->endWidget(); ?>