2004-01-07 21:39:44 +08:00
|
|
|
<?php
|
2004-01-08 19:45:57 +08:00
|
|
|
//
|
|
|
|
// ZoneMinder web bandwidth view file, $Date$, $Revision$
|
2005-02-24 22:40:14 +08:00
|
|
|
// Copyright (C) 2003, 2004, 2005 Philip Coombes
|
2004-01-08 19:45:57 +08:00
|
|
|
//
|
|
|
|
// 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.
|
|
|
|
//
|
|
|
|
|
|
|
|
$new_bandwidth = $bandwidth;
|
|
|
|
|
2005-10-21 01:02:45 +08:00
|
|
|
if ( $user && !empty($user['MaxBandwidth']) )
|
|
|
|
{
|
|
|
|
if ( $user['MaxBandwidth'] == "low" )
|
|
|
|
{
|
|
|
|
unset( $bw_array['high'] );
|
|
|
|
unset( $bw_array['medium'] );
|
|
|
|
}
|
|
|
|
elseif ( $user['MaxBandwidth'] == "medium" )
|
|
|
|
{
|
|
|
|
unset( $bw_array['high'] );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2004-01-07 21:39:44 +08:00
|
|
|
?>
|
2004-12-29 03:22:23 +08:00
|
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2003-07-11 17:27:56 +08:00
|
|
|
<html>
|
|
|
|
<head>
|
2005-05-06 20:24:57 +08:00
|
|
|
<title><?= ZM_WEB_TITLE_PREFIX ?> - <?= $zmSlangBandwidth ?></title>
|
2004-12-29 02:20:11 +08:00
|
|
|
<link rel="stylesheet" href="zm_html_styles.css" type="text/css">
|
2004-12-29 03:29:43 +08:00
|
|
|
<script type="text/javascript">
|
2003-07-11 17:27:56 +08:00
|
|
|
function closeWindow()
|
|
|
|
{
|
|
|
|
window.close();
|
|
|
|
}
|
2004-03-05 18:21:43 +08:00
|
|
|
window.focus();
|
2003-07-11 17:27:56 +08:00
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<table align="center" border="0" cellspacing="4" cellpadding="2" width="96%">
|
|
|
|
<form name="logout_form" method="post" action="<?= $PHP_SELF ?>">
|
|
|
|
<input type="hidden" name="action" value="bandwidth">
|
|
|
|
<input type="hidden" name="view" value="">
|
2004-01-07 20:57:07 +08:00
|
|
|
<tr><td colspan="2" class="smallhead" align="center"><?= $zmSlangSetNewBandwidth ?></td></tr>
|
2003-07-11 17:27:56 +08:00
|
|
|
<tr><td colspan="2" class="text" align="center"><?= buildSelect( "new_bandwidth", $bw_array ) ?></td></tr>
|
2004-01-07 20:57:07 +08:00
|
|
|
<tr><td align="center"><input type="submit" value="<?= $zmSlangSave ?>" class="form"></td>
|
|
|
|
<td align="center"><input type="button" value="<?= $zmSlangCancel ?>" class="form" onClick="closeWindow();"></td></tr>
|
2003-07-11 17:27:56 +08:00
|
|
|
</form>
|
|
|
|
</table>
|
|
|
|
</body>
|
|
|
|
</html>
|