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


PHP xhtmlHeaders函数代码示例

本文整理汇总了PHP中xhtmlHeaders函数的典型用法代码示例。如果您正苦于以下问题:PHP xhtmlHeaders函数的具体用法?PHP xhtmlHeaders怎么用?PHP xhtmlHeaders使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了xhtmlHeaders函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: foreach

foreach (dbFetchAll($sql) as $row) {
    if (!visibleMonitor($row['Id'])) {
        continue;
    }
    if ($group && $group['MonitorIds'] && !in_array($row['Id'], explode(',', $group['MonitorIds']))) {
        continue;
    }
    if ($maxWidth < $row['Width']) {
        $maxWidth = $row['Width'];
    }
    if ($maxHeight < $row['Height']) {
        $maxHeight = $row['Height'];
    }
    $monitors[] = $row;
}
xhtmlHeaders(__FILE__, translate('Montage'));
?>
<body>
  <div id="page">
    <div id="header">
      <div id="headerButtons">
        <a href="?view=<?php 
echo $_REQUEST['view'];
?>
"><?php 
echo translate('Refresh');
?>
</a>
      </div>
    </div>
    <div id="content">
开发者ID:bill-mcgonigle,项目名称:ZoneMinder,代码行数:31,代码来源:montage.php

示例2: ucfirst

if (!canEdit('Events')) {
    $view = "error";
    return;
}
$selectName = "filterName";
$newSelectName = "new" . ucfirst($selectName);
foreach (dbFetchAll("select * from Filters order by Name") as $row) {
    $filterNames[$row['Name']] = $row['Name'];
    if ($_REQUEST['filterName'] == $row['Name']) {
        $filterData = $row;
    }
}
$focusWindow = true;
$filter = $_REQUEST['filter'];
parseFilter($filter);
xhtmlHeaders(__FILE__, translate('SaveFilter'));
?>
<body>
  <div id="page">
    <div id="header">
      <h2><?php 
echo translate('SaveFilter');
?>
</h2>
    </div>
    <div id="content">
      <form name="contentForm" id="contentForm" method="post" action="<?php 
echo $_SERVER['PHP_SELF'];
?>
">
        <input type="hidden" name="view" value="none"/>
开发者ID:rodoviario,项目名称:ZoneMinder,代码行数:31,代码来源:filtersave.php

示例3: getPagination

    if ($maxWidth < $eventWidth) {
        $maxWidth = $eventWidth;
    }
    if ($maxHeight < $eventHeight) {
        $maxHeight = $eventHeight;
    }
    if ($event['Archived']) {
        $archived = true;
    } else {
        $unarchived = true;
    }
}
$maxShortcuts = 5;
$pagination = getPagination($pages, $page, $maxShortcuts, $filterQuery . $sortQuery . '&amp;limit=' . $limit);
$focusWindow = true;
xhtmlHeaders(__FILE__, translate('Events'));
?>
<body>
  <div id="page">
    <div id="header">
      <div id="headerButtons">
<?php 
if ($pages > 1) {
    if (!empty($page)) {
        ?>
        <a href="?view=<?php 
        echo $view;
        ?>
&amp;page=0<?php 
        echo $filterQuery;
        echo $sortQuery;
开发者ID:rodoviario,项目名称:ZoneMinder,代码行数:31,代码来源:events.php

示例4: htmlspecialchars

        $sourceDesc = htmlspecialchars(serialize($camera['monitor']));
        $sourceString = $camera['model'] . ' @ ' . $host;
        if (isset($monitors[$ip])) {
            $monitor = $monitors[$ip];
            $sourceString .= " (" . $monitor['Name'] . ")";
        } else {
            $sourceString .= " - " . translate('Available');
        }
        $cameras[$sourceDesc] = $sourceString;
    }
}
if (count($cameras) <= 0) {
    $cameras[0] = translate('NoDetectedCameras');
}
$focusWindow = true;
xhtmlHeaders(__FILE__, translate('MonitorProbe'));
?>
<body>
  <div id="page">
    <div id="header">
      <h2><?php 
echo translate('MonitorProbe');
?>
</h2>
    </div>
    <div id="content">
      <form name="contentForm" id="contentForm" method="post" action="<?php 
