Skip to content
Extraits de code Groupes Projets
Valider 33801e8a rédigé par JamesRezo's avatar JamesRezo :tada:
Parcourir les fichiers

du xhtml dans les pages d'admin et une réponse pour le ticket #291 : on appuie...

du xhtml dans les pages d'admin et une réponse pour le ticket #291 : on appuie sur entrée pour passer les étapes d'info (celles qui disent que jusque-là, tout va bien)
parent 66980e63
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -19,7 +19,7 @@ include_spip('inc/lang'); ...@@ -19,7 +19,7 @@ include_spip('inc/lang');
// //
// http://doc.spip.org/@install_debut_html // http://doc.spip.org/@install_debut_html
function install_debut_html($titre = 'AUTO') { function install_debut_html($titre = 'AUTO', $onLoad = '') {
global $spip_lang_right; global $spip_lang_right;
include_spip('inc/filtres'); include_spip('inc/filtres');
...@@ -73,7 +73,7 @@ function install_debut_html($titre = 'AUTO') { ...@@ -73,7 +73,7 @@ function install_debut_html($titre = 'AUTO') {
font-family: Verdana,Arial,Sans,sans-serif; }\n", font-family: Verdana,Arial,Sans,sans-serif; }\n",
"\n\n]]>\n--></style>\n\n "\n\n]]>\n--></style>\n\n
</head> </head>
<body> <body".$onLoad.">
<div id='minipres'> <div id='minipres'>
<h1>", <h1>",
$titre , $titre ,
...@@ -108,7 +108,7 @@ function fieldset($legend, $champs = array()) { ...@@ -108,7 +108,7 @@ function fieldset($legend, $champs = array()) {
// http://doc.spip.org/@bouton_suivant // http://doc.spip.org/@bouton_suivant
function bouton_suivant($code = 'bouton_suivant') { function bouton_suivant($code = 'bouton_suivant') {
return "\n<span class='suivant'><input type='submit' class='fondl' value=\"" . return "\n<span class='suivant'><input id='suivant' type='submit' class='fondl' value=\"" .
_T($code) . _T($code) .
" >>\" /></span>\n"; " >>\" /></span>\n";
} }
......
...@@ -22,7 +22,7 @@ function install_etape__dist() ...@@ -22,7 +22,7 @@ function install_etape__dist()
install_debut_html(); install_debut_html();
echo "<div><img alt='SPIP' src='" . _DIR_IMG_PACK . "logo-spip.gif' /></div>\n", echo "<div><img alt='SPIP' src='" . _DIR_IMG_PACK . "logo-spip.gif' /></div>\n",
"<div class='petit-centre'><p>",info_copyright(),"</p></div>\n", "<div class='petit-centre'><p>",info_copyright(),"</p></div>\n",
"<p>" . _T('install_select_langue'),"</p>", "<p>",_T('install_select_langue'),"</p>",
"<div>",$menu_langues,"</div>\n", "<div>",$menu_langues,"</div>\n",
"<form action='", generer_url_action('test_dirs'),"'>\n", "<form action='", generer_url_action('test_dirs'),"'>\n",
'<input type="hidden" name="action" value="test_dirs" />', '<input type="hidden" name="action" value="test_dirs" />',
......
...@@ -46,9 +46,9 @@ function install_etape_1_dist() ...@@ -46,9 +46,9 @@ function install_etape_1_dist()
} }
} }
echo generer_url_post_ecrire('install'); echo generer_url_post_ecrire('install');
echo "<INPUT TYPE='hidden' NAME='etape' VALUE='2' />"; echo "<input type='hidden' name='etape' value='2' />";
echo "<INPUT TYPE='hidden' NAME='chmod' VALUE='$chmod' />"; echo "<input type='hidden' name='chmod' value='$chmod' />";
echo fieldset(_T('entree_base_donnee_1'), echo fieldset(_t('entree_base_donnee_1'),
array( array(
'adresse_db' => array( 'adresse_db' => array(
'label' => _T('entree_base_donnee_2'), 'label' => _T('entree_base_donnee_2'),
...@@ -76,7 +76,7 @@ function install_etape_1_dist() ...@@ -76,7 +76,7 @@ function install_etape_1_dist()
); );
echo bouton_suivant(); echo bouton_suivant();
echo "</FORM>"; echo "</form>";
install_fin_html(); install_fin_html();
} }
......
...@@ -15,7 +15,7 @@ function install_etape_2_dist() ...@@ -15,7 +15,7 @@ function install_etape_2_dist()
{ {
global $adresse_db, $login_db, $pass_db, $spip_lang_right,$chmod; global $adresse_db, $login_db, $pass_db, $spip_lang_right,$chmod;
install_debut_html(); install_debut_html('AUTO', ' onLoad="document.getElementById(\'suivant\').focus();return false;"');
echo info_etape(_T('info_connexion_base')); echo info_etape(_T('info_connexion_base'));
...@@ -28,14 +28,14 @@ function install_etape_2_dist() ...@@ -28,14 +28,14 @@ function install_etape_2_dist()
echo "<p><b>"._T('info_connexion_ok')."</b></p><p> "._T('info_etape_suivante_2')."</p>"; echo "<p><b>"._T('info_connexion_ok')."</b></p><p> "._T('info_etape_suivante_2')."</p>";
echo generer_url_post_ecrire('install'); echo generer_url_post_ecrire('install');
echo "<INPUT TYPE='hidden' NAME='etape' VALUE='3' />"; echo "<input type='hidden' name='etape' value='3' />";
echo "<INPUT TYPE='hidden' NAME='chmod' VALUE='$chmod' />"; echo "<input type='hidden' name='chmod' value='$chmod' />";
echo "<INPUT TYPE='hidden' NAME='adresse_db' VALUE=\"$adresse_db\" />"; echo "<input type='hidden' name='adresse_db' value=\"$adresse_db\" />";
echo "<INPUT TYPE='hidden' NAME='login_db' VALUE=\"$login_db\" />"; echo "<input type='hidden' name='login_db' value=\"$login_db\" />";
echo "<INPUT TYPE='hidden' NAME='pass_db' VALUE=\"$pass_db\" />"; echo "<input type='hidden' name='pass_db' value=\"$pass_db\" />";
echo bouton_suivant(); echo bouton_suivant();
echo "</FORM>"; echo "</form>";
} }
else { else {
echo "<p><b>"._T('avis_connexion_echec_1')."</b></p>"; echo "<p><b>"._T('avis_connexion_echec_1')."</b></p>";
......
...@@ -20,11 +20,11 @@ function install_etape_3_dist() ...@@ -20,11 +20,11 @@ function install_etape_3_dist()
echo info_etape(_T('info_choix_base')." "._T('menu_aide_installation_choix_base').aide ("install2")); echo info_etape(_T('info_choix_base')." "._T('menu_aide_installation_choix_base').aide ("install2"));
echo generer_url_post_ecrire('install'); echo generer_url_post_ecrire('install');
echo "<INPUT TYPE='hidden' NAME='etape' VALUE='4' />"; echo "<input type='hidden' name='etape' value='4' />";
echo "<INPUT TYPE='hidden' NAME='chmod' VALUE='$chmod' />"; echo "<input type='hidden' name='chmod' value='$chmod' />";
echo "<INPUT TYPE='hidden' NAME='adresse_db' VALUE=\"$adresse_db\" />"; echo "<input type='hidden' name='adresse_db' value=\"$adresse_db\" />";
echo "<INPUT TYPE='hidden' NAME='login_db' VALUE=\"$login_db\" />"; echo "<input type='hidden' name='login_db' value=\"$login_db\" />";
echo "<INPUT TYPE='hidden' NAME='pass_db' VALUE=\"$pass_db\" />\n"; echo "<input type='hidden' name='pass_db' value=\"$pass_db\" />\n";
$link = mysql_connect("$adresse_db","$login_db","$pass_db"); $link = mysql_connect("$adresse_db","$login_db","$pass_db");
$result = @mysql_list_dbs(); $result = @mysql_list_dbs();
...@@ -37,22 +37,22 @@ function install_etape_3_dist() ...@@ -37,22 +37,22 @@ function install_etape_3_dist()
$bases = ""; $bases = "";
for ($i = 0; $i < $n; $i++) { for ($i = 0; $i < $n; $i++) {
$table_nom = mysql_dbname($result, $i); $table_nom = mysql_dbname($result, $i);
$base = "<li><INPUT NAME=\"choix_db\" VALUE=\"".$table_nom."\" TYPE=Radio id='tab$i'"; $base = "<li><input name=\"choix_db\" value=\"".$table_nom."\" type='radio' id='tab$i'";
$base_fin = " /><label for='tab$i'>".$table_nom."</label></li>\n\n"; $base_fin = " /><label for='tab$i'>".$table_nom."</label></li>\n\n";
if ($table_nom == $login_db) { if ($table_nom == $login_db) {
$bases = "$base CHECKED$base_fin".$bases; $bases = "$base checked='checked'$base_fin".$bases;
$checked = true; $checked = true;
} }
else { else {
$bases .= "$base$base_fin\n"; $bases .= "$base$base_fin\n";
} }
} }
echo $bases."</UL>"; echo $bases."</ul>";
echo _T('info_ou')." "; echo _T('info_ou')." ";
} }
else { else {
echo "<B>"._T('avis_lecture_noms_bases_1')."</B> echo "<b>"._T('avis_lecture_noms_bases_1')."</b>
"._T('avis_lecture_noms_bases_2')."<P>"; "._T('avis_lecture_noms_bases_2')."<p>";
if ($login_db) { if ($login_db) {
// Si un login comporte un point, le nom de la base est plus // Si un login comporte un point, le nom de la base est plus
// probablement le login sans le point -- testons pour savoir // probablement le login sans le point -- testons pour savoir
...@@ -67,21 +67,21 @@ function install_etape_3_dist() ...@@ -67,21 +67,21 @@ function install_etape_3_dist()
if ($ok) { if ($ok) {
echo _T('avis_lecture_noms_bases_3'); echo _T('avis_lecture_noms_bases_3');
echo "<ul>"; echo "<ul>";
echo "<li><INPUT NAME=\"choix_db\" VALUE=\"".$test_base."\" TYPE=Radio id='stand' CHECKED>"; echo "<li><input name=\"choix_db\" value=\"".$test_base."\" type='radio' id='stand' checked='checked' />";
echo "<label for='stand'>".$test_base."</label></li>\n"; echo "<label for='stand'>".$test_base."</label></li>\n";
echo "</UL>"; echo "</ul>";
echo _T('info_ou')." "; echo _T('info_ou')." ";
$checked = true; $checked = true;
} }
} }
} }
echo "<INPUT NAME=\"choix_db\" VALUE=\"new_spip\" TYPE=Radio id='nou'"; echo "<input name=\"choix_db\" value=\"new_spip\" type='radio' id='nou'";
if (!$checked) echo " CHECKED"; if (!$checked) echo " checked";
echo " /> <label for='nou'>"._T('info_creer_base')."</label> "; echo " /> <label for='nou'>"._T('info_creer_base')."</label> ";
echo "<INPUT TYPE='text' NAME='table_new' CLASS='fondl' VALUE=\"spip\" SIZE='20' /></fieldset>"; echo "<input type='text' name='table_new' class='fondl' value=\"spip\" size='20' /></fieldset>";
echo bouton_suivant(); echo bouton_suivant();
echo "</FORM>"; echo "</form>";
install_fin_html(); install_fin_html();
} }
......
...@@ -15,7 +15,7 @@ function install_etape_4_dist() ...@@ -15,7 +15,7 @@ function install_etape_4_dist()
{ {
global $adresse_db, $choix_db, $login_db, $pass_db, $spip_lang_right, $spip_version, $table_new, $chmod; global $adresse_db, $choix_db, $login_db, $pass_db, $spip_lang_right, $spip_version, $table_new, $chmod;
install_debut_html(); install_debut_html('AUTO', ' onLoad="document.getElementById(\'suivant\').focus();return false;"');
echo info_etape(_T('info_creation_tables')); echo info_etape(_T('info_creation_tables'));
...@@ -96,11 +96,11 @@ function install_etape_4_dist() ...@@ -96,11 +96,11 @@ function install_etape_4_dist()
echo "<p><b>"._T('info_base_installee')."</b></p><p>\n"._T('info_etape_suivante_1'); echo "<p><b>"._T('info_base_installee')."</b></p><p>\n"._T('info_etape_suivante_1');
echo generer_url_post_ecrire('install'); echo generer_url_post_ecrire('install');
echo "<INPUT TYPE='hidden' NAME='etape' VALUE='5' />"; echo "<input type='hidden' name='etape' value='5' />";
echo bouton_suivant(); echo bouton_suivant();
echo "</FORM>"; echo "</form>";
} }
else if ($result_ok) { else if ($result_ok) {
echo _T('alerte_maj_impossible', array('version' => $spip_version)); echo _T('alerte_maj_impossible', array('version' => $spip_version));
......
...@@ -37,7 +37,7 @@ function install_etape_5_dist() ...@@ -37,7 +37,7 @@ function install_etape_5_dist()
echo generer_url_post_ecrire('install'); echo generer_url_post_ecrire('install');
echo "<INPUT TYPE='hidden' NAME='etape' VALUE='6' />"; echo "<input type='hidden' name='etape' value='6' />";
echo fieldset(_T('info_identification_publique'), echo fieldset(_T('info_identification_publique'),
array( array(
......
...@@ -15,7 +15,7 @@ function install_etape_6_dist() ...@@ -15,7 +15,7 @@ function install_etape_6_dist()
{ {
global $email,$login,$nom,$pass,$spip_lang_right; global $email,$login,$nom,$pass,$spip_lang_right;
install_debut_html(); install_debut_html('AUTO', ' onLoad="document.getElementById(\'suivant\').focus();return false;"');
echo info_etape(_T('info_derniere_etape'), echo info_etape(_T('info_derniere_etape'),
"<b>"._T('info_code_acces')."</b></p><p>" . "<b>"._T('info_code_acces')."</b></p><p>" .
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter