예제 #1
0
function show_edit_record_form($id)
{
    $categories = CCategoryManager::GetAllCategories();
    $record = CRecordManager::GetRecordById($id);
    if ($record) {
        $editRecordForm = new EditRecordForm("image/edit_btn.png", "Edit Record", "editting_record.php", "Save", $categories, $record);
        $editRecordForm->Show();
        return 1;
    } else {
        return 0;
    }
}
예제 #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>";
    }
}