コード例 #1
0
ファイル: ranks.php プロジェクト: Keshaun1222/IRIN
            ?>
            </table>
            <?php 
        }
    }
    ?>
    <center><a onclick="load('ranks', 'create', 'none', {})">Create New Rank</a></center>
    <?php 
} else {
    if ($action == 'edit') {
        $rank = new Rank($_GET['id']);
        if ($do == 'none') {
            ?>
        <form action="#" method="post">
            <input type="hidden" id="id" name="id" value="<?php 
            echo $rank->getRank();
            ?>
" />
            <table>
                <tr>
                    <th><label for="name">Rank Name:</label></th>
                    <td><input type="text" id="name" name="name" value="<?php 
            echo $rank->getName();
            ?>
" required /></td>
                </tr>
                <tr>
                    <th><label for="abbrev">Rank Abbreviation:</label>&nbsp;&nbsp;</th>
                    <td><input type="text" id="abbrev" name="abbrev" value="<?php 
            echo $rank->getAbbrev();
            ?>