التعليقات
(- من أصل }?> تعليق)
السابق }?>
التالي }?>
}
if($AdminHere)
echo " التعليقات للمراجعة ذات خلفية وردية";
?>
|
|
|
$SQLSTART = $start-1;
//ArtID,Title,Details,UID,Name,EMail,Date,CmntID
$result = mysql_query("SELECT Title,Details,UID,Name,EMail,Date,CmntID,Accepted FROM ArticlesCmnts WHERE ArtID='$ArtID' $What2Show Order By Date LIMIT $SQLSTART,$CmntPerPage") or die(mysql_error());
while ($row = mysql_fetch_row($result))
{
$Title = stripslashes($row[0]);
$Details = stripslashes($row[1]);
$UID = intval($row[2]);
$Name = stripslashes($row[3]);
$EMail = stripslashes($row[4]);
$Date = stripslashes($row[5]);
$CmntID = intval($row[6]);
$Accepted = stripslashes($row[7]);
$Details = nl2br($Details);
if ($UID)
{
$result1 = mysql_query("SELECT Username,FirstName,LastName FROM Users WHERE UID='$UID'") or die(mysql_error());
$row1 = mysql_fetch_row($result1);
$Submitter= stripslashes($row1[0]);
}
elseif ($Name)
$Submitter= "زائر: ".$Name;
else
$Submitter="مدير الموقع";
$DateArr = explode(" ", $Date);
list($Y,$M,$D)= explode("-",$DateArr[0]);
$FinalDate = $D.'-'.$months[$M].'-'.$Y;
?>
">
(أضيف في من قبل ) | |
|
if($AdminHere)
{
echo "";
if($Accepted=='N')
{
echo "قبول | ";
echo "رفض |";
}
?>
تعديل | حذف
|
}?>
|
|
}
?>
|
}
if ( $AdminHere || ($AllowCmnts=='Y' && ($LUID || $PublicCmnts=='Y')) )
{
?>