Ejemplo n.º 1
0
                } else {
                    if ($arFields['TITLE']) {
                        CMeetingItem::Update($arFields['ITEM_ID'], $arFields);
                    }
                    CMeetingInstance::Update($key, $arFields);
                }
                if (isset($arFields['TASK_ID'])) {
                    if (!$arFields['ITEM_ID']) {
                        $arFields['ITEM_ID'] = $arResult['MEETING']['AGENDA'][$key]['ITEM_ID'];
                    }
                    CMeetingItem::AddTask($arFields['ITEM_ID'], $arFields['TASK_ID']);
                }
            }
        }
        if ($bDeleted) {
            CMeetingItem::DeleteAbandoned();
        }
        if ($bUpdateEvent && is_array($arEventParams)) {
            CMeeting::AddEvent($arEventParams[0], $arEventParams[1], $arEventParams[2]);
        }
        if ($_REQUEST['save_type'] == 'BGSAVE') {
            $APPLICATION->RestartBuffer();
            ?>
<script type="text/javascript">
if (top.document.forms.meeting_edit)
{
	top.document.forms.meeting_edit.MEETING_ID.value = '<?php 
            echo $MEETING_ID;
            ?>
';
<?php 
Ejemplo n.º 2
0
 public static function DeleteByMeetingID($MEETING_ID)
 {
     global $DB;
     $MEETING_ID = intval($MEETING_ID);
     if ($MEETING_ID < 1) {
         return false;
     }
     CMeetingReports::DeleteByMeetingID($MEETING_ID);
     $DB->Query("DELETE FROM b_meeting_instance_users WHERE MEETING_ID='" . $MEETING_ID . "'");
     if ($DB->Query("DELETE FROM b_meeting_instance WHERE MEETING_ID='" . $MEETING_ID . "'")) {
         CMeetingItem::DeleteAbandoned();
         return true;
     }
     return false;
 }