Example #1
0
}
$imageData = getImageSrc($event, $frame, $scale, isset($_REQUEST['show']) && $_REQUEST['show'] == "capt");
$imagePath = $imageData['thumbPath'];
$eventPath = $imageData['eventPath'];
$dImagePath = sprintf("%s/%0" . ZM_EVENT_IMAGE_DIGITS . "d-diag-d.jpg", $eventPath, $frame['FrameId']);
$rImagePath = sprintf("%s/%0" . ZM_EVENT_IMAGE_DIGITS . "d-diag-r.jpg", $eventPath, $frame['FrameId']);
$focusWindow = true;
xhtmlHeaders(__FILE__, $SLANG['Frame'] . " - " . $event['Id'] . " - " . $frame['FrameId']);
?>
<body>
  <div id="page">
    <div id="header">
      <div id="headerButtons">
        <?php 
if (ZM_RECORD_EVENT_STATS && $alarmFrame) {
    echo makePopupLink('?view=stats&eid=' . $event['Id'] . '&fid=' . $frame['FrameId'], 'zmStats', 'stats', $SLANG['Stats']);
}
?>
        <?php 
if (canEdit('Events')) {
    ?>
<a href="?view=none&action=delete&markEid=<?php 
    echo $event['Id'];
    ?>
"><?php 
    echo $SLANG['Delete'];
    ?>
</a><?php 
}
?>
        <a href="#" onclick="closeWindow(); return( false );"><?php 
Example #2
0
        echo $frame['Type'];
        ?>
</td>
              <td class="colTimeStamp"><?php 
        echo strftime(STRF_FMT_TIME, $frame['UnixTimeStamp']);
        ?>
</td>
              <td class="colTimeDelta"><?php 
        echo number_format($frame['Delta'], 2);
        ?>
</td>
<?php 
        if (ZM_RECORD_EVENT_STATS && $frame['Type'] == 'Alarm') {
            ?>
              <td class="colScore"><?php 
            echo makePopupLink('?view=stats&amp;eid=' . $event['Id'] . '&amp;fid=' . $frame['FrameId'], 'zmStats', 'stats', $frame['Score']);
            ?>
</td>
<?php 
        } else {
            ?>
 
              <td class="colScore"><?php 
            echo $frame['Score'];
            ?>
</td>
<?php 
        }
        ?>
 
            </tr>
Example #3
0
echo $SLANG['HasPresets'];
?>
</th>
              <th class="colMark"><?php 
echo $SLANG['Mark'];
?>
</th>
            </tr>
          </thead>
          <tbody>
<?php 
foreach ($controls as $control) {
    ?>
            <tr>
              <td class="colName"><?php 
    echo makePopupLink('?view=controlcap&cid=' . $control['Id'], 'zmControlCap', 'controlcap', $control['Name'], canView('Control'));
    ?>
</td>
              <td class="colType"><?php 
    echo $control['Type'];
    ?>
</td>
              <td class="colProtocol"><?php 
    echo $control['Protocol'];
    ?>
</td>
              <td class="colCanMove"><?php 
    echo $control['CanMove'] ? $SLANG['Yes'] : $SLANG['No'];
    ?>
</td>
              <td class="colCanZoom"><?php 
Example #4
0
    } else {
        ?>
            <td class="colSource">&nbsp;</td>
<?php 
    }
    for ($i = 0; $i < count($eventCounts); $i++) {
        ?>
            <td class="colEvents"><?php 
        echo makePopupLink('?view=' . $eventsView . '&amp;page=1' . $monitor['eventCounts'][$i]['filter']['query'], $eventsWindow, $eventsView, $monitor['EventCount' . $i], canView('Events'));
        ?>
</td>
<?php 
    }
    ?>
            <td class="colZones"><?php 
    echo makePopupLink('?view=zones&amp;mid=' . $monitor['Id'], 'zmZones', array('zones', $monitor['Width'], $monitor['Height']), $monitor['ZoneCount'], canView('Monitors'));
    ?>
