Ejemplo n.º 1
0
function show_edit_detail_form($config, $id)
{
    $detail = get_detail($config, $id);
    if ($detail) {
        show_detail_form("edit", $config, $detail);
    } else {
        echo "<p>Error: Can't get detail that has id = {$id}</p>";
    }
}
Ejemplo n.º 2
0
function show_edit_detail_form($id)
{
    $record = CRecordManager::GetRecordById($id);
    if ($record) {
        show_detail_form("edit", $record);
    } else {
        echo "<p>Error: Can't get detail that has id = {$id}</p>";
    }
}