| Code: |
|
savepoll($pollID, $pollTitle, $planguage, $optiontext1, $optiontext2, $optiontext3, $optiontext4, $optiontext5, $optiontext6, $optiontext7, $optiontext8, $optiontext9, $optiontext10, $optiontext11, $optiontext12); |
| Code: |
|
savepoll($pollID, $pollTitle, $planguage, $optiontext1, $optiontext2, $optiontext3, $optiontext4, $optiontext5, $optiontext6, $optiontext7, $optiontext8, $optiontext9, $optiontext10, $optiontext11, $optiontext12, $displayed); |
| Code: |
|
$row = $db->sql_fetchrow($db->sql_query("SELECT pollTitle, planguage from " . $prefix . "_poll_desc where pollID='$pollID'")); $pollTitle = $row['pollTitle']; $planguage = $row['planguage']; CloseTable(); |
| Code: |
|
$row = $db->sql_fetchrow($db->sql_query("SELECT * from " . $prefix . "_poll_desc where pollID='$pollID'")); $pollTitle = $row['pollTitle']; $planguage = $row['planguage']; $display = $row['display']; CloseTable(); |
| Code: |
|
echo "</table><input type=\"hidden\" name=\"pollID\" value=\"$pollID\"><input type=\"hidden\" name=\"op\" value=\"savepoll\">" |
| Code: |
|
echo "</table><center>" . "<br><br><b>". _DISPLAYEDPOLL . " </b><input type=\"radio\" name=\"displayed\" value=\"1\""; if ($display == true) echo " checked>"; else echo ">"; echo "" . _YES . "<input type=\"radio\" name=\"displayed\" value=\"0\""; if ($display == false) echo " checked>"; else echo ">"; echo "" . _NO . "</center>" . "<input type=\"hidden\" name=\"pollID\" value=\"$pollID\"><input type=\"hidden\" name=\"op\" value=\"savepoll\">" |
| Code: |
|
function savepoll($pollID, $pollTitle, $planguage, $optiontext1, $optiontext2, $optiontext3, $optiontext4, $optiontext5, $optiontext6, $optiontext7, $optiontext8, $optiontext9, $optiontext10, $optiontext11, $optiontext12) { |
| Code: |
|
function savepoll($pollID, $pollTitle, $planguage, $optiontext1, $optiontext2, $optiontext3, $optiontext4, $optiontext5, $optiontext6, $optiontext7, $optiontext8, $optiontext9, $optiontext10, $optiontext11, $optiontext12, $displayed) { |
| Code: |
|
Header("Location: admin.php"); |
| Code: |
|
$result = $db->sql_query("update " . $prefix . "_poll_desc set display=$displayed where pollID='$pollID'"); if ($displayed=1) { $result = $db->sql_query("update " . $prefix . "_poll_desc set display=0 where pollID!='$pollID' and planguage='$planguage'"); } |
| Code: |
|
define("_DISPLAYEDPOLL","En faire le sondage affiché actuellement :"); |
| Code: |
|
define("_DISPLAYEDPOLL","Set this poll as the displayed one:"); |
| Code: |
|
$row8 = $db->sql_fetchrow($db->sql_query("SELECT pollID, pollTitle FROM ".$prefix."_poll_desc WHERE artid='0' ORDER BY pollID DESC LIMIT 1")); |
| Code: |
|
// Compte le nombre de sondage à afficher (0 ou plus) $nbrows = $db->sql_numrows($db->sql_query("SELECT pollID, pollTitle FROM ".$prefix."_poll_desc WHERE display=1 AND artid='0' ORDER BY pollID DESC LIMIT 1")); // Si il n'y a pas de sondage, prendre le dernier ajouté (comme avant) if ($nbrows < 1) $row8 = $db->sql_fetchrow($db->sql_query("SELECT pollID, pollTitle FROM ".$prefix."_poll_desc WHERE artid='0' ORDER BY pollID DESC LIMIT 1")); else $row8 = $db->sql_fetchrow($db->sql_query("SELECT pollID, pollTitle FROM ".$prefix."_poll_desc WHERE display=1 AND artid='0' ORDER BY pollID DESC LIMIT 1")); |
| Code: |
|
$row = $db->sql_fetchrow($db->sql_query("SELECT pollID FROM ".$prefix."_poll_desc $querylang ORDER BY pollID DESC LIMIT 1")); |
| Code: |
|
// Compte le nombre de sondage à afficher (0 ou plus) $nbrows = $db->sql_numrows($db->sql_query("SELECT pollID FROM ".$prefix."_poll_desc $querylang AND display=1 ORDER BY pollID DESC LIMIT 1")); // Si il n'y a pas de sondage, prendre le dernier ajouté (comme avant) if ($nbrows < 1) $row = $db->sql_fetchrow($db->sql_query("SELECT pollID FROM ".$prefix."_poll_desc $querylang ORDER BY pollID DESC LIMIT 1")); else $row = $db->sql_fetchrow($db->sql_query("SELECT pollID FROM ".$prefix."_poll_desc $querylang AND display=1 ORDER BY pollID DESC LIMIT 1")); |
Toutes les heures sont au format GMT + 2 Heures