示例#1
0
        ?>
" />

      <p class="center">
      <input type="text" name="search" />
      <input type="submit" value="Search" />
      </p>

      </form>
<?php 
        $start = isset($_REQUEST['start']) ? $_REQUEST['start'] : '0';
        $total = 0;
        $members = array();
        if (isset($_GET['dosearch'])) {
            $members = search_members($_GET['search'], $listing, 'approved', $start);
            $total = count(search_members($_GET['search'], $listing, 'approved'));
        } else {
            $members = get_members($listing, 'approved', array(), $start, 'bydate');
            $total = count(get_members($listing));
        }
        ?>
      <table>

      <tr><th>Action</th>
      <th>Email</th>
      <?php 
        echo $info['country'] ? '<th>Country</th>' : '';
        ?>
      <th>Name</th>
      <th>URL</th>
      <?php 
    exit;
}
if (isset($_GET["graph1"])) {
    graph1();
    exit;
}
if (isset($_GET["graph2"])) {
    graph2();
    exit;
}
if (isset($_GET["graph3"])) {
    graph3();
    exit;
}
if (isset($_GET["search-members"])) {
    search_members();
    exit;
}
$users = new usersMenus();
if (!$users->AsWebStatisticsAdministrator) {
    header("location:miniadm.logon.php");
    die;
}
main_page();
function main_page()
{
    $page = CurrentPageName();
    $tplfile = "ressources/templates/endusers/index.html";
    if (!is_file($tplfile)) {
        echo "{$tplfile} no such file";
        die;