| Name |
Country |
Email |
Telephone |
URL |
ActionAction |
';
}
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['id_country']));
if($row['status']=='A')
{
$img = "images/greencircle.png";
}
else
{
$img = "images/redcircle.png";
}
$edit_link = "
";
$del_link = "
";
$view_link = "
";
if(empty($row['url']))
{
$url = "N/A";
}
else
{
$url = $row['url'];
}
if($_SESSION['moms_uid'] == '1' && $_SESSION['moms_type'] == "super_admin")
{
$str.=' '
.$row['name_publisher_en'].' |
'.$country['name_country'].' |
'.$row['email'].' |
'.$row['phone'].' |
'.$url.' |
'.$view_link.'|'.$edit_link.'|'.$del_link.' |
';
}
else
if($_SESSION['moms_uid'] == '1' && $_SESSION['moms_type'] == "admin")
{
$str.=' '
.$row['name_publisher_en'].' |
'.$country['name_country'].' |
'.$row['email'].' |
'.$row['phone'].' |
'.$url.' |
'.$view_link.'|'.$del_link.' |
';
}
else
if($_SESSION['moms_uid'] == '1')
{
$str.=' '
.$row['name_publisher_en'].' |
'.$country['name_country'].' |
'.$row['email'].' |
'.$row['phone'].' |
'.$url.' |
'.$view_link.'|'.$del_link.' |
';
}
else
if($_SESSION['moms_type'] == "super_admin")
{
$str.=' '
.$row['name_publisher_en'].' |
'.$country['name_country'].' |
'.$row['email'].' |
'.$row['phone'].' |
'.$url.' |
'.$view_link.'|'.$edit_link.' |
';
}
else
if($_SESSION['moms_type'] == "admin")
{
$str.=' '
.$row['name_publisher_en'].' |
'.$country['name_country'].' |
'.$row['email'].' |
'.$row['phone'].' |
'.$url.' |
'.$view_link.' |
';
}
?>
No Record Found | ";
}
$str.='