Mass action YII checkbox cgridview

Any one Please help me!!!

In the link

http://www.yiiframework.com/forum/index.php/topic/24285-mass-action-yii-checkbox-cgridview/

bulk delete action shown, I need the same functionality for bulk update,

Like … After selecting the rows using check boxes and click the button updateAll the screen to be shown with some fields with a save button, after filling the fields then save clicked the selected records should be updated Please help me !!!

<?php

public function actionUpdateall()

{

    if (isset(&#036;_POST['mymodel-grid_c0']))


    {


            &#036;upd_mod = &#036;_POST['mymodel-grid_c0'];





            &#036;uname=Yii::app()-&gt;user-&gt;name;


            &#036;baseUrl = Yii::app()-&gt;baseUrl;


            &#036;cs = Yii::app()-&gt;getClientScript();





            &#036;cs-&gt;registerScriptFile(&#036;baseUrl.'/js/utility.js');


            &#036;cs-&gt;registerScriptFile(&#036;baseUrl.'/js/validations.js'); 


            


            &#036;model = new Mymodel;


            &#036;cnt=count(&#036;_POST);


            &#036;isinw = isset(&#036;_POST['mymodel']);


            //if(isset(&#036;_POST['mymodel']))


            Dialog::message('title',&quot;count is &#036;cnt and &#036;isinw&quot;);


            if(&#036;cnt&lt;1)


            {


                    &#036;model-&gt;attributes=&#036;_POST['Mymodel'];





                    if(&#036;uname&lt;&gt;'recorduser' and 


                            (&#036;model-&gt;fno&#33;='' or &#036;model-&gt;fno&#33;=null) or 


                            (&#036;model-&gt;year&#33;='' or &#036;model-&gt;year&#33;=null))


                            &#036;model-&gt;scenario='PR';


                    


                    if((&#036;uname==='recorduser') and &#036;model-&gt;clo_yn==='Y')


                            &#036;model-&gt;scenario='finalization';





                    if(&#036;model-&gt;validate()){


                           foreach (&#036;upd_mod as &#036;pk){


                            &#036;umodel = Mymodel::model()-&gt;findByPk(&#036;pk);





                             if(&#036;umodel-&gt;updateallFields(&#036;model)){


                                    &#036;umodel-&gt;save();


                              }


                    } 


                           //&#036;this-&gt;actionAdmin();


                           &#036;this-&gt;render('admin',array(


                                                            'model'=&gt;&#036;model,


                                                    ));


                    }else{


                            


                      Dialog::message('ERROR', &quot;unable to save &#036;cnt&quot;);


                    }





                 


            }else{





             &#036;this-&gt;render('updateall',array(


                    'model'=&gt;&#036;model,


             ));


            }


    }


    else


    {


            //Yii::app()-&gt;user-&gt;setFlash('error', 'Please select at least one record to Update.');


               Dialog::message('ERROR', &quot;Please select at least one record to Update.&quot;);


               &#036;model = new Mymodel;


           &#036;this-&gt;render('admin',array(


                        'model'=&gt;&#036;model,


                   ));


    }               

}

?>

In the above one, how to render the view updateall and then save batch update the screen having the fno,yr and some other fields these fields to be batch updated.

Kindly help!!!

the isset($_POST[‘mymodel’]) is not rendering the view…