</td>
<?php 
    if (canEdit('Monitors')) {
        ?>
            <td class="colOrder"><?php 
        echo makeLink('?view=' . $view . '&amp;action=sequence&amp;mid=' . $monitor['Id'] . '&amp;smid=' . $seqIdUpList[$monitor['Id']], '<img src="' . $seqUpFile . '" alt="Up"/>', $monitor['Sequence'] > $minSequence);
        echo makeLink('?view=' . $view . '&amp;action=sequence&amp;mid=' . $monitor['Id'] . '&amp;smid=' . $seqIdDownList[$monitor['Id']], '<img src="' . $seqDownFile . '" alt="Down"/>', $monitor['Sequence'] < $maxSequence);
        ?>
</td>
<?php 
    }
    ?>
            <td class="colMark"><input type="checkbox" name="markMids[]" value="<?php 
    echo $monitor['Id'];
Example #5
0
</td><td><input type="text" name="newMonitor[Path]" value="<?php 
            echo validHtmlStr($newMonitor['Path']);
            ?>
" size="36"/></td></tr>
            <tr><td><?php 
            echo translate('RemoteMethod');
            ?>
</td><td><?php 
            echo buildSelect("newMonitor[Method]", $rtspMethods);
            ?>
</td></tr>
			<tr><td><?php 
            echo translate('Options');
            ?>
&nbsp;(<?php 
            echo makePopupLink('?view=optionhelp&amp;option=OPTIONS_' . strtoupper($newMonitor['Type']), 'zmOptionHelp', 'optionhelp', '?');
            ?>
)</td><td><input type="text" name="newMonitor[Options]" value="<?php 
            echo validHtmlStr($newMonitor['Options']);
            ?>
" size="36"/></td></tr>
<?php 
        }
        ?>
            <tr><td><?php 
        echo translate('TargetColorspace');
        ?>
</td><td><select name="newMonitor[Colours]"><?php 
        foreach ($Colours as $name => $value) {
            ?>
<option value="<?php 
Example #6
0
}
function getSlotShowEventBehaviour($slot)
{
    global $monitors;
    $monitor =& $monitors[$slot['event']['MonitorId']];
    return "showEvent( '" . $slot['event']['Id'] . "', '" . getSlotFrame($slot) . "', '" . reScale($monitor['Width'], $monitor['DefaultScale'], ZM_WEB_DEFAULT_SCALE) . "', '" . reScale($monitor['Height'], $monitor['DefaultScale'], ZM_WEB_DEFAULT_SCALE) . "' )";
}
$focusWindow = true;
xhtmlHeaders(__FILE__, $SLANG['Timeline']);
?>
<body>
  <div id="page">
    <div id="header">
      <div id="headerButtons">
        <?php 
echo makePopupLink('?view=events&amp;page=1' . htmlspecialchars($filterQuery), 'zmEvents', 'events', $SLANG['List'], canView('Events'));
?>
        <a href="#" onclick="closeWindow();"><?php 
echo $SLANG['Close'];
?>
</a>
      </div>
      <h2><?php 
echo $SLANG['Timeline'];
?>
</h2>
    </div>
    <div id="content" class="chartSize">
      <div id="topPanel" class="graphWidth">
        <div id="imagePanel">
          <div id="image" class="imageHeight"><img id="imageSrc" class="imageWidth" src="graphics/transparent.gif" alt="<?php 
Example #7
0
    if (canView('Events')) {
        ?>
          <div id="eventsControl"<?php 
        echo $showControls ? '' : ' class="hidden"';
        ?>
><a id="eventsLink" href="#" onclick="showEvents(); return( false );"><?php 
        echo translate('Events');
        ?>
</a></div>
<?php 
    }
}
if (canView('Control') && $monitor->Type() == "Local") {
    ?>
          <div id="settingsControl"><?php 
    echo makePopupLink('?view=settings&amp;mid=' . $monitor->Id(), 'zmSettings' . $monitor->Id(), 'settings', translate('Settings'), true, 'id="settingsLink"');
    ?>
</div>
<?php 
}
?>
          <div id="scaleControl"><?php 
