示例#1
0
<br><br>



<table width="100%" cellspacing="2" cellpadding="2" border="0">
<tr>
	<td style="padding: 5px;"><b>Страны</b></td>
	<td style="padding: 5px;"><b>Города</b></td>
    <td style="padding: 5px;"><b>Возраст</b></td>
</tr>
<tr>
	<td valign="top" style="padding: 5px;">
		<table width="100%" cellspacing="2" cellpadding="2" border="0" class="brd-tbl">
		<?php 
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/country.php';
$countr = country::CountAll(10);
if ($countr) {
    foreach ($countr as $ikey => $cntr) {
        ?>
		<tr>
			<td width="130"><?php 
        echo $cntr['country_name'];
        ?>
</td>
			<td><?php 
        echo $cntr['cnt'];
        ?>
</td>
		</tr>
		<?php 
    }
示例#2
0



<table width="100%" cellspacing="2" cellpadding="2" border="0">
<tr>
	<td>Страны</td>
	<td>Города</td>
    <td>Возраст</td>
</tr>
<tr>
	<td valign="top">
		<table width="100%" cellspacing="2" cellpadding="2" border="0">
		<?php 
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/country.php";
$countr = country::CountAll();
if ($countr) {
    foreach ($countr as $ikey => $cntr) {
        ?>
		<tr>
			<td width="130"><?php 
        echo $cntr['country_name'];
        ?>
</td>
			<td><?php 
        echo $cntr['cnt'];
        ?>
</td>
		</tr>
		<?php 
    }