Corrected order of select arrays.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@724 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan 2004-01-07 13:39:12 +00:00
parent 159558a9ca
commit 7574f6eadf
2 changed files with 3 additions and 3 deletions

View File

@ -263,7 +263,7 @@ function closeWindow()
</td></tr>
<?php
$select_name = "new_monitor[Type]";
$source_types = array( $zmSlangLocal=>"Local", $zmSlangRemote=>"Remote" );
$source_types = array( 'Local'=>$zmSlangLocal, 'Remote'=>$zmSlangRemote );
?>
<tr><td align="left" class="text"><?= $zmSlangSourceType ?></td><td><?= buildSelect( $select_name, $source_types ); ?></td></tr>
<?php

View File

@ -84,14 +84,14 @@ function closeWindow()
<tr><td align="right" class="text"><?= $zmSlangEnabled ?></td><td align="left" class="text"><?= buildSelect( "new_enabled", $yesno ) ?></td></tr>
<?php
$new_stream = $row[Stream];
$nv = array( $zmSlangNone=>'None', $zmSlangView=>'View' );
$nv = array( 'None'=>$zmSlangNone, 'View'=>$zmSlangView );
?>
<tr><td align="right" class="text">Stream</td><td align="left" class="text"><?= buildSelect( "new_stream", $nv ) ?></td></tr>
<?php
$new_events = $row[Events];
$new_monitors = $row[Monitors];
$new_system = $row[System];
$nve = array( $zmSlangNone=>'None', $zmSlangView=>'View', $zmSlangEdit=>'Edit' );
$nve = array( 'None'=>$zmSlangNone, 'View'=>$zmSlangView, 'Edit'=>$zmSlangEdit );
?>
<tr><td align="right" class="text"><?= $zmSlangEvents ?></td><td align="left" class="text"><?= buildSelect( "new_events", $nve ) ?></td></tr>
<tr><td align="right" class="text"><?= $zmSlangMonitors ?></td><td align="left" class="text"><?= buildSelect( "new_monitors", $nve ) ?></td></tr>