<?php  $this->load->view('site/templates/header.php'); ?>
<?php  $this->load->view('site/community/templates/css_js_files.php'); ?>
<section>
    	<div class="main">
        <div class="wrapper">
        <ul class="bread_crumbs">
        	<li> <a href="" class="a_links"><?php if($this->lang->line('user_home') != '') { echo stripslashes($this->lang->line('user_home')); } else echo "Home"; ?></a></li>
            <span>&rsaquo;</span>
            <li> <a href="settings/my-account/<?php echo $this->session->userdata['shopsy_session_user_name']; ?>" class="a_links"><?php if($this->lang->line('comm_account') != '') { echo stripslashes($this->lang->line('comm_account')); } else echo "Your Account"; ?></a></li>
            <span>&rsaquo;</span>
            <li> <a href="javascript:void(0);" class="a_links"><?php if($this->lang->line('com_comments') != '') { echo stripslashes($this->lang->line('com_comments')); } else echo "Comments"; ?></a></li>
        </ul>
     <div class="clear"></div>
     <div class="hole_content">
      <div class="heading"><?php if($this->lang->line('com_comments') != '') { echo stripslashes($this->lang->line('com_comments')); } else echo "Comments"; ?></div>
        	<?php  $this->load->view('site/community/community/community_control/blog_leftside.php'); ?>
            <form name="seekerActionForm" id="seekerActionForm" method="post" enctype="multipart/form-data" action="site/community/commentInactiveDeleteFunction" >	
             <input type="hidden" name="statusMode" id="statusMode" />	
            <input type="hidden" name="pagename" id="pagename" value="<?php echo $product_id = $this->uri->segment(1); ?>" />	
            <div class="right_split">
                	<div class="full_detail">
                    <div id="activeInactiveTop" class="act-ina-del-common">
                    
                       <a class="btn btn-success see_more" href="javascript:void(0);" onclick="return checkBoxValidationUser('active','123')"><i class="icon-ok"></i> <?php if($this->lang->line('com_active') != '') { echo stripslashes($this->lang->line('com_active')); } else echo "Active"; ?></a>
                       <a class="btn btn-warning inact inact see_more" href="javascript:void(0);" onclick="return checkBoxValidationUser('inactive','123')"><i class="icon-ban-circle"></i> <?php if($this->lang->line('com_inactive') != '') { echo stripslashes($this->lang->line('com_inactive')); } else echo "Inactive"; ?></a>
                       <a class="btn btn-danger see_more" href="javascript:void(0);" onclick="return checkBoxValidationUser('delete','123')"><i class="icon-trash icon-white"></i> <?php if($this->lang->line('com_delete') != '') { echo stripslashes($this->lang->line('com_delete')); } else echo "Delete"; ?></a>     
                            
                    </div>
   <table width="99%" border="0" cellspacing="0" cellpadding="0" class="property_table" id="comment_table">
                     <thead>
  <tr style="background:#f4f4f4;">
  <td><input type="checkbox" name ="seekerCheckbox[]" id="seekerCheckbox"  onclick="return checkBoxController(this.form,'seekerCheckbox[]',this.checked);"/></td>
   <td width="20%" ><strong><?php if($this->lang->line('com_commenter') != '') { echo stripslashes($this->lang->line('com_commenter')); } else echo "Commenter"; ?></strong></td>
   <td width="20%" ><strong><?php if($this->lang->line('com_posttitle') != '') { echo stripslashes($this->lang->line('com_posttitle')); } else echo "Post Title"; ?></strong></td>
   <td width="20%" ><strong><?php if($this->lang->line('com_comments') != '') { echo stripslashes($this->lang->line('com_comments')); } else echo "Comments"; ?></strong></td>
   <td width="20%" ><strong><?php if($this->lang->line('com_datetime') != '') { echo stripslashes($this->lang->line('com_datetime')); } else echo "Date & Time"; ?></strong></td>
   <td width="35%" ><strong><?php if($this->lang->line('com_rsponseto') != '') { echo stripslashes($this->lang->line('com_rsponseto')); } else echo "In Response To"; ?></strong></td>
 </tr>
 <thead>
 <tbody>
 <?php foreach($commentData as $details){?>
  <?php if($details['comment_status']!= 'Unpublish') { ?>
 <tr>
  <td><input type="checkbox" class="caseSeeker" name="seekerCheckbox[]" value="<?php echo $details['comment_id']; ?>" /></td>
   <td><?php echo stripslashes($details['user_name']);?></td>
   <td><?php echo stripslashes($details['post_title']);?></td>
   <td><?php echo character_limiter(stripslashes($details['comment_body']), 30);?></td>
   <td><?php echo stripslashes($details['comment_date']);?></td>
   <td><div class="edit">
   <!--<a href="#" style="padding-left:0px;"><img src="images/reply.png"  /></a>-->
   <a href="site/community/delete_comments/<?php echo stripslashes($details['comment_id']);?>" onclick="return changeStatusCommon('delete');"><img src="images/delete.png"  /></a>
   <?php if($details['comment_status'] == 'active') { ?>
        <a  href="site/community/update_comments/<?php echo stripslashes($details['comment_id']);?>/<?php echo stripslashes($details['comment_status']);?>" onclick="return changeStatusCommon('<?php echo $details['comment_status']; ?>');"><img src="images/active.png"  /></a>
   <?php } else { ?>
		 <a  href="site/community/update_comments/<?php echo stripslashes($details['comment_id']);?>" onclick="return changeStatusCommon('<?php echo $details['comment_status']; ?>');"><img src="images/inactive.png"  /></a>
    <?php } ?>
   </div>
   </td>
 </tr>
 <?php } ?>
<?php } ?>
</tbody>
</table>
                        
      </div>                   
  </div>
   </form>
            </div>
            </div>
        </div>
         </div>
    
 
	
</section>
<!--selection-->
<?php $this->load->view('site/templates/footer.php'); ?>