Está en la página 1de 1

<script > function toggle2(showHideDiv, switchTextDiv) { var ele = document.getElementById(showHideDiv); var text = document.getElementById(switchTextDiv); if(ele.style.display == "block") { ele.style.

display = "none"; text.innerHTML = "Hi?n t?t c?"; } else { ele.style.display = "block"; text.innerHTML = "?n bnh lu?n"; } } </script> <?php $view_comment = Me::model()->getInfoViewComment($row['statu_id']) ; echo " ".Me::model()->CountComment($row['statu_id'])." bnh lu?n " ; ?> <a class="is_link" id="myHeader<?php echo $row['statu_id'] ;?>" href="javascript :toggle2('comment<?php echo $row['statu_id'] ;?>','myHeader<?php echo $row['stat u_id'] ;?>');" >Hi?n t?t c?</a> <div id="comment<?php echo $row['statu_id'] ;?>" style="display:none"> <?php foreach ($view_comment as $row): ?> <div id="new_event" class="col_sidebar"> <ul class="row_event"> <li class="clear"> <?php echo Userprofiles::model()->getAvatarCreate($row['create_user_id']);?> <p style="padding-top: 10px;"> <?php echo Userprofiles::model()->getNameCreate($row['create_user_id']) ; echo ": ".CHtml::encode($row['content'])."<br/>"; $time = getdate(strtotime($row['create_time'])); $date = "Ngy ".$time["mday"]." thng ".$time["mon"]." nam ".$time["year"]; echo $date ; ?></p> <div class="clear"></div> </li> </ul> </div> <?php endforeach; ?> </div>

También podría gustarte