Ejemplo n.º 1
0
function b1n_buildSelectFromDateHour($name, $array_date_hour = array(), $year_start = "", $year_end = "", $extra_params = array())
{
    $ret = b1n_buildSelectFromDate($name, $array_date_hour, $year_start, $year_end, $extra_params);
    $ret .= " - ";
    $ret .= b1n_buildSelectFromHour($name, $array_date_hour, $extra_params);
    return $ret;
}
Ejemplo n.º 2
0
Archivo: add.php Proyecto: mmr/b1n
                    echo b1n_buildSelectFromDate($reg['reg_data'], $reg_data[$reg['reg_data']], $reg['extra']['year_start'], $reg['extra']['year_end'], $reg['extra']['params']);
                    break;
                case "date_hour":
                    echo b1n_buildSelectFromDateHour($reg['reg_data'], $reg_data[$reg['reg_data']], $reg['extra']['year_start'], $reg['extra']['year_end'], $reg['extra']['params']);
                    break;
                case "fk":
                    if (!isset($reg['extra']['where'])) {
                        $reg['extra']['where'] = array();
                    }
                    echo b1n_buildSelectCommon($sql, $reg['extra']['name'], $reg['extra']['value'], $reg['extra']['text'], $reg['extra']['table'], $reg_data[$reg['reg_data']], $reg['extra']['params'], $reg['extra']['where']);
                    break;
                case "defined":
                    echo b1n_buildSelect($reg['extra']['options'], $reg_data[$reg['reg_data']], $reg['extra']['params'] + array("name" => $reg['reg_data']));
                    break;
                case "hour":
                    echo b1n_buildSelectFromHour($reg['reg_data'], $reg_data[$reg['reg_data']], $reg['extra']['params'], $reg['extra']['max_hour']);
                    break;
            }
            break;
        case "textarea":
            ?>
                            <textarea name="<?php 
            echo $reg['reg_data'];
            ?>
" rows="<?php 
            echo $reg['extra']['rows'];
            ?>
" cols="<?php 
            echo $reg['extra']['cols'];
            ?>
" wrap="<?php