<?php Yii::app()->clientScript->scriptMap = array('jquery.js'=>false);?>
<div class="form">
<fieldset>
    <legend>修改 <?php echo $member->username;?> 的积分</legend>
    * 已启用的才能修改
    <?php
    $form = $this->beginWidget('CActiveForm', array(
            'id' => 'ucredit',
            'action' => $this->createUrl('member/credit',array('uid'=>$member->uid)),
            'enableAjaxValidation' => true,
            'enableClientValidation' => true,
            'htmlOptions' => array(
                'class' => 'form',
            ),
        )
    );
    ?>
    <?php foreach ($extcredits as $key => $extcredit):?>
        <?php echo $extcredit['title'];?> <?php echo $form->textField($member, $key); ?>
        <br/>
    <?php endforeach;?>
    <?php echo CHtml::ajaxSubmitButton('保存', '', array('success'=>'js:function(status){ if (1 == status) {$.fancybox.close();}}')); ?>
    <?php $this->endWidget();?>
</fieldset>
</div>