public function bdayclubAction()
 {
     $messageObj = new Application_Model_Message($this->user);
     $userid = $this->user->getId();
     $user_folders = $this->user->getFolders();
     $folder_messageset = $this->user->getFoldersBdayClub($userid);
     $folderotshow = array_diff_key($user_folders, $folder_messageset);
     $bdayMessageList = $messageObj->getBdayMessageList($userid);
     $this->view->msg_body = "Many Many Returns of the Day.. Happy B'day";
     $this->view->msg_foot = "reply STOP2quit";
     $this->view->folders = $folderotshow;
     $this->view->bdaymsglist = $bdayMessageList;
     /*birthday date fixing*/
     //        $bds = $messageObj->selectbd();
     $userid = $this->user->getId();
     $formObj = new Application_Model_Form();
     if ($this->_request->isPost()) {
         $postdataValue = $this->_request->getParams();
         //            echo '<pre>'; print_r($postdataValue);
         //            exit;
         $tzone = $postdataValue['t_zone'];
         $uniquekey = md5($userid . time());
         $sendtime = implode(":", $postdataValue['sendtime']);
         if (!empty($postdataValue['folders']) and is_array($postdataValue['folders'])) {
             foreach ($postdataValue['folders'] as $folderid) {
                 $subscribersListArray = $messageObj->getSubscribersListByFolderId($folderid);
                 //echo "<pre>"; print_r($subscribersListArray); exit;
                 $bdayMessageSet = $messageObj->setBirthDayMessage($uniquekey, addslashes($userid), addslashes($folderid), addslashes($postdataValue['messagedesc']), addslashes($postdataValue['messagebody']), addslashes($postdataValue['msg_foot']), addslashes($postdataValue['sendbefore']), addslashes($sendtime), $tzone);
                 //                    if($bdayMessageSet){
                 //                        foreach($subscribersListArray as $subscribersList){
                 //                            if($subscribersList['birthday']!=null){
                 //                                $bdaydate = Date("Y")."-".$subscribersList['birthday'];
                 //                                $bdaymsgtobesenton = date("Y-m-d",strtotime(date("Y-m-d", strtotime($bdaydate)) . " -".$postdataValue['sendbefore']." day"));
                 //                                $bdaymsgtobesenton = $bdaymsgtobesenton." ".$sendtime;
                 //                                $messageObj->updateBdayMsgSendDate($subscribersList['id'],$bdaymsgtobesenton);
                 //                            }
                 //                        }
                 //                    }
             }
             $this->_redirector->gotoUrl('/messages/bdayclub/');
         } else {
             $this->view->error = "Please select atleast one folder.";
         }
     }
     $this->view->formobject = $formObj;
     $this->view->formobjects = $formObj->webformList($userid);
     $this->view->count = count($bds);
 }