Streamline password viewing.

This commit is contained in:
Nate Jones 2014-03-12 19:57:18 +00:00
parent cf41e4faac
commit 416f884da8
2 changed files with 8 additions and 8 deletions

View File

@ -532,7 +532,7 @@ require_once "resources/require.php";
echo " </td>\n";
echo " <td class='vtable' align='left'>\n";
echo " <input class='formfld' style='width: 90px;' type='text' name='device_lines[".$x."][password]' maxlength='255' value=\"".$row['password']."\">\n";
echo " <input class='formfld' style='width: 90px;' type='password' name='device_lines[".$x."][password]' onmouseover=\"this.type='text';\" onfocus=\"this.type='text';\" onmouseout=\"if (!$(this).is(':focus')) { this.type='password'; }\" onblur=\"this.type='password';\" maxlength='255' value=\"".$row['password']."\">\n";
echo " </td>\n";
//echo " <td class='vtable' align='left'>\n";

View File

@ -305,7 +305,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
echo " ".$text['label-password'].":\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
echo " <input class='formfld' type='text' name='password' maxlength='255' value=\"$password\">\n";
echo " <input class='formfld' type='password' name='password' onmouseover=\"this.type='text';\" onfocus=\"this.type='text';\" onmouseout=\"if (!$(this).is(':focus')) { this.type='password'; }\" onblur=\"this.type='password';\" maxlength='255' value=\"$password\">\n";
echo "<br />\n";
echo $text['description-password']."\n";
echo "</td>\n";