*перекрестился*

This commit is contained in:
Ivor Barhansky 2023-07-12 23:18:15 +03:00
parent 6185c43e00
commit 1500eb9364

View File

@ -2409,24 +2409,23 @@ if ($u->info['clan_prava'] != 'glava') {
}
$i++;
}
$_POST['colorsp'] = preg_replace('/[^a-zа-яё0-9]/i', '', $_POST['colorsp']);
preg_match('/#([a-f\d]{6})/i', $_POST['colorsp'], $colorCode); // #dedede
$colorCode = isset($colorCode[0]) ? substr($colorCode[0], 1) : '000000';
// Тут
if ($tc['prava'][11] == 1) {
mysql_query(
'UPDATE `clan_tituls` SET `prioritet` = 1, `info` = "' . mysql_real_escape_string(
$tc['info']
) . '", `color` = "' . mysql_real_escape_string(
$_POST['colorsp']
) . '", `canals` = "' . $tc['canals'] . '", `prava` = "' . $tc['prava'] . '" WHERE `id` = "' . $tc['id'] . '" LIMIT 1'
) . '", `color` = "' . $colorCode . '", `canals` = "' . $tc['canals'] . '", `prava` = "' . $tc['prava'] . '" WHERE `id` = "' . $tc['id'] . '" LIMIT 1'
);
} else {
mysql_query(
'UPDATE `clan_tituls` SET `prioritet` = 0, `info` = "' . mysql_real_escape_string(
$tc['info']
) . '", `color` = "' . mysql_real_escape_string(
$_POST['colorsp']
) . '", `canals` = "' . $tc['canals'] . '", `prava` = "' . $tc['prava'] . '" WHERE `id` = "' . $tc['id'] . '" LIMIT 1'
) . '", `color` = "' . $colorCode . '", `canals` = "' . $tc['canals'] . '", `prava` = "' . $tc['prava'] . '" WHERE `id` = "' . $tc['id'] . '" LIMIT 1'
);
}
echo '<font color="#FF0000"><b>Титул был успешно сохранен</b></font><br>';
@ -2450,602 +2449,7 @@ if ($u->info['clan_prava'] != 'glava') {
echo '<font color="#FF0000"><b>Титул не найден</b></font><br>';
}
}
?>
<div id="clrttl" style="display:none">
<br/><br/>
<center><a onclick="ssclrttl()" href="javascript:void(0)">таблицей цветов - скрыть</a></center>
<br/><br/>
<table width="100%" cellpadding="10" cellspacing="5">
<tbody>
<tr>
<td>000000</td>
<td>000033</td>
<td>000066</td>
<td>000099</td>
<td>0000cc</td>
<td>0000ff</td>
</tr>
<tr>
<td bgcolor="#000000"></td>
<td bgcolor="#000033"></td>
<td bgcolor="#000066"></td>
<td bgcolor="#000099"></td>
<td bgcolor="#0000cc"></td>
<td bgcolor="#0000ff"></td>
</tr>
<tr>
<td>003300</td>
<td>003333</td>
<td>003366</td>
<td>003399</td>
<td>0033cc</td>
<td>0033ff</td>
</tr>
<tr>
<td bgcolor="#003300"></td>
<td bgcolor="#003333"></td>
<td bgcolor="#003366"></td>
<td bgcolor="#003399"></td>
<td bgcolor="#0033cc"></td>
<td bgcolor="#0033ff"></td>
</tr>
<tr>
<td>006600</td>
<td>006633</td>
<td>006666</td>
<td>006699</td>
<td>0066cc</td>
<td>0066ff</td>
</tr>
<tr>
<td bgcolor="#006600"></td>
<td bgcolor="#006633"></td>
<td bgcolor="#006666"></td>
<td bgcolor="#006699"></td>
<td bgcolor="#0066cc"></td>
<td bgcolor="#0066ff"></td>
</tr>
<tr>
<td>009900</td>
<td>009933</td>
<td>009966</td>
<td>009999</td>
<td>0099cc</td>
<td>0099ff</td>
</tr>
<tr>
<td bgcolor="#009900"></td>
<td bgcolor="#009933"></td>
<td bgcolor="#009966"></td>
<td bgcolor="#009999"></td>
<td bgcolor="#0099cc"></td>
<td bgcolor="#0099ff"></td>
</tr>
<tr>
<td>00cc00</td>
<td>00cc33</td>
<td>00cc66</td>
<td>00cc99</td>
<td>00cccc</td>
<td>00ccff</td>
</tr>
<tr>
<td bgcolor="#00cc00"></td>
<td bgcolor="#00cc33"></td>
<td bgcolor="#00cc66"></td>
<td bgcolor="#00cc99"></td>
<td bgcolor="#00cccc"></td>
<td bgcolor="#00ccff"></td>
</tr>
<tr>
<td>00ff00</td>
<td>00ff33</td>
<td>00ff66</td>
<td>00ff99</td>
<td>00ffcc</td>
<td>00ffff</td>
</tr>
<tr>
<td bgcolor="#00ff00"></td>
<td bgcolor="#00ff33"></td>
<td bgcolor="#00ff66"></td>
<td bgcolor="#00ff99"></td>
<td bgcolor="#00ffcc"></td>
<td bgcolor="#00ffff"></td>
</tr>
<tr>
<td>330000</td>
<td>330033</td>
<td>330066</td>
<td>330099</td>
<td>3300cc</td>
<td>3300ff</td>
</tr>
<tr>
<td bgcolor="#330000"></td>
<td bgcolor="#330033"></td>
<td bgcolor="#330066"></td>
<td bgcolor="#330099"></td>
<td bgcolor="#3300cc"></td>
<td bgcolor="#3300ff"></td>
</tr>
<tr>
<td>333300</td>
<td>333333</td>
<td>333366</td>
<td>333399</td>
<td>3333cc</td>
<td>3333ff</td>
</tr>
<tr>
<td bgcolor="#333300"></td>
<td bgcolor="#333333"></td>
<td bgcolor="#333366"></td>
<td bgcolor="#333399"></td>
<td bgcolor="#3333cc"></td>
<td bgcolor="#3333ff"></td>
</tr>
<tr>
<td>336600</td>
<td>336633</td>
<td>336666</td>
<td>336699</td>
<td>3366cc</td>
<td>3366ff</td>
</tr>
<tr>
<td bgcolor="#336600"></td>
<td bgcolor="#336633"></td>
<td bgcolor="#336666"></td>
<td bgcolor="#336699"></td>
<td bgcolor="#3366cc"></td>
<td bgcolor="#3366ff"></td>
</tr>
<tr>
<td>339900</td>
<td>339933</td>
<td>339966</td>
<td>339999</td>
<td>3399cc</td>
<td>3399ff</td>
</tr>
<tr>
<td bgcolor="#339900"></td>
<td bgcolor="#339933"></td>
<td bgcolor="#339966"></td>
<td bgcolor="#339999"></td>
<td bgcolor="#3399cc"></td>
<td bgcolor="#3399ff"></td>
</tr>
<tr>
<td>33cc00</td>
<td>33cc33</td>
<td>33cc66</td>
<td>33cc99</td>
<td>33cccc</td>
<td>33ccff</td>
</tr>
<tr>
<td bgcolor="#33cc00"></td>
<td bgcolor="#33cc33"></td>
<td bgcolor="#33cc66"></td>
<td bgcolor="#33cc99"></td>
<td bgcolor="#33cccc"></td>
<td bgcolor="#33ccff"></td>
</tr>
<tr>
<td>33ff00</td>
<td>33ff33</td>
<td>33ff66</td>
<td>33ff99</td>
<td>33ffcc</td>
<td>33ffff</td>
</tr>
<tr>
<td bgcolor="#33ff00"></td>
<td bgcolor="#33ff33"></td>
<td bgcolor="#33ff66"></td>
<td bgcolor="#33ff99"></td>
<td bgcolor="#33ffcc"></td>
<td bgcolor="#33ffff"></td>
</tr>
<tr>
<td>660000</td>
<td>660033</td>
<td>660066</td>
<td>660099</td>
<td>6600cc</td>
<td>6600ff</td>
</tr>
<tr>
<td bgcolor="#660000"></td>
<td bgcolor="#660033"></td>
<td bgcolor="#660066"></td>
<td bgcolor="#660099"></td>
<td bgcolor="#6600cc"></td>
<td bgcolor="#6600ff"></td>
</tr>
<tr>
<td>663300</td>
<td>663333</td>
<td>663366</td>
<td>663399</td>
<td>6633cc</td>
<td>6633ff</td>
</tr>
<tr>
<td bgcolor="#663300"></td>
<td bgcolor="#663333"></td>
<td bgcolor="#663366"></td>
<td bgcolor="#663399"></td>
<td bgcolor="#6633cc"></td>
<td bgcolor="#6633ff"></td>
</tr>
<tr>
<td>666600</td>
<td>666633</td>
<td>666666</td>
<td>666699</td>
<td>6666cc</td>
<td>6666ff</td>
</tr>
<tr>
<td bgcolor="#666600"></td>
<td bgcolor="#666633"></td>
<td bgcolor="#666666"></td>
<td bgcolor="#666699"></td>
<td bgcolor="#6666cc"></td>
<td bgcolor="#6666ff"></td>
</tr>
<tr>
<td>669900</td>
<td>669933</td>
<td>669966</td>
<td>669999</td>
<td>6699cc</td>
<td>6699ff</td>
</tr>
<tr>
<td bgcolor="#669900"></td>
<td bgcolor="#669933"></td>
<td bgcolor="#669966"></td>
<td bgcolor="#669999"></td>
<td bgcolor="#6699cc"></td>
<td bgcolor="#6699ff"></td>
</tr>
<tr>
<td>66cc00</td>
<td>66cc33</td>
<td>66cc66</td>
<td>66cc99</td>
<td>66cccc</td>
<td>66ccff</td>
</tr>
<tr>
<td bgcolor="#66cc00"></td>
<td bgcolor="#66cc33"></td>
<td bgcolor="#66cc66"></td>
<td bgcolor="#66cc99"></td>
<td bgcolor="#66cccc"></td>
<td bgcolor="#66ccff"></td>
</tr>
<tr>
<td>66ff00</td>
<td>66ff33</td>
<td>66ff66</td>
<td>66ff99</td>
<td>66ffcc</td>
<td>66ffff</td>
</tr>
<tr>
<td bgcolor="#66ff00"></td>
<td bgcolor="#66ff33"></td>
<td bgcolor="#66ff66"></td>
<td bgcolor="#66ff99"></td>
<td bgcolor="#66ffcc"></td>
<td bgcolor="#66ffff"></td>
</tr>
<tr>
<td>990000</td>
<td>990033</td>
<td>990066</td>
<td>990099</td>
<td>9900cc</td>
<td>9900ff</td>
</tr>
<tr>
<td bgcolor="#990000"></td>
<td bgcolor="#990033"></td>
<td bgcolor="#990066"></td>
<td bgcolor="#990099"></td>
<td bgcolor="#9900cc"></td>
<td bgcolor="#9900ff"></td>
</tr>
<tr>
<td>993300</td>
<td>993333</td>
<td>993366</td>
<td>993399</td>
<td>9933cc</td>
<td>9933ff</td>
</tr>
<tr>
<td bgcolor="#993300"></td>
<td bgcolor="#993333"></td>
<td bgcolor="#993366"></td>
<td bgcolor="#993399"></td>
<td bgcolor="#9933cc"></td>
<td bgcolor="#9933ff"></td>
</tr>
<tr>
<td>996600</td>
<td>996633</td>
<td>996666</td>
<td>996699</td>
<td>9966cc</td>
<td>9966ff</td>
</tr>
<tr>
<td bgcolor="#996600"></td>
<td bgcolor="#996633"></td>
<td bgcolor="#996666"></td>
<td bgcolor="#996699"></td>
<td bgcolor="#9966cc"></td>
<td bgcolor="#9966ff"></td>
</tr>
<tr>
<td>999900</td>
<td>999933</td>
<td>999966</td>
<td>999999</td>
<td>9999cc</td>
<td>9999ff</td>
</tr>
<tr>
<td bgcolor="#999900"></td>
<td bgcolor="#999933"></td>
<td bgcolor="#999966"></td>
<td bgcolor="#999999"></td>
<td bgcolor="#9999cc"></td>
<td bgcolor="#9999ff"></td>
</tr>
<tr>
<td>99cc00</td>
<td>99cc33</td>
<td>99cc66</td>
<td>99cc99</td>
<td>99cccc</td>
<td>99ccff</td>
</tr>
<tr>
<td bgcolor="#99cc00"></td>
<td bgcolor="#99cc33"></td>
<td bgcolor="#99cc66"></td>
<td bgcolor="#99cc99"></td>
<td bgcolor="#99cccc"></td>
<td bgcolor="#99ccff"></td>
</tr>
<tr>
<td>99ff00</td>
<td>99ff33</td>
<td>99ff66</td>
<td>99ff99</td>
<td>99ffcc</td>
<td>99ffff</td>
</tr>
<tr>
<td bgcolor="#99ff00"></td>
<td bgcolor="#99ff33"></td>
<td bgcolor="#99ff66"></td>
<td bgcolor="#99ff99"></td>
<td bgcolor="#99ffcc"></td>
<td bgcolor="#99ffff"></td>
</tr>
<tr>
<td>cc0000</td>
<td>cc0033</td>
<td>cc0066</td>
<td>cc0099</td>
<td>cc00cc</td>
<td>cc00ff</td>
</tr>
<tr>
<td bgcolor="#cc0000"></td>
<td bgcolor="#cc0033"></td>
<td bgcolor="#cc0066"></td>
<td bgcolor="#cc0099"></td>
<td bgcolor="#cc00cc"></td>
<td bgcolor="#cc00ff"></td>
</tr>
<tr>
<td>cc3300</td>
<td>cc3333</td>
<td>cc3366</td>
<td>cc3399</td>
<td>cc33cc</td>
<td>cc33ff</td>
</tr>
<tr>
<td bgcolor="#cc3300"></td>
<td bgcolor="#cc3333"></td>
<td bgcolor="#cc3366"></td>
<td bgcolor="#cc3399"></td>
<td bgcolor="#cc33cc"></td>
<td bgcolor="#cc33ff"></td>
</tr>
<tr>
<td>cc6600</td>
<td>cc6633</td>
<td>cc6666</td>
<td>cc6699</td>
<td>cc66cc</td>
<td>cc66ff</td>
</tr>
<tr>
<td bgcolor="#cc6600"></td>
<td bgcolor="#cc6633"></td>
<td bgcolor="#cc6666"></td>
<td bgcolor="#cc6699"></td>
<td bgcolor="#cc66cc"></td>
<td bgcolor="#cc66ff"></td>
</tr>
<tr>
<td>cc9900</td>
<td>cc9933</td>
<td>cc9966</td>
<td>cc9999</td>
<td>cc99cc</td>
<td>cc99ff</td>
</tr>
<tr>
<td bgcolor="#cc9900"></td>
<td bgcolor="#cc9933"></td>
<td bgcolor="#cc9966"></td>
<td bgcolor="#cc9999"></td>
<td bgcolor="#cc99cc"></td>
<td bgcolor="#cc99ff"></td>
</tr>
<tr>
<td>cccc00</td>
<td>cccc33</td>
<td>cccc66</td>
<td>cccc99</td>
<td>cccccc</td>
<td>ccccff</td>
</tr>
<tr>
<td bgcolor="#cccc00"></td>
<td bgcolor="#cccc33"></td>
<td bgcolor="#cccc66"></td>
<td bgcolor="#cccc99"></td>
<td bgcolor="#cccccc"></td>
<td bgcolor="#ccccff"></td>
</tr>
<tr>
<td>ccff00</td>
<td>ccff33</td>
<td>ccff66</td>
<td>ccff99</td>
<td>ccffcc</td>
<td>ccffff</td>
</tr>
<tr>
<td bgcolor="#ccff00"></td>
<td bgcolor="#ccff33"></td>
<td bgcolor="#ccff66"></td>
<td bgcolor="#ccff99"></td>
<td bgcolor="#ccffcc"></td>
<td bgcolor="#ccffff"></td>
</tr>
<tr>
<td>ff0000</td>
<td>ff0033</td>
<td>ff0066</td>
<td>ff0099</td>
<td>ff00cc</td>
<td>ff00ff</td>
</tr>
<tr>
<td bgcolor="#ff0000"></td>
<td bgcolor="#ff0033"></td>
<td bgcolor="#ff0066"></td>
<td bgcolor="#ff0099"></td>
<td bgcolor="#ff00cc"></td>
<td bgcolor="#ff00ff"></td>
</tr>
<tr>
<td>ff3300</td>
<td>ff3333</td>
<td>ff3366</td>
<td>ff3399</td>
<td>ff33cc</td>
<td>ff33ff</td>
</tr>
<tr>
<td bgcolor="#ff3300"></td>
<td bgcolor="#ff3333"></td>
<td bgcolor="#ff3366"></td>
<td bgcolor="#ff3399"></td>
<td bgcolor="#ff33cc"></td>
<td bgcolor="#ff33ff"></td>
</tr>
<tr>
<td>ff6600</td>
<td>ff6633</td>
<td>ff6666</td>
<td>ff6699</td>
<td>ff66cc</td>
<td>ff66ff</td>
</tr>
<tr>
<td bgcolor="#ff6600"></td>
<td bgcolor="#ff6633"></td>
<td bgcolor="#ff6666"></td>
<td bgcolor="#ff6699"></td>
<td bgcolor="#ff66cc"></td>
<td bgcolor="#ff66ff"></td>
</tr>
<tr>
<td>ff9900</td>
<td>ff9933</td>
<td>ff9966</td>
<td>ff9999</td>
<td>ff99cc</td>
<td>ff99ff</td>
</tr>
<tr>
<td bgcolor="#ff9900"></td>
<td bgcolor="#ff9933"></td>
<td bgcolor="#ff9966"></td>
<td bgcolor="#ff9999"></td>
<td bgcolor="#ff99cc"></td>
<td bgcolor="#ff99ff"></td>
</tr>
<tr>
<td>ffcc00</td>
<td>ffcc33</td>
<td>ffcc66</td>
<td>ffcc99</td>
<td>ffcccc</td>
<td>ffccff</td>
</tr>
<tr>
<td bgcolor="#ffcc00"></td>
<td bgcolor="#ffcc33"></td>
<td bgcolor="#ffcc66"></td>
<td bgcolor="#ffcc99"></td>
<td bgcolor="#ffcccc"></td>
<td bgcolor="#ffccff"></td>
</tr>
<tr>
<td>ffff00</td>
<td>ffff33</td>
<td>ffff66</td>
<td>ffff99</td>
<td>ffffcc</td>
<td>ffffff</td>
</tr>
<tr>
<td bgcolor="#ffff00"></td>
<td bgcolor="#ffff33"></td>
<td bgcolor="#ffff66"></td>
<td bgcolor="#ffff99"></td>
<td bgcolor="#ffffcc"></td>
<td bgcolor="#ffffff"></td>
</tr>
</tbody>
</table>
</div>
<script>
function ssclrttl() {
if ($('#clrttl').css('display') == 'none') {
$('#clrttl').css({'display': ''});
} else {
$('#clrttl').css({'display': 'none'});
}
}
</script>
<?php
$i = 0;
$sp = mysql_query(
'SELECT * FROM `clan_tituls` WHERE `clan` = "' . $res['id'] . '" AND `delete` = "0" LIMIT 25'
@ -3103,15 +2507,8 @@ if ($u->info['clan_prava'] != 'glava') {
}
?>
<br>
Картинка: *<br>
Цвет: &nbsp; &nbsp; &nbsp;
<div style="cursor:pointer;display:inline-block;width:20px;height:15px;background-color:#<?= $pl['color'] ?>">
&nbsp;
</div>
#<input name="colorsp" maxlength="6" type="text" value="<?= $pl['color'] ?>"/><br/>
<small>(вы можете воспользовать <a onclick="ssclrttl()" href="javascript:void(0)">таблицей
цветов - показать/скрыть</a>)</small><br/>
<br><br>
<label>Цвет: <input type="color" name="colorsp" value="#<?= $pl['color'] ?>"></label><br><br>
<input type="submit" value="Сохранить">
</form>
</div>