Ticket #420: create_account_form_patch2.patch

File create_account_form_patch2.patch, 3.4 KB (added by Simek, 17 years ago)

Extended patch version with more XHTML improvements

  • create_account_form.php

     
    1818if (parse_bool($config, "disable_account_creation")) {
    1919    echo "
    2020        <h1>".tr(CREATE_AC_DISABLED)."</h1>
    21         <p>".tr(CREATE_AC_DISABLED_TEXT)."
    22         </p>
     21        <p>".tr(CREATE_AC_DISABLED_TEXT)."</p>
    2322    ";
    2423    page_tail();
    2524    exit();
     
    2726echo "<p>
    2827    <b>".tr(CREATE_AC_USE_CLIENT)."</b>
    2928";
    30 echo "
    31     <p>
    32     <form action=create_account_action.php method=post>
     29echo "<p>
     30    <form action=\"create_account_action.php\" method=\"post\">
    3331";
    3432$teamid = get_int("teamid", true);
    3533if ($teamid) {
     
    4038    } else {
    4139        echo "<b>";
    4240        printf(tr(CREATE_AC_TEAM), "<a href=\"team_display.php?teamid=$team->id\">$team->name</a>");
    43         echo "</b> <p> ";
     41        echo "</b><p>";
    4442        echo "
    45             <input type=hidden name=teamid value=$teamid>
     43            <input type=\"hidden\" name=\"teamid\" value=\"$teamid\">
    4644        ";
    4745    }
    4846}
     
    5250//
    5351if(defined('INVITE_CODES')) {
    5452     row2(
    55          tr(AC_INVITE_CODE)."<br><span class=description>".tr(AC_INVITE_CODE_DESC)."</span",
    56          "<input name=invite_code size=30>"
     53         tr(AC_INVITE_CODE)."<br /><span class=\"description\">".tr(AC_INVITE_CODE_DESC)."</span>",
     54         "<input name=\"invite_code\" size=\"30\">"
    5755     );
    5856}
    5957
    6058row2(
    61     tr(CREATE_AC_NAME)."<br><span class=description>".tr(CREATE_AC_NAME_DESC)."</span>",
    62     "<input name=new_name size=30>"
     59    tr(CREATE_AC_NAME)."<br /><span class=\"description\">".tr(CREATE_AC_NAME_DESC)."</span>",
     60    "<input name=\"new_name\" size=\"30\">"
    6361);
    6462row2(
    65     tr(CREATE_AC_EMAIL)."<br><span class=description>".tr(CREATE_AC_EMAIL_DESC)."</span>",
    66     "<input name=new_email_addr size=50>"
     63    tr(CREATE_AC_EMAIL)."<br /><span class=\"description\">".tr(CREATE_AC_EMAIL_DESC)."</span>",
     64    "<input name=\"new_email_addr\" size=\"50\">"
    6765);
    6866$min_passwd_length = parse_element($config, "<min_passwd_length>");
    6967if (!$min_passwd_length) {
     
    7270
    7371row2(
    7472    tr(CREATE_AC_PASSWORD)
    75     ."<br><span class=description>"
     73    ."<br /><span class=\"description\">"
    7674    .sprintf(tr(CREATE_AC_PASSWORD_DESC), $min_passwd_length)
    77     ." </span>",
    78     "<input type=password name=passwd>"
     75    ."</span>",
     76    "<input type=\"password\" name=\"passwd\">"
    7977);
    80 row2(tr(CREATE_AC_CONFIRM_PASSWORD), "<input type=password name=passwd2>");
     78row2(tr(CREATE_AC_CONFIRM_PASSWORD), "<input type=\"password\" name=\"passwd2\">");
    8179row2_init(
    82     tr(CREATE_AC_COUNTRY)."<br><span class=description>".tr(CREATE_AC_COUNTRY_DESC)."</span>",
    83     "<select name=country>"
     80    tr(CREATE_AC_COUNTRY)."<br /><span class=\"description\">".tr(CREATE_AC_COUNTRY_DESC)."</span>",
     81    "<select name=\"country\">"
    8482);
    8583print_country_select();
    8684echo "</select></td></tr>\n";
    8785row2(
    88     tr(CREATE_AC_ZIP)."<br><span class=description>".tr(OPTIONAL).".</span>",
    89     "<input name=postal_code size=20>"
     86    tr(CREATE_AC_ZIP)."<br><span class=\"description\">".tr(OPTIONAL).".</span>",
     87    "<input name=\"postal_code\" size=\"20\">"
    9088);
    9189row2("",
    92     "<input type=submit value='".tr(CREATE_AC_CREATE)."'>"
     90    "<input type=\"submit\" value='".tr(CREATE_AC_CREATE)."'>"
    9391);
    9492end_table();
    95 echo "
    96     </form>
    97 ";
     93echo "</form>";
    9894
    9995page_tail();
    100 ?>
    101 
     96?>
     97 No newline at end of file