// main cells;
?>
// First row Flash panner;
?>
|
//Second row: Far Training + Courses;
?>
// courses cell;
?>
|
|
|
|
|
|
|
المزيد ... |
|
|
|
|
|
|
// Far Training Via Internet cell;
?>
|
// Far Training Via Menos cell;
$NowYear = date("Y",time());
?>
|
// Third row: News + Events;
?>
// News Cell ;
?>
|
|
|
|
|
|
|
المزيد ... |
|
|
|
|
|
|
// Events cell;
?>
|
|
|
|
|
|
|
المزيد ... |
|
|
|
|
|
|
// fourth row: Articles + Fourm + E books;
?>
// Articles cell;
?>
|
|
|
|
|
|
$result = mysql_query("SELECT Title,UID,Date,ArtID FROM Articles WHERE Accepted='Y' Order By Date DESC LIMIT 0,2") or die(mysql_error());
while ($row = mysql_fetch_row($result))
{
$ArtTitle = stripslashes($row[0]);
$ArtUID = intval($row[1]);
$ArtDate = stripslashes($row[2]);
$ArtID = intval($row[3]);
if (!$ArtUID)
$Submitter="مدير الموقع";
else
{
$result1 = mysql_query("SELECT Username,FirstName,LastName FROM Users WHERE UID='$ArtUID'") or die(mysql_error());
$row1 = mysql_fetch_row($result1);
$Submitter= " ".stripslashes($row1[0])." (".stripslashes($row1[1])." ".stripslashes($row1[2]).")";
}
$DateArr = explode(" ", $ArtDate);
list($Y,$M,$D)= explode("-",$DateArr[0]);
$FinalDate = $D.' '.$months[$M].' '.$Y;
$result1 = mysql_query("SELECT COUNT(*) FROM ArticlesCmnts WHERE ArtID='$ArtID' AND Accepted='Y'") or die(mysql_error());
$row1 = mysql_fetch_row($result1);
$Comments = intval($row1[0]);
echo "» $ArtTitle
";
}
?>
|
المزيد ... |
|
|
|
|
|
|
// Fourm cell;
?>
|
|
|
|
|
|
|
المزيد ... |
|
|
|
|
|
|
// E books cell;
?>
|
|