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 showBodyList($body,$bodycount,$errval)
{
$body_id = $errval['txtcate'];
for($i=0;$i<count($body);$i++)
{
$selected = ($body_id == $body[$i]['body_id'])?"selected":"";
$selbody = $bodycount==$body[$i]['body_id'] ? 'selected' : '';
$output.='<option value='.$body[$i]['body_id'].' '.$selbody.' '.$selected.'>'.$body[$i]['body_name'].'</option>';
}
return $output;
}
function showUserManager($users)
{
for($i=0;$i<count($users);$i++)
{
if($users[$i]['members_status']==0)
{
$type='<span class="label label-info">Temporary</span>';
}
if($users[$i]['members_status']==1)
{
$type='<span class="label label-success">Permanent</span>';
}
if($users[$i]['members_status']==2)
{
$type='<span class="label label-success">Suspended</span>';
}
if($users[$i]['members_status']==3)
{
$type='<span class="label label-success">Terminated</span>';
}if($users[$i]['members_status']==4)
{
$type='<span class="label label-success">DisMiss</span>';
}
if($users[$i]['members_status']==5)
{
$type='<span class="label label-success">Died</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_thumb_image'];
}
$output.='<tr class="'.$class.'" onmouseover="mouse_event(this,\'formrow_bg\')" onmouseout="mouse_event(this, \''.$class.'\');">
<td width="15%" align="center">nn<a href="?do=userdetails&id='.$users[$i]['members_id'].'" class="img"> '.$users[$i]['members_icard'].'</a></td>
<td width="35%" align="left" valign="top"><a href="?do=userdetails&id='.$users[$i]['members_id'].'" class="usr_name">'.$users[$i]['members_name'].' </a>
</td>
<td width="16%" align="left">'.$users[$i]['members_phone'].'f</td>
<td width="10%" align="center">'.$users[$i]['members_city'].'</td>
<!--<td width="10%" align="center">'.substr($users[$i]['members_doj'],0,10).'</td>
-->
<td width="35%" align="center">'.$type.'</td>
<td>
<a href="?do=usermanager&action=edituser&id='.$users[$i]['members_icard'].'"><button class="btn btn-sm btn-default"><i class="fa fa-pencil"></i> </button></a>
</td>
</tr>';
}
return $output;
}
function showAddUser($country,$code,$errval)
{
$country_id = $errval['country'];
$output='<select name="country" style="width:100px" id="country" '.$select.' ><option value="">Select</option>';
for($i=0;$i<count($country);$i++)
{
$selected = ($country_id == $country[$i]['country_master_id'])?"selected":"";
//$selcountry = $ctry_values['country']==$country[$i]['country_master_id'] ? 'selected' : '';
$output.='<option value='.$country[$i]['country_master_id'].' '.$selcountry.' '.$selected.'>'.$country[$i]['country_master_name'].'</option>';
}
$output.='</select><input type="hidden" value='.$code.' name="verifycode">';
return $output;
}
function showEditUser($country,$usrcount,$errval)
{
$country_id = $errval['country'];
$output='<select name="country" class="form_combobox" id="country" '.$select.' ><option value="">Select</option>';
for($i=0;$i<count($country);$i++)
{
$selected = ($country_id == $country[$i]['country_master_id'])?"selected":"";
$selcountry = $usrcount==$country[$i]['country_master_id'] ? 'selected' : '';
$output.='<option value='.$country[$i]['country_master_id'].' '.$selcountry.' '.$selected.'>'.$country[$i]['country_master_name'].'</option>';
}
//$output.='</select><input type="hidden" value='.$code.' name="verifycode">';
return $output;
}
function showEditUserPayment($payment,$usrpay,$errval)
{
//It stores Payment value during validation
$payment_type = $errval['payment'];
$output='<select name="payment" class="form_combobox" id="country" ><option value="">Select</option>';
for($i=0;$i<count($payment);$i++)
{
$selected = ($payment_type == $payment[$i]['paymentsettings_id'])?"selected":"";
$selpay = $usrpay==$payment[$i]['paymentsettings_id'] ? 'selected' : '';
$output.='<option value='.$payment[$i]['paymentsettings_id'].' '.$selpay.' '.$selected.'>'.$payment[$i]['paymentsettings_name'].'</option>';
}
//$output.='</select><input type="hidden" value='.$code.' name="verifycode">';
return $output;
}
function showPendingUser($users,$country,$flag,$paging,$prev,$next,$start,$total,$query_string)
{
//echo $end;
//print_r($users);
//exit;
if(count($users)!=0)
{
for($i=0;$i<count($users);$i++)
{
if($i%2!=0)
{
$class='formblock_row2';
//$image='images/man.gif';
}
else
{
$class='formblock_row1';
//$image='images/women.gif';
}
$usr_date = explode("-",$users[$i]['paymenthistory_date']);
$paid_date=date("M d, Y",mktime(0,0,0,$usr_date[1],$usr_date[2],$usr_date[0]));
$output.='<tr class="'.$class.'" onmouseover="mouse_event(this,\'formrow_bg\')" onmouseout="mouse_event(this, \''.$class.'\');">
<td width="4%" align="center"><input name="'.$users[$i]['members_id'].'" id="checkbox[]" type="checkbox" value="'.$users[$i]['members_id'].'" /></td>
<td width="20%" align="left">'.$users[$i]['members_username'].'</td>
<td width="7%" align="left">$'.$users[$i]['paymenthistory_amount'].'</td>
<td width="16%" align="center">'.$users[$i]['paymentsettings_name'].'</td>
<td width="16%" align="center">'.$users[$i]['paymenthistory_trans_id'].'</td>
<td width="12%" align="center">'.$paid_date.'</td>
<td width="6%" align="center"><a href="?do=usermanager&action=edituser&id='.$users[$i][members_id].'"><img src="images/icon_edit.gif" alt="edit" width="20" height="20" border="0" title="Click to Edit User Details" /></a></td>
</tr>';
}
//return $output;
}
else
{
$output.='<tr><td > </td></tr><tr class="'.$class.'" >
<td colspan="7" 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>';
//return $output;
}
if($total<=1)
{
$output.='</table></td>
</tr>
<tr>
<td class="formblock_bleft"> </td>
<td align="center" class="formblock_bbg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="65%" align="left" class="pagination_bar"> </td></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>';
}
else
{
$output.=' </table></td>
</tr>
<tr>
<td class="formblock_bleft"> </td>
<td align="center" class="formblock_bbg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<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;
}
function showPendingWithdrawal($users,$country,$flag,$paging,$prev,$next,$start,$total,$query_string)
{
//echo $end;
//print_r($users);
//exit;
if(count($users)!=0)
{
for($i=0;$i<count($users);$i++)
{
if($i%2!=0)
{
$class='formblock_row2';
//$image='images/man.gif';
}
else
{
$class='formblock_row1';
//$image='images/women.gif';
}
$usr_date = explode("-",$users[$i]['history_datetime']);
$paid_date=date("M d, Y",mktime(0,0,0,$usr_date[1],$usr_date[2],$usr_date[0]));
$output.='<tr class="'.$class.'" onmouseover="mouse_event(this,\'formrow_bg\')" onmouseout="mouse_event(this, \''.$class.'\');">
<td width="4%" align="center"><input name="'.$users[$i]['history_id'].'" id="checkbox[]" type="checkbox" value="'.$users[$i]['history_id'].'/'.$users[$i]['members_id'].'" /></td>
<td width="20%" align="left">'.$users[$i]['members_username'].'</td>
<td width="7%" align="left">$'.$users[$i]['history_amount'].'</td>
<td width="16%" align="center">'.$users[$i]['members_account_number'].'</td>
<td width="12%" align="center">'.$paid_date.'</td>
</tr>';
}
//return $output;
}
else
{
$output.='<tr><td > </td></tr><tr class="'.$class.'" >
<td colspan="7" 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>';
//return $output;
}
if($total<=1)
{
$output.='</table></td>
</tr>
<tr>
<td class="formblock_bleft"> </td>
<td align="center" class="formblock_bbg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="65%" align="left" class="pagination_bar"> </td></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>';
}
else
{
$output.=' </table></td>
</tr>
<tr>
<td class="formblock_bleft"> </td>
<td align="center" class="formblock_bbg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<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;
}
function showPaidUser($users,$country,$flag,$paging,$prev,$next,$start,$total,$query_string)
{
//echo $end;
//print_r($users);
//exit;
if(count($users)!=0)
{
for($i=0;$i<count($users);$i++)
{
if($i%2!=0)
{
$class='formblock_row2';
//$image='images/man.gif';
}
else
{
$class='formblock_row1';
//$image='images/women.gif';
}
$usr_date = explode("-",$users[$i]['paymenthistory_date']);
$paid_date=date("M d, Y",mktime(0,0,0,$usr_date[1],$usr_date[2],$usr_date[0]));
$output.='<tr class="'.$class.'" onmouseover="mouse_event(this,\'formrow_bg\')" onmouseout="mouse_event(this, \''.$class.'\');">
<td width="20%" align="left">'.$users[$i]['members_username'].'</td>
<td width="7%" align="left">$'.$users[$i]['paymenthistory_amount'].'</td>
<td width="16%" align="center">'.$users[$i]['paymentsettings_name'].'</td>
<td width="16%" align="center">'.$users[$i]['paymenthistory_trans_id'].'</td>
<td width="12%" align="center">'.$paid_date.'</td>
<td width="6%" align="center"><a href="?do=usermanager&action=edituser&id='.$users[$i][members_id].'"><img src="images/icon_edit.gif" alt="edit" width="20" height="20" border="0" title="Click to Edit User Details" /></a></td>
</tr>';
}
//return $output;
}
else
{
$output.='<tr><td > </td></tr><tr class="'.$class.'" >
<td colspan="6" 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>';
//return $output;
}
if($total<=1)
{
$output.='</table></td>
</tr>
<tr>
<td class="formblock_bleft"> </td>
<td align="center" class="formblock_bbg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="65%" align="left" class="pagination_bar"> </td></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>';
}
else
{
$output.=' </table></td>
</tr>
<tr>
<td class="formblock_bleft"> </td>
<td align="center" class="formblock_bbg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<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;
}
function showPaidWithdrawal($users,$country,$flag,$paging,$prev,$next,$start,$total,$query_string)
{
if(count($users)!=0)
{
for($i=0;$i<count($users);$i++)
{
if($i%2!=0)
{
$class='formblock_row2';
//$image='images/man.gif';
}
else
{
$class='formblock_row1';
//$image='images/women.gif';
}
$usr_date = explode("-",$users[$i]['history_datetime']);
$paid_date=date("M d, Y",mktime(0,0,0,$usr_date[1],$usr_date[2],$usr_date[0]));
$output.='<tr class="'.$class.'" onmouseover="mouse_event(this,\'formrow_bg\')" onmouseout="mouse_event(this, \''.$class.'\');">
<td width="20%" align="left">'.$users[$i]['members_username'].'</td>
<td width="7%" align="left">$'.$users[$i]['history_amount'].'</td>
<td width="16%" align="center">'.$users[$i]['members_account_number'].'</td>
<td width="12%" align="center">'.$paid_date.'</td>
</tr>';
}
//return $output;
}
else
{
$output.='<tr><td > </td></tr><tr class="'.$class.'" >
<td colspan="6" 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>';
//return $output;
}
if($total<=1)
{
$output.='</table></td>
</tr>
<tr>
<td class="formblock_bleft"> </td>
<td align="center" class="formblock_bbg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="65%" align="left" class="pagination_bar"> </td></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>';
}
else
{
$output.=' </table></td>
</tr>
<tr>
<td class="formblock_bleft"> </td>
<td align="center" class="formblock_bbg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<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;
}
}
?>