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
cmd: 

Direktori : /home/pfhr/public_html/admin/classes/Display/
Upload File :
Current File : /home/pfhr/public_html/admin/classes/Display/DAdminHome.php

<?
class Display_DAdminHome
{

  function showFaq($records)
  {  	
		$total=count($records);
		$j=1;
		$output.='<table width="100%" border="0" cellspacing="0" cellpadding="0">';
		for($i=0;$i<$total;$i++)
		{
				if($j==3)
				{
					$j=1;
				}
				$s=$j;
				
				$output.='<tr>
                <td colspan="3" class="block_content"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr class="block_row'.$j.'">
                      <td width="50%" align="left"><a href="?do=faq" class="bullet">'.$records[$i]['faq_question'].'</a></td>
                    </tr>
          
                  </table></td>
              </tr>'; 
		$j++;
		}
		
		     if($total < 10)
			{
			     $num= (10- $total);
				
				if($s==1)
				{
				  $j=2;
				}
				else
				{
				  $j=1;
				}				
		  		for($i=0;$i<$num;$i++)
		     {
			    if($j==3)
				{
					$j=1;
				}
				
				$output.='<td ><tr height="22" class="block_rows'.$j.'">
                      <td colspan="3" align="left" class="block_content">&nbsp;</td>
                      
                      
                    </tr></td>'; 
				$j++;	
					
			  }
			
			
			}	
			$output.='  <tr>
                <td width="3%" class="block_bleft">&nbsp;</td>
                <td width="94%" align="right" class="block_bbg">&nbsp;</td>
                <td width="3%" class="block_bright">&nbsp;</td>
              </tr>
            </table>';
			
			
			

		
	  return $output;
  }
  
   function latestMembers($records)
  {
 

  	
		$total=count($records);
		$j=1;
		for($i=0;$i<$total;$i++)
		{
				if($j==3)
				{
					$j=1;
				}
				 $s=$j;
				
				$output.='<tr class="block_row'.$j.'" >
                      <td colspan="2" align="left" width="20%"><a href="?do=userdetails&id='.$records[$i]['members_id'].'" class="bullet">'.$records[$i]['members_username'].'</a></td>
                      <td align="left" width="45%">'.$records[$i]['members_firstname'].'</td>
                      <td align="left" width="30%">'.$records[$i]['members_doj'].'</td>
                    </tr>'; 
		$j++;
		}
		
		    if($total < 10)
			{
			     $num= (10- $total);
				 
				 if($s==1)
				{
				  $j=2;
				}
				else
				{
				  $j=1;
				}
				
		  		for($i=0;$i<$num;$i++)
		     {
			    if($j==3)
				{
					$j=1;
				}
				
				$output.='<tr height="20" class="block_row'.$j.'" >
                      <td colspan="2" align="left">&nbsp;</td>
                      <td align="left">&nbsp;</td>
                      <td align="left">&nbsp;</td>
                    </tr>'; 
				$j++;	
					
			  }
			
			
			}	

		
	  return $output;
  }
}
?>