function display_toolbar($button, $extra_parameters = '')
{
    // draw on of our toolbars
    global $table_width;
    echo "<table width=\"" . $table_width . "\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\">\n        <tr>\n        <td bgcolor=\"#ccccc\" align=\"center\">";
    for ($i = 0; $i < 5; $i++) {
        if ($button[$i]) {
            display_button($button[$i], $extra_parameters);
        } else {
            display_spacer();
        }
    }
    echo "</td>\n        </tr>\n        </table>";
}
예제 #2
0
function display_toolbar($button, $extra_parameters = '')
{
    // draw our toolbar
    // there are up to five buttons per row and up to three rows
    // these numbers are completely arbitary and depend on the
    // images size and acceptable screen width
    global $table_width;
    echo "<table width=\"" . $table_width . "\"\n         cellpadding=\"0\" cellspacing=\"0\" border=\"0\">";
    for ($i = 0; $i < 3; $i++) {
        if (@$button[$i * 5]) {
            echo "<tr>\n            <td bgcolor=\"#cccccc\">";
            for ($j = 0; $j < 5; $j++) {
                echo "<td bgcolor=\"#cccccc\">";
                if (@$button[$i * 5 + $j]) {
                    display_button($button[$i * 5 + $j], $extra_parameters);
                } else {
                    display_spacer();
                }
                echo "</td>";
            }
            echo "</tr>";
        }
    }
    echo "</table>";
}
function display_toolbar($button, $extra_parameters = '')
{
    // draw on of our toolbars
    global $table_width;
    echo "<table width = {$table_width} cellpadding = 0 cellspacing = 0  border = 0>";
    echo '<tr>';
    echo '<td bgcolor = "#cccccc" align = center>';
    for ($i = 0; $i < 5; $i++) {
        if ($button[$i]) {
            display_button($button[$i], $extra_parameters);
        } else {
            display_spacer();
        }
    }
    echo '</td>';
    echo '</tr>';
    echo '</table>';
}