Beispiel #1
0
            }
        }
    }
    // if we aren't just displaying the directories for the move operation
    if (!isset($sess_Data["move_path"]) && !isset($sess_Data["copy_path"])) {
        // display the files next
        for ($d = 0; $d < count($file_list); $d++) {
            $built_data = build_row($show_col, $file_list[$d], "F");
            $row = display_row($built_data, $alt_class[$alt_row % 2], "");
            // if the user wants to show hiddens, display all files
            if ($personal["show_hidden"]) {
                echo $row;
                $alt_row++;
                $file_count++;
            } else {
                if (!isHidden($file_list[$d][8])) {
                    echo $row;
                    $alt_row++;
                    $file_count++;
                }
            }
        }
    }
}
?>
 
          	<tr>
            	<?php 
echo "<td colspan = 13 align=right class=\"" . $alt_class[$alt_row % 2] . "\">";
printf("<B>%s:</B> ", gettext("Directories"));
echo $dir_count . " (" . count($dir_list) . ") ";
Beispiel #2
0
 // Other options
 switch ($_SERVER['QUERY_STRING']) {
     case 'apps':
         echo "<h1>Viewing all Complete Applications</h1>";
         $apps = getCompleteApps();
         echo "<p>" . count($apps) . " applications. Note: I think some are invalid (trolls)</p>";
         echo "<p style=\"color:red;\">Check the 'check if read' checkbox, then click any of the buttons that say 'hide all checked'.</p>";
         if ($apps) {
             echo "<form method=\"post\" action=\"info.php?hideapps\">";
             foreach ($apps as $app) {
                 $r = parseRankings($app['rankings']);
                 $r2 = parseRankings($app['corankings']);
                 $p = getLPositions();
                 $c = getCPositions();
                 echo "<div class=\"app";
                 echo isHidden($app[lid]) ? " hidden" : "";
                 echo "\">";
                 echo "<b>Applicant #" . $app['lid'] . ". <a href=\"info.php?app=" . $app['lid'] . "\">Full application</a></b>";
                 echo "<input type=\"checkbox\" name=\"hide[" . $app['lid'] . "]\" value=\"1\"";
                 echo $app[hide] ? " checked " : "";
                 echo "/>";
                 if (!$app[hide]) {
                     echo "check if read <input type=\"submit\" name=\"submit\" value=\"hide all checked\" />";
                 } else {
                     echo "already read";
                 }
                 echo "<br />";
                 echo "<ul class=\"ranks\"><li><b>Leader Positions</b></li>";
                 outputRankPref($r, $p);
                 echo "<li><b>Co-ordinator Positions</b></li>";
                 outputRankPref($r2, $c);