本文整理汇总了PHP中js_goto函数的典型用法代码示例。如果您正苦于以下问题:PHP js_goto函数的具体用法?PHP js_goto怎么用?PHP js_goto使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了js_goto函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: fwrite
fwrite(fopen("config.php", "w"), "");
// fclose("config.php");
}
if (!file_exists("config.m4.php")) {
fwrite(fopen("config.m4.php", "w"), "");
// fclose("config.m4.php");
}
if (!file_exists("config.ab.php")) {
fwrite(fopen("config.ab.php", "w"), "");
// fclose("config.ab.php");
}
if ($install == "update") {
js_goto("update.php?stage=1&langue={$langue}");
} else {
if ($install == "update16") {
js_goto("update.php?stage=1&langue={$langue}&sql=16");
}
}
echo "<h3>{$strInstallStage1}</h3>";
if (!is_writable($filename)) {
show_warning("{$strPermissionInvalideConfigFile} : {$filename}");
}
if (!is_writable($filenamem4)) {
show_warning("{$strPermissionInvalideConfigFile} : {$filenamem4}");
}
if (!is_writable($filenameab)) {
show_warning("{$strPermissionInvalideConfigFile} : {$filenameab}");
}
echo "<table cellspacing=2 cellpadding=2 border=0>";
echo "<tr><td class=title>{$strInstallStage1Consignes} :</td></tr>";
echo "</table>";
开发者ID:Arnaud-Burn,项目名称:phpTournois,代码行数:31,代码来源:install.php
示例2: js_goto
$grade['x'] = 'x';
}
// Y est wararranger ou leader d'une Team
if (eregi('y', $grade_ch->grade)) {
$grade['y'] = 'y';
}
//le Z est le rang 'user' un membre qui n'a pas "z" est bannit...
if (eregi('z', $grade_ch->grade)) {
$grade['z'] = 'z';
}
}
/*** Si le joueur est bannit on l'exclut ***/
if ($grade['z'] != 'z') {
//setcookie("data","banned",time()-9999999);
if ($page != "banned") {
js_goto("?page=banned");
}
}
}
/*** Correction du s_type selon rang admin ***/
if (($grade['a'] == 'a' || $grade['b'] == 'b') && $s_type != '2') {
//SessionSetVar("s_type","2");
}
/*** chargement du BBcode de lalex ***/
// Les tableaux contenant les données des BBCodes
// bbTags : contient le nom de chaque tag
$bbTags = array();
// htmlTags : contient les données de traduction en code HTML
$htmlTags = array();
// Contient les tags ouverts dans le fichier XML
$xmlstack = array();
开发者ID:Arnaud-Burn,项目名称:phpTournois,代码行数:31,代码来源:kernel.php
示例3: die
| You should have received a copy of the GNU General Public License |
| along with AdminBot; if not, write to the Free Software Foundation, |
| Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| |
+---------------------------------------------------------------------+
| Authors: Li0n <[email protected]> |
| RV <[email protected]> |
| Gougou |
+---------------------------------------------------------------------+
*/
if (eregi("matchs_list.php", $_SERVER['PHP_SELF'])) {
die("You cannot open this page directly");
}
/*** test de la session ***/
if (empty($s_tournois)) {
js_goto("?page=index");
}
/********************************************************
* Affichage normal
*/
/*** verification securite ***/
if ($op == 'admin') {
verif_admin_tournois($s_joueur, $s_tournois, $grade['a'], $grade['b'], $grade['t']);
}
if (!isset($id)) {
$id = '';
}
if ($status != 'A' && $status != 'T' && $status != 'D' && $op != 'admin') {
$status = 'T';
}
if ($status == 'C') {
开发者ID:Arnaud-Burn,项目名称:phpTournois,代码行数:31,代码来源:matchs_liste.php
示例4: js_goto
} else {
js_goto("?page=index");
}
}
/********************************************************
* Del d'un commentaire
*/
if ($op == "del") {
/*** verification securite ***/
if ($grade['a'] != 'a' && $grade['b'] != 'b' && $grade['m'] != 'm') {
js_goto($PHP_SELF);
}
$sqldel = "DELETE FROM `{$dbprefix}shoutbox` WHERE id='{$id}'";
$reqdel = mysql_query($sqldel) or die('Erreur SQL !<br>' . $sqldel . '<br>' . mysql_error());
//if a==o
js_goto("?page=shoutbox&op=archive");
}
/********************************************************
* Archive
*/
if ($op == "archive") {
$db->select("count(id)");
$db->from("{$dbprefix}shoutbox");
$res = $db->exec();
$row = mysql_fetch_row($res);
$ptotal = $row[0];
if ($ptotal == '' || $ptotal == NULL || $nptotal == "0") {
$ptotal = "1";
}
if ($nbcom != "" || $nbcom != NULL) {
$shoutlimit2 = $nbcom;
开发者ID:Arnaud-Burn,项目名称:phpTournois,代码行数:31,代码来源:shoutbox.php
示例5: js_goto
$db->where("id = {$id}");
$db->exec();
}
if ($op_old == 'galerie') {
echo "<script>this.opener.location=this.opener.location;this.close();</script>";
} else {
js_goto("?page=avatars&id={$id}&mode={$mode}");
}
}
} elseif ($op == "delete") {
$avatar_sql = avatar_delete($ficheX->avatar_type, $ficheX->avatar);
$db->update("{$dbprefix}{$type}");
$db->set("{$avatar_sql}");
$db->where("id = {$id}");
$db->exec();
js_goto("?page=avatars&id={$id}&mode={$mode}");
} elseif ($op == "galerie") {
$dir = @opendir($config['avatars_path'] . '/gallerie');
$avatar_images = array();
while ($file = @readdir($dir)) {
if ($file != '.' && $file != '..' && !is_file($config['avatars_path'] . '/gallerie/' . $file) && !is_link($config['avatars_path'] . '/gallerie/' . $file)) {
$i = 0;
$sub_dir = @opendir($config['avatars_path'] . '/gallerie/' . $file);
while ($sub_file = @readdir($sub_dir)) {
if (preg_match('/(\\.gif$|\\.png$|\\.jpg|\\.jpeg)$/is', $sub_file)) {
$avatar_images[$file][$i] = $file . '/' . $sub_file;
$avatar_names[$file][$i] = ucfirst(str_replace("_", " ", preg_replace('/^(.*)\\..*$/', '\\1', $sub_file)));
$i++;
}
}
}
开发者ID:Arnaud-Burn,项目名称:phpTournois,代码行数:31,代码来源:avatars.php
示例6: js_goto
include 'config.m4_old.php';
} else {
include 'config.m4.php';
}
if (@file_exists("config.ab_old.php") and $stage == 1) {
include 'config.ab_old.php';
} else {
include 'config.ab.php';
}
echo "<p class=title>.:: Mise à jour stage {$stage} ::.</p>";
/********************************************************
* STAGE 0
*/
if ($stage == 0) {
if (!defined("PHPTOURNOIS_INSTALLED")) {
js_goto("install.php");
}
echo "<h3>Welcome on phpTournois !!</h3>";
echo "<table cellspacing=2 cellpadding=2 border=0>";
echo "<tr><td class=title>Please select your language :</td></tr>";
echo "</table>";
echo "<form method=post action=?stage=1>";
echo "<table cellspacing=2 cellpadding=2 border=0>";
echo "<tr><td class=text2 align=center>";
echo "<select name=langue>";
$fd = opendir("lang/");
while ($file = readdir($fd)) {
if ($file != "." && $file != "..") {
$file = ereg_replace(".inc.php", "", $file);
echo "<option value={$file}>{$file}";
}
开发者ID:Arnaud-Burn,项目名称:phpTournois,代码行数:31,代码来源:update.php
示例7: die
| |
| You should have received a copy of the GNU General Public License |
| along with AdminBot; if not, write to the Free Software Foundation, |
| Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| |
+---------------------------------------------------------------------+
| Authors: Li0n <[email protected]> |
| RV <[email protected]> |
| Gougou |
+---------------------------------------------------------------------+
*/
if (eregi("irc.php", $_SERVER['PHP_SELF'])) {
die("You cannot open this page directly");
}
if (!$config['irc']) {
js_goto('?page=index');
}
/********************************************************
* Applet java
*/
if ($op == "applet") {
/*** recup des infos pour la connection ***/
if (!empty($s_joueur)) {
$joueur = joueur($s_joueur);
$nick = $joueur->pseudo;
$altnick = $joueur->nom;
$name = "{$joueur->nom} {$joueur->prenom}";
} elseif ($pseudo) {
$nick = $name = $pseudo;
$altnick = $pseudo . rand(100, 200);
} else {
开发者ID:Arnaud-Burn,项目名称:phpTournois,代码行数:31,代码来源:irc.php
示例8: js_goto
} else {
$db->insert("{$dbprefix}jeux (nom,sigle,icone)");
$db->values("'{$nom}','{$sigle}','{$icone}'");
$db->exec();
/*** redirection ***/
js_goto("?page=jeux");
}
} elseif ($op == "delete") {
$db->delete("{$dbprefix}jeux");
$db->where("id = {$id}");
$db->exec();
$db->delete("{$dbprefix}maps");
$db->where("jeux = {$id}");
$db->exec();
/*** redirection ***/
js_goto("?page=jeux");
} else {
$nb_jeux = nb_jeux() - 1;
echo "<p class=title>.:: {$strAdminJeux} ::.</p>";
echo "<table cellspacing=0 cellpadding=0 border=0>";
echo "<tr><td class=title>" . $nb_jeux . " {$strJeux}</td></tr>";
echo "</table>";
$db->select("*");
$db->from("{$dbprefix}jeux");
$db->where("id <> 1");
$db->order_by("sigle");
$jeux = $db->exec();
/** reinit des colonne a 1 ***/
if ($db->num_rows($jeux) < $config['col_jeux']) {
$config['col_jeux'] = 1;
}
开发者ID:Arnaud-Burn,项目名称:phpTournois,代码行数:31,代码来源:jeux.php
示例9: die
| You should have received a copy of the GNU General Public License |
| along with AdminBot; if not, write to the Free Software Foundation, |
| Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| |
+---------------------------------------------------------------------+
| Authors: Li0n <[email protected]> |
| RV <[email protected]> |
| Gougou |
+---------------------------------------------------------------------+
*/
if (eregi("matchs_finales_exp.php", $_SERVER['PHP_SELF'])) {
die("You cannot open this page directly");
}
/*** test de la session ***/
if (empty($s_tournois)) {
js_goto("index.php");
}
/********************************************************
* Generer tous les matchs
*/
/*** verification securite ***/
verif_admin_tournois($s_joueur, $s_tournois, $grade['a'], $grade['b'], $grade['t']);
if (!isset($status)) {
$status = '';
}
if (!isset($x)) {
$x = '';
}
// calcul global des parametres de l'arbre
$nb_x_total = log($nb_finales_winner_tournois) / log(2);
if ($modeelimination_tournois == 'D') {
开发者ID:Arnaud-Burn,项目名称:phpTournois,代码行数:31,代码来源:matchs_finales_exp.php
示例10: js_goto
}
if ($select_test == '') {
js_goto("?page=faq&op=admin&alerte=b");
}
echo '</select></td><td>';
$db->select("categorie,idcat");
$db->from("{$dbprefix}faq ORDER by id");
$res = $db->exec();
echo '<font size="2" color ="blue"><b>';
echo "{$str_faq_in}";
echo '</b></font></td><td><select name="catf">';
while ($data = $db->fetch($res)) {
if ($data->categorie != '') {
echo '<option value="' . $data->idcat . '">' . $data->categorie . '</option>';
}
}
echo '</td></tr></table><br>';
echo '<input type="hidden" name="catidx" value="' . $catid . '"><input type="submit" name="Submit" value="';
echo "- {$strOK} -";
echo '">';
echo '</form>';
}
if ($_GET['act'] == "Iup") {
$catid = $_POST['catf'];
$id = $_POST['catf1'];
$catidx = $_POST['catidx'];
$sql = "UPDATE `{$dbprefix}faq` SET idcat='{$catid}' WHERE id='{$id}'";
$req = mysql_query($sql) or die('Erreur SQL !<br>' . $sql . '<br>' . mysql_error());
js_goto("?page=faq&op=admin&act=I2&catid={$catidx}&v=o");
}
}
开发者ID:Arnaud-Burn,项目名称:phpTournois,代码行数:31,代码来源:faq.php
示例11: js_goto
}
}
//admin
if ($acces == "N") {
if ($grade['a'] != 'a' && $grade['b'] != 'b' && $grade['g'] != 'g' && $grade['n'] != 'n') {
js_goto('?page=login');
}
}
//Newser
if ($acces == "M") {
if ($s_joueur == "" || $s_joueur == NULL) {
js_goto('?page=login');
}
}
//joueur
if ($acces == "P") {
if (!premium($s_joueur) && ($grade['a'] != 'a' && $grade['b'] != 'b' && $grade['g'] != 'g')) {
js_goto('?page=login');
}
}
//premium
if ($grade['a'] == 'a' || $grade['b'] == 'b' || $grade['g'] == 'g') {
echo "<a href='?page=page&op=modif&id=" . $data['id'] . "'><img src='images/edit.gif' border=0 /></a><a href='?page=page&op=delpage&id=" . $data['id'] . "'> <img src='images/f.gif' border=0 /></a><br><br>";
}
$contenu = BBcode($contenu);
$contenu = stripslashes($contenu);
$contenu = wordwrap($contenu, 180, "\n", 1);
echo $contenu;
}
}
}
开发者ID:Arnaud-Burn,项目名称:phpTournois,代码行数:31,代码来源:page.php
示例12: js_goto
$db->exec();
$db->update("{$dbprefix}forum");
$db->set("cattopic='{$new_cat}' WHERE topid='{$topid}'");
$db->exec();
/*** redirection ***/
js_goto("?page=forum");
}
/********************************************************
* Locker un sujet Sujet
*/
if ($_GET['op'] == "iwtl") {
$db->update("{$dbprefix}forum_message");
$db->set("locking='1' WHERE topid='{$topid}'");
$db->exec();
/*** redirection ***/
js_goto("?page=forum");
}
/********************************************************
* Locker un sujet Sujet
*/
if ($_GET['op'] == "iwtul") {
$db->update("{$dbprefix}forum_message");
$db->set("locking='0' WHERE topid='{$topid}'");
$db->exec();
/*** redirection ***/
js_goto("?page=forum");
}
?>
开发者ID:Arnaud-Burn,项目名称:phpTournois,代码行数:28,代码来源:forum.php
示例13: js_goto
echo "<img src=\"images/back.gif\" border=0 align=align=absmiddle> <a href=javascript:back() class=action>{$strRetour}</a><br>";
} else {
js_goto("?page=equipe&op=rejoindre");
}
} elseif ($op == "libere") {
/* pour l'instant, seul l'administrateur master/normal/de salle peut libérer une place */
if ($grade['a'] == 'a' || $grade['b'] == 'b' || $grade['k'] == 'k') {
$db->update("{$dbprefix}plan");
$db->set("status = '0'");
$db->where("place = '{$place}'");
$db->exec();
}
js_goto("?page=plan");
} else {
if ($op == 'admin' && ($grade['a'] != 'a' && $grade['b'] != 'b' && $grade['k'] != 'k')) {
js_goto('?page=news');
}
/* Titre de la page */
if (($grade['a'] == 'a' || $grade['b'] == 'b' || $grade['k'] == 'k') && $op == 'admin') {
echo "<p class=title>.:: " . $strAdministrationReservation . " ::.</p>";
} else {
echo "<p class=title>.:: " . $strPlanSalle . " ::.</p>";
}
/* Affiche le plan des équipes */
$fp = fopen($fichier_plan, "r");
$data = fread($fp, 50000);
$db->select("status, place");
$db->from("{$dbprefix}plan");
$res = $db->exec();
while ($reserve = $db->fetch($res)) {
switch ($reserve->status) {
开发者ID:Arnaud-Burn,项目名称:phpTournois,代码行数:31,代码来源:plan.php
示例14: verif_manager
if (modeequipe_tournois($id) == 'E' && participe($equipe, $id)) {
/*** verification securite ***/
verif_manager($equipe, $s_joueur);
$db->delete("{$dbprefix}participe");
$db->where("tournois = {$s_tournois}");
$db->where("equipe = {$equipe}");
$db->exec();
} elseif (modeequipe_tournois($id) == 'J' && participe($s_joueur, $id)) {
$db->delete("{$dbprefix}participe");
$db->where("tournois = {$s_tournois}");
$db->where("equipe = {$s_joueur}");
$db->exec();
}
}
/*** redirection ***/
js_goto("?page=inscriptions");
} elseif ($op == "admin") {
/*** verification securite ***/
verif_admin_tournois($s_joueur, $s_tournois, $grade['a'], $grade['b'], $grade['t']);
/*** affichage main ***/
echo "<p class=title>.:: " . ${'str' . $EquipesX . 'Inscrits'} . " - {$nom_tournois}::.</p>";
echo "<table cellspacing=0 cellpadding=0 border=0>";
$nbinscrits = nb_inscrits_tournois($s_tournois);
$nbplaces = nb_places_tournois($s_tournois);
if ($nbinscrits > $nbplaces) {
echo "<tr><td class=title><font color=red>{$nbinscrits}</font> / {$nbplaces} {${"str{$EquipesX}"}}</td></tr>";
} else {
echo "<tr><td class=title>{$nbinscrits} / {$nbplaces} {${"str{$EquipesX}"}}</td></tr>";
}
echo "</table>";
/*** Inscription des equipes au tournois***/
开发者ID:Arnaud-Burn,项目名称:phpTournois,代码行数:31,代码来源:inscriptions.php
示例15: show_erreur_saisie
}
}
if ($erreur == 1) {
show_erreur_saisie($str);
} else {
$db->update("{$dbprefix}news");
$db->set("titre = '{$titre}'");
$db->set("contenu = '{$contenu}'");
$db->set("icone = '{$icone}'");
$db->set("icone2 = '{$icone2}'");
$db->set("titre_2 = '{$titre_2}'");
$db->set("contenu_2 = '{$contenu_2}'");
$db->where("id = {$id}");
$db->exec();
/*** redirection ***/
js_goto("?page=news&op=modify_news&id={$id}");
}
} elseif ($op == "imprimer") {
$str = '';
$erreur = 0;
if (!is_numeric($id)) {
$erreur = 1;
$str .= "- " . $strElementsNewsInvalide . "<br>";
}
if ($erreur == 1) {
show_erreur($str);
} else {
$db->select("*");
$db->from("{$dbprefix}news");
$db->where("id = {$id}");
$res = $db->exec();
开发者ID:Arnaud-Burn,项目名称:phpTournois,代码行数:31,代码来源:news.php
示例16: js_goto
$db->update("{$dbprefix}config");
$db->set("support='{$support}',nomsite='{$nomsite}',urlsite='{$urlsite}',logo='{$logo}',pagestart='{$pagestart}',emailinscription='{$emailinscription}',emailcontact='{$emailcontact}',default_lang='{$langue}',default_theme='{$theme}'");
$db->set("inscription_joueur='{$inscription_joueur}',inscription_joueur_email='{$inscription_joueur_email}',inscription_joueur_pre='{$inscription_joueur_pre}',inscription_equipe='{$inscription_equipe}',inscription_equipe_pre='{$inscription_equipe_pre}',places='{$places}',reglement='{$reglement}',decharge='{$decharge}',information='{$information}',sponsors='{$sponsors}',partenaires='{$partenaires}'");
$db->set("galerie='{$galerie}',download='{$download}',liens='{$liens}',forum='{$forum}',contact='{$contact}',serveur='{$serveur}'");
$db->set("news='{$news}',messagerie='{$messagerie}',irc='{$irc}',livredor='{$livredor}',horloge='{$horloge}',gzip='{$gzip}'");
$db->set("ircserver='{$ircserver}',ircport='{$ircport}',ircpassword='{$ircpassword}',ircchannels='{$ircchannels}'");
$db->set("mail='{$mail}',smtpserver='{$smtpserver}',smtpuser='{$smtpuser}',smtppassword='{$smtppassword}'");
$db->set("avatar='{$avatar}',avatar_upload='{$avatar_upload}',avatar_remote='{$avatar_remote}',avatar_gallerie='{$avatar_gallerie}',avatar_filesize_max='{$avatar_filesize_max}',avatar_x_max='{$avatar_x_max}',avatar_y_max='{$avatar_y_max}'");
$db->set("shoutbox='{$shoutbox}',shoutboxc='{$shoutboxc}',shoutlimit='{$shoutlimit}'");
$db->set("ladder='{$ladder}'");
$db->set("poulewin='{$poulewin}', poulenull='{$poulenull}', pouleloose='{$pouleloose}',poulefor='{$poulefor}'");
$db->set("faq='{$faq}',commande='{$commande}'");
//$db->set("bbcodehelp='$bbcodehelp'");
$db->exec();
/*** redirection ***/
js_goto("?page=configuration");
}
} else {
echo "<p class=title>.:: {$strConfiguration} ::.</p>";
$db->select("*");
$db->from("{$dbprefix}config");
$db->exec();
$configuration = $db->fetch();
echo "<form method=post action=?page=configuration&op=modify>";
/*** table de la config ***/
echo "<table border=0 cellpadding=0 cellspacing=0 class=bordure1><tr><td>";
echo "<table cellspacing=1 cellpadding=0 border=0>";
echo "<tr><td class=headerfiche>{$strModifierConfiguration}</td></tr>";
echo "<tr><td>";
echo "<table cellspacing=0 cellpadding=2 border=0 width=100%>";
echo "<tr><td class=partfiche colspan=2>{$strGeneral} :</td></tr>";
开发者ID:Arnaud-Burn,项目名称:phpTournois,代码行数:31,代码来源:configuration.php
示例17: js_goto
echo "<td class=\"titlefiche\">{$strPseudo} :</td>";
echo '<td class="textfiche"> <select name="search">';
echo "{$newpseudo}";
echo '</select><input type="hidden" value="equipe2" name="howto">';
echo '</td>';
echo '</tr>';
echo "<tr><td class=\"footerfiche\" align=\"center\" colspan=\"2\"><input type=\"submit\" class=\"action\" value=\"{$strRechecrher}\"></td></tr>";
echo '</table>';
echo '</td></tr></table>';
echo '</td></tr></table></form>';
echo "<img src=\"images/back.gif\" border=0 align=align=absmiddle> <a href=javascript:back() class=action><b>{$strRetour}</b></a><br>";
$rech_help = "oui";
}
} else {
/*** redirection ***/
js_goto("?page=equipes&id={$rech_id}");
}
}
} else {
if ($_POST['howto'] == 'new') {
$pseudo = $_POST['search'];
//formatage des erreurs
$str = '';
$erreur = 0;
if (!$pseudo) {
$erreur = 1;
$str .= "- {$strElementsSearchInvalide}<br>";
}
if ($erreur == 1) {
show_erreur_saisie($str);
} else {
开发者ID:Arnaud-Burn,项目名称:phpTournois,代码行数:31,代码来源:search.php
示例18: show_erreur_saisie
if (!is_numeric($orde)) {
$erreur = 1;
$str .= "- " . $strElementsOrdeInvalide . "<br>";
}
if ($erreur == 1) {
show_erreur_saisie($str);
} else {
$sqldel = "UPDATE `{$dbprefix}menu` SET titre = '{$titre}', align = '{$align}', orde = '{$orde}' WHERE id = {$id}";
$reqdel = mysql_query($sqldel) or die('Erreur SQL !<br>' . $sqldel . '<br>' . mysql_error());
/*$db->update("menu");
$db->set("titre = '$titre'");
$db->set("align = '$align'");
$db->where("id = $id");
$db->exec();*/
/*** redirection ***/
js_goto("?page=menu&op=modif&id={$id}&titre={$titre}");
}
}
/********************************************************
* Ajout d'un menu
*/
if ($_GET['op'] == "add") {
if ($grade['a'] == 'a' || $grade['b'] == 'b' || $grade['g'] == 'g') {
echo "<br><a href='?page=menu&op=list'><font size=2><img src='images/edit.gif' border=0 /> {$strModifierMenus}</font></a><br><br>";
echo "<form method=post name=\"formulaire\" action=?page=menu&op=addmenu>";
echo "<table border=0 cellpadding=0 cellspacing=0 class=bordure2><tr><td>";
echo "<table cellspacing=1 cellpadding=0 border=0>";
echo "<tr><td class=headerfiche>{$strAjouterMenu}</td></tr>";
echo "<tr><td>";
echo "<table cellspacing=0 cellpadding=3 border=0 width=100%>";
echo "<tr>";
开发者ID:Arnaud-Burn,项目名称:phpTournois,代码行数:31,代码来源:menu.php
示例19: show_erreur_saisie
*/
if ($op == "modify") {
$str = '';
$erreur = 0;
if ($erreur == 1) {
show_erreur_saisie($str);
} else {
$db->update("{$dbprefix}mods");
$db->set("MODEnLigneA='{$MODEnLigneA}',MODEnLigneN='{$MODEnLigneN}',MODEnLigneM='{$MODEnLigneM}',MODEnLigneW='{$MODEnLigneW}',MODEnLigneMo='{$MODEnLigneMo}'");
$db->set("nom='{$nom}',prenom='{$prenom}',age='{$age}',ville='{$ville}',customtheme='{$customtheme}',forcing='{$forcing}',plan='{$plan}',rangforum='{$rangforum}'");
$db->set("Osteamid='{$Osteamid}',pagescript='{$pagescript}',topdl='{$topdl}',bbcode='{$bbcode}',topplayer='{$topplayer}',lastresult='{$lastresult}',lastnews='{$lastnews}'");
$db->set("lastnews_header='{$lastnews_header}',serverteam='{$serverteam}',m_team_valid='{$m_team_valid}',m_team_valid_num='{$m_team_valid_num}',auto_valid_team='{$auto_valid_team}'");
$db->set("news2='{$news2}'");
$db->exec();
/*** redirection ***/
js_goto("?page=mods&op=pcmods");
}
} else {
if ($op == "pcmods") {
echo "<p class=title>.:: {$strMODS} ::.<br><font size=2>{$strMODSC}</font></p>";
$db->select("*");
$db->from("{$dbprefix}mods");
$db->exec();
$modsp = $db->fetch();
echo "<form name=formulaire method=post action=?page=mods&op=modify>";
//echo "<table border=0 cellpadding=0 cellspacing=0 class=bordure1><tr><td>";
//echo "<table border=0 cellpadding=0 cellspacing=0 class=bordure1><tr><td class=textfichemods align='center'>";
/*** table de la config ***/
echo "<table border=0 cellpadding=0 cellspacing=0 class=bordure1><tr><td>";
echo "<table cellspacing=1 cellpadding=0 border=0>";
echo "<tr><td class=modsfiche> {$strMODEnLigne} </td></tr>";
开发者ID:Arnaud-Burn,项目名称:phpTournois,代码行数:31,代码来源:mods.php
示例20: js_goto
$db->exec();
}
$finales_looser = $finales_looser / 2;
}
/*** modification des serveurs dans le match de grand final ***/
$serveur = $tab_serveurs[0];
$db->update("{$dbprefix}matchs");
$db->set("serveur = '{$serveur}'");
$db->where("type = 'W'");
$db->where("finale = 0");
$db->where("numero = 1");
$db->where("tournois = {$s_tournois}");
$db->where("(status = 'C' or status = 'A')");
$db->exec();
/*** redirection ***/
js_goto("?page=serveurs_tournois&op=admin");
} else {
echo "<p class=title>.:: {$strAdminServeurs} - " . nom_tournois($s_tournois) . " ::.</p>";
echo "<table cellspacing=0 cellpadding=0 border=0>";
echo "<tr><td class=title>" . nb_serveurs_tournois($s_tournois) . " {$strServeurs}</td></tr>";
echo "</table>";
/*** Inscription des serveurs au tournois***/
$db->select("{$dbprefix}serveurs.id, {$dbprefix}serveurs.nom,adresse,port,origine,protocole,sigle,icone");
$db->from("{$dbprefix}serveurs, {$dbprefix}jeux, {$dbprefix}tournois");
$db->where("{$dbprefix}serveurs.jeux = {$dbprefix}jeux.id");
$db->where("{$dbprefix}serveurs.jeux = {$dbprefix}tournois.jeux");
$db->where("{$dbprefix}tournois.id = {$s_tournois}");
$db->order_by("{$dbprefix}serveurs.id");
$serveurs = $db->exec();
/** reinit des colonne a 1 ***/
if ($db->num_rows($serveurs) < $config['col_serveurs']) {
开发者ID:Arnaud-Burn,项目名称:phpTournois,代码行数:31,代码来源:serveurs_tournois.php
注:本文中的js_goto函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论