Обновление устаревших яваскриптов.2
This commit is contained in:
parent
e24e47e883
commit
5596bd75af
14
contacts.php
14
contacts.php
@ -129,8 +129,8 @@ $contacts_list = db::c()->query('SELECT `friend`,`comment` FROM `friends` WHERE
|
|||||||
var s = '<table width=250 bgcolor=CCC3AA><tr><td align=center><b>Редактировать контакт</b></td><td width=20 align=right valign=top style="cursor: hand" onclick="closehint();"><b>x</td></tr><tr><td colspan=2>';
|
var s = '<table width=250 bgcolor=CCC3AA><tr><td align=center><b>Редактировать контакт</b></td><td width=20 align=right valign=top style="cursor: hand" onclick="closehint();"><b>x</td></tr><tr><td colspan=2>';
|
||||||
s += '<table width=100% align=center bgcolor=FFF6DD><form method=POST>';
|
s += '<table width=100% align=center bgcolor=FFF6DD><form method=POST>';
|
||||||
s += '<tr><td><input type="hidden" name="friendedit" value="' + login + '"><input type="hidden" name="sd4">';
|
s += '<tr><td><input type="hidden" name="friendedit" value="' + login + '"><input type="hidden" name="sd4">';
|
||||||
s += '<input name="comment" value="' + comment + '" placeholder="Комментарий" style="width: 105px"></td></tr>';
|
s += '<input name="comment" value="' + comment + '" placeholder="Комментарий" style="width: 105px">';
|
||||||
s += '<tr><td><input type="submit" value="Сохранить" style="border:0; vertical-align: middle"></td></tr></form></table>';
|
s += '<input type="submit" value="Сохранить" style="border:0; vertical-align: middle"></td></tr></form></table>';
|
||||||
s += '</td></tr></table>';
|
s += '</td></tr></table>';
|
||||||
document.getElementById("hint4").innerHTML = s;
|
document.getElementById("hint4").innerHTML = s;
|
||||||
document.getElementById("hint4").style.visibility = "visible";
|
document.getElementById("hint4").style.visibility = "visible";
|
||||||
@ -143,8 +143,8 @@ $contacts_list = db::c()->query('SELECT `friend`,`comment` FROM `friends` WHERE
|
|||||||
function addcontact() {
|
function addcontact() {
|
||||||
var s = '<table width=250 bgcolor=CCC3AA><tr><td align=center><B>Добавить контакт</td><td width=20 align=right valign=top style="cursor: hand" onclick="closehint();"><b>x</td></tr><tr><td colspan=2>';
|
var s = '<table width=250 bgcolor=CCC3AA><tr><td align=center><B>Добавить контакт</td><td width=20 align=right valign=top style="cursor: hand" onclick="closehint();"><b>x</td></tr><tr><td colspan=2>';
|
||||||
s += '<table width=100% bgcolor=FFF6DD align=center><form method=POST>';
|
s += '<table width=100% bgcolor=FFF6DD align=center><form method=POST>';
|
||||||
s += '<tr><td><input name="friendadd" placeholder="Логин" style="width:105px"></td></tr>';
|
s += '<tr><td><input name="friendadd" placeholder="Логин" style="width:105px">';
|
||||||
s += '<tr><td><input name="comment" placeholder="Комментарий" style="width:105px"></td></tr>';
|
s += '<input name="comment" placeholder="Комментарий" style="width:105px"></td></tr>';
|
||||||
s += '<tr><td><input type="submit" value="Добавить запись" style="border:0; vertical-align: middle"><input type="hidden" name="sd4"></td></tr></form></table>';
|
s += '<tr><td><input type="submit" value="Добавить запись" style="border:0; vertical-align: middle"><input type="hidden" name="sd4"></td></tr></form></table>';
|
||||||
s += '</td></tr></table>';
|
s += '</td></tr></table>';
|
||||||
document.getElementById("hint4").innerHTML = s;
|
document.getElementById("hint4").innerHTML = s;
|
||||||
@ -158,9 +158,9 @@ $contacts_list = db::c()->query('SELECT `friend`,`comment` FROM `friends` WHERE
|
|||||||
function removecontact() {
|
function removecontact() {
|
||||||
var s = '<table width=250 bgcolor=CCC3AA><tr><td align=center><b>Удалить контакт</b></td><td width=20 align=right valign=top style="cursor: hand" onclick="closehint();"><b>x</td></tr><tr><td colspan=2>';
|
var s = '<table width=250 bgcolor=CCC3AA><tr><td align=center><b>Удалить контакт</b></td><td width=20 align=right valign=top style="cursor: hand" onclick="closehint();"><b>x</td></tr><tr><td colspan=2>';
|
||||||
s += '<table width=100% align=center bgcolor=FFF6DD><form method=POST>';
|
s += '<table width=100% align=center bgcolor=FFF6DD><form method=POST>';
|
||||||
s += '<tr><td><input type="hidden" name="friendedit" value="' + login + '"><input type="hidden" name="sd4">';
|
s += '<tr><td><input type="hidden" name="sd4">';
|
||||||
s += '<input name="friendremove" placeholder="Логин" style="width: 105px"></td></tr>';
|
s += '<input name="friendremove" placeholder="Логин" style="width: 105px">';
|
||||||
s += '<tr><td><input type="submit" value="Сохранить" style="border:0; vertical-align: middle"></td></tr></form></table>';
|
s += '<input type="submit" value="Сохранить" style="border:0; vertical-align: middle"></td></tr></form></table>';
|
||||||
s += '</td></tr></table>';
|
s += '</td></tr></table>';
|
||||||
document.getElementById("hint4").innerHTML = s;
|
document.getElementById("hint4").innerHTML = s;
|
||||||
document.getElementById("hint4").style.visibility = "visible";
|
document.getElementById("hint4").style.visibility = "visible";
|
||||||
|
Loading…
Reference in New Issue
Block a user