echo $_SERVER['PHP_SELF'];
?>
">
        <input type="hidden" name="view" value="none"/>
开发者ID:rodoviario,项目名称:ZoneMinder,代码行数:31,代码来源:monitorprobe.php

示例5: validInt

$prevFid = $frame['FrameId'] - 1;
$nextFid = $frame['FrameId'] + 1;
$lastFid = $maxFid;
$alarmFrame = $frame['Type'] == 'Alarm';
if (isset($_REQUEST['scale'])) {
    $scale = validInt($_REQUEST['scale']);
} else {
    $scale = max(reScale(SCALE_BASE, $event['DefaultScale'], ZM_WEB_DEFAULT_SCALE), SCALE_BASE);
}
$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'];
开发者ID:rodoviario,项目名称:ZoneMinder,代码行数:31,代码来源:frame.php

示例6: daemonCheck

// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
//
if (!canEdit('System')) {
    $view = "error";
    return;
}
$running = daemonCheck();
$states = dbFetchAll("select * from States");
$focusWindow = true;
xhtmlHeaders(__FILE__, $SLANG['RunState']);
?>
<body>
  <div id="page">
    <div id="header">
      <h2><?php 
echo $SLANG['RunState'];
?>
</h2>
    </div>
    <div id="content">
      <form name="contentForm" id="contentForm" method="get" action="<?php 
echo $_SERVER['PHP_SELF'];
?>
">
<?php 
开发者ID:moeiscool,项目名称:ZoneMinder-video,代码行数:31,代码来源:state.php

示例7: xhtmlHeaders

<?php

xhtmlHeaders(__FILE__, $SLANG['Events']);
?>
<body>
<!--<div id="widget_actions" style="position:absolute;top:61px;right:14px;z-index:100">
	<ul>
		<li><button id="btn_graphs" style="height:25px;">Graphs</button></li>
		<li><button id="btn_advanced" style="height:25px;">Advanced</button></li>
	</ul>
</div>-->

<input type="hidden" value="<?php 
echo $tab;
?>
" id="inptTab"/>
   <?php 
require "header.php";
?>
<div id="content">
	<div id="yui-b">
		<div id="tabs_events">
			<ul>
				<!-- tabs go here -->
				<li style="float:right;"><button id="btn_advanced" style="height:22px;">Advanced</button></li>
				<li style="float:right;"><button id="btn_graphs" style="height:22px;">Graphs</button></li>
			</ul>
			<div ></div>
		</div> <!-- tabs ends -->
	</div>
	
开发者ID:mondychan,项目名称:modern,代码行数:30,代码来源:events.php

示例8: closedir

                if ($matches[1] == $videoSize) {
                    $videoFiles[] = $file;
                }
            }
        }
    }
    closedir($dir);
}
if (isset($_REQUEST['download'])) {
    header("Content-type: " . getMimeType($videoFiles[$_REQUEST['download']]));
    header("Content-length: " . filesize($videoFiles[$_REQUEST['download']]));
    header("Content-disposition: attachment; filename=" . preg_replace("/^.*\\//", "", $videoFiles[$_REQUEST['download']]) . "; size=" . filesize($videoFiles[$_REQUEST['download']]));
    readfile($videoFiles[$_REQUEST['download']]);
    exit;
}
xhtmlHeaders(__FILE__, translate('Video') . ' - ' . $event['Name']);
?>
<body>
  <div id="page">
    <div id="content">
      <form method="post" action="<?php 
echo $_SERVER['PHP_SELF'];
?>
">
        <div class="hidden">
          <fieldset>
            <input type="hidden" name="view" value="<?php 
echo $_REQUEST['view'];
?>
"/>
            <input type="hidden" name="eid" value="<?php 
开发者ID:rodoviario,项目名称:ZoneMinder,代码行数:31,代码来源:video.php

示例9: array

