system: Linux mars.sprixweb.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
<?PHP
class Display_DBody
{
function showBody($users,$country,$flag,$paging,$prev,$next,$start,$total,$query_string)
{
if(count($users)!=0)
{
for($i=0;$i<count($users);$i++)
{
if($users[$i]['members_rank']==1)
{
$rank0='President';
}
if($users[$i]['members_rank']==2)
{
$rank0='Senior Vice President';
}
if($users[$i]['members_rank']==3)
{
$rank0='Vice President';
}
if($users[$i]['members_rank']==4)
{
$rank0='Senior General Secretary';
}
if($users[$i]['members_rank']==5)
{
$rank0='General Secretary';
}
if($users[$i]['members_rank']==6)
{
$rank0='Office Secratry';
}
if($users[$i]['members_rank']==7)
{
$rank0='Press Secretary';
}
if($users[$i]['members_rank']==8)
{
$rank0='Legal Advisor';
}
if($users[$i]['members_rank']==9)
{
$rank0='Finance Secretary';
}
if($users[$i]['members_rank']==10)
{
$rank0='Secretary';
}
if($users[$i]['members_rank']==11)
{
$rank0='Br Manager';
}
if($users[$i]['members_rank']==12)
{
$rank0='VIP Member';
}
if($users[$i]['members_rank']==13)
{
$rank0='Member';
}
if($users[$i]['members_rank']==14)
{
$rank0='Enquiry Officer';
}
if($users[$i]['members_membership']==0)
{
$color='black';
$status='<span style="font-size:X-Large;font-weight:bold;color: blue; text-transform:uppercase">Temporary</span><br /><span style="color:blue;font-size:X-Large;font-weight:bold;color: blue">On </br>'.$users[$i]['members_membership_date'].'</span>';
}
if($users[$i]['members_membership']==1)
{
$color='black';
$status='<span style="font-size:X-Large;font-weight:bold;color: green; text-transform:uppercase">Permanent</span><br /> <span style="color:Green;font-size:X-Large;font-weight:bold;color: green">On </br>'.$users[$i]['members_membership_date'].'</span>';
}
if($users[$i]['members_membership']==2)
{
$color='red';
$status='<font color="red" style="margin:10px;"><b>Suspended</b></font></br><font size="1px"color="red">On Dateted '.$users[$i]['members_membership_date'].'</font>';
}
if($users[$i]['members_membership']==3)
{
$color='red';
$status='<font color="red" style="margin:10px;"><b>Terminate/Reinstate</b></font></br><font size="1px"color="red">On Dateted '.$users[$i]['members_membership_date'].'</font>';
}
if($users[$i]['members_membership']==4)
{
$color='red';
$status='<span style="font-size:X-Large;font-weight:bold;color: red; text-transform:uppercase">DisMiss</span><br /><span style="color:red;font-size:X-Large;font-weight:bold;color:red">On </br>'.$users[$i]['members_membership_date'].'</span>';
}
if($users[$i]['members_membership']==5)
{
$color='red';
$status='<span style="font-size:X-Large;font-weight:bold;color: red; text-transform:uppercase">Died</span><br /><span style="color:red;font-size:X-Large;font-weight:bold;color:red">On </br>'.$users[$i]['members_membership_date'].'</span>';
}
if($users[$i]['members_membership']==6)
{
$color='black';
$status='<span style="font-size:X-Large;font-weight:bold;color: green; text-transform:uppercase">Main Member</span><br /><span style="color:Green;font-size:X-Large;font-weight:bold;color: green">On </br>'.$users[$i]['members_membership_date'].'</span>';
}
if($users[$i]['members_thumb_image']=='')
{
$selectimage="SELECT * FROM `membersettings_table` WHERE `membersettings_id` = '15'";
$obj6=new Bin_Query();
$obj6->executeQuery($selectimage);
$image='../'.$obj6->records[0]['membersettings_value'];
}
else
{
$selectimage="SELECT * FROM `membersettings_table` WHERE `membersettings_id` = '15'";
$obj6=new Bin_Query();
$obj6->executeQuery($selectimage);
$image='../'.$obj6->records[0]['membersettings_value'];
$image='./'.$users[$i]['members_image'];
}
$output.='
<tr>
<td>
<table border="1px" cellpadding="2" cellspacing="2" style="margin-top:5px; margin-bottom:5px; " class="style6">
<tr>
<td colspan="3"><br/> <span style="color:'.$color.'; font-size:X-Large;font-weight:bold; text-transform:uppercase;">'.$users[$i]['members_name'].' '.$users[$i]['members_of'].' '.$users[$i]['members_fname'].'</span> <br /> <br />
</td>
</tr>
<tr>
<td rowspan="10"><a href="?do=members&action=view&id='.$users[$i]['members_icard'].'"><img src="'.$image.'" style="border-color:'.$color.';border-width:2px;border-style:Double;height:150px;width:130px;" /></a><br />'.$status.'</td>
<td style="text-align: left; font-weight: 700; color:'.$color.'">I Card No.</td>
<td style="text-align: left; color:'.$color.';font-weight:bold; font-size:13px;"> '.$users[$i]['members_icard'].'</td>
</tr>
<tr>
<td style="text-align: left; width:120px; font-weight: 700; color:'.$color.'">Rank</td>
<td style="text-align: left; width:550px; text-transform:uppercase"><span style="color:'.$color.';font-size:Large;font-weight:bold;">'.$rank0.' '.$users[$i]['members_rank1'].'</span></br>
<span style="color:'.$color.';font-size:12px;font-weight:bold;">From '.$users[$i]['members_rank_date'].'</span></td>
</tr>
<tr>
<td class="style9" style="text-align: left; font-weight: 700; color:'.$color.'">Date Of Birth</td>
<td style="text-align: left"><span style="color:'.$color.';font-weight:bold;">'.$users[$i]['members_dob'].'</span></td>
</tr>
<tr>
<td class="style9" style="text-align: left; font-weight: 700; color:'.$color.'">Joining Date</td>
<td style="text-align: left"><span style="color:'.$color.';font-weight:bold;">'.$users[$i]['members_doj'].'</span></td>
</tr>
<tr>
<td class="style9" style="text-align: left; font-weight: 700; color:'.$color.'">Address</td>
<td style="text-align: left"><span style="color:'.$color.';font-weight:bold;">'.$users[$i]['members_address'].' </span> </td>
</tr>
<tr>
<td class="style9" style="text-align: left; font-weight: 700; color:'.$color.'">Contact No</td>
<td style="text-align: left"><span style="color:'.$color.';font-weight:bold;">'.$users[$i]['members_phone'].'</span></td>
</tr>
</table>
</td>
</tr>
';
}
if($total<=1)
{
$output.='</table>
';
}
else
{
$output.=' </table>
<td width="65%" align="left" class="pagination_bar">'.''.$prev.''; for($i=1;$i<=count($paging);$i++)
$pagingvalues .= ' '.$paging[$i]." ";
$output.= '<span class="pagination_bar">'.$pagingvalues.'</span>'.' '.$next.'</td>
<td width="35%" align="right">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="51%" align="center" class="page_10"> </td>
<td width="15%" align="center" valign="bottom" class="page_10"> </td>
<td width="18%" align="center" valign="bottom" class="page_25"> </td>
<td width="16%" align="center" valign="bottom" class="page_50"> </td>
</tr>
</table>
</td>
';
return $output;
}
return $output;
}
else
{
$output.='<tr><td > </td></tr><tr class="'.$class.'" >
<td colspan="8" align="center" ><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="excla_topl"></td>
<td class="excla_topbg"></td>
<td class="excla_topr"></td>
</tr>
<tr>
<td colspan="3" class="excla_bg">No Records Found</td>
</tr>
<tr>
<td class="excla_botl"></td>
<td class="excla_botbg"></td>
<td class="excla_botr"></td>
</tr>
</table></td>
</tr><tr><td > </td></tr>';
}
}
}
?>