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_DCms
{
function showNews($news)
{
if(count($news)!=0)
{
for($i=0;$i<count($news);$i++)
{
if($news[$i]['news_image']!="")
$image=$news[$i]['news_image'];
else
$image='uploads/no_image1.gif';
$output.='
<tr style="">
<td>
<table border="0px" cellpadding="2" cellspacing="2" style=" border-bottom:1px solid red; width:100%; margin-top:5px; margin-bottom:5px;" class="style6">
<tr>
<td>
<a href="'.$image.'" rel="lightbox " title="'.ucwords($news[$i]['news_header']).'">'.ucwords($news[$i]['news_header']).'</a> Dated ('.$news[$i]['news_datetime'].')</td>
</tr>
</table>
</td>
</tr>';
}
}
else
{
$output.='<font style="font-size:12px;" >No News Found</font>';
}
return $output;
}
function showNewswww($news)
{
if(count($news)!=0)
{
for($i=0;$i<count($news);$i++)
{
if($news[$i]['news_image']!="")
$image=$news[$i]['news_image'];
else
$image='uploads/no_image1.gif';
$output.='
<tr style="">
<td>
<table border="0px" cellpadding="2" cellspacing="2" style=" border-bottom:1px solid red; width:100%; margin-top:5px; margin-bottom:5px;" class="style6">
<tr>
<td rowspan="10">
<a href="'.$image.'" rel="lightbox " title="'.ucwords($news[$i]['news_header']).'"><img src="'.$image.'" alt="" style="border-color:Green;border-width:2px; border-style:Double; height:150px; width:250px;" /></a></td>
<td style="text-align:left; font-size:18px; font-weight:bold; color: #000000">'.ucwords($news[$i]['news_header']).'</td>
</tr>
<tr>
<td style="text-align: left; width:550px;"><span style="color:Black; font-size:12px; ">'.$news[$i]['news_description'].'</span></td>
</tr>
<tr>
<td class="style9" style="text-align: left; font-weight: 700; color: #000000">'.$news[$i]['news_datetime'].'</td>
</tr>
</table>
</td>
</tr>';
}
}
else
{
$output.='<font style="font-size:12px;" >No News Found</font>';
}
return $output;
}
function showNewsHome($news)
{
if(count($news)!=0)
{
for($i=0;$i<count($news);$i++)
{
if($news[$i]['news_video']!="")
$image=$news[$i]['news_video'];
else
$image='';
$output.='
<div class="post-row">
<div class="left-meta-post">
<div class="post-date"><span class="day">'.substr($news[$i]['news_datetime'],8,2).'</span><span class="month">'.substr($news[$i]['news_datetime'],5,2).'</span></div>
<div class="post-type"><i class="icon-picture-1"></i></div>
</div>
<h3 class="post-title"><a href="#">'.substr($news[$i]['news_header'],0,45).'</a></h3>
<div class="post-content">
<p>'.substr($news[$i]['news_description'],0,45).' <a class="read-more" href="?do=news&id='.$news[$i]['news_id'].'">Read More...</a></br></br></p>
</div>
</div>';
}
}
else
{
$output.='<font style="font-size:12px;" >No News Found</font>';
}
return $output;
}
function showFaq($faq)
{
for($i=0;$i<count($faq);$i++)
{
$output.='<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="news_title">'.ucwords($faq[$i]['faq_question']).'</td>
</tr>
<tr>
<td colspan="2" class="news_content">'.$faq[$i]['faq_answer'].'</td>
</tr>
</table>';
}
return $output;
}
function showTestimonals($test)
{
for($i=0;$i<count($test);$i++)
{
if($test[$i]['testimonals_image']!="")
$image = $test[$i]['testimonals_image'];
else
$image = 'uploads/testimonals/no_image1.gif';
$output .= '<table class="testimonial_b1" width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="17%" rowspan="2"><ul><a href="'.$image.'" rel="prettyPhoto" title="'.$test[$i]['photos_message'].'"><img src="'.$image.'" width="113px" height="110px" title="'.$test[$i]['photos_message'].'" alt="'.$test[$i]['photos_message'].' " /></a></ul></td>
<td class="testimonial"><h3>'.$test[$i]['testimonals_message'].'</h3></td>
</tr>
<tr>
<td class="testimonial_u1">'.$test[$i]['testimonals_name'].'</td>
</tr>
</table>';
}
return $output;
}
function showPhotos($test)
{
if(count($test)!=0)
{
for($i=0;$i<count($test);$i++)
{
if($test[$i]['photos_image']!="")
$image1 = $test[$i]['photos_image'];
else
$image1 = 'uploads/photoG/no_image1.gif';
$output .= '<a href="'.$image1.'" rel="lightbox " title="'.$test[$i]['photos_id'].'"><img src="'.$test[$i]['photos_thumb'].'" alt="" style="margin:2px; border:3px solid; border-radius:3px; width:150px; height:100px;" /></a>';
}
}
else
{
$output.='<center><font style="font-size:25px;" >No Records Found</font></center>';
}
return $output;
}
Function showVideoGallery($test)
{
if(count($test)!=0)
{
for($i=0;$i<count($test);$i++)
{
$image = 'uploads/folder.png';
$output .= '<div class="portfolio-item logo animation col-md-3">
<div class="portfolio-thumb">
<a href="?do=videogallery&action=view&id='.$test[$i]['categorey_id'].'">
<img alt="" width="110px" src="'.$image.'" />
</a>
</div>
<div class="portfolio-details">
<a href="#">
<span>'.$test[$i]['categorey_name'].'</span>
</a>
</div>
</div>';
}
}
else
{
$output.='<center><font style="font-size:16px;" >No Records Found</font></center>';
}
return $output;
}
Function showVideo($test)
{
for($i=0;$i<count($test);$i++)
{
$image = 'images/video_icon.png';
$output .= '<a href="'.$test[$i]['video_url'].'" rel="lightbox " title="."><img src="'.$image.'" alt="" width="150px" /></a>';
}
return $output;
}
function showDailyNews($test)
{
for($i=0;$i<count($test);$i++)
{
if($test[$i]['dnews_image']!="")
$image = $test[$i]['dnews_image'];
else
$image = 'uploads/photoG/no_image1.gif';
$output .= '
<li class="portfolio-item2" data-id="id-0" data-type="'.$test[$i]['photos_cat_id'].'">
<div>
<span class="image-block">
<a class="image-zoom" href="'.$image.'" rel="prettyPhoto[gallery]" title="'.$test[$i]['dnews_name'].' ('.$test[$i]['dnews_subject'].') Page No.('.$test[$i]['dnews_email'].')">
<img width="140" height="100" src="'.$image.'" alt="'.$test[$i]['dnews_name'].' ('.$test[$i]['dnews_subject'].') Page No.('.$test[$i]['dnews_email'].')" title="'.$test[$i]['dnews_name'].' ('.$test[$i]['dnews_subject'].') Page No.('.$test[$i]['dnews_email'].')" />
</a>
</span>
<div class="home-portfolio-text">
<p class="post-subtitle-portfolio">'.$test[$i]['dnews_name'].' ('.$test[$i]['dnews_subject'].')</p>
</div>
</div>
</li>';
}
return $output;
}
function showOffice($test)
{
for($i=0;$i<count($test);$i++)
{
if($test[$i]['office_image']!="")
$image = $test[$i]['office_image'];
else
$image = 'uploads/office/no_image1.gif';
$output .= '<table class="testimonial_b1" width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="17%" rowspan="2"><img width="113px" height="110px" src='.$image.' /></td>
<td class="testimonial"><font color="red">'.$test[$i]['office_name'].'</font>
<b>('.$test[$i]['office_email'].')</b>
<br>
'.$test[$i]['office_message'].'</td>
</tr>
<tr>
<td class="testimonial_u1">Thanks By: '.$test[$i]['office_name'].'</td>
</tr>
</table>';
}
return $output;
}
function showOffices($test)
{
for($i=0;$i<count($test);$i++)
{
if($test[$i]['office_image']!="")
$image = $test[$i]['office_image'];
else
$image = 'uploads/office/no_image1.gif';
$output .= '<ul class="thumb">
<li><a href="?do=office"><img src="'.$image.'" title="'.$test[$i]['office_name'].' ('.$test[$i]['office_email'].')" width="85" height="113" border="0" align="texttop" />
</a>
</li>
</ul>
';
}
return $output;
}
function showSearch($users,$country,$flag,$paging,$prev,$next,$start,$total,$query_string)
{
if(count($users)!=0)
{
$p=1;
for($i=0;$i<count($users);$i++)
{
if($i%2!=0){$class='style="background-color:#CCCCCC;"';}
else{$class='formblock_row1';}
if($users[$i]['donor_image']=='')
{
$image='images/No_image.svg';
}
else
{
$image='./'.$users[$i]['donor_image'];
}
$color='black';
$output.='
<tr '.$class.'>
<td style="padding:3px; border-right:1px solid;" > '.$p.'</td>
<td style="padding:3px; border-right:1px solid;" ><a href="?do=donor&action=view&id='.$users[$i]['donor_icard'].'"><img src="'.$image.'" width="28px"/></a></td>
<td style="padding:1px; border-right:1px solid;" ><a href="?do=donor&action=view&id='.$users[$i]['donor_icard'].'">V-'.$users[$i]['donor_icard'].'</a></td>
<td style="padding-left:5px; border-right:1px solid;"align="left" ><a href="?do=donor&action=view&id='.$users[$i]['donor_icard'].'">'.$users[$i]['donor_name'].'</a></td>
<td style="padding:1px; border-right:1px solid;" ><a href="?do=donor&action=view&id='.$users[$i]['donor_icard'].'">'.$users[$i]['donor_address'].'</a></td>
<td style="padding-left:5px; border-right:1px solid;"align="left" ><a href="?do=donor&action=view&id='.$users[$i]['donor_icard'].'">'.$users[$i]['donor_city'].'</a></td>
<td style="padding-left:5px; border-right:1px solid;"><a href="?do=donor&action=view&id='.$users[$i]['donor_icard'].'">'.$users[$i]['donor_phone'].'</a></td>
</tr>
';
$p++;
}
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.='<tr '.$class.'><td colspan="5"><center><h3>No Records Found</h3></center></td></tr>';
return $output;
}
} function showDonnerView($users) { if(count($users)!=0) { for($i=0;$i<count($users);$i++) { $color='black'; if($users[$i]['donor_image']=='') { $image='uploads/no_user_img.jpeg'; } else { $image=$users[$i]['donor_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]['donor_name'].' '.$users[$i]['donor_of'].' '.$users[$i]['donor_fname'].'</span> <br /> <br /> </td> </tr> <tr> <td rowspan="10"><a href="?do=donor&action=view&id='.$users[$i]['donor_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]['donor_icard'].'</td> </tr> <tr> <td style="text-align: left; width:120px; font-weight: 700; color:'.$color.'">Gender</td> <td style="text-align: left; width:550px; text-transform:uppercase"><span style="color:'.$color.';font-weight:bold;">'.$users[$i]['donor_sex'].'</span></td> </tr> <tr> <td class="style9" style="text-align: left; font-weight: 700; color:'.$color.'">Age</td> <td style="text-align: left"><span style="color:'.$color.';font-weight:bold;">'.$users[$i]['donor_age'].' Year</span></td> </tr> <tr> <td class="style9" style="text-align: left; font-weight: 700; color:'.$color.'">Blood Group</td> <td style="text-align: left"><span style="color:'.$color.';font-weight:bold;">'.$users[$i]['donor_blood'].'</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]['donor_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]['donor_phone'].'</span></td> </tr> </table> </td></tr> '; } return $output; } } function showDonnerDetails($users) { if(count($users)!=0) { $p=1; for($i=0;$i<count($users);$i++) { 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-left:5px; border-right:1px solid;"align="left" >'.$users[$i]['donor_details_date'].'</td> <td style="padding-left:5px; border-right:1px solid;">Completed</td> </tr>'; $p++; } return $output; } else { $output.=' <tr> <td colspan="5" style="padding:15px;"align="center" >No Records Found</td> </tr> '; return $output; } }
function showCertificate($users,$country,$flag,$paging,$prev,$next,$start,$total,$query_string) {
if(count($users)!=0)
{ $p=1; for($i=0;$i<count($users);$i++)
{ if($i%2!=0){$class='style="background-color:#CCCCCC;"';}
else{$class='formblock_row1';}
if($users[$i]['certificate_image']==''){
$image='images/No_image.svg'; }
else
{ $image='./'.$users[$i]['certificate_image']; }
$color='black';
$output.='<tr '.$class.' style="color:black;"><td style="padding:3px; border-right:1px solid; " >
<a href="#" onClick=window.open("?do=results&id='.$users[$i]['certificate_rollno'].'","demo","width=550,height=500,left=150,top=10,toolbar=0,status=0,"); >
<img src="'.$image.'" width="28px" style=" border:1px solid red;"/></a></td>
<td style="padding:1px; border-right:1px solid;" ><a href="#" onClick=window.open("?do=results&id='.$users[$i]['certificate_rollno'].'","demo","width=550,height=500,left=150,top=10,toolbar=0,status=0,"); >'.$users[$i]['certificate_rollno'].'</a></td>
<td style="padding-left:5px; border-right:1px solid;"align="left" >'.$users[$i]['certificate_title'].' '.$users[$i]['certificate_name'].'</td>
<td style="padding:1px; border-right:1px solid;" >Stitching</td>
<td style="padding-left:5px; border-right:1px solid; ">'.$users[$i]['certificate_grade'].'</td>
</tr>'; $p++; } 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.='<tr '.$class.'><td colspan="5"><center><h3>No Records Found</h3></center></td></tr>'; return $output; } }
}
?>