include "config.php";
dbconnect();
include "header.php";
include "functions.php";
?>
:::::: الرئيسية ::::::
|
include "menul.php"; ?>
|
// Get the info of the announcement
$SQLresult = @mysql_query("SELECT * FROM bp_pagesdata WHERE datatype = 'announcement'");
if($row = @mysql_num_rows($SQLresult) == 0)
{
// do not show the table
//print '
تعذر عرض بياناتك لوجود خطأ في الإتصال بقاعدة البيانات
';
}
else
{
$row = @mysql_fetch_array($SQLresult);
$announcementdata = $row["data"];
if($row["showing"] == '1')
{
// Get the users announcements
$SQLresult = @mysql_query("SELECT * FROM bp_announcement WHERE showing = 'true'");
if($row = @mysql_num_rows($SQLresult) == 0)
{
// there is no announcements to add them to the main announcement
}
else
{
// get the announcements and store them in a variable
$ann = '';
while($row = @mysql_fetch_array($SQLresult))
{
$ann = $ann .' '. $row["text"];
}
// now append the announcenets to the main page announcement
$announcementdata = $announcementdata.$ann;
}
// show the announcement table
?>
}
}
?>
// Get the info of the announcement
$SQLresult = @mysql_query("SELECT * FROM bp_pagesdata WHERE datatype = 'mainpagedata'");
if($row = @mysql_num_rows($SQLresult) == 0)
{
// do not show the info
//print '
تعذر عرض بياناتك لوجود خطأ في الإتصال بقاعدة البيانات
';
}
else
{
$row = @mysql_fetch_array($SQLresult);
$mainpagedata = $row["data"];
if($row["showing"] == '1')
{
// show the mainpagedata
print $mainpagedata ;
}
}
?>
|
|
include "menu.php"; ?> |
| include "linksbar.php"; ?> |
include "footer.php"; ?>