<?php

include 'form.php';
$title = "card1";
$desc = "input1";
$s_titles = array('sub 1', 'sub2', "sub_3");
$s_contents = array('content of sub 1', 'content of sub 2', 'cuntent of sub tre');
$card1 = create_card($title, $desc, $s_titles, $s_contents);
//card is a page
//$card2 = create_card("title","description",array("sub_ttiles"),array("$contents"));basic
//function input_form($input_name,$input_id,$type)
$form = create_form(input_form("E-mail", "email", "text"));
$form = $form . "" . create_form(input_form("Password", "pass", "password"));
$card = create_card("Sample Form", $form, array(""), array(""));
$content = $card;
newpage($content);
?>

</body>
</html>
<?php

include 'form.php';
include 'config.php';
if (isset($_POST['submit'])) {
    $fname = get("fname");
    $mname = get("mname");
    $lname = get("lname");
    $residence = get('residence');
    $parish_affiliation = get('affiliation');
    $affiliation = get('affiliate');
    $sex = 'male';
    alert($parish_affiliation);
} else {
    $fname = input_form("Firstname", "fname", "text");
    $mname = input_form("Middlename", "mname", "text");
    $lname = input_form("Lastname", "lname", "text");
    $residence = input_form("Residence", "residence", "area");
    $parish_affiliation = multi("Affiliation", "affiliation", array("Our Lady of Assumption Parish", "Guest"), array("home", "other"), "radio");
    $affiliation = input_form("Affiliation", "affiliate", "text");
    $submit = input_form("Submit", "submit", "submit");
    $form1 = create_form($fname . "" . $mname . "" . $lname . "" . $parish_affiliation . "" . $affiliation . "" . $residence . "" . $submit);
    $card = create_card("Register New Minister", "{$form1}");
    $content = $card;
    newpage($content);
}
        $residence = input_form("Residence", "residence", "area");
        $username = input_form("Username", "username", "text");
        $password = input_form("Password", "password", "password");
        $retype_password = input_form("Re-type Password", "re-pass", "password");
        $submit = input_form("Submit", "submit", "submit");
        $section1 = card_break("Login Information", $username . "" . $password . "" . $retype_password);
        $section2 = card_break("Personal Information", $fname . "" . $mname . "" . $lname . "" . $sex . "" . $residence . "" . $submit);
        $form = create_form($section1 . "" . $section2);
        $card = create_card($title, $form);
        $content = $err . "" . $card;
        newpage($content);
    }
} else {
    $title = "Register a new Personnel";
    $desc = "";
    $fname = input_form("Firstname", "fname", "text");
    $mname = input_form("Middlename", "mname", "text");
    $lname = input_form("Lastname", "lname", "text");
    $sex = multi("Sex", "sex", array("Male", "Female"), array("male", "female"), "radio");
    $residence = input_form("Residence", "residence", "area");
    $username = input_form("Username", "username", "text");
    $password = input_form("Password", "password", "password");
    $retype_password = input_form("Re-type Password", "re-pass", "password");
    $submit = input_form("Submit", "submit", "submit");
    $section1 = card_break("Login Information", $username . "" . $password . "" . $retype_password);
    $section2 = card_break("Personal Information", $fname . "" . $mname . "" . $lname . "" . $sex . "" . $residence . "" . $submit);
    $form = create_form($section1 . "" . $section2);
    $card = create_card($title, $form);
    $content = $card;
    newpage($content);
}
     if (get_value($ai_card) > 21) {
         $message .= 'Bank <span class="red"><b>BUSTED</b></span><br /><br />';
     } else {
         $message .= 'Bank has ' . get_value($ai_card) . '<br /><br />';
     }
     $message .= '</div>';
 }
 $message .= '<hr style="border:1px solid green;width:50%" noshade>';
 $i = 1;
 $val1 = get_value($player_card);
 $message .= '<div align=center>Your Cards are</div><br /><table align=center><tr>';
 foreach ($player_card as $key => $value) {
     if ($i == 4 || $i == 7 || $i == 10) {
         $message .= '</tr><tr>';
     }
     $message .= create_card($value, TRUE);
     $i++;
 }
 $message .= '</td></tr></table>';
 $message .= '<div align=center>You have a total of ' . get_value($player_card) . ' </div><br />';
 //check for win
 if ($do == 'STAY') {
     $win = check_for_win(get_value($ai_card), get_value($player_card));
 }
 $message .= '<div align=center>';
 if (get_value($player_card) > 21) {
     $message .= 'You have <span class="red"><b>BUSTED</b></span>';
     $bet = $var['bet'];
     $player->increaseHOF($bet, array('Blackjack', 'Money', 'Lost'), HOF_PUBLIC);
     $player->increaseHOF(1, array('Blackjack', 'Results', 'Lost'), HOF_PUBLIC);
     $container = create_container('skeleton.php', 'bar_main.php');