| Code: |
| function navbar($sid, $title, $thold, $mode, $order) {
global $user, $bgcolor1, $bgcolor2, $textcolor1, $textcolor2, $anonpost, $prefix, $db, $module_name; $query = $db->sql_query("SELECT * FROM ".$prefix."_comments WHERE sid='$sid'"); if(!$query) { $count = 0; } else { $count = $db->sql_numrows($query); } if(!isset($thold)) { $thold=0; } echo "\n\n<!-- COMMENTS NAVIGATION BAR START -->\n\n"; OpenTable(); echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"2\">\n"; if($title) { echo "<tr><td bgcolor=\"$bgcolor2\" align=\"center\"><font class=\"content\" color=\"$textcolor1\">\"$title\" | "; if(is_user($user)) { echo "<a href=\"modules.php?name=Your_Account&op=editcomm\"><font color=\"$textcolor1\">"._CONFIGURE."</font></a>"; } else { echo "<a href=\"modules.php?name=Your_Account\"><font color=\"$textcolor1\">"._LOGINCREATE."</font></a>"; } if(($count==1)) { echo " | <B>$count</B> "._COMMENT.""; } else { echo " | <B>$count</B> "._COMMENTS.""; } if ($count > 0 AND is_active("Search")) { echo " | <a href='modules.php?name=Search&type=comments&sid=$sid'>"._SEARCHDIS."</a>"; } echo "</font></td></tr>\n"; } echo "<tr><td bgcolor=\"$bgcolor1\" align=\"center\" width=\"100%\">\n"; if ($anonpost==1 OR is_admin($admin) OR is_user($user)) { echo "<form action=\"modules.php?name=$module_name&file=comments\" method=\"post\">" ."<input type=\"hidden\" name=\"pid\" value=\"$pid\">" ."<input type=\"hidden\" name=\"sid\" value=\"$sid\">" ."<input type=\"hidden\" name=\"op\" value=\"Reply\">" ."<input type=\"submit\" value=\""._REPLYMAIN."\"></td></form></tr>"; } echo "<tr><td bgcolor=\"$bgcolor2\" align=\"center\"><font class=\"tiny\">"._COMMENTSWARNING."</font></td></tr></table>" ."\n\n<!-- COMMENTS NAVIGATION BAR END -->\n\n"; CloseTable(); if ($anonpost == 0 AND !is_user($user)) { echo "<br>"; OpenTable(); echo "<center>"._NOANONCOMMENTS."</center>"; CloseTable(); } } |
| Code: |
|
echo "<tr><td bgcolor=\"#C72906\" align=\"center\" width=\"100%\">\n"; if ($anonpost==1 OR is_admin($admin) OR is_user($user)) { echo "<form action=\"modules.php?name=$module_name&file=comments\" method=\"post\">" ."<input type=\"hidden\" name=\"pid\" value=\"$pid\">" ."<input type=\"hidden\" name=\"sid\" value=\"$sid\">" ."<input type=\"hidden\" name=\"op\" value=\"Reply\">" ."<input type=\"submit\" value=\""._REPLYMAIN."\"></td></form></tr>"; } else { echo "<form action=\"modules.php?name=Your_Account\" method=\"post\">" ."<input type=\"hidden\" name=\"pid\" value=\"$pid\">" ."<input type=\"hidden\" name=\"sid\" value=\"$sid\">" ."<input type=\"hidden\" name=\"op\" value=\"Reply\">" ."<input type=\"submit\" value=\""._REPLYMAIN."\"></td></form></tr>"; } |
| Code: |
|
} else { echo "<form action=\"modules.php?name=Your_Account\" method=\"post\">" ."<input type=\"hidden\" name=\"pid\" value=\"$pid\">" ."<input type=\"hidden\" name=\"sid\" value=\"$sid\">" ."<input type=\"hidden\" name=\"op\" value=\"Reply\">" ."<input type=\"submit\" value=\""._REPLYMAIN."\"></td></form></tr>"; } |
Toutes les heures sont au format GMT + 2 Heures