<?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="blog-all-post" class="a_links"><?php if($this->lang->line('user_teams') != '') { echo stripslashes($this->lang->line('user_teams')); } else echo "Teams"; ?></a></li>
        </ul>
     <div class="clear"></div>
     <div class="hole_content">
      <div class="heading"><?php if($this->lang->line('user_team') != '') { echo stripslashes($this->lang->line('user_team')); } else echo "Team"; ?></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/teamActiveInactiveDeleteFunction" >	
            <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" style="float:left" href="add-team" ><i class="icon-ok"></i> <?php if($this->lang->line('com_addteam') != '') { echo stripslashes($this->lang->line('com_addteam')); } else echo "Add Team"; ?></a>
                       <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 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="property_table">
                     <thead>
  <tr style="background:#f4f4f4;">
   <td width="5%"><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_teamname') != '') { echo stripslashes($this->lang->line('com_teamname')); } else echo "Team Name"; ?></strong></td>
   <td width="20%" ><strong><?php if($this->lang->line('com_teamlogo') != '') { echo stripslashes($this->lang->line('com_teamlogo')); } else echo "Team Logo"; ?></strong></td>
  <!-- <td width="20%" ><strong>Comments Count</strong></td>-->
   <td width="20%" ><strong><?php if($this->lang->line('com_addeddate') != '') { echo stripslashes($this->lang->line('com_addeddate')); } else echo "Added Date"; ?></strong></td>
   <td width="20%" ><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($postData as $details){?>
  <?php if($details['status']!= 'Unpublish') { ?>
 <tr>
 <td><input type="checkbox" class="caseSeeker" name="seekerCheckbox[]" value="<?php echo $details['id']; ?>" /></td>
   <td><?php echo stripslashes($details['teamName']);?></td>
   <?php if($details['teamImage']!=''){ ?>
   <td><img width="50px;" src="<?php echo base_url().TEAM_PATH.$details['teamImage']; ?>" alt="<?php echo $details['teamName']; ?>" /></td>
   <?php }else{ ?>
   <td><img width="50px;" src="<?php echo base_url().TEAM_PATH.'no-team-logo.png'; ?>" alt="<?php echo $details['teamName']; ?>" /></td>
   <?php } ?>
  	
   <td><?php echo stripslashes($details['teamAddDate']);?></td>
   <td><div class="edit">
   <?php if($details['status'] == 'Active') { ?>
        <a  href="site/community/update_teams/<?php echo stripslashes($details['id']);?>/<?php echo stripslashes($details['status']);?>" onclick="return changeStatusCommon('<?php echo $details['status']; ?>');"><img src="images/active.png" title="<?php echo ucfirst($details['status']); ?>"  /></a>
   <?php } else { ?>
		 <a  href="site/community/update_teams/<?php echo stripslashes($details['id']);?>/<?php echo stripslashes($details['status']);?>" onclick="return changeStatusCommon('<?php echo $details['status']; ?>');"><img src="images/inactive.png" title="<?php echo ucfirst($details['status']); ?>"  /></a>
    <?php } ?>

    <a href="edit-team/<?php echo stripslashes($details['id']);?>" style="padding-left:0px;"><img src="images/edit.png" title="Edit"   /></a>
   <a href="site/community/delete_team_v/<?php echo stripslashes($details['id']);?>" onclick="return changeStatusCommon('delete');"><img src="images/delete.png" title="Delete"  /></a>

   </div>
   </td>
 </tr>
<?php } } ?>
</tbody>
</table>
                        
      </div>                   
  </div>
  </form>
            </div>
            </div>
        </div>
         </div>
    
 
	
</section>
<!--selection-->
<?php 
        $this->load->view('site/templates/footer.php'); 
?>