Exemplo n.º 1
0
function show_sub_data($obj_data, $end_items, $ranks, $name, $level)
{
    //print tree of all observed taxons ($end_items) in order of ranks according $ranks, beginning from taxon with name $name of level $level
    $ranks_count = array();
    $rank_sub = $ranks[$level]['taxon'];
    if (!isset($ranks_count["{$rank_sub}"])) {
        $ranks_count["{$rank_sub}"] = 1;
    } else {
    }
    foreach ($end_items["{$rank_sub}"] as $ssubtax => $ssubcontent) {
        if ($ssubcontent['parent'] == $name) {
            //print taxon data
            $padding = 10 * ($level + 1);
            print '<p style="padding-left: ' . $padding . 'px">';
            print $ranks_count["{$rank_sub}"] . '. ';
            print_taxon($ssubcontent, $rank_sub);
            $taxon_name = $ssubcontent['name'];
            if (isset($obj_data["{$taxon_name}"])) {
                data_print($obj_data["{$taxon_name}"], $padding);
            } else {
            }
            $ranks_count["{$rank_sub}"]++;
            print '</p>';
            $sublevel = $level;
            $subname = $ssubcontent['name'];
            while (isset($ranks[$sublevel + 1])) {
                $sublevel++;
                show_sub_data($obj_data, $end_items, $ranks, $subname, $sublevel);
            }
        } else {
        }
    }
}
Exemplo n.º 2
0
      Any member can only have five private discussions at a time.<br>
      These discussions can only host five replies from each part.<br><br>
      You have space left for <?php 
    print 5 - $thread_data['rows'];
    ?>
 new discussions and <?php 
    print 25 - $reply_data['rows'];
    ?>
 total replies.
    </small><br><br>
    <input name="post_mark_all" type="button" onClick="parent.location='<?php 
    print $all_action;
    ?>
'" value="Mark all threads as read" class="submit" />
    <input name="post_mark_submit" type="submit" value="Mark selected threads as read" class="submit" />
  </div>
  <div class="f_title" style="background:url('http://<?php 
    print $_SERVER['HTTP_HOST'];
    ?>
/images/main/main.text.privatediscussions.gif') no-repeat top left;">
  </div>
<?php 
    data_fetch("general", "SELECT * FROM `privatenames` WHERE `starter` REGEXP '" . $_COOKIE['ZeldaShrine'] . "' ORDER BY `date` DESC");
    $general_rows > 0 ? data_print("general") : data_fail();
    print "\r\n\r\n  <div class=\"f_item\">\r\n    <div class=\"f_new_" . (max($general_rows, 1) % 2 == 0 ? "l" : "d") . "\"></div>\r\n    <div class=\"f_check_" . (max($general_rows, 1) % 2 == 0 ? "l" : "d") . "\"></div>\r\n    <div class=\"f_thread\">\r\n      <div class=\"f_top_" . (max($general_rows, 1) % 2 == 0 ? "l" : "d") . "\">\r\n        <a href=\"pr_thread.php\">Start a new discussion with another member.</a>\r\n      </div>\r\n    </div>\r\n  </div>";
    ?>
</div>

<?php 
}
include $_SERVER['DOCUMENT_ROOT'] . "/includes/layout.bottom.php";
Exemplo n.º 3
0
      </div>
    </div>

    <div id="p_n_site" onClick="parent.location = 'http://<?php 
print $_SERVER['HTTP_HOST'];
?>
/main.news.php';">
      <div class="p_n_1" style="background-image:url('http://<?php 
print $_SERVER['HTTP_HOST'];
?>
/images/main/main.text.latestsitenews.gif');">
      </div>
      <div class="p_n_2">
      </div>
      <div class="p_n_3" onMouseOver="this.style.backgroundColor='#9FA994';" onMouseOut="this.style.backgroundColor='transparent';">

<?php 
data_fetch("site", "SELECT * FROM `news_site` ORDER BY `id` DESC LIMIT 1");
data_print("site");
?>

      </div>
    </div>

<?php 
include $_SERVER['DOCUMENT_ROOT'] . "/includes/main.ad.skyscraper.php";
?>

<?php 
include $_SERVER['DOCUMENT_ROOT'] . "/includes/layout.bottom.php";
Exemplo n.º 4
0
    <td style="width:20px;" rowspan="4"></td>
    <th style="width:300px; text-align:center;">Zelda news:</th>
  </tr>
  <tr>
    <td style="width:300px; text-align:center;"><small><?php 
data_pages("site", "zelda");
?>
</small></td>
    <td style="width:300px; text-align:center;"><small><?php 
data_pages("zelda", "site");
?>
</small></td>
  </tr>
  <tr>
    <td colspan="3" style="height:10px;"></td>
  </tr>
  <tr>
    <td style="width:300px; vertical-align:top;">
    <?php 
data_print("site");
?>
    </td>
    <td style="width:300px; vertical-align:top;">
    <?php 
data_print("zelda");
?>
    </td>
  </tr>
</table>
<?php 
include $_SERVER['DOCUMENT_ROOT'] . "/includes/layout.bottom.php";
Exemplo n.º 5
0
    print $_GET['p'] == $i ? $i + 1 : " <a href='?fid=" . $_GET['fid'] . "&bid=" . $_GET['bid'] . "&p=" . $i . "'>" . ($i + 1) . "</a> ";
    if ($i > 18) {
        print " ... <a href='?fid=" . $_GET['fid'] . "&bid=" . $_GET['bid'] . "&p=" . floor($total_rows / $limit) . "'>last</a>";
        break;
    }
}
?>
    </td>
    <td style="border-bottom:#000000 1px solid; text-align:right;"><a href="forum.php?fid=<?php 
print $_GET['fid'] . "#" . $_GET['fid'];
?>
">Go back to main view</a></td>
  </tr>
  <?php 
data_fetch("message", "SELECT `id`,`message`,`date`,`poster` FROM `board_" . $_GET['fid'] . "` WHERE `boardid`=" . $_GET['bid'] . " ORDER BY `id` ASC LIMIT " . $_GET['p'] * $limit . "," . $limit);
data_print("message");
data_fetch("reply", "SELECT `poster` FROM `board_" . $_GET['fid'] . "` WHERE `boardid`=" . $_GET['bid'] . " ORDER BY `id` DESC LIMIT 1");
?>
  <tr>
    <td><?php 
if ($_GET['p'] > 0) {
    ?>
<a href="<?php 
    print "?fid=" . $_GET['fid'] . "&bid=" . $_GET['bid'] . "&p=" . ($_GET['p'] - 1);
    ?>
">Previous page</a><?php 
}
?>
</td>
    <td align="right"><?php 
if ($total_rows - ($_GET['p'] + 1) * $limit > 0) {