echo translate('Scale');
?>
: <?php 
echo buildSelect("scale", $scales, "changeScale( this );");
?>
</div>
        </div>
      </div>
      <div id="imageFeed">
Example #8
0
        ?>
            <tr><td><?php 
        echo translate('WebColour');
        ?>
</td><td><input type="text" name="newMonitor[WebColour]" value="<?php 
        echo validHtmlStr($newMonitor['WebColour']);
        ?>
" size="10" onchange="$('WebSwatch').setStyle( 'backgroundColor', this.value )"/><span id="WebSwatch" class="swatch" style="background-color: <?php 
        echo validHtmlStr($newMonitor['WebColour']);
        ?>
;">&nbsp;&nbsp;&nbsp;&nbsp;</span></td></tr>
            <tr><td><?php 
        echo translate('Exif');
        ?>
&nbsp;(<?php 
        echo makePopupLink('?view=optionhelp&amp;option=OPTIONS_EXIF', 'zmOptionHelp', 'optionhelp', '?');
        ?>
) </td><td><input type="checkbox" name="newMonitor[Exif]" value="1"<?php 
        if (!empty($newMonitor['Exif'])) {
            ?>
 checked="checked"<?php 
        }
        ?>
/></td></tr>
<?php 
        break;
}
?>
          </tbody>
        </table>
        <div id="contentButtons">
Example #9
0
    if (canView('Events')) {
        ?>
          <div id="eventsControl"<?php 
        echo $showControls ? '' : ' class="hidden"';
        ?>
><a id="eventsLink" href="#" onclick="showEvents(); return( false );"><?php 
        echo $SLANG['Events'];
        ?>
</a></div>
<?php 
    }
}
if (canView('Control') && $monitor['Type'] == "Local") {
    ?>
          <div id="settingsControl"><?php 
    echo makePopupLink('?view=settings&amp;mid=' . $monitor['Id'], 'zmSettings' . $monitor['Id'], 'settings', $SLANG['Settings'], true, 'id="settingsLink"');
    ?>
</div>
<?php 
}
?>
          <div id="scaleControl"><?php 
echo $SLANG['Scale'];
?>
: <?php 
echo buildSelect("scale", $scales, "changeScale( this );");
?>
</div>
        </div>
      </div>
      <div id="imageFeed">
Example #10
0
}
function getSlotShowEventBehaviour($slot)
{
    global $monitors;
    $monitor =& $monitors[$slot['event']['MonitorId']];
    return "showEvent( '" . $slot['event']['Id'] . "', '" . getSlotFrame($slot) . "', '" . reScale($monitor['Width'], $monitor['DefaultScale'], ZM_WEB_DEFAULT_SCALE) . "', '" . reScale($monitor['Height'], $monitor['DefaultScale'], ZM_WEB_DEFAULT_SCALE) . "' )";
}
$focusWindow = true;
xhtmlHeaders(__FILE__, translate('Timeline'));
?>
<body>
  <div id="page">
    <div id="header">
      <div id="headerButtons">
        <?php 
echo makePopupLink('?view=events&amp;page=1' . htmlspecialchars($filterQuery), 'zmEvents', 'events', translate('List'), canView('Events'));
?>
        <a href="#" onclick="closeWindow();"><?php 
echo translate('Close');
?>
</a>
      </div>
      <h2><?php 
echo translate('Timeline');
?>
</h2>
    </div>
    <div id="content" class="chartSize">
      <div id="topPanel" class="graphWidth">
        <div id="imagePanel">
          <div id="image" class="imageHeight">