$attrTypes = array('MonitorId' => translate('AttrMonitorId'), 'MonitorName' => translate('AttrMonitorName'), 'Id' => translate('AttrId'), 'Name' => translate('AttrName'), 'Cause' => translate('AttrCause'), 'Notes' => translate('AttrNotes'), 'DateTime' => translate('AttrDateTime'), 'Date' => translate('AttrDate'), 'Time' => translate('AttrTime'), 'Weekday' => translate('AttrWeekday'), 'Length' => translate('AttrDuration'), 'Frames' => translate('AttrFrames'), 'AlarmFrames' => translate('AttrAlarmFrames'), 'TotScore' => translate('AttrTotalScore'), 'AvgScore' => translate('AttrAvgScore'), 'MaxScore' => translate('AttrMaxScore'), 'Archived' => translate('AttrArchiveStatus'), 'DiskPercent' => translate('AttrDiskPercent'), 'DiskBlocks' => translate('AttrDiskBlocks'), 'SystemLoad' => translate('AttrSystemLoad'));
$opTypes = array('=' => translate('OpEq'), '!=' => translate('OpNe'), '>=' => translate('OpGtEq'), '>' => translate('OpGt'), '<' => translate('OpLt'), '<=' => translate('OpLtEq'), '=~' => translate('OpMatches'), '!~' => translate('OpNotMatches'), '=[]' => translate('OpIn'), '![]' => translate('OpNotIn'));
$archiveTypes = array('0' => translate('ArchUnarchived'), '1' => translate('ArchArchived'));
$weekdays = array();
for ($i = 0; $i < 7; $i++) {
    $weekdays[$i] = strftime("%A", mktime(12, 0, 0, 1, $i + 1, 2001));
}
$sort_fields = array('Id' => translate('AttrId'), 'Name' => translate('AttrName'), 'Cause' => translate('AttrCause'), 'Notes' => translate('AttrNotes'), 'MonitorName' => translate('AttrMonitorName'), 'DateTime' => translate('AttrDateTime'), 'Length' => translate('AttrDuration'), 'Frames' => translate('AttrFrames'), 'AlarmFrames' => translate('AttrAlarmFrames'), 'TotScore' => translate('AttrTotalScore'), 'AvgScore' => translate('AttrAvgScore'), 'MaxScore' => translate('AttrMaxScore'));
$sort_dirns = array('1' => translate('SortAsc'), '0' => translate('SortDesc'));
if (empty($_REQUEST['sort_field'])) {
    $_REQUEST['sort_field'] = ZM_WEB_EVENT_SORT_FIELD;
    $_REQUEST['sort_asc'] = ZM_WEB_EVENT_SORT_ORDER == "asc";
}
$hasCal = file_exists('tools/jscalendar/calendar.js');
$focusWindow = true;
xhtmlHeaders(__FILE__, translate('EventFilter'));
?>
<body>
  <div id="page">
    <div id="header">
      <div id="headerButtons">
        <a href="#" onclick="closeWindow();"><?php 
echo translate('Close');
?>
</a>
      </div>
      <h2><?php 
echo translate('EventFilter');
?>
</h2>
    </div>
开发者ID:rodoviario,项目名称:ZoneMinder,代码行数:31,代码来源:filter.php

示例10: dbFetchAll

// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
//
if (!canView('Control')) {
    $view = "error";
    return;
}
$sql = "select * from Controls order by Id";
$controls = dbFetchAll($sql);
$focusWindow = true;
xhtmlHeaders(__FILE__, $SLANG['ControlCaps']);
?>
<body>
  <div id="page">
    <div id="header">
      <div id="headerButtons">
        <a href="#" onclick="closeWindow();"><?php 
echo $SLANG['Close'];
?>
</a>
      </div>
      <h2><?php 
echo $SLANG['ControlCaps'];
?>
</h2>
    </div>
开发者ID:mondychan,项目名称:modern,代码行数:31,代码来源:controlcaps.php

示例11: ucfirst

$eventsWindow = 'zm' . ucfirst(ZM_WEB_EVENTS_VIEW);
$eventCount = 0;
for ($i = 0; $i < count($eventCounts); $i++) {
    $eventCounts[$i]['total'] = 0;
}
$zoneCount = 0;
foreach ($displayMonitors as $monitor) {
    for ($i = 0; $i < count($eventCounts); $i++) {
        $eventCounts[$i]['total'] += $monitor['EventCount' . $i];
    }
    $zoneCount += $monitor['ZoneCount'];
}
$seqUpFile = getSkinFile('graphics/seq-u.gif');
$seqDownFile = getSkinFile('graphics/seq-d.gif');
$versionClass = ZM_DYN_DB_VERSION && ZM_DYN_DB_VERSION != ZM_VERSION ? 'errorText' : '';
xhtmlHeaders(__FILE__, translate('Console'));
?>
<body>
  <div id="page">
    <form name="monitorForm" method="get" action="<?php 
