يا جماعة انا عندي كود ماكرو يتحرك من الاسفل الى الاعلى وانا ابغيه من اليسار لليمين منو يغيرلي الكود واكون شاكر له ..
هذا الكود
كود PHP:
<?php
require_once('./global.php');
// ==========================================
// | Config |
// ==========================================
$question = "البرنامج قيد التطوير حالياً نتمنى اقتراحاتكم";
$ehdaa_limit="20"; //عدد الاهداءات الاخيرة التي سيعرضها السكربت
$admin_color = "#0000FF";
// ==========================================
if ($_REQUEST['do'] == "add") {
$msg = "<thead><tr><td colspan=\"2\" class=\"thead\" colspan=\"2\">الإشتراك في المسابقة</td></tr></thead>
<tbody>
<tr>
<td class=\"tcat\" align=\"center\" colspan=\"2\">$question</td>
</tr><tr>
<form method=\"POST\" action=\"fn_ehdaa.php?do=do_add\">
<td class=\"alt2\" align=\"center\">الاسم :</td>
<td class=\"alt2\" align=\"center\"><input name=\"name\" type=\"hidden\" value=\"$bbuserinfo[username]\">$bbuserinfo[username]</td>
</tr><tr>
<td class=\"alt1\" align=\"center\">رسالتك :</td>
<td class=\"alt1\" align=\"center\"><input size=\"45\" type=\"text\" name=\"msg\" size=\"50\"></td>
</tr>
<tr>
<td colspan=\"2\" class=\"tfoot\" align=\"left\"><input type=\"submit\" value=\"إضافة\"></form></td>
</tr>
</tbody>";
if (!$bbuserinfo['userid']) {
$msg = "<td class=\"alt2\" align=\"center\">غير مسموح للزوار</td>";
}
eval('print_output("' . fetch_template('fn_ehdaa_msg') . '");');
} elseif ($_REQUEST['do'] == "do_add") {
if (!$_POST['msg']) {
$msg = "<td class=\"alt2\" align=\"center\">عذرا ... لم تكتب رسالتك</td>";
} elseif (strlen($_POST['msg']) > 300) {
$msg = "<td class=\"alt2\" align=\"center\">عذرا ... الحد الأقصى للأحرف في الرسالة هو 300 حرف</td>";
} else {
$_POST['msg'] = str_replace("<", "<", $_POST['msg']);
$_POST['msg'] = str_replace(">", ">", $_POST['msg']);
$DB_site->query("INSERT INTO fn_ehdaa(id,name,msg) VALUES ('','$_POST[name]','$_POST[msg]')");
$msg = "<td class=\"alt2\" align=\"center\">تم إرسال الجواب بنجاح</td>";
}
eval('print_output("' . fetch_template('fn_ehdaa_msg') . '");');
} else {
$ehdaa_1 = $DB_site->query("SELECT * FROM fn_ehdaa ORDER BY id DESC LIMIT $ehdaa_limit");
while ($ehdaa_row = mysql_fetch_array($ehdaa_1)) {
$qqq = mysql_query("SELECT * FROM user WHERE username='$ehdaa_row[name]'");
$nnn = mysql_fetch_array($qqq);
if ($nnn['usergroupid'] == 6) {
$ehdaa_bit .= " <font color=\"red\">**</font><font color=\"$admin_color\">$ehdaa_row[name]: $ehdaa_row[msg]</font><br>";
} else {
$ehdaa_bit .= " <font color=\"red\">**</font>$ehdaa_row[name]: $ehdaa_row[msg]<br>";
}
}
echo "<html><head><title>الإهداءات</title>$headinclude</head><body class=\"alt1\"><marquee onmouseover=this.stop() onmouseout=this.start() scrollAmount=1 scrollDelay=0 direction=up width=100% height=200>$ehdaa_bit</marquee></body</html>";
}
?>