Example #11
0
<?php 
        $configCat = $configCats[$tab];
        foreach ($configCat as $name => $value) {
            $shortName = preg_replace('/^ZM_/', '', $name);
            $optionPromptText = !empty($OLANG[$shortName]) ? $OLANG[$shortName]['Prompt'] : $value['Prompt'];
            ?>
            <tr>
              <td><?php 
            echo $shortName;
            ?>
</td>
              <td><?php 
            echo validHtmlStr($optionPromptText);
            ?>
&nbsp;(<?php 
            echo makePopupLink('?view=optionhelp&amp;option=' . $name, 'zmOptionHelp', 'optionhelp', '?');
            ?>
)</td>
<?php 
            if ($value['Type'] == "boolean") {
                ?>
              <td><input type="checkbox" id="<?php 
                echo $name;
                ?>
" name="newConfig[<?php 
                echo $name;
                ?>
]" value="1"<?php 
                if ($value['Value']) {
                    ?>
 checked="checked"<?php 
Example #12
0
			<?php 
if (ZM_OPT_USE_AUTH) {
    ?>
			<?php 
    echo $SLANG['LoggedInAs'];
    ?>
 <a href="?view=logout" class="colorbox" style="color:#036;" ><?php 
    echo $user['Username'];
    ?>
</a>, <?php 
    echo strtolower($SLANG['ConfiguredFor']);
    ?>
			<?php 
} else {
    echo $SLANG['ConfiguredFor'];
}
?>
			<?php 
echo makePopupLink('?view=bandwidth', 'zmBandwidth', 'bandwidth', $bwArray[$_COOKIE['zmBandwidth']], $user && $user['MaxBandwidth'] != 'low');
?>
 <?php 
echo $SLANG['Bandwidth'];
?>
		</div>
	</div>
</div>

</body>
</html>

Example #13
0
                ?>
</td>
          <td><?php 
                echo filesize($file);
                ?>
</td>
          <td><?php 
                echo $rateText;
                ?>
</td>
          <td><?php 
                echo $scaleText;
                ?>
</td>
          <td><?php 
                echo makePopupLink('?view=' . $view . '&amp;eid=' . $event['Id'] . '&amp;width=' . $width . '&amp;height=' . $height . '&amp;showIndex=' . $index, 'zmVideo' . $event['Id'] . '-' . $scale, array('videoview', $width, $height), $SLANG['View']);
                ?>
&nbsp;/&nbsp;<a href="<?php 
                echo substr($file, strlen(ZM_DIR_EVENTS) + 1);
                ?>
" onclick="downloadVideo( <?php 
                echo $index;
                ?>
 ); return( false );"><?php 
                echo $SLANG['Download'];
                ?>
</a>&nbsp;/&nbsp;<a href="#" onclick="deleteVideo( <?php 
                echo $index;
                ?>
 ); return( false );"><?php 
                echo $SLANG['Delete'];
Example #14
0
}
$imageData = getImageSrc($event, $frame, $scale, isset($_REQUEST['show']) && $_REQUEST['show'] == "capt");
$imagePath = $imageData['thumbPath'];
$eventPath = $imageData['eventPath'];
$dImagePath = sprintf("%s/%0" . ZM_EVENT_IMAGE_DIGITS . "d-diag-d.jpg", $eventPath, $frame['FrameId']);
$rImagePath = sprintf("%s/%0" . ZM_EVENT_IMAGE_DIGITS . "d-diag-r.jpg", $eventPath, $frame['FrameId']);
$focusWindow = true;
xhtmlHeaders(__FILE__, translate('Frame') . " - " . $event['Id'] . " - " . $frame['FrameId']);
?>
<body>
  <div id="page">
    <div id="header">
      <div id="headerButtons">
        <?php 
if (ZM_RECORD_EVENT_STATS && $alarmFrame) {
    echo makePopupLink('?view=stats&amp;eid=' . $event['Id'] . '&amp;fid=' . $frame['FrameId'], 'zmStats', 'stats', translate('Stats'));
}
?>
        <?php 
if (canEdit('Events')) {
    ?>
<a href="?view=none&amp;action=delete&amp;markEid=<?php 
    echo $event['Id'];
    ?>
"><?php 
    echo translate('Delete');
    ?>
</a><?php 
}
?>
        <a href="#" onclick="closeWindow(); return( false );"><?php 
Example #15
0
        <input type="hidden" name="command" value=""/>
        <table id="contentTable" class="major" cellspacing="0">
          <tbody>
<?php 
foreach ($devices as $device) {
    if ($device['Status'] == 'ON') {
        $fclass = "infoText";
    } elseif ($device['Status'] == 'OFF') {
        $fclass = "warnText";
    } else {
        $fclass = "errorText";
    }
    ?>
            <tr>
              <td><?php 
    echo makePopupLink('?view=device&amp;did=' . $device['Id'], 'zmDevice', 'device', '<span class="' . $fclass . '">' . validHtmlStr($device['Name']) . ' (' . validHtmlStr($device['KeyString']) . ')</span>', canEdit('Devices'));
    ?>
</td>
              <td><input type="button" value="<?php 
    echo $SLANG['On'];
    ?>
"<?php 
    echo $device['Status'] != 'ON' ? ' class="set"' : '';
    ?>
 onclick="switchDeviceOn( this, '<?php 
    echo validHtmlStr($device['KeyString']);
    ?>
' )"<?php 
    echo canEdit('Devices') ? "" : ' disabled="disabled"';
    ?>
/></td>
Example #16
0
    ?>
</td>
              <td class="colAvgScore"><?php 
    echo $event['AvgScore'];
    ?>
</td>
              <td class="colMaxScore"><?php 
    echo makePopupLink('?view=frame&amp;eid=' . $event['Id'] . '&amp;fid=0', 'zmImage', array('image', reScale($event['Width'], $scale), reScale($event['Height'], $scale)), $event['MaxScore']);
    ?>
</td>
<?php 
    if (ZM_WEB_LIST_THUMBS) {
        if ($thumbData = createListThumbnail($event)) {
            ?>
              <td class="colThumbnail"><?php 
            echo makePopupLink('?view=frame&amp;eid=' . $event['Id'] . '&amp;fid=' . $thumbData['FrameId'], 'zmImage', array('image', reScale($event['Width'], $scale), reScale($event['Height'], $scale)), '<img src="' . viewImagePath($thumbData['Path']) . '" width="' . $thumbData['Width'] . '" height="' . $thumbData['Height'] . '" alt="' . $thumbData['FrameId'] . '/' . $event['MaxScore'] . '"/>');
            ?>
</td>
<?php 
        } else {
            ?>
              <td class="colThumbnail">&nbsp;</td>
<?php 
        }
    }
    ?>
              <td class="colMark"><input type="checkbox" name="markEids[]" value="<?php 
    echo $event['Id'];
    ?>
" onclick="configureButton( this, 'markEids' );"<?php 
    if (!canEdit('Events')) {
Example #17
0
     <?php 
    } else {
        ?>
		<td class="colSource">&nbsp;</td>
     <?php 
    }
    ?>
		<td class="colZones"><a id="zonecolorbox" href="?view=zones&mid=<?php 
    echo $monitor['Id'];
    ?>
"><?php 
    echo $monitor['ZoneCount'];
    ?>
</a></td>
		<!--<?php 
    echo makePopupLink('?view=zones&mid=' . $monitor['Id'], 'zmZones', array('zones', $monitor['Width'], $monitor['Height']), $monitor['ZoneCount']);
    ?>
</td>-->
		<td class="colMark"><input type="checkbox" value="<?php 
    echo $monitor['Id'];
    ?>
"/></td>
    </tr>







   <?php