Замена short_tags.

This commit is contained in:
2023-03-31 21:42:06 +03:00
parent 01b504e677
commit c41f36644c
712 changed files with 1204 additions and 1227 deletions
+4 -4
View File
@@ -33,7 +33,7 @@ function MM_jumpMenu(targ,selObj,restore){ //v3.0
<tr>
<td align="center"><p>магазин:
<select name="shop_id" id="shop_id" onChange="MM_jumpMenu('parent',this,0)">
<?
<?php
if( isset($_POST['additemnow']) ) {
mysql_query('INSERT INTO `items_shop` (
@@ -55,7 +55,7 @@ function MM_jumpMenu(targ,selObj,restore){ //v3.0
</select>
Рраздел магазина:
<select name="r_id" id="r_id" onChange="MM_jumpMenu('parent',this,0)">
<?
<?php
$sp = mysql_query('SELECT `r` FROM `items_shop` WHERE `sid` = "'.mysql_real_escape_string($sid).'" GROUP BY `r`');
while( $pl = mysql_fetch_array($sp) ) {
echo '<option ';
@@ -78,7 +78,7 @@ function MM_jumpMenu(targ,selObj,restore){ //v3.0
</tr>
<tr>
<td>
<?
<?php
$sp = mysql_query('SELECT * FROM `items_shop` WHERE `sid` = "'.$sid.'" AND `r` = "'.$r.'"');
while( $pl = mysql_fetch_array($sp) ) {
$itm = mysql_fetch_array(mysql_query('SELECT * FROM `items_main` WHERE `id` = "'.$pl['item_id'].'" LIMIT 1'));
@@ -132,7 +132,7 @@ function MM_jumpMenu(targ,selObj,restore){ //v3.0
<br><br><br><br><input type="submit" name="del<?=$pl['iid']?>x" value="Уудалить из магазина (ПОЛНОЕ УДАЛЕНИЕ БЕЗ ВОССТАНОВЛЕНИЯ!!!)">
</td>
</tr>
</table><hr><?
</table><hr><?php
}
}
?>