本文整理汇总了PHP中makePopupLink函数的典型用法代码示例。如果您正苦于以下问题:PHP makePopupLink函数的具体用法?PHP makePopupLink怎么用?PHP makePopupLink使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了makePopupLink函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getImageSrc
}
$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
示例2: strftime
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&eid=' . $event['Id'] . '&fid=' . $frame['FrameId'], 'zmStats', 'stats', $frame['Score']);
?>
</td>
<?php
} else {
?>
<td class="colScore"><?php
echo $frame['Score'];
?>
</td>
<?php
}
?>
</tr>
示例3: foreach
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
示例4: makePopupLink
} else {
?>
<td class="colSource"> </td>
<?php
}
for ($i = 0; $i < count($eventCounts); $i++) {
?>
<td class="colEvents"><?php
echo makePopupLink('?view=' . $eventsView . '&page=1' . $monitor['eventCounts'][$i]['filter']['query'], $eventsWindow, $eventsView, $monitor['EventCount' . $i], canView('Events'));
?>
</td>
<?php
}
?>
<td class="colZones"><?php
echo makePopupLink('?view=zones&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 . '&action=sequence&mid=' . $monitor['Id'] . '&smid=' . $seqIdUpList[$monitor['Id']], '<img src="' . $seqUpFile . '" alt="Up"/>', $monitor['Sequence'] > $minSequence);
echo makeLink('?view=' . $view . '&action=sequence&mid=' . $monitor['Id'] . '&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'];
示例5: validHtmlStr
</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');
?>
(<?php
echo makePopupLink('?view=optionhelp&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
示例6: getSlotShowEventBehaviour
}
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&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
示例7: return
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&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">
示例8: translate
?>
<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']);
?>
;"> </span></td></tr>
<tr><td><?php
echo translate('Exif');
?>
(<?php
echo makePopupLink('?view=optionhelp&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">
示例9: return
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&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">
示例10: getSlotShowEventBehaviour
}
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&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">
示例11: foreach
<?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);
?>
(<?php
echo makePopupLink('?view=optionhelp&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
示例12: strtolower
<?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>
示例13: filesize
?>
</td>
<td><?php
echo filesize($file);
?>
</td>
<td><?php
echo $rateText;
?>
</td>
<td><?php
echo $scaleText;
?>
</td>
<td><?php
echo makePopupLink('?view=' . $view . '&eid=' . $event['Id'] . '&width=' . $width . '&height=' . $height . '&showIndex=' . $index, 'zmVideo' . $event['Id'] . '-' . $scale, array('videoview', $width, $height), $SLANG['View']);
?>
/ <a href="<?php
echo substr($file, strlen(ZM_DIR_EVENTS) + 1);
?>
" onclick="downloadVideo( <?php
echo $index;
?>
); return( false );"><?php
echo $SLANG['Download'];
?>
</a> / <a href="#" onclick="deleteVideo( <?php
echo $index;
?>
); return( false );"><?php
echo $SLANG['Delete'];
示例14: getImageSrc
}
$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&eid=' . $event['Id'] . '&fid=' . $frame['FrameId'], 'zmStats', 'stats', translate('Stats'));
}
?>
<?php
if (canEdit('Events')) {
?>
<a href="?view=none&action=delete&markEid=<?php
echo $event['Id'];
?>
"><?php
echo translate('Delete');
?>
</a><?php
}
?>
<a href="#" onclick="closeWindow(); return( false );"><?php
示例15: foreach
<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&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>