prefs: code cleanup
This commit is contained in:
parent
973fe3c6fa
commit
d1bcacaeb9
2 changed files with 6 additions and 37 deletions
|
@ -1145,16 +1145,6 @@
|
||||||
|
|
||||||
print "<div dojoType=\"dijit.Toolbar\">";
|
print "<div dojoType=\"dijit.Toolbar\">";
|
||||||
|
|
||||||
/*
|
|
||||||
print "<div style='float : right'>
|
|
||||||
<input id=\"feed_search\" size=\"20\" type=\"search\"
|
|
||||||
onfocus=\"disableHotkeys();\"
|
|
||||||
onblur=\"enableHotkeys();\"
|
|
||||||
onchange=\"updateFeedList()\" value=\"$feed_search\">
|
|
||||||
<button onclick=\"updateFeedList()\">".
|
|
||||||
__('Search')."</button>
|
|
||||||
</div>"; */
|
|
||||||
|
|
||||||
print "<div dojoType=\"dijit.form.DropDownButton\">".
|
print "<div dojoType=\"dijit.form.DropDownButton\">".
|
||||||
"<span>" . __('Select')."</span>";
|
"<span>" . __('Select')."</span>";
|
||||||
print "<div dojoType=\"dijit.Menu\" style=\"display: none;\">";
|
print "<div dojoType=\"dijit.Menu\" style=\"display: none;\">";
|
||||||
|
|
|
@ -206,18 +206,11 @@
|
||||||
$full_name = htmlspecialchars(db_fetch_result($result, 0, "full_name"));
|
$full_name = htmlspecialchars(db_fetch_result($result, 0, "full_name"));
|
||||||
|
|
||||||
print "<tr><td width=\"40%\">".__('Full name')."</td>";
|
print "<tr><td width=\"40%\">".__('Full name')."</td>";
|
||||||
print "<td class=\"prefValue\"><input dojoType=\"dijit.form.ValidationTextBox\" name=\"full_name\"
|
print "<td class=\"prefValue\"><input dojoType=\"dijit.form.ValidationTextBox\" name=\"full_name\" required=\"1\"
|
||||||
required=\"1\"
|
|
||||||
onfocus=\"javascript:disableHotkeys();\"
|
|
||||||
onblur=\"javascript:enableHotkeys();\"
|
|
||||||
value=\"$full_name\"></td></tr>";
|
value=\"$full_name\"></td></tr>";
|
||||||
|
|
||||||
print "<tr><td width=\"40%\">".__('E-mail')."</td>";
|
print "<tr><td width=\"40%\">".__('E-mail')."</td>";
|
||||||
print "<td class=\"prefValue\"><input dojoType=\"dijit.form.ValidationTextBox\" name=\"email\"
|
print "<td class=\"prefValue\"><input dojoType=\"dijit.form.ValidationTextBox\" name=\"email\" required=\"1\" value=\"$email\"></td></tr>";
|
||||||
required=\"1\"
|
|
||||||
onfocus=\"javascript:disableHotkeys();\"
|
|
||||||
onblur=\"javascript:enableHotkeys();\"
|
|
||||||
value=\"$email\"></td></tr>";
|
|
||||||
|
|
||||||
if (!SINGLE_USER_MODE) {
|
if (!SINGLE_USER_MODE) {
|
||||||
$access_level = db_fetch_result($result, 0, "access_level");
|
$access_level = db_fetch_result($result, 0, "access_level");
|
||||||
|
@ -272,27 +265,16 @@
|
||||||
print "<table width=\"100%\" class=\"prefPrefsList\">";
|
print "<table width=\"100%\" class=\"prefPrefsList\">";
|
||||||
|
|
||||||
print "<tr><td width=\"40%\">".__("Old password")."</td>";
|
print "<tr><td width=\"40%\">".__("Old password")."</td>";
|
||||||
print "<td class=\"prefValue\"><input dojoType=\"dijit.form.ValidationTextBox\" type=\"password\"
|
print "<td class=\"prefValue\"><input dojoType=\"dijit.form.ValidationTextBox\" type=\"password\" required=\"1\" name=\"old_password\"></td></tr>";
|
||||||
required=\"1\"
|
|
||||||
onfocus=\"javascript:disableHotkeys();\"
|
|
||||||
onblur=\"javascript:enableHotkeys();\"
|
|
||||||
name=\"old_password\"></td></tr>";
|
|
||||||
|
|
||||||
print "<tr><td width=\"40%\">".__("New password")."</td>";
|
print "<tr><td width=\"40%\">".__("New password")."</td>";
|
||||||
|
|
||||||
print "<td class=\"prefValue\"><input dojoType=\"dijit.form.ValidationTextBox\" type=\"password\"
|
print "<td class=\"prefValue\"><input dojoType=\"dijit.form.ValidationTextBox\" type=\"password\" required=\"1\"
|
||||||
required=\"1\"
|
|
||||||
onfocus=\"javascript:disableHotkeys();\"
|
|
||||||
onblur=\"javascript:enableHotkeys();\"
|
|
||||||
name=\"new_password\"></td></tr>";
|
name=\"new_password\"></td></tr>";
|
||||||
|
|
||||||
print "<tr><td width=\"40%\">".__("Confirm password")."</td>";
|
print "<tr><td width=\"40%\">".__("Confirm password")."</td>";
|
||||||
|
|
||||||
print "<td class=\"prefValue\"><input dojoType=\"dijit.form.ValidationTextBox\" type=\"password\"
|
print "<td class=\"prefValue\"><input dojoType=\"dijit.form.ValidationTextBox\" type=\"password\" required=\"1\" name=\"confirm_password\"></td></tr>";
|
||||||
required=\"1\"
|
|
||||||
onfocus=\"javascript:disableHotkeys();\"
|
|
||||||
onblur=\"javascript:enableHotkeys();\"
|
|
||||||
name=\"confirm_password\"></td></tr>";
|
|
||||||
|
|
||||||
print "</table>";
|
print "</table>";
|
||||||
|
|
||||||
|
@ -462,16 +444,13 @@
|
||||||
|
|
||||||
print "<input dojoType=\"dijit.form.ValidationTextBox\"
|
print "<input dojoType=\"dijit.form.ValidationTextBox\"
|
||||||
required=\"1\" $regexp
|
required=\"1\" $regexp
|
||||||
onfocus=\"javascript:disableHotkeys();\"
|
|
||||||
onblur=\"javascript:enableHotkeys();\"
|
|
||||||
name=\"$pref_name\" value=\"$value\">";
|
name=\"$pref_name\" value=\"$value\">";
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
$regexp = ($type_name == 'integer') ? 'regexp="^\d*$"' : '';
|
$regexp = ($type_name == 'integer') ? 'regexp="^\d*$"' : '';
|
||||||
|
|
||||||
print "<input dojoType=\"dijit.form.ValidationTextBox\"
|
print "<input dojoType=\"dijit.form.ValidationTextBox\"
|
||||||
onfocus=\"javascript:disableHotkeys();\" $regexp
|
$regexp
|
||||||
onblur=\"javascript:enableHotkeys();\"
|
|
||||||
name=\"$pref_name\" value=\"$value\">";
|
name=\"$pref_name\" value=\"$value\">";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue