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_DStitching
{
function showStudents($users,$country,$flag,$paging,$prev,$next,$start,$total,$query_string)
{
if(count($users)!=0)
{
for($i=0;$i<count($users);$i++)
{
if($users[$i]['student_image']=='')
{
$image='../';
}
else
{
$image='../'.$users[$i]['student_image'];
}
$status='<span style="font-size:X-Large;font-weight:bold;color: green; text-transform:uppercase">Student</span><br />';
$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:Black; font-size:X-Large;font-weight:bold;">'.$users[$i]['student_name'].' '.$users[$i]['student_of'].' '.$users[$i]['student_fname'].'</span>
<br />
<br />
</td>
</tr>
<tr>
<td rowspan="10"><img src="'.$image.'" style="border-color:black;border-width:2px;border-style:Double;height:150px;width:130px; border-color:red;" /><br />'.$status.'</td>
<td style="text-align: left; font-weight: 700; color: #000000">I Card No.</td>
<td style="text-align: left; color:Black;font-weight:bold;"> '.$users[$i]['student_icard'].'</td>
</tr>
<tr>
<td style="text-align: left; width:120px; font-weight: 700; color: #000000">Designation</td>
<td style="text-align: left; width:550px;"><span style="color:Black;font-size:Large;font-weight:bold;">'.$users[$i]['student_designation'].'</span></td>
</tr>
<tr>
<td class="style9" style="text-align: left; font-weight: 700; color: #000000">Joining Date</td>
<td style="text-align: left"><span id="ctl00_ContentPlaceHolder1_GridView1_ctl02_Label9" style="color:Black;font-weight:bold;">'.$users[$i]['student_doj'].'</span></td>
</tr>
<tr>
<td class="style9" style="text-align: left; font-weight: 700; color: #000000">Due Date</td>
<td style="text-align: left"><span id="ctl00_ContentPlaceHolder1_GridView1_ctl02_Label9" style="color:Black;font-weight:bold;">'.$users[$i]['student_due'].'</span></td>
</tr>
<tr>
<td class="style9" style="text-align: left; font-weight: 700; color: #000000">Address</td>
<td style="text-align: left"><span style="color:Black;font-weight:bold;">'.$users[$i]['student_address'].' </span> </td>
</tr>
<tr>
<td class="style9" style="text-align: left; font-weight: 700; color: #000000">Contact No</td>
<td style="text-align: left"><span style="color:Black;font-weight:bold;">'.$users[$i]['student_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 showTeachers($users,$country,$flag,$paging,$prev,$next,$start,$total,$query_string)
{
if(count($users)!=0)
if(count($users)!=0)
{
for($i=0;$i<count($users);$i++)
{
if($users[$i]['teacher_image']=='')
{
$image='../';
}
else
{
$image='../'.$users[$i]['teacher_image'];
}
$status='<span style="font-size:X-Large;font-weight:bold;color: green; text-transform:uppercase">Teacher</span><br />';
$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:Black; font-size:X-Large;font-weight:bold;">'.$users[$i]['teacher_name'].' '.$users[$i]['teacher_of'].' '.$users[$i]['teacher_fname'].'</span>
<br />
<br />
</td>
</tr>
<tr>
<td rowspan="10"><img src="'.$image.'" style="border-color:black;border-width:2px;border-style:Double;height:150px;width:130px;" /><br />'.$status.'</td>
<td style="text-align: left; font-weight: 700; color: #000000">I Card No.</td>
<td style="text-align: left; color:Black;font-weight:bold;"> '.$users[$i]['teacher_icard'].'</td>
</tr>
<tr>
<td style="text-align: left; width:120px; font-weight: 700; color: #000000">Designation</td>
<td style="text-align: left; width:550px;"><span style="color:Black;font-size:Large;font-weight:bold;">'.$users[$i]['teacher_designation'].'</span></td>
</tr>
<tr>
<td class="style9" style="text-align: left; font-weight: 700; color: #000000">Joining Date</td>
<td style="text-align: left"><span id="ctl00_ContentPlaceHolder1_GridView1_ctl02_Label9" style="color:Black;font-weight:bold;">'.$users[$i]['teacher_doj'].'</span></td>
</tr>
<tr>
<td class="style9" style="text-align: left; font-weight: 700; color: #000000">Due Date</td>
<td style="text-align: left"><span id="ctl00_ContentPlaceHolder1_GridView1_ctl02_Label9" style="color:Black;font-weight:bold;">'.$users[$i]['teacher_due'].'</span></td>
</tr>
<tr>
<td class="style9" style="text-align: left; font-weight: 700; color: #000000">Address</td>
<td style="text-align: left"><span style="color:Black;font-weight:bold;">'.$users[$i]['teacher_address'].' </span> </td>
</tr>
<tr>
<td class="style9" style="text-align: left; font-weight: 700; color: #000000">Contact No</td>
<td style="text-align: left"><span style="color:Black;font-weight:bold;">'.$users[$i]['teacher_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 showOfficers($users,$country,$flag,$paging,$prev,$next,$start,$total,$query_string)
{
if(count($users)!=0)
{
for($i=0;$i<count($users);$i++)
{
if($users[$i]['officer_image']=='')
{
$image='../';
}
else
{
$image='../'.$users[$i]['officer_image'];
}
$status='<span style="font-size:X-Large;font-weight:bold;color: green; text-transform:uppercase">Field Officer</span><br />';
$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:Black; font-size:X-Large;font-weight:bold;">'.$users[$i]['officer_name'].' '.$users[$i]['officer_of'].' '.$users[$i]['officer_fname'].'</span>
<br />
<br />
</td>
</tr>
<tr>
<td rowspan="10"><img src="'.$image.'" style="border-color:black;border-width:2px;border-style:Double;height:150px;width:130px;" /><br />'.$status.'</td>
<td style="text-align: left; font-weight: 700; color: #000000">I Card No.</td>
<td style="text-align: left; color:Black;font-weight:bold;"> '.$users[$i]['officer_icard'].'</td>
</tr>
<tr>
<td style="text-align: left; width:120px; font-weight: 700; color: #000000">Designation</td>
<td style="text-align: left; width:550px;"><span style="color:Black;font-size:Large;font-weight:bold;">'.$users[$i]['officer_designation'].'</span></td>
</tr>
<tr>
<td class="style9" style="text-align: left; font-weight: 700; color: #000000">Joining Date</td>
<td style="text-align: left"><span id="ctl00_ContentPlaceHolder1_GridView1_ctl02_Label9" style="color:Black;font-weight:bold;">'.$users[$i]['officer_doj'].'</span></td>
</tr>
<tr>
<td class="style9" style="text-align: left; font-weight: 700; color: #000000">Due Date</td>
<td style="text-align: left"><span id="ctl00_ContentPlaceHolder1_GridView1_ctl02_Label9" style="color:Black;font-weight:bold;">'.$users[$i]['officer_due'].'</span></td>
</tr>
<tr>
<td class="style9" style="text-align: left; font-weight: 700; color: #000000">Address</td>
<td style="text-align: left"><span style="color:Black;font-weight:bold;">'.$users[$i]['officer_address'].' </span> </td>
</tr>
<tr>
<td class="style9" style="text-align: left; font-weight: 700; color: #000000">Contact No</td>
<td style="text-align: left"><span style="color:Black;font-weight:bold;">'.$users[$i]['officer_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;
}
}
}
?>