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_DUserManager
{
function showUserManager($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.='';
}
else
{
$output.=' <tr> <td> <table border="0"> <tr> <td>
'.''.$prev.''; for($i=1;$i<=count($paging);$i++)
$pagingvalues .= ' '.$paging[$i]." ";
$output.= ''.$pagingvalues.' '.''.$next.' </td> </tr> </table> </td> </tr>
';
return $output;
}
return $output;
}
else
{
$output.='<center><h3>No Records Found</h3></center>';
return $output;
}
}
function showViewDetails($users)
{
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:Large;font-weight:bold;color: green; text-transform:uppercase">Main Member</span><br /><span style="color:Green;font-size: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></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>
';
}
return $output;
}
}
function showViewMember($users)
{
if(count($users)!=0)
{
$p=1;
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($i%2!=0){$class='style="background-color:#CCCCCC;"';}
else{$class='formblock_row1';}
$output.=' <tr '.$class.'>
<td style="padding:3px; border-right:1px solid;" > '.$p.'</td>
<td style="padding:3px; border-right:1px solid;" ><a href="?do=members&action=view&id='.$users[$i]['members_icard'].'"> <img src="'.$users[$i]['members_image'].'" width="40px"/> </a></td>
<td style="padding:1px; border-right:1px solid;" ><a href="?do=members&action=view&id='.$users[$i]['members_icard'].'">'.$users[$i]['members_icard'].'</a></td>
<td style="padding-left:5px; border-right:1px solid;"align="left" >'.$users[$i]['members_name'].'</td>
<td style="padding-left:5px; border-right:1px solid;"align="left" >'.$rank0.' '.$users[$i]['members_rank1'].'</td>
<td style="padding-left:5px; border-right:1px solid;">'.$users[$i]['members_phone'].'</td>
</tr>';
$p++;
}
return $output;
}
else
{
$output.='
<tr>
<td colspan="5" style="padding:15px;"align="center" >No Records Found</td>
</tr>
';
return $output;
}
}
}
?>