jpopup extension

hi …i am struggling in Jpopup extension ,In that by default the placed url as one field and using that will get new window to that contrlloer and action ,my problem is that instead of using url ,i want to use renderpartail for that particular controller and action and just that controller and action appear in the new appearing window wihtout rest…

…please help me out of these …thanks in advance

these is my view

<div class="form">

<?php $form=$this->beginWidget(‘CActiveForm’, array(

'id'=&gt;'admission-form',


'enableAjaxValidation'=&gt;false,

)); ?>

&lt;p class=&quot;note&quot;&gt;Fields with &lt;span class=&quot;required&quot;&gt;*&lt;/span&gt; are required.&lt;/p&gt;





&lt;?php echo &#036;form-&gt;errorSummary(&#036;model); ?&gt;





&lt;div class=&quot;row&quot;&gt;


	&lt;?php echo &#036;form-&gt;labelEx(&#036;model,'patient_id'); ?&gt;


  


	&lt;?php echo &#036;form-&gt;textField(&#036;model,'patient_id'); ?&gt;


    


	&lt;?php echo &#036;form-&gt;error(&#036;model,'patient_id'); ?&gt;


  


     &lt;?php &#036;this-&gt;widget('ext.popup.JPopupWindow', array(


    'tagName'=&gt;'button',


    'content'=&gt;'Choosen',


   'url'=&gt;array('/selectpatientadmission/index'), 


   


    'options'=&gt;array(


        'height'=&gt;500,


        'width'=&gt;1000,


        'top'=&gt;50,


        'left'=&gt;50,


    ),


)); ?&gt;&#60;&#33;-- popup --&#62;


 &lt;/div&gt;


    


	&lt;?php echo &#036;form-&gt;labelEx(&#036;model,'ward_id'); ?&gt;


   &lt;?php &#036;ward = &#036;this-&gt;createWidget('ext.jquery-cascade.jQueryCascade');

// dropDownList($id, $selected, $data, $htmlOptions = array(), $source, $cascaded)

	echo &#036;ward-&gt;dropDownList('ward_id','',


CHtml::listData(Wards::model()-&gt;findAll(), 'ward_id', 'ward_name'),


'',


CController::createUrl('admission/list'),


'Admission_room_id'

); ?>

    &lt;?php // echo &#036;form-&gt;dropDownList(&#036;model,'ward_id', CHtml::listData(Wards::model()-&gt;findAll(), 'ward_id','ward_name')); ?&gt;


	&lt;?php //echo &#036;form-&gt;textField(&#036;model,'bed_id'); ?&gt;


	&lt;?php echo &#036;form-&gt;error(&#036;model,'ward_id'); ?&gt;


&lt;/div&gt;





&lt;div class=&quot;row&quot;&gt;


	&lt;?php echo &#036;form-&gt;labelEx(&#036;model,'room_id'); ?&gt;


   


    


    &lt;?php  echo &#036;form-&gt;dropDownList(&#036;model,'room_id', CHtml::listData(Rooms::model()-&gt;findAll(), 'room_id','room_no')); ?&gt;


	&lt;?php //echo &#036;form-&gt;textField(&#036;model,'bed_id'); ?&gt;


	&lt;?php echo &#036;form-&gt;error(&#036;model,'room_id'); ?&gt;


&lt;/div&gt;


&lt;div class=&quot;row&quot;&gt;


	&lt;?php echo &#036;form-&gt;labelEx(&#036;model,'bed_id'); ?&gt;


    &lt;?php //echo &#036;form-&gt;dropDownList(&#036;model,'CityID','',array());?&gt;


    


    &lt;?php echo &#036;form-&gt;dropDownList(&#036;model,'bed_id', CHtml::listData(Beds::model()-&gt;findAll(), 'bed_id','bed_no'),array('prompt'=&gt;'Select')); ?&gt;


	&lt;?php //echo &#036;form-&gt;textField(&#036;model,'bed_id'); ?&gt;


	&lt;?php echo &#036;form-&gt;error(&#036;model,'bed_id'); ?&gt;


&lt;/div&gt;





&lt;div class=&quot;row&quot;&gt;


	&lt;?php echo &#036;form-&gt;labelEx(&#036;model,'admit_date'); ?&gt;


    	 &lt;?php  &#036;this-&gt;widget('ext.my97DatePicker.JMy97DatePicker',array(


    'name'=&gt;CHtml::activeName(&#036;model,'admit_date'),


    'value'=&gt;&#036;model-&gt;admit_date,


    'options'=&gt;array('dateFmt'=&gt;'yyyy-MM-dd'),


)); ?&gt;





    


	&lt;?php //echo &#036;form-&gt;textField(&#036;model,'admit_date'); ?&gt;


	&lt;?php echo &#036;form-&gt;error(&#036;model,'admit_date'); ?&gt;


