fix errors and notices
This commit is contained in:
parent
9bf855911c
commit
b78cb4c507
11
main.php
11
main.php
@ -1570,8 +1570,8 @@ if (isset($_GET['edit'])) {
|
|||||||
<?
|
<?
|
||||||
|
|
||||||
//Выгребаем все комплекты перса
|
//Выгребаем все комплекты перса
|
||||||
$u_all_kompl = mysql_query("SELECT * FROM komplekt where `owner` = '{$user['id']}'");
|
$u_all_kompl = db::c()->query("SELECT `name` FROM komplekt where `owner` = ?i", $user['id']);
|
||||||
while ($u_k = mysql_fetch_array($u_all_kompl)) {
|
while ($u_k = $u_all_kompl->fetch_assoc()) {
|
||||||
$k_name = $u_k['name'];
|
$k_name = $u_k['name'];
|
||||||
echo "<a onclick=\"if (!confirm('Вы уверены, что хотите удалить комплект?')) { return false; }\" href='main.php?edit=1&delcomplect=" . $k_name . "'>
|
echo "<a onclick=\"if (!confirm('Вы уверены, что хотите удалить комплект?')) { return false; }\" href='main.php?edit=1&delcomplect=" . $k_name . "'>
|
||||||
<img src='i/clear.gif'></a>
|
<img src='i/clear.gif'></a>
|
||||||
@ -2263,12 +2263,7 @@ if (isset($_GET['edit'])) {
|
|||||||
</form>
|
</form>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<?php if ($errkoms == 1): ?>#####
|
|
||||||
<script language="javaScript">okno('Сохранить комплект', 'main.php?edit=1', 'savecomplect', '<?=$_POST['savecomplect']?>', 1)</script>
|
|
||||||
<?php endif; ?>
|
|
||||||
<?php if ($err_com_exs == 1): ?>#####
|
|
||||||
<script language="javaScript">okno('Сохранить комплект', 'main.php?edit=1', 'savecomplect', '<?=$_POST['savecomplect']?>', 2)</script>
|
|
||||||
<?php endif; ?>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
<?php
|
<?php
|
||||||
|
Loading…
Reference in New Issue
Block a user