Exemplo n.º 1
0
        $mpid = $_POST['meetingpointid'];
    } else {
        $mpid = '';
    }
    if (isset($_POST['Meeting_ID'])) {
        $meet->setValue('meetingid', $_POST['Meeting_ID']);
        $mid = $_POST['Meeting_ID'];
    } else {
        $mid = '';
    }
    if (isset($_POST['pointsdiscussed'])) {
        $pointsdiscussed = $_POST['pointsdiscussed'];
    }
    $meet->saveMeeting();
    if ($mid == '') {
        $mid = $meet->getValue('meetingid');
    }
    $i = 0;
    $j = count($pointsdiscussed);
    while ($i < $j) {
        if (isset($mpid[$i])) {
            $meet->setValue('meetingpointid', $mpid[$i]);
        } else {
            $meet->setValue('meetingpointid', '');
        }
        $meet->setValue('pointsdiscussed', $pointsdiscussed[$i]);
        $meet->saveMeetingPoints();
        $i++;
    }
} else {
    if (isset($_GET['ui'])) {