Пример #1
0
function view($data = array())
{
    $CI =& get_instance();
    head($data);
    if (isset($data['header'])) {
        load_header($data);
    }
    if (isset($data['body'])) {
        $CI->load->view($data['body']);
    }
    if (isset($data['footer'])) {
        load_footer($data);
    }
    closing_html();
}
Пример #2
0
            while (($file = readdir($dir_handler)) !== false) {
                if (!is_dir($activitiesdir . $year . "/" . $file)) {
                    // && preg_match($file, "/\.(ini)/")) {
                    $filename_exp = explode(".", $file);
                    if ($filename_exp[0] != "") {
                        echo "<li><a href=\"activity.php?activity=" . $filename_exp[0] . "&year={$year}\">" . ucfirst($filename_exp[0]) . "</a></li>\r";
                    }
                }
            }
            closedir($dir_handler);
        }
    }
    echo "</ul>\n\t<hr>";
}
echo "Please choose a year:\n<form action=\"year.php\" method=\"get\">\n<select name=\"year\">";
if (is_dir($activitiesdir)) {
    if ($dir_handler = opendir($activitiesdir)) {
        while (($file = readdir($dir_handler)) !== false) {
            if (is_dir($activitiesdir . $file)) {
                if ($file != "." && $file != ".." && $file != "0000") {
                    echo "<option value=\"{$file}\">" . $file . "</option>\r";
                }
            }
        }
        closedir($dir_handler);
    }
}
echo "</select>\n<input type=\"submit\" value=\"Search\">\n</form>";
navlinks(array(array("index.php", "Return Home")));
closing_html();