当前位置: 首页>>代码示例>>PHP>>正文


PHP makePopupLink函数代码示例

本文整理汇总了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 
开发者ID:mondychan,项目名称:modern,代码行数:31,代码来源:frame.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&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>
开发者ID:ardiqghenatya,项目名称:koptel2,代码行数:31,代码来源:frames.php

示例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 
开发者ID:mondychan,项目名称:modern,代码行数:31,代码来源:controlcaps.php

示例4: makePopupLink

    } 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'];
开发者ID:kunkku,项目名称:ZoneMinder,代码行数:31,代码来源:console.php

示例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');
            ?>
&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 
开发者ID:jbudding,项目名称:ZoneMinder,代码行数:31,代码来源:monitor.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&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 
开发者ID:moeiscool,项目名称:ZoneMinder-video,代码行数:31,代码来源:timeline.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&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">
开发者ID:schrorg,项目名称:ZoneMinder,代码行数:31,代码来源:watch.php

示例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']);
        ?>
;">&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">
开发者ID:rodoviario,项目名称:ZoneMinder,代码行数:31,代码来源:monitor.php

示例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&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">
开发者ID:moeiscool,项目名称:ZoneMinder-video,代码行数:31,代码来源:watch.php

示例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&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">
开发者ID:bill-mcgonigle,项目名称:ZoneMinder,代码行数:31,代码来源:timeline.php

示例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);
            ?>
&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 
开发者ID:rodoviario,项目名称:ZoneMinder,代码行数:31,代码来源:options.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>

开发者ID:mondychan,项目名称:modern,代码行数:29,代码来源:footer.php

示例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 . '&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'];
开发者ID:ardiqghenatya,项目名称:koptel2,代码行数:31,代码来源:video.php

示例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&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 
开发者ID:rodoviario,项目名称:ZoneMinder,代码行数:31,代码来源:frame.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&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>
开发者ID:moeiscool,项目名称:ZoneMinder-video,代码行数:31,代码来源:devices.php


注:本文中的makePopupLink函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。