<div id="d2" class="easyui-dialog" title="登录" style="width:400px;height:210px;padding:10px" data-options="toolbar:'#dlg-toolbar',buttons:'#dlg-buttons',resizable:true,modal:true,closable:false,draggable:true">
<!--表单开始-->
<div class="form">
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'login-form',
	'enableClientValidation'=>true,
	'clientOptions'=>array(
		'validateOnSubmit'=>true,
	),
)); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'username'); ?>
		<?php echo $form->textField($model,'username'); ?>
		<?php echo $form->error($model,'username'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'password'); ?>
		<?php echo $form->passwordField($model,'password'); ?>
		<?php echo $form->error($model,'password'); ?>
		<p class="hint">
			
		</p>
	</div>

	<div class="row rememberMe">
		<?php echo $form->checkBox($model,'rememberMe'); ?>
		<?php echo $form->label($model,'rememberMe'); ?>
		<?php echo $form->error($model,'rememberMe'); ?>
	</div>

	<div class="row buttons">
		<?php //echo CHtml::submitButton('登录'); ?>
	</div>

<?php $this->endWidget(); ?>
</div><!-- form -->
<!--表单结束-->
</div>
<div id="dlg-buttons">
	<a href="#" class="easyui-linkbutton" onclick="javascript:sb()">登录</a>
</div>
<script>
function sb()
{
	$('#login-form').submit();
}
</script>

 