<td colspan="3"> <form method="post" action="takeprofedit.php"> <table border="1" cellspacing=0 cellpadding="5"> <?php /*********************** $res = sql_query("SELECT COUNT(*) FROM ratings WHERE user="******"id"]); $row = mysql_fetch_array($res); tr("Ratings submitted", $row[0]); $res = sql_query("SELECT COUNT(*) FROM comments WHERE user="******"id"]); $row = mysql_fetch_array($res); tr("Written comments", $row[0]); ****************/ $themes = theme_selector($CURUSER["theme"]); $countries = "<option value=0>---- " . $tracker_lang['my_unset'] . " ----</option>\n"; $ct_r = sql_query("SELECT id, name FROM countries ORDER BY name ASC") or sqlerr(__FILE__, __LINE__); while ($ct_a = mysql_fetch_array($ct_r)) { $countries .= "<option value={$ct_a['id']}" . ($CURUSER["country"] == $ct_a['id'] ? " selected" : "") . ">{$ct_a['name']}</option>\n"; } $dir = opendir('languages'); $lang = array(); while ($file = readdir($dir)) { if (preg_match('#^lang_#i', $file) && !is_file($dir . '/' . $file) && !is_link($dir . '/' . $file)) { $filename = trim(str_replace("lang_", "", $file)); $displayname = preg_replace("/^(.*?)_(.*)\$/", "\\1 [ \\2 ]", $filename); $displayname = preg_replace("/\\[(.*?)_(.*)\\]/", "[ \\1 - \\2 ]", $displayname); $lang[$displayname] = $filename; } }
$this->SetMessage("Aucune page n'a été sélectionnée."); } else { foreach ($_POST['selectpage'] as $page_cochee) { $this->SaveMetaDatas($page_cochee, array('theme' => $_POST['theme_select'], 'style' => $_POST['style_select'], 'squelette' => $_POST['squelette_select'])); } } } //Récupération de la liste des pages $liste_pages = $this->Query("SELECT * FROM " . $table . "pages WHERE latest='Y' ORDER BY " . $table . "pages.tag ASC"); $num_page = 0; while ($tab_liste_pages = mysqli_fetch_array($liste_pages)) { $page_et_themes[$num_page] = recup_meta($tab_liste_pages["tag"]); $num_page++; } echo $this->FormOpen(); echo theme_selector(); ?> <div class="alert alert-info"><?php echo $num_page; ?> pages trouvées </div> <table class="table table-striped table-condensed"> <tr> <td><input type="checkbox" name="id" value="tous" onClick="cocherTout(this.checked)"></td> <td><div><b>Page</b></div></td> <td><div align="center"><b>Theme</b></div></td> <td><div align="center"><b>Squelette</b></div></td> <td><div align="center"><b>Style</b></div></td> </tr> <?php for ($x = 0; $x < $num_page; $x++) {