<? if(count($member_info)>0 && $operation['mailchimp']=='profile'){?>
<div class="wrapper">
	 <div class="row m-b-sm">
		 <span class="col-xs-3 text-right font-bold "><? echo $vis_language['TXTCLIENTNAME']?>:</span>
		<div class=" col-xs-9 text-lt text-muted h4"><? echo $member_info['data'][0]['merges']['FNAME'].' '.$member_info['data'][0]['merges']['LNAME']; ?></div>
		  </div>
      <div class="row m-b-sm">
		  <span class="col-xs-3 text-right font-bold "><? echo $vis_language['TXTEMAILADDRESS']?>:</span>
		<div class=" col-xs-9 text-lt text-muted"><? echo $member_info['data'][0]['merges']['EMAIL']; ?></div>
		  </div>	   
</div>
<? }elseif(count($activity)>0 && $operation['mailchimp']=='activity'){?>
  <table class="table table-hover b-t b-light m-b-none" data-ride="datatables">
   <thead class="table_head">
      <tr>
    	 <th class="txt_nowrap"><? echo $vis_language['TXTCAMPAIGNNAME'];?></th>
         <th class="txt_nowrap"><? echo $vis_language['TXTSUBJECT']; ?></th>
		 <th class="txt_nowrap"><? echo $vis_language['TXTDATE'];?></th>
		 <th class="txt_nowrap"><? echo $vis_language['TXTSTATUS']; ?></th>
      </tr>
   </thead>
   <tbody>
   <? for($c=0;$c<count($activity);$c++){
	    if(count($activity[$c]['data'][0]['activity'])>0){
          for($a=0;$a<count($activity[$c]['data'][0]['activity']);$a++){
 			echo '<td>'.$activity[$c]['data'][0]['activity'][$a]['campaign_data']['title'].'</td>';
			echo '<td>'.$activity[$c]['data'][0]['activity'][$a]['campaign_data']['subject'].'</td>';
			echo '<td>'.format_datetime(strtotime($activity[$c]['data'][0]['activity'][$a]['campaign_data']['create_time'])).'</td>';
			echo '<td>'.$activity[$c]['data'][0]['activity'][$a]['campaign_data']['status'].'</td>';
	      } 
		}
	  }?>    
   </tbody>
</table>
<? }?>