Server IP : 103.233.192.212 / Your IP : 18.117.171.169 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 : |
<?php function getStat($type) { $model = new tbAgency(); $criteria = new CDbCriteria(); $criteria->compare('t.type', $type); $stats = $model->find($criteria); if($stats->agency_status == 'Active'): return true; else: return false; endif; } ?> <h3>ข้อมูลหน่วยงานและอำนาจหน้าที่</h3> <img src="<?php echo Yii::app()->baseUrl ?>/images/agency-960.jpg" alt=""/style=""> <?php $this->widget('bootstrap.widgets.TbTabs', array( 'type' => 'tabs', 'placement' => 'above', // 'above', 'right', 'below' or 'left' 'tabs' => array( array('label' => '• สำนักปลัด', 'content' => $this->renderPartial('agency/deputy', null, true),'active' => true), array('label' => '• กองคลัง', 'content' => $this->renderPartial('agency/finance', null, true), 'visible' => getStat('finance')), array('label' => '• กองช่าง', 'content' => $this->renderPartial('agency/civil', null, true), 'visible' => getStat('civil')), //array('label' => '• กองสาธารณสุขและสิ่งแวดล้อม', 'content' => $this->renderPartial('agency/health', null, true), 'visible' => getStat('health')), //array('label' => '• กองการศึกษา ศาสนา เเละวัฒนธรรม', 'content' => $this->renderPartial('agency/education', null, true), 'visible' => getStat('education')), array('label' => '• กองสวัสดิการสังคม', 'content' => $this->renderPartial('agency/social', null, true), 'visible' => getStat('social')), //array('label' => '• ส่วนป้องกันและบรรเทาฯ/การป้องกันฯ', 'content' => $this->renderPartial('agency/protect', null, true), 'visible' => getStat('protect')), // array('label' => '• กองวิชาการเเละแผนงาน', 'content' => $this->renderPartial('agency/educationplan', null, true), 'visible' => getStat('social')), // array('label' => '• กองการประปา', 'content' => $this->renderPartial('agency/water', null, true), 'visible' => getStat('social')), ), )); ?> <div class="clearfix"></div>