<?php Yii::app()->clientScript->scriptMap = array('jquery.js'=>false);?>
<div class="form">
<fieldset>
    <legend>修改 <?php echo $member->username;?> 的用户组</legend>
    * 过期时间必须大于当前日期或者为0，否则将出错
    <br/><br/>
    <?php
    $form = $this->beginWidget('CActiveForm', array(
            'id' => 'uname',
            'action' => $this->createUrl('member/username',array('uid'=>$member->uid)),
            'enableAjaxValidation' => true,
            'enableClientValidation' => true,
            'htmlOptions' => array(
                'class' => 'form',
            ),
        )
    );
    ?>
    新用户组：<?php echo $form->dropDownList($member, 'groupid', CHtml::listData($groups, 'groupid', 'grouptitle'));?><?php echo $form->error($member, 'groupid');?>
    <br/>
    到期时间：<?php echo CHtml::textField('Member[groupexpiry]', $member->groupexpiry ? date('Y-m-d', $member->groupexpiry) : 0);?><br/>(格式: 2012-01-01,到期时间普通组无效)
    <br/>
    <?php echo CHtml::ajaxSubmitButton('保存', '', array('success'=>'js:function(status){ if (1 == status) {$.fancybox.close(); $("#ugroup").html($("#Member_groupid").find("option:selected").text());}}')); ?>
    <?php $this->endWidget();?>
</fieldset>
</div>