Server IP : 103.233.192.212 / Your IP : 216.73.216.215 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/ |
Upload File : |
<?php // นำข้อมูล กรุ๊ป และ คำแหน่ง ออกมา $criteria = new CDbCriteria(); $criteria->compare('t.id', $posId); $result = tbChartPosition::model()->find($criteria); $groupId = $result->tb_chart_group_id; // นำข้อมูล ส่วนรูปแผนผังออกมา $criteria = new CDbCriteria(); $criteria->compare('t.id', $groupId); $chart = tbChartGroup::model()->find($criteria); // นำข้อมูล บุคลากร ออกมา $criteria = new CDbCriteria(); $criteria->compare('t.tb_chart_group_id', $groupId); $criteria->compare('t.tb_chart_position_id', $posId); $resultPersonal = tbChartProfile::model()->findAll($criteria); ?> <link href="<?php echo Yii::app()->baseUrl?>/css/bootstrap-responsive.css" rel="stylesheet" media="screen"> <style type="text/css"> body { background: url(http://inde.co.th/img/bg.png) repeat; } </style> <div class="row-fluid"> <div class="span12"> <div class="row-fluid"> <div class="span6"> <div style=""> <h3 style=""><?php echo $chart->group_name;?></h3> <img src="<?php echo Yii::app()->baseUrl.OtherFunction::pathFile('chart').$chart->pic_chart ?>" /> </div> </div> <div class="span6"> <div style="margin-top: 15px;"> <table style=""> <tr> <td style="text-align: center;"><h3><?php echo $result->position_name;; ?></h3></td> </tr> <?php foreach($resultPersonal as $valuePersonal) : ?> <tr> <?php if($valuePersonal->picture) { ?> <td style="text-align: center;"> <img src="<?php echo Yii::app()->baseUrl.OtherFunction::pathFile('chart').$valuePersonal->picture ?>" /> </td> <?php } ?> </tr> <style type="text/css"> p { word-spacing: 20px } </style> <tr> <td > <p style="text-align: center; font-weight: bold;"><?php echo $valuePersonal->fullname; ?></p> </td> </tr> <tr> <td style="text-align: center;"> <img src="http://inde.co.th/img/line.png"> </td> </tr> <tr> <td><hr></td> </tr> <?php endforeach; ?> </table> </div> </div> </div> </div> </div> <!--<div style="position: relative; margin-top: 50px;"> <div style="position: fixed; margin-left: 100px;"> <h3 style="margin-top: -10px;"><?php echo $chart->group_name;?></h3> <img src="<?php echo Yii::app()->baseUrl.OtherFunction::pathFile('chart').$chart->pic_chart ?>" style="width: 430px;" /> </div> <div style="position: absolute; margin-top: 15px;"> <table style="margin-left: 630px; width: 50%;"> <tr> <td style="text-align: center;"><h3><?php echo $result->position_name;; ?></h3></td> </tr> <?php foreach($resultPersonal as $valuePersonal) : ?> <tr> <?php if($valuePersonal->picture) { ?> <td style="text-align: center;"> <img src="<?php echo Yii::app()->baseUrl.OtherFunction::pathFile('chart').$valuePersonal->picture ?>" /> </td> <?php } ?> </tr> <style type="text/css"> p { word-spacing: 20px } </style> <tr> <td style="padding-top: 20px;"> <p style="text-align: center; font-weight: bold;"><?php echo $valuePersonal->fullname; ?></p> </td> </tr> <tr> <td style="text-align: center;"> <img src="http://inde.co.th/img/line.png"> </td> </tr> <tr> <td><hr></td> </tr> <?php endforeach; ?> </table> </div> <div style="clear: both;"></div> </div>-->