echo $_SERVER['PHP_SELF'];
?>
">
    <input type="hidden" name="view" value="<?php 
echo $view;
?>
"/>
    <input type="hidden" name="action" value=""/>
    <div id="header">
      <h3 id="systemTime"><?php 
echo preg_match('/%/', DATE_FMT_CONSOLE_LONG) ? strftime(DATE_FMT_CONSOLE_LONG) : date(DATE_FMT_CONSOLE_LONG);
开发者ID:kunkku,项目名称:ZoneMinder,代码行数:31,代码来源:console.php

示例12: ob_get_clean

          </div>
<?php 
    return ob_get_clean();
}
function getSlotPreviewEventBehaviour($slot)
{
    return "previewEvent( '" . $slot['event']['Id'] . "', '" . getSlotFrame($slot) . "' )";
}
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'];
开发者ID:moeiscool,项目名称:ZoneMinder-video,代码行数:31,代码来源:timeline.php

示例13: xhtmlHeaders

// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
//
$focusWindow = true;
xhtmlHeaders(__FILE__, $SLANG['Logout']);
?>
<body>
  <div id="page">
    <div id="header">
      <h1>ZoneMinder <?php 
echo $SLANG['Logout'];
?>
</h1>
    </div>
    <div id="content">
      <form name="contentForm" id="contentForm" method="post" action="<?php 
echo $_SERVER['PHP_SELF'];
?>
">
	<input type="hidden" name="request" value="refresh" />
开发者ID:mondychan,项目名称:modern,代码行数:31,代码来源:logout.php

示例14: array

// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
//
if (!canEdit('System')) {
    $view = "error";
    return;
}
$options = array("go" => $SLANG['GoToZoneMinder']);
if (verNum(ZM_DYN_CURR_VERSION) != verNum(ZM_DYN_LAST_VERSION)) {
    $options = array_merge($options, array("ignore" => $SLANG['VersionIgnore'], "hour" => $SLANG['VersionRemindHour'], "day" => $SLANG['VersionRemindDay'], "week" => $SLANG['VersionRemindWeek'], "never" => $SLANG['VersionRemindNever']));
}
$focusWindow = true;
xhtmlHeaders(__FILE__, $SLANG['Version']);
?>
<body>
  <div id="page">
    <div id="header">
      <h2><?php 
echo $SLANG['Version'];
?>
</h2>
    </div>
    <div id="content">
<?php 
if (ZM_DYN_DB_VERSION && ZM_DYN_DB_VERSION != ZM_VERSION) {
    ?>
      <p class="errorText"><?php 
    echo sprintf($CLANG['VersionMismatch'], ZM_VERSION, ZM_DYN_DB_VERSION);
开发者ID:moeiscool,项目名称:ZoneMinder-video,代码行数:31,代码来源:version.php

示例15: dbEscape

// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
//
if (!canView('Events')) {
    $view = "error";
    return;
}
$sql = "select E.*,M.Name as MonitorName,M.Width,M.Height from Events as E inner join Monitors as M on E.MonitorId = M.Id where E.Id = '" . dbEscape($_REQUEST['eid']) . "'";
$event = dbFetchOne($sql);
$sql = "select *, unix_timestamp( TimeStamp ) as UnixTimeStamp from Frames where EventID = '" . dbEscape($_REQUEST['eid']) . "' order by FrameId";
$frames = dbFetchAll($sql);
$focusWindow = true;
xhtmlHeaders(__FILE__, $SLANG['Frames'] . " - " . $event['Id']);
?>
<body>
  <div id="page">
    <div id="header">
      <div id="headerButtons"><a href="#" onclick="closeWindow();"><?php 
echo $SLANG['Close'];
?>
</a></div>
      <h2><?php 
echo $SLANG['Frames'];
?>
 - <?php 
echo $event['Id'];
?>
</h2>
开发者ID:ardiqghenatya,项目名称:koptel2,代码行数:31,代码来源:frames.php


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