chat helper

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

chat helper

Neha
This post has NOT been accepted by the mailing list yet.
In cake php chat helper I want to add   <?php echo $this->Form->postLink($this->Html->tag('i', '', array('class' =>'fa fa-arrow-circle-right')). __dbt('More Info'),array('controller' => 'dashboard', 'action' => 'startTeamSession',$team_id,$tournament_id,$league_id,$sport_id),array('escape' => false,'class'=>'small-box-footer'));?>  code in bootstrap model  but I unable to add above code.It give me php code as commented.Please help me.
 $js = <<<EOD
    <script>
function getChatRoomChat(){
            var leagueId = "{$league_id}";
            var tournamentId = "{$tournament_id}";
            var sportId = "{$sport_id}";
            var teamId = "{$team_id}";
            var teamsId = "{$teams_id}";
            $.post("{$this->hObject->Html->url([$this->params['prefix'] => false, 'controller' => 'chats', 'action' => 'getMatchUpdateList'])}",{teamId:teamId},function(response){
                // alert(response);
                if(response==1)
                {        
                 
             
             $.post("{$this->hObject->Html->url([$this->params['prefix'] => false, 'controller' => '/dashboard', 'action' => 'startTeamSession'])}",{teamId:teamId,tournamentId:tournamentId,leagueId:leagueId,sportId:sportId},
                  function(resp){

                if(resp){
                   // alert('your chat is start');

                  jQuery("#putErrorGiftBox").modal('show');
                  // window.location.reload();

                }
                else{
                   window.location.reload();
                }
              });

            }
            //else
           // {

           // }

            });
     
           }
   
    </script>
    <div class="bloger-modal">
    <div class="modal fade" id="putErrorGiftBox" tabindex="-1" role="dialog" aria-labelledby="modalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content" style="width:60%;left:20%;">
                <div class="modal-header">
                <button type="button" class="close">x</button>
                                    </div>
                <div class="modal-body2" style="height:min-height;">
                <div class="errorbox" id="errorbox" style="text-align:center;padding-top:14px;padding-bottom:14px;color:black;"><strong>Your chat window is canged now.</strong>
               echo $this->Form->create('Format');
               echo $this->Form->postLink($this->Html->tag('i', '', array('class' =>'fa fa-arrow-circle-right')). __dbt('More Info'),array('controller' => 'dashboard', 'action' => 'startTeamSession',$team_id,$tournament_id,$league_id,$sport_id),array('escape' => false,'class'=>'small-box-footer'));              
                <center><button type="button" class="btn btn-info"  style="padding:3px 12px;margin-top:5px;margin-bottom:5px;">ok</button></center>
               
               
                </div>
            </div>
        </div>
    </div>
</div>
     
EOD;
Loading...