<p>Please confirm your club information. If everything is correct, click the submit button. Otherwise, you may click the edit button to change your club information before submitting.</p>

<div class="dtable form">
    <div class="drow">
        <div class="dcell name">Club Name</div>
        <div class="dcell divider"></div>
        <div class="dcell value">
            <? echo stripslashes($_POST[triclub_name]); ?>
        </div>
    </div>
    <div class="drow">
        <div class="dcell name">Street Address</div>
        <div class="dcell divider"></div>
        <div class="dcell value">
            <? echo stripslashes(htmlspecialchars($_POST[triclub_address])); ?>
        </div>
    </div>
    <div class="drow">
        <div class="dcell name">Street Address Two</div>
        <div class="dcell divider"></div>
        <div class="dcell value">
            <? echo stripslashes(htmlspecialchars($_POST[triclub_address_two])); ?>
        </div>
    </div>
    <div class="drow">
        <div class="dcell name">City</div>
        <div class="dcell divider"></div>
        <div class="dcell value">
            <? echo stripslashes(htmlspecialchars($_POST[triclub_city])); ?>
        </div>
    </div>
    <div class="drow">
        <div class="dcell name">State</div>
        <div class="dcell divider"></div>
        <div class="dcell value">
            <? echo stripslashes(htmlspecialchars($_POST[triclub_state])); ?>
        </div>
    </div>
    <div class="drow">
        <div class="dcell name">Zip/Postal Code</div>
        <div class="dcell divider"></div>
        <div class="dcell value">
            <? echo stripslashes(htmlspecialchars($_POST[triclub_zip])); ?>
        </div>
    </div>
    <div class="drow">
        <div class="dcell name">E-mail</div>
        <div class="dcell divider"></div>
        <div class="dcell value">
            <? echo stripslashes(htmlspecialchars($_POST[triclub_email])); ?>
        </div>
    </div>
    <div class="drow">
        <div class="dcell name">Website</div>
        <div class="dcell divider"></div>
        <div class="dcell value">
            <a href="<? echo $_POST[triclub_website]; ?>" target="_blank"><? echo $_POST[triclub_website]; ?></a>
        </div>
    </div>
    <div class="drow">
        <div class="dcell name"></div>
        <div class="dcell divider"></div>
        <div class="dcell value">
            <? 
            for ($i = 0; $i < 25; $i++) echo("*"); 
            echo (" MEMBERSHIP ");
            for ($i = 0; $i < 25; $i++) echo("*"); 
            ?>
        </div>
    </div>
    <div class="drow">
        <div class="dcell name">President</div>
        <div class="dcell divider"></div>
        <div class="dcell value">
            <? echo stripslashes(htmlspecialchars($_POST[triclub_president])); ?>
        </div>
    </div>
    <div class="drow">
        <div class="dcell name">Board Member(s)</div>
        <div class="dcell divider"></div>
        <div class="dcell value">
            <? if ($_POST[triclub_board] == 0) { echo "None"; } else { echo "Yes, Their Names - "; echo stripslashes($_POST[triclub_board_names]); } ?>
        </div>
    </div>
    <div class="drow">
        <div class="dcell name">Membership</div>
        <div class="dcell divider"></div>
        <div class="dcell value">
            <? echo stripslashes(htmlspecialchars($_POST[triclub_membership])); ?>
        </div>
    </div>
    <div class="drow">
        <div class="dcell name">Dues</div>
        <div class="dcell divider"></div>
        <div class="dcell value">
            <? echo stripslashes(htmlspecialchars($_POST[triclub_dues])); ?>
        </div>
    </div>
    <div class="drow">
        <div class="dcell name"></div>
        <div class="dcell divider"></div>
        <div class="dcell value">
            <? 
            for ($i = 0; $i < 62; $i++) echo("*"); 
            ?>
        </div>
    </div>
    <div class="drow">
        <div class="dcell name">Club Info</div>
        <div class="dcell divider"></div>
        <div class="dcell value">
            <? echo strip_tags(stripslashes($_POST[triclub_info])) ?>
        </div>
    </div>
    <div class="drow">
        <div class="dcell name">Sponsors</div>
        <div class="dcell divider"></div>
        <div class="dcell value">
            <? echo strip_tags(stripslashes($_POST[triclub_sponsors])) ?>
        </div>
    </div>
    <div class="drow">
        <div class="dcell name">Discounts</div>
        <div class="dcell divider"></div>
        <div class="dcell value">
            <? echo strip_tags(stripslashes($_POST[triclub_discounts])) ?>
        </div>
    </div>
    <div class="drow">
        <div class="dcell name">Directions</div>
        <div class="dcell divider"></div>
        <div class="dcell value">
            <? echo strip_tags(stripslashes($_POST[triclub_directions])); ?>
        </div>
    </div>
    <div class="drow">
        <div class="dcell name">Workouts</div>
        <div class="dcell divider"></div>
        <div class="dcell value">
            <? echo strip_tags(stripslashes($_POST[triclub_workouts])) ?>
        </div>
    </div>
    <div class="drow">
        <div class="dcell name">Meetings</div>
        <div class="dcell divider"></div>
        <div class="dcell value">
            <? echo strip_tags(stripslashes($_POST[triclub_meetings])) ?>
        </div>
    </div>
    <div class="drow actions">
        <div class="dcell name"></div>
        <div class="dcell divider"></div>
        <div class="dcell value">
            <form action="wiki_edit.php" method="post">
                <input type="hidden" name="triclub_name" value="<? echo stripslashes(htmlspecialchars($_POST[triclub_name])); ?>">
                <input type="hidden" name="triclub_address" value="<? echo stripslashes(htmlspecialchars($_POST[triclub_address])); ?>">
                <input type="hidden" name="triclub_address_two" value="<? echo stripslashes(htmlspecialchars($_POST[triclub_address_two])); ?>">
                <input type="hidden" name="triclub_city" value="<? echo stripslashes(htmlspecialchars($_POST[triclub_city])); ?>">
                <input type="hidden" name="triclub_state" value="<? echo $_POST[triclub_state]; ?>">
                <input type="hidden" name="triclub_zip" value="<? echo $_POST[triclub_zip]; ?>">
                <input type="hidden" name="triclub_email" value="<? echo $_POST[triclub_email]; ?>">
                <input type="hidden" name="triclub_website" value="<? echo $_POST[triclub_website]; ?>">
                <input type="hidden" name="triclub_president" value="<? echo $_POST[triclub_president]; ?>">
                <input type="hidden" name="triclub_board" value="<? echo $_POST[triclub_board]; ?>">
                <input type="hidden" name="triclub_board_names" value="<? echo stripslashes(htmlspecialchars($_POST[triclub_board_names])); ?>">
                <input type="hidden" name="triclub_membership" value="<? echo $_POST[triclub_membership]; ?>">
                <input type="hidden" name="triclub_dues" value="<? echo $_POST[triclub_dues]; ?>">
                <input type="hidden" name="triclub_info" value="<? echo stripslashes(htmlspecialchars($_POST[triclub_info])); ?>">
                <input type="hidden" name="triclub_sponsors" value="<? echo stripslashes(htmlspecialchars($_POST[triclub_sponsors])); ?>">
                <input type="hidden" name="triclub_discounts" value="<? echo stripslashes(htmlspecialchars($_POST[triclub_discounts])); ?>">
                <input type="hidden" name="triclub_directions" value="<? echo stripslashes(htmlspecialchars($_POST[triclub_directions])); ?>">
                <input type="hidden" name="triclub_workouts" value="<? echo stripslashes(htmlspecialchars($_POST[triclub_workouts])); ?>">
                <input type="hidden" name="triclub_meetings" value="<? echo stripslashes(htmlspecialchars($_POST[triclub_meetings])); ?>">
                <? // need to temporary set the field as being valid ?>
                <input type="hidden" name="triclub_valid" value="1">
                <input type="hidden" name="edit_club" value="1">
                <input type="hidden" name="confirm_entry" value="1">

                <? if(isset($_POST[new_club])){ ?>
                This data will be saved as a NEW CLUB.
                <input type="hidden" name="new_club" value="1"  />
                <input type="hidden" name="triclub_submitted_by" value="<? echo($_POST[edited_by]); ?>" />
                <? } else { ?>
                This data will be saved as a modification to the EXISTING CLUB.
                <input type="hidden" name="save_changes" value="1"  />
                <input type="hidden" name="edited_by" value="<? echo($_POST[edited_by]); ?>">
                <input type="hidden" name="triclub_submitted_by" value="<? echo($_POST[triclub_submitted_by]); ?>" />
                <input type="hidden" name="triclub_id" value="<? echo($_POST[triclub_id]); ?>" />
                <? } ?>
                <input type="submit" name="submit" value="Submit Info" class="btn float-left" style="margin-right: 5px" />
            </form>
            <form action="wiki_edit.php" method="post">
                <input type="hidden" name="triclub_name" value="<? echo stripslashes(htmlspecialchars($_POST[triclub_name])); ?>">
                <input type="hidden" name="triclub_address" value="<? echo stripslashes(htmlspecialchars($_POST[triclub_address])); ?>">
                <input type="hidden" name="triclub_address_two" value="<? echo stripslashes(htmlspecialchars($_POST[triclub_address_two])); ?>">
                <input type="hidden" name="triclub_city" value="<? echo stripslashes(htmlspecialchars($_POST[triclub_city])); ?>">
                <input type="hidden" name="triclub_state" value="<? echo $_POST[triclub_state]; ?>">
                <input type="hidden" name="triclub_zip" value="<? echo $_POST[triclub_zip]; ?>">
                <input type="hidden" name="triclub_email" value="<? echo $_POST[triclub_email]; ?>">
                <input type="hidden" name="triclub_website" value="<? echo $_POST[triclub_website]; ?>">
                <input type="hidden" name="triclub_president" value="<? echo $_POST[triclub_president]; ?>">
                <input type="hidden" name="triclub_board" value="<? echo $_POST[triclub_board]; ?>">
                <input type="hidden" name="triclub_board_names" value="<? echo stripslashes(htmlspecialchars($_POST[triclub_board_names])); ?>">
                <input type="hidden" name="triclub_membership" value="<? echo $_POST[triclub_membership]; ?>">
                <input type="hidden" name="triclub_dues" value="<? echo $_POST[triclub_dues]; ?>">
                <input type="hidden" name="triclub_info" value="<? echo stripslashes(htmlspecialchars($_POST[triclub_info])); ?>">
                <input type="hidden" name="triclub_sponsors" value="<? echo stripslashes(htmlspecialchars($_POST[triclub_sponsors])); ?>">
                <input type="hidden" name="triclub_discounts" value="<? echo stripslashes(htmlspecialchars($_POST[triclub_discounts])); ?>">
                <input type="hidden" name="triclub_directions" value="<? echo stripslashes(htmlspecialchars($_POST[triclub_directions])); ?>">
                <input type="hidden" name="triclub_workouts" value="<? echo stripslashes(htmlspecialchars($_POST[triclub_workouts])); ?>">
                <input type="hidden" name="triclub_meetings" value="<? echo stripslashes(htmlspecialchars($_POST[triclub_meetings])); ?>">
                <input type="hidden" name="edit_return" value="1">
                <? // need to temporary set the field as being valid ?>
                <input type="hidden" name="triclub_valid" value="1">
                <input type="hidden" name="triclub_id" value="<? echo ($_POST[triclub_id]); ?>">
                <input type="hidden" name="triclub_submitted_by" value="<? echo ($_POST[triclub_submitted_by]); ?>">
                <input type="submit" name="submit" value="Edit Information" class="btn float-left" />
            </form>
        </div>
    </div>
</div>
