|
Server IP : 10.128.40.6 / Your IP : 216.73.216.233 Web Server : Apache System : Linux webd006.cluster128.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : logmcpe ( 111175) PHP Version : 7.3.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0705) : /home/logmcpe/www/MC/../MCPRO/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
include_once 'code/init.php';
print_header ('', '', ' topmargin="0" bottommargin="0"');
?>
<style type="text/css">
<!--
table.nuancier td {
height:10px;
width:10px;
border:1px solid #A2A2A2;
}
table.vert td {
height:5px;
width:5px;
}
table.gris td {
height:10px;
width:10px;
border:1px solid blue;
}
table {
border-collapse:collapse;
border-spacing:0;
margin:0;
padding:0;
}
-->
</style>
<script type="text/javascript" language="javascript">
<!--
window.send = function ()
{
opener.document.getElementById('<?=$_GET['elem']?>').value = document.getElementById('colorinput').value ;
close();
}
-->
</script>
<div align="center" style="margin:2px">Couleur : <input id="colorinput" value="<?=$_GET['color']?>"> <span style="height:20px;<?=!empty($_GET['color']) ? 'background-color:#'.$_GET['color'].';' : ''?>" id="color"> </span><span style="height:20px;<?=!empty($_GET['color']) ? 'background-color:#'.$_GET['color'].';' : ''?>"> </span></div>
<div align="center">
<table class="nuancier" onclick="send()">
<?php
$codes = array(0x00, 0x55, 0x99, 0xFF) ;
for ($r = 0 ; $r < count($codes) ; $r ++)
{
echo '<tr>' ;
for($b = 0 ; $b < count($codes) ; $b ++)
{
for ($v = 0 ; $v < count($codes) ; $v ++)
{
?>
<td onmouseover="document.getElementById('colorinput').value = this.bgColor.toUpperCase().replace(/#/, '') ; document.getElementById('color').style.backgroundColor = this.bgColor.toUpperCase() ;" bgcolor="<?=sprintf('#%02X%02X%02X', $codes[$r], $codes[$v], $codes[$b])?>"></td>
<?php
}
}
echo '</tr>' ;
}
?>
</table>
<table onclick="send()">
<?php
for ($j = 0, $r = 0x00 ; $r <= 0xFF ; $r += 0x11, $j++)
{
if ($j%4 == 0)
echo '<tr>' ;
?>
<td><table class="vert">
<?php
for($b = 0x00 ; $b <= 0xFF ; $b += 0x11)
{
echo '<tr>' ;
for ($v = 0x00 ; $v <= 0xFF ; $v += 0x11)
{
?>
<td onmouseover="document.getElementById('colorinput').value = this.bgColor.toUpperCase().replace(/#/, '') ; document.getElementById('color').style.backgroundColor = this.bgColor.toUpperCase() ;" bgcolor="<?=sprintf('#%02X%02X%02X', $r, $v, $b)?>"></td>
<?php
}
echo '</tr>' ;
}
echo '</table></td>' ;
}
?>
</table>
<table class="gris" onclick="send()">
<tr>
<?php
for($g = 0x00 ; $g <= 0xFF ; $g += 0x09)
{
?>
<td onmouseover="document.getElementById('colorinput').value = this.bgColor.toUpperCase().replace(/#/, '') ; document.getElementById('color').style.backgroundColor = this.bgColor.toUpperCase() ;" bgcolor="<?=sprintf('#%1$02X%1$02X%1$02X', $g)?>"></td>
<?php
}
?>
</tr>
</table>
</div>
</body>
</html>