&lt;/div&gt;





&lt;div class=&quot;row&quot;&gt;


	&lt;?php echo &#036;form-&gt;labelEx(&#036;model,'admit_time'); ?&gt;


	&lt;?php echo &#036;form-&gt;textField(&#036;model,'admit_time',array('size'=&gt;60,'maxlength'=&gt;300)); ?&gt;


	&lt;?php echo &#036;form-&gt;error(&#036;model,'admit_time'); ?&gt;


&lt;/div&gt;


&lt;div class=&quot;row&quot;&gt;


	&lt;?php echo &#036;form-&gt;labelEx(&#036;model,'admit_type'); ?&gt;


	&lt;?php echo &#036;form-&gt;dropDownList(&#036;model,'admit_type', CHtml::listData(AdmitType::model()-&gt;findAll(), 'admit_type_id','admit_type_name'),array('prompt'=&gt;'Select')); ?&gt;


	&lt;?php echo &#036;form-&gt;error(&#036;model,'admit_type'); ?&gt;


&lt;/div&gt;





&lt;div class=&quot;row&quot;&gt;


	&lt;?php echo &#036;form-&gt;labelEx(&#036;model,'doctor_id'); ?&gt;


	&lt;?php echo &#036;form-&gt;textField(&#036;model,'doctor_id'); ?&gt;


   


     &lt;?php &#036;this-&gt;widget('ext.popup.JPopupWindow', array(


    'tagName'=&gt;'button',


    'content'=&gt;'Choosen',


    'url'=&gt;array('/selectdoctoradmission/index'),   


	


    'options'=&gt;array(


        'height'=&gt;500,


        'width'=&gt;1000,


        'top'=&gt;50,


        'left'=&gt;50,


    ),


)); ?&gt;&#60;&#33;-- popup --&#62;


   


	&lt;?php echo &#036;form-&gt;error(&#036;model,'doctor_id'); ?&gt;


&lt;/div&gt;





&lt;div class=&quot;row&quot;&gt;


	&lt;?php echo &#036;form-&gt;labelEx(&#036;model,'reffered_by'); ?&gt;


	&lt;?php echo &#036;form-&gt;textField(&#036;model,'reffered_by',array('size'=&gt;60,'maxlength'=&gt;300)); ?&gt;


	&lt;?php echo &#036;form-&gt;error(&#036;model,'reffered_by'); ?&gt;


&lt;/div&gt;





&lt;div class=&quot;row&quot;&gt;


	&lt;?php echo &#036;form-&gt;labelEx(&#036;model,'dignosis'); ?&gt;


	&lt;?php echo &#036;form-&gt;textField(&#036;model,'dignosis',array('size'=&gt;60,'maxlength'=&gt;500)); ?&gt;


	&lt;?php echo &#036;form-&gt;error(&#036;model,'dignosis'); ?&gt;


&lt;/div&gt;





&lt;div class=&quot;row&quot;&gt;


	&lt;?php echo &#036;form-&gt;labelEx(&#036;model,'theropy'); ?&gt;


	&lt;?php echo &#036;form-&gt;textField(&#036;model,'theropy',array('size'=&gt;60,'maxlength'=&gt;500)); ?&gt;


	&lt;?php echo &#036;form-&gt;error(&#036;model,'theropy'); ?&gt;


&lt;/div&gt;





&lt;div class=&quot;row&quot;&gt;


	&lt;?php echo &#036;form-&gt;labelEx(&#036;model,'informed_police'); ?&gt;


	&lt;?php echo &#036;form-&gt;dropDownList(&#036;model,'informed_police', array(1=&gt;'Yes',2=&gt;'No'),array('prompt'=&gt;'Select') ); ?&gt;


	&lt;?php echo &#036;form-&gt;error(&#036;model,'informed_police'); ?&gt;


&lt;/div&gt;


&lt;div class=&quot;row&quot;&gt;


	&lt;?php echo &#036;form-&gt;labelEx(&#036;model,'note'); ?&gt;


	&lt;?php echo &#036;form-&gt;textField(&#036;model,'note',array('size'=&gt;60,'maxlength'=&gt;500)); ?&gt;


	&lt;?php echo &#036;form-&gt;error(&#036;model,'note'); ?&gt;


&lt;/div&gt;





&lt;div class=&quot;row buttons&quot;&gt;


	&lt;?php echo CHtml::submitButton(&#036;model-&gt;isNewRecord ? 'Create' : 'Save'); ?&gt;


&lt;/div&gt;

<?php $this->endWidget(); ?>

</div><!-- form -->