Merge pull request #793 from SteveGilvarry/Leftover_Short_open

Leftover short open tags
This commit is contained in:
Isaac Connor 2015-04-08 07:25:54 -04:00
commit 577643ef09
2 changed files with 24 additions and 24 deletions

View File

@ -177,33 +177,33 @@ if( !isset($_REQUEST['step']) || ($_REQUEST['step'] == "1")) {
<body> <body>
<div id="page"> <div id="page">
<div id="header"> <div id="header">
<h2><?= $SLANG['MonitorProbe'] ?></h2> <h2><?php echo $SLANG['MonitorProbe'] ?></h2>
</div> </div>
<div id="content"> <div id="content">
<form name="contentForm" id="contentForm" method="post" action="<?= $_SERVER['PHP_SELF'] ?>"> <form name="contentForm" id="contentForm" method="post" action="<?php echo $_SERVER['PHP_SELF'] ?>">
<input type="hidden" name="view" value="none"/> <input type="hidden" name="view" value="none"/>
<input type="hidden" name="mid" value="<?= validNum($_REQUEST['mid']) ?>"/> <input type="hidden" name="mid" value="<?php echo validNum($_REQUEST['mid']) ?>"/>
<input type="hidden" name="step" value=""/> <input type="hidden" name="step" value=""/>
<p> <p>
<?= $SLANG['OnvifProbeIntro'] ?> <?php echo $SLANG['OnvifProbeIntro'] ?>
</p> </p>
<p> <p>
<label for="probe"><?= $SLANG['DetectedCameras'] ?></label><?= buildSelect( "probe", $cameras, 'configureButtons( this )' ); ?> <label for="probe"><?php echo $SLANG['DetectedCameras'] ?></label><?php echo buildSelect( "probe", $cameras, 'configureButtons( this )' ); ?>
</p> </p>
<p> <p>
<?= $SLANG['OnvifCredentialsIntro'] ?> <?php echo $SLANG['OnvifCredentialsIntro'] ?>
</p> </p>
<p> <p>
<label for="username"><?= $SLANG['Username'] ?></label> <label for="username"><?php echo $SLANG['Username'] ?></label>
<input type="text" name="username" value="" onChange="configureButtons( this )" /> <input type="text" name="username" value="" onChange="configureButtons( this )" />
</p> </p>
<p> <p>
<label for="password"><?= $SLANG['Password'] ?></label> <label for="password"><?php echo $SLANG['Password'] ?></label>
<input type="password" name="password" value=""onChange="configureButtons( this )" /> <input type="password" name="password" value=""onChange="configureButtons( this )" />
</p> </p>
<div id="contentButtons"> <div id="contentButtons">
<input type="button" value="<?= $SLANG['Cancel'] ?>" onclick="closeWindow()"/> <input type="button" value="<?php echo $SLANG['Cancel'] ?>" onclick="closeWindow()"/>
<input type="submit" name="nextBtn" value="<?= $SLANG['Next'] ?>" onclick="gotoStep2( this )" disabled="disabled"/> <input type="submit" name="nextBtn" value="<?php echo $SLANG['Next'] ?>" onclick="gotoStep2( this )" disabled="disabled"/>
</div> </div>
</form> </form>
</div> </div>
@ -257,23 +257,23 @@ else if($_REQUEST['step'] == "2")
<body> <body>
<div id="page"> <div id="page">
<div id="header"> <div id="header">
<h2><?= $SLANG['ProfileProbe'] ?></h2> <h2><?php echo $SLANG['ProfileProbe'] ?></h2>
</div> </div>
<div id="content"> <div id="content">
<form name="contentForm" id="contentForm" method="post" action="<?= $_SERVER['PHP_SELF'] ?>"> <form name="contentForm" id="contentForm" method="post" action="<?php echo $_SERVER['PHP_SELF'] ?>">
<input type="hidden" name="view" value="none"/> <input type="hidden" name="view" value="none"/>
<input type="hidden" name="mid" value="<?= validNum($_REQUEST['mid']) ?>"/> <input type="hidden" name="mid" value="<?php echo validNum($_REQUEST['mid']) ?>"/>
<input type="hidden" name="step" value=""/> <input type="hidden" name="step" value=""/>
<p> <p>
<?= $SLANG['ProfileProbeIntro'] ?> <?php echo $SLANG['ProfileProbeIntro'] ?>
</p> </p>
<p> <p>
<label for="probe"><?= $SLANG['DetectedProfiles'] ?></label><?= buildSelect( "probe", $cameras, 'configureButtons( this )' ); ?> <label for="probe"><?php echo $SLANG['DetectedProfiles'] ?></label><?php echo buildSelect( "probe", $cameras, 'configureButtons( this )' ); ?>
</p> </p>
<div id="contentButtons"> <div id="contentButtons">
<input type="button" name="prevBtn" value="<?= $SLANG['Prev'] ?>" onclick="gotoStep1( this )"/> <input type="button" name="prevBtn" value="<?php echo $SLANG['Prev'] ?>" onclick="gotoStep1( this )"/>
<input type="button" value="<?= $SLANG['Cancel'] ?>" onclick="closeWindow()"/> <input type="button" value="<?php echo $SLANG['Cancel'] ?>" onclick="closeWindow()"/>
<input type="submit" name="saveBtn" value="<?= $SLANG['Save'] ?>" onclick="submitCamera( this )" disabled="disabled"/> <input type="submit" name="saveBtn" value="<?php echo $SLANG['Save'] ?>" onclick="submitCamera( this )" disabled="disabled"/>
</div> </div>
</form> </form>
</div> </div>

View File

@ -116,12 +116,12 @@ function pLang($name)
<div id="settingsPanel"> <div id="settingsPanel">
<table id="pluginSettings" cellspacing="0"> <table id="pluginSettings" cellspacing="0">
<tbody> <tbody>
<? <?php
foreach($pluginOptions as $name => $popt) foreach($pluginOptions as $name => $popt)
{ {
?> ?>
<tr><th scope="row"><?php echo pLang($name) ?></th> <tr><th scope="row"><?php echo pLang($name) ?></th>
<? <?php
switch($popt['Type']) switch($popt['Type'])
{ {
case "checkbox": case "checkbox":
@ -132,7 +132,7 @@ foreach($pluginOptions as $name => $popt)
?> ?>
<td colspan="2"> <td colspan="2">
<select name="pluginOpt[<?php echo $popt['Name'] ?>]" id="pluginOpt[<?php echo $popt['Name'] ?>]"> <select name="pluginOpt[<?php echo $popt['Name'] ?>]" id="pluginOpt[<?php echo $popt['Name'] ?>]">
<? <?php
foreach($pchoices as $pchoice) foreach($pchoices as $pchoice)
{ {
$psel=""; $psel="";
@ -140,12 +140,12 @@ foreach($pluginOptions as $name => $popt)
$psel="selected"; $psel="selected";
?> ?>
<option value="<?php echo $pchoice ?>" <?php echo $psel ?>><?php echo pLang($pchoice) ?></option> <option value="<?php echo $pchoice ?>" <?php echo $psel ?>><?php echo pLang($pchoice) ?></option>
<? <?php
} }
?> ?>
</td> </td>
</select> </select>
<? <?php
break; break;
case "text": case "text":
default: default:
@ -153,7 +153,7 @@ foreach($pluginOptions as $name => $popt)
} }
?> ?>
</tr> </tr>
<? <?php
} }
?> ?>
</tbody> </tbody>