| Name |
Type |
Language |
Country |
Rank |
Date Harvested |
Time Harvested |
';
}
if(mysql_num_rows($data)>0){
while( $row = mysql_fetch_array($data)){
$country=mysql_fetch_assoc(mysql_query("select name_country from country where id_country=".$row['country']));
//Get Language details
//$languages=mysql_fetch_assoc(mysql_query("select name from tbl_languages where id=".$row['language']));
$get_type=mysql_fetch_assoc(mysql_query("select name_publication_type_en from publication_type where id_publication_type=".$row['id_publication_type']));
if($row['active']=='1')
{
$img = "images/greencircle.png";
}
else
{
$img = "images/redcircle.png";
}
if($row['active']=='1')
{
$status = "Active";
}
else
{
$status = "Inactive";
}
$act = 'digital_delete';
$edit_link = "
";
$del_link = "
";
$dt = date('d-m-Y',strtotime($row['modified']));
$tme = date('H:i:s',strtotime($row['modified']));
if($row['source_rank'] == '1')
{
$rank = "N/A";
}
else
{
$rank = $row['source_rank'];
}
if($_SESSION['moms_uid'] == '1' && $_SESSION['moms_type'] == "super_admin")
{
$str.=' '.$row['name_publication_en'].' |
'.$get_type['name_publication_type_en'].' |
'.$row['language'].' |
'.$country['name_country'].' |
'.$rank.' |
'.$dt.' |
'.$tme.' |
'.$edit_link.'|'.$del_link.' |
';
}
else
if($_SESSION['moms_uid'] == '1' && $_SESSION['moms_type'] == "admin")
{
$str.=' '.$row['name_publication_en'].' |
'.$get_type['name_publication_type_en'].' |
'.$row['language'].' |
'.$country['name_country'].' |
'.$rank.' |
'.$dt.' |
'.$tme.' |
'.$del_link.' |
';
}
else
if($_SESSION['moms_uid'] == '1')
{
$str.=' '.$row['name_publication_en'].' |
'.$get_type['name_publication_type_en'].' |
'.$row['language'].' |
'.$country['name_country'].' |
'.$rank.' |
'.$dt.' |
'.$tme.' |
'.$del_link.' |
';
}
else
if($_SESSION['moms_type'] == "super_admin")
{
$str.=' '.$row['name_publication_en'].' |
'.$get_type['name_publication_type_en'].' |
'.$row['language'].' |
'.$country['name_country'].' |
'.$rank.' |
'.$dt.' |
'.$tme.' |
'.$edit_link.' |
';
}
else
if($_SESSION['moms_type'] == "admin")
{
$str.=' '.$row['name_publication_en'].' |
'.$get_type['name_publication_type_en'].' |
'.$row['language'].' |
'.$country['name_country'].' |
'.$rank.' |
'.$dt.' |
'.$tme.' |
';
}
?>
No Record Found | ";
}
$str.='