Файл: editor/table_color.php
Строк: 92
<?php
include("../leng.inc.php");
include ("../$yaz");
?><html>
<head>
<title><?=$leng_table_color[0];?></title>
<META http-equiv="Content-Type" content="text/html; charset=windows-1251">
<Style>
A:Link{ Color: #000000; Text-decoration: underline}
A:Visited{ Color: #000000; Text-decoration: underline}
A:Hover{ Color: #000000; Text-decoration: none}
td, body {font-family: verdana, arial, helvetica; font-size:11px;}
</Style>
<!-- HEAD START HERE -->
<!-- HEAD END HERE -->
</head>
<body bgcolor="#EDEDED" text="#000000" link="#000000" topmargin="0" leftmargin="0">
<center>
<!-- BODY START HERE -->
<br>
<script LANGUAGE="JavaScript"><!--
var hex = new Array(6)
hex[0] = "FF"
hex[1] = "CC"
hex[2] = "99"
hex[3] = "66"
hex[4] = "33"
hex[5] = "00"
function otmena() {
close();
}
function staf() {
window.opener.document.getElementById('<?=$id_win;?>').value = document.getElementById('vstav').value;
close();
}
function display(triplet) {
document.bgColor = '#' + triplet
document.getElementById('vstav').value = '#' + triplet;
}
function drawCell(red, green, blue) {
document.write('<TD onClick="javascript:display('' + (red + green + blue) + '')" BGCOLOR="#' + red + green + blue + '" HEIGHT=20 WIDTH=20>')
document.write('</TD>')
}
function drawRow(red, blue) {
document.write('<TR>')
for (var i = 0; i < 6; ++i) {
drawCell(red, hex[i], blue)
}
document.write('</TR>')
}
function drawTable(blue) {
document.write('<TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0>')
for (var i = 0; i < 6; ++i) {
drawRow(hex[i], blue)
}
document.write('</TABLE>')
}
function drawCube() {
document.write('<TABLE CELLPADDING=5 CELLSPACING=0 BORDER=1><TR>')
for (var i = 0; i < 6; ++i) {
if (i==0 || i==3) document.write('<TR>')
document.write('<TD BGCOLOR="#FFFFFF">')
drawTable(hex[i])
document.write('</TD>')
if (i==2 || i==5) document.write('</TR>')
}
document.write('</TR></TABLE>')
}
drawCube()
// --></script>
<!-- BODY END HERE -->
<br>
<form name="" action="" method="post">
<table><tr><td align=center bgcolor=#EDEDED>
<?=$leng_table_color[1];?></td></tr>
<tr><td align=center><br>
<table border=0><tr><td bgcolor=#EDEDED>
<?=$leng_table_color[3];?></td><td><input type=text id=vstav></td></tr>
<tr><td> </td><td></td></tr>
<tr><td align=center><input type=button value="<?=$leng_table_color[4];?>" onClick="otmena();"></td></td><td align=center>
<input type=submit value="<?=$leng_table_color[2];?>" onClick="staf();"></td></tr></table>
</td></tr>
</table>
</body>
</html>