예제 #1
0
    ?>
</select> <br />
<input type="submit" name="changeteam" value="Change teams" />
</form>

<h3>Assign leader roles by UWID</h3>
<form method="post" action="<?php 
    echo $_SERVER['PHP_SELF'];
    ?>
">
List of ID's separated by commas:<br />
<textarea name="uwids" style="width:300px;height180px;"></textarea><br /><br />
<select name="role">
<?php 
    $lpos = getLPositions();
    $cpos = getCPositions();
    foreach ($lpos as $t) {
        echo "\t<option value=\"" . $t['id'] . "\">" . $t['position_name'] . "</option>\n";
    }
    foreach ($cpos as $t) {
        echo "\t<option value=\"";
        echo $t['id'] + 100;
        echo "\">" . $t['position_name'] . "</option>\n";
    }
    ?>
</select> <br />
<input type="submit" name="changerole" value="Change Roles" />
</form>

<?php 
    // Woo security by obscruity!
예제 #2
0
            break;
        case 'incomplete':
            echo "<h1>Viewing Applications with provided rankings only</h1>";
            echo "<p>These are applications that have none of the personal questions answered.</p>";
            $apps = getEmptyApps();
            echo "<p>" . count($apps) . " personalityless applications</p>";
            if ($apps) {
                foreach ($apps as $app) {
                    echo "<div class=\"app\">";
                    echo "<p><a href=\"info.php?app=" . $app['lid'] . "\">" . $app['lid'] . "</a> " . $app['fname'] . " " . $app['lname'] . "</p>";
                    $l = parseRankings($app[rankings]);
                    $lp = getLPositions();
                    echo "<ul class=\"emptyranks\">";
                    outputRankPref($l, $lp);
                    echo "</ul><br /><br />";
                    $c = parseRankings($app[corankings]);
                    $cp = getCPositions();
                    echo "<ul class=\"emptyranks\">";
                    outputRankPref($c, $cp);
                    echo "</ul><br />";
                    echo "</div>";
                }
            } else {
                echo "No empty apps.";
            }
            break;
        default:
    }
}
mysql_close();
include "footer.php";