Example #1
0
function tag_file_download_description()
{
    return tdb(tb('file_download_description'));
}
Example #2
0
function tag_search_result_date()
{
    return tdb(tb('search_result_date'));
}
Example #3
0
function tag_file_download_description()
{
    global $step, $endform, $tag_name;
    $atts = gpsa(array('class', 'escape', 'wraptag'));
    extract($atts);
    $out = form(startTable('tagbuilder') . tr(tdcs(hed(gTxt('tag_' . $tag_name), 3), 2)) . tagRow('escape', escape_pop($escape)) . tagRow('wraptag', input_tag('wraptag', $wraptag)) . tagRow('class', fInput('text', 'class', $class, 'edit', '', '', 25)) . $endform);
    if ($step == 'build') {
        $out .= tdb(tb($tag_name, $atts));
    }
    return $out;
}
Example #4
0
function test_binary()
{
    vecho("Binary mode: Positive powers of 2 to 30\n");
    $r = 1;
    for ($n = 0; $n <= 30; $n++) {
        tb($r, 8);
        $r *= 2;
    }
    vecho("Binary mode: Negative powers of 2 to -30\n");
    $r = 1;
    for ($n = 0; $n <= 30; $n++) {
        tb($r, 8);
        $r /= 2;
    }
    vecho("Binary mode: From 1 to 100 with min 5, showing step points\n");
    for ($r = 1; $r <= 100; $r++) {
        tb($r, 5);
    }
    vecho("Binary mode: Changing minsteps from 2 thru 20\n");
    for ($min = 2; $min <= 20; $min += 2) {
        tb(252, $min);
    }
}