i mean something like:
function time_cells($label, $name, $value=null, $min="", $max="", $title=false,
$labparams="", $post_label="", $inparams="")
{
global $Ajax;
default_focus($name);
if ($label != null)
label_cell($label, $labparams);
echo "<td>";
if ($value === null)
$value = get_post($name);
echo "<input $inparams type=\"time\" name=\"$name\" min=\"$min\" max=\"$max\" value=\"$value\""
.($title ? " title='$title'" : '')
.">";
if ($post_label != "")
echo " " . $post_label;
echo "</td>\n";
$Ajax->addUpdate($name, $name, $value);
}
function time_row($label, $name, $value, $min, $max, $title=null, $params="", $post_label="")
{
echo "<tr><td class='label'>$label</td>";
text_cells(null, $name, $value, $min, $max, $title, $params, $post_label);
echo "</tr>\n";
}