Location: PHPKode > projects > EverQuest Roster/Gallery > html/guest_reg.php
<?
        /**********************************************************************************
        *                                                                                 *
        *                               reg_event.php                                     *
        *                            -------------------                                  *
        * File Started      : Saturday, Aug 03, 2002                                      *
        * Last Updated      : Sunday, Aug 04, 2002                                        *
        *                                                                                 *
        * Program           : EverQuest Roster/Gallery v1.6                               *
        * Copyright         : (C) 2001 - 2002 BladeTek Internet Services &                *
        *                                                     The EQRG Developement Team  *
        * Website           : http://eqrg.roleplayersinteraction.com                      *
        * Project Website   : http://www.sourceforge.net/projects/eqrostergallery         *
        * Email             : hide@address.com                                        *
        *                                                                                 *
        * For license information, please read the COPYING file which                     *
        * came with this edition                                                          *
        *                                                                                 *
        **********************************************************************************/

        include "includes/funcs.php";
        include "includes/write_event.php";

        if ($submit == 1) {
                $err = guest_reg($id, $HTTP_POST_VARS);

                if (!$err) {
                        header("Location: view_event.php?id=$id");
                        exit;
                }
        }

        draw_header("Guest Registration");
        draw_table_header("Guest Registration", "" . $options["scriptw"] . "");
        draw_text_header("Guest Registration", "" . $options["pntf"] . "", "" . $options["pnts"] . "", "" . $options["pntc"] . "");

        if (!$read_err) draw_back_header("Back to Event", "view_event.php?id=$id", "" . $options["tmf"] . "", "" . $options["tms"] . "", "" . $options["tmc"] . "");
        draw_back_header("Event List", "events.php", "" . $options["tmf"] . "", "" . $options["tms"] . "", "" . $options["tmc"] . "");
        (isset($SESSION["uid"]) ? draw_back_header("Logout", "index.php?logout=1", "" . $options["tmf"] . "", "" . $options["tms"] . "", "" . $options["tmc"] . "") : "");
        echo "<p>\n";
        echo "<table width=\"" . $options["nowi"] . "\" cellpadding=\"2\" cellspacing=\"1\" border=\"0\" align=\"center\" bgcolor=\"" . $options["nbc"] . "\">\n";
        echo "<tr>\n";
        echo "<td bgcolor=\"" . $options["nbgc1"] . "\" align=\"right\">\n";
        echo "<font face=\"" . $options["ntf"] . "\" size=\"" . $options["nts"] . "\" color=\"" . $options["ntc"] . "\"><b>Notes</b></font>";
        echo "</td>\n";
        echo "</tr>\n";
        echo "<tr>\n";
        echo "<td bgcolor=\"" . $options["nbgc2"] . "\">\n";
        echo "<font face=\"" . $options["ntfa"] . "\" size=\"" . $options["ntsa"] . "\" color=\"" . $options["ntca"] . "\">\n";
        echo "WARNING!<br>\n";
        echo "You must know the guest password to register as a event guest you must get this from the guild leader of this guild.\n";
        echo "You will not be able to register if you do not know the password.<br>\n";
        echo "The UnRegister password is so you can unregister your character if you need to.\n";
        echo "The UnRegister password is so no one can unregister your character.\n";
        echo "</font>\n";
        echo "</td>\n";
        echo "</tr>\n";
        echo "</table>\n";

        echo "<p>\n";
        echo "<table width=\"100%\" cellspacing=\"1\" cellpadding=\"2\" border=\"0\" bgcolor=\"" . $options["tbc"] . "\">\n";
        echo "<form action=\"$PHP_SELF?id=$id&submit=1\" method=\"post\">\n";
        ($err ? draw_formatted_error("Error", $err, "" . $options["ticl"] . "", "" . $options["ticr"] . "", "" . $options["ttcl"] . "", "" . $options["ttcr"] . "", "" . $options["ttfl"] . "", "" . $options["ttfr"] . "", "" . $options["ttsl"] . "", "" . $options["ttsr"] . "") : "");
        draw_formatted_password("Guests Password", "guest_passwd", "30", "20", "" . $options["ticl"] . "", "" . $options["ticr"] . "", "" . $options["ttcl"] . "", "" . $options["ttcr"] . "", "" . $options["ttfl"] . "", "" . $options["ttfr"] . "", "" . $options["ttsl"] . "", "" . $options["ttsr"] . "");
        draw_formatted_password("UnRegister Password", "unreg_passwd", "30", "20", "" . $options["ticl"] . "", "" . $options["ticr"] . "", "" . $options["ttcl"] . "", "" . $options["ttcr"] . "", "" . $options["ttfl"] . "", "" . $options["ttfr"] . "", "" . $options["ttsl"] . "", "" . $options["ttsr"] . "");
        draw_formatted_input("Name", "gname", $HTTP_POST_VARS["gname"], "20", "20", "" . $options["ticl"] . "", "" . $options["ticr"] . "", "" . $options["ttcl"] . "", "" . $options["ttcr"] . "", "" . $options["ttfl"] . "", "" . $options["ttfr"] . "", "" . $options["ttsl"] . "", "" . $options["ttsr"] . "");
        draw_formatted_input("Surname", "gsurname", $HTTP_POST_VARS["gsurname"], "40", "40", "" . $options["ticl"] . "", "" . $options["ticr"] . "", "" . $options["ttcl"] . "", "" . $options["ttcr"] . "", "" . $options["ttfl"] . "", "" . $options["ttfr"] . "", "" . $options["ttsl"] . "", "" . $options["ttsr"] . "");
        draw_formatted_input("Level", "glevel", $HTTP_POST_VARS["glevel"], "2", "2", "" . $options["ticl"] . "", "" . $options["ticr"] . "", "" . $options["ttcl"] . "", "" . $options["ttcr"] . "", "" . $options["ttfl"] . "", "" . $options["ttfr"] . "", "" . $options["ttsl"] . "", "" . $options["ttsr"] . "");

        echo "<tr>\n";
        echo "<td bgcolor=\"" . $options["ticl"] . "\">\n";
        echo "<font face=\"" . $options["ttfl"] . "\" size=\"" . $options["ttsl"] . "\" color=\"" . $options["ttcl"] . "\">Class:&nbsp;</font>\n";
        echo "</td>\n";
        echo "<td bgcolor=\"" . $options["ticr"] . "\">\n";
        echo "<select name=\"class\">\n";

        for ($i = 1; $i < 16; $i++) {
                echo "<option value=\"$i\"" . ($i == $HTTP_POST_VARS["class"] ? " selected" : "") . ">" . $CLASSES[$i]["name"] . "\n";
        }

        echo "</select>\n";
        echo "</td>\n";
        echo "</tr>\n";

        echo "<tr>\n";
        echo "<td bgcolor=\"" . $options["ticl"] . "\">\n";
        echo "<font face=\"" . $options["ttfl"] . "\" size=\"" . $options["ttsl"] . "\" color=\"" . $options["ttcl"] . "\">Race:&nbsp;</font>\n";
        echo "</td>\n";
        echo "<td bgcolor=\"" . $options["ticr"] . "\">\n";
        echo "<select name=\"race\">\n";

        for ($i = 1; $i < 15; $i++) {
                echo "<option value=\"$i\"" . ($i == $HTTP_POST_VARS["race"] ? " selected" : "") . ">" . $RACES[$i] . "\n";
        }

        echo "</select>\n";
        echo "</td>\n";
        echo "</tr>\n";

        echo "<tr>\n";
        echo "<td width=\"30%\" bgcolor=\"" . $options["ticl"] . "\">\n";
        echo "&nbsp;\n";
        echo "</td>\n";
        echo "<td width=\"70%\" bgcolor=\"" . $options["ticr"] . "\">\n";
        echo "<input type=\"submit\" value=\"Register Guest\">\n";
        echo "</td>\n";
        echo "</tr>\n";
        echo "</form>\n";
        echo "</table>\n";

        draw_copyright();
        draw_table_footer("Guest Registration");
        draw_footer();
?>
Return current item: EverQuest Roster/Gallery