Пример #1
0
$usr = checkUser();
// select for projects
$projectSel = makeSelectBox("pct", $kga['usr']['usr_grp']);
// select for events
$eventSel = makeSelectBox("evt", $kga['usr']['usr_grp']);
if (isset($_REQUEST['stopRecord'])) {
    stopRecorder();
}
if (isset($_REQUEST['startRecord']) && isset($_REQUEST['project']) && isset($_REQUEST['event'])) {
    $data = array();
    $data['lastProject'] = $_REQUEST['project'];
    $data['lastEvent'] = $_REQUEST['event'];
    usr_edit($kga['usr']['usr_ID'], $data);
    $kga['usr']['lastProject'] = $data['lastProject'];
    $kga['usr']['lastEvent'] = $data['lastEvent'];
    startRecorder($_REQUEST['project'], $_REQUEST['event'], $kga['usr']['usr_ID']);
}
if (isset($_REQUEST['updateComment'])) {
    $data = get_event_last();
    zef_edit_comment($data['zef_ID'], $_REQUEST['comment_type'], $_REQUEST['comment']);
}
?>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

    <title></title>
    <meta content="">
    <style>
    body {
      /*background-color:black;*/
Пример #2
0
      * The user started the recording of an event via the buzzer. If this method
      * is called while another recording is running the first one will be stopped.
      */
 /**
  * The user started the recording of an event via the buzzer. If this method
  * is called while another recording is running the first one will be stopped.
  */
 case 'startRecord':
     if (isset($kga['customer'])) {
         die;
     }
     if (get_rec_state($kga['usr']['usr_ID'])) {
         stopRecorder();
     }
     $IDs = explode('|', $axValue);
     startRecorder($IDs[0], $IDs[1], $id);
     echo 1;
     break;
     /**
      * Stop the running recording.
      */
 /**
  * Stop the running recording.
  */
 case 'stopRecord':
     stopRecorder();
     echo 1;
     break;
     /**
      * Return a list of users. Customers are not shown any users. The
      * type of the current user decides which users are shown to him.