<?php

?>

<table id=mono  border=0 style="display:none;width:100%;height:100%;z-index:3;position:absolute;top:0px;left:0px;">
<tr ><td width=30%>&nbsp;</td><td width=30%  valign=center align=center>
<table border=0 width=400 >
<tr style="background:grey;color:yellow">
<td  height=30px ><center><b >ATTENTION !</b></center><br>
<ol>
<li>An attempt to access a table on the server was rejected!
<li>The table has been opened by the ADMINISTRATOR to carry out work on its reorganization!
<li>The table will be available after the completion of the work on its reorganization!
<li>For information, contact the ADMINISTRATOR!
<li>If the administrator has finished, click  &nbsp;<button style="background:silver;color:yellow" onclick="window.top.close();">close</button>.
<li>Reopen the table!
</ol>
</td></tr>
</table>
</td><td width=30%>&nbsp;</td></tr></table>







<table id=zii  border=0 style="display:none;width:100%;height:100%;z-index:3;position:absolute;top:20px;left:0px;">
<tr>
<td width=100%  valign=top align=center>
<table border=0 width=100%>
<tr><td ><input type=text  id=textarea_for_red name="htmgi" style="width:100%;background:#fff8dc;color:red"  value="" >
</td></tr>
<tr style="background:silver;">
<td ><b>EDITING: &nbsp;&nbsp;&nbsp;</b>
<b style="background:white" onclick=buttons_for_red(1)  title="Remember editing">REPLACE</b>
&nbsp;&nbsp;&nbsp;<b style="background:white" onclick="h.style.visibility='hidden';zii.style.display='none';" title="Close the editing window without saving">CANCEL</b>&nbsp;&nbsp;&nbsp;
There are NO tags in the text, except &lt;br&gt;, "on a new line" and a space.

<tr style="background:yellow"><td><small></small> 
</td></tr>  
</table> </td></tr></table>

<!---   ---->
<table id=zii2 border=0 height=300 width=100%  style="position:absolute;top:0;left:0;background:transparenr;display:none;z-index:3">
<tr><td height=80%>&nbsp;</td></tr>
<tr><td align=center>
<table  border=1  style="background:white" >
<tbody>
<tr><td style="background:grey;color:white" align=center>
<button style="background:silver;width:30" onclick="r_b('1')" title="To convert to capital letters, highlight the text and click me"><b>&nbsp;A&nbsp;</b></button>&nbsp;
<button style="background:silver;width:30" onclick="r_b('2')" title="To convert to uppercase, select the text and click me"><b>&nbsp;a&nbsp;</b></button>&nbsp;
<button style="background:silver;width:60" onclick="r_b('3')" title="To place in quotes, highlight the text and click me"><b>&nbsp;«A»&nbsp;</b></button>&nbsp;
<button style="background:silver;width:30" onclick="r_b('.')" title="Click me to insert a point after selection"><b>.</b></button>&nbsp;
<button style="background:silver;width:30" onclick="r_b(',')" title="To insert after selection, comma click me"><b>,</b></button>&nbsp;
<button style="background:silver;width:30" onclick="r_b(';')" title="To insert after selection, semicolons, click me"><b>;</b></button>&nbsp;
<button style="background:silver;width:30" onclick="r_b(':')" title="To insert after selection, colons click me"><b>:</b></button>&nbsp;
<button style="background:silver;width:60" onclick="r_b('61')" title="To insert after selection, current date and time, click me"><b>date</b></button>&nbsp;
<b>EDIT, VIEW</b>&nbsp;&nbsp;&nbsp;&nbsp;
<b id=redp style="background:yellow;color:black"> </b>
</td></tr>
<tr><td>
<!---   ---->
<textarea  id=zii2t    rows=24 cols=100 value="" >12345</textarea><br>
</td></tr>
<tr><td style="background:grey">
<center>
<button id=bwr onclick=buttons_for_red(2)  title="Remember editing" style="background:silver"><b>REPLACE</b></button>
&#160;&#160;&#160;<button onclick="document.getElementById('zii2').style.display='none'"  style="background:silver" 
title="Close the editing window without saving"><b >CANCEL</b></button>
</center>
</td></tr>
</tbody></table>
</td></tr>
<tr><td height=30%>&nbsp;</td></tr>
</table>
<table id=pas title="After entering the correct password, further saves are performed without entering a password, until the table is closed.
If you leave the workplace, close the table or close the site!" 
  border=0 style="display:none;width:100%;height:100%;z-index:3;position:absolute;top:0px;left:0px;">
<tr ><td width=30%>&nbsp;</td><td width=30%  valign=center align=center>
<table border=1 bordercolor=brown width=400>
<tr style="background:silver;color:white">
<td  height=30px align=center ><b style="color:yellow"></b>&#160;<b style="color:brown">To save the changes, enter the PASSWORD:</b>
<br>
<input id=pwv type="password" value=""> 
&#160;&#160;
<button id=ko2 onclick="ads2(this,'+')"   onclick=""  style="width:85" title="Set, change the password to save changes to the data in the table.">save</button>
&#160;&#160;
<button id=ko4 onclick=pin()     title="Save password.">save</button>
&#160;&#160;
<button id=ko3 onclick="ads2(this,'-')"  onclick=""   title="Cancel the password for saving changes to the data in the table.">cancel</button>
&#160;&#160;
<button onclick="document.getElementById('pas').style.display='none';document.getElementById('h').style.display='none'" style="width:30" title="Refuse password changes.">X</button>

</td></tr></table> </td><td width=30%>&nbsp;</td></tr></table>
<table id=list   border=0 style="display:none;width:100%;height:95%;z-index:4;position:absolute;top:30px;left:0px;">
<tr>
<td width=30%>&nbsp;</td><td width=50%  valign=top align=center>
<table border=1><tr style="background:#006400;color:white">
<td  height=30px align=center><nobr><b style="color:yellow"></b>&#160;<b style="color:yellow">SUBSTITUTION</b>&nbsp;
<button id=pods1 onclick=flistv(1) style="width:60;background:white"  
title="Remember the new value of the combo box - click me or re-click the cell.">Replace</button>&#160;
<button  id=pods2 onclick=flistv(2) style="width:75;background:white" 
title="Include the checked boxes in the selection list.">In selection</button>
<button  id=pods3  onclick=sort2("list*",4) style="background:white"  
title="Show all columns.">&nbsp;V&nbsp;</button>&#160;
<button id=pods4 onclick=sort2("list*",5) style="background:white"  
title="Hide all columns with *.">&nbsp;H&nbsp;</button>&#160;
<?php
if (strpos($tabl,"_")==0)
{echo '&#160;<button id=ko1 onclick=flistv(3) style="width:40;background:white" title="Edit combo box table.">Edit</button>';
}
?>

&nbsp;<big style="display:none;color:white">Sort</big>&nbsp;<img id=ksort2 onclick=izs(this) src='../../../../d~e~f/yes.gif' title="Sort ascending install me.
Sort Descending Drop me.
Click the title text in the header to sort it." style=display:none>

&nbsp;<button id=pods5 onclick=flistv2(4) style="background:white"  
title="Save the entire list or selected lines of the list in the input buffer.">&nbsp;Bs&nbsp;</button>&#160;
&nbsp;<img id=kvibp onclick=izs(this) src='../../../../d~e~f/no.gif' 
title="Click to select lines for the buffer. Set me and click the desired lines.">
&nbsp;<button title="To the begining." onclick=tnd2(0) style="background:white">&nbsp;&#8593;&nbsp;</button>&nbsp;&nbsp;
<button style="background:white" onclick=tnd2(9999999) title="To the end.">&nbsp;&#8595;&nbsp;</button>
&#160;<button form="" id=pods6 style="background:white;width:30" onclick=stopr()
title="Open in a separate window for printing.">P</button>
&#160;<button id=pods6 style="background:white" onclick=flistv(4) 
title="Close the editing window without saving.">&#160;X&#160;</button>
</nobr>
<center id=listsi onclick=flistv(1) title="Replace" style="background:silver;color:black"></center>
<center id=lists title="Erase context" onclick=document.getElementById('vbs2').value=""  
style="background:yellow;color:red">.</center>
<style>
.sta {background:white;color:black;text-Decoration:none}
.sta1 {background:#e0ffff;color:black;text-Decoration:none}
.sta2 {color:black;text-Decoration:none}
.sth {width:17;background:white}
.sth1 {width:17;background:silver}
.sth2 {width:17;background:#e0ffff}
</style>



<div width=50%  style="POSITION: relative;HEIGHT: 80px" onclick=vss(this,event) 
title="Click the letters to quickly enter the search context." >

<TABLE border=0>
<thead>
<TR id=subst_r1 style=display:none>
</tr>
<tr id=subst_L1>
<TH class="sth"><A class="sta" href=#>0</a></TH>
<TH class="sth"><A class="sta" href=#>1</a></TH>
<TH class="sth"><A class="sta" href=#>2</a></TH>
<TH class="sth"><A class="sta" href=#>3</a></TH>
<TH class="sth"><A class="sta" href=#>4</a></TH>
<TH class="sth"><A class="sta" href=#>5</a></TH>
<TH class="sth"><A class="sta" href=#>6</a></TH>
<TH class="sth"><A class="sta" href=#>7</a></TH>
<TH class="sth"><A class="sta" href=#>8</a></TH>
<TH class="sth"><A class="sta" href=#>9</a></TH>
<TH class="sth1"><A class="sta2" href=#>A</a></TH>
<TH class="sth1"><A class="sta2" href=#>B</a></TH>
<TH class="sth1"><A class="sta2" href=#>C</a></TH>
<TH class="sth1"><A class="sta2" href=#>D</a></TH>
<TH class="sth1"><A class="sta2" href=#>E</a></TH>
<TH class="sth1"><A class="sta2" href=#>F</a></TH>
<TH class="sth1"><A class="sta2" href=#>G</a></TH>
<TH class="sth1"><A class="sta2" href=#>H</a></TH>
<TH class="sth1"><A class="sta2" href=#>I</a></TH>
<TH class="sth1"><A class="sta2" href=#>J</a></TH>
<TH class="sth1"><A class="sta2" href=#>K</a></TH>
<TH class="sth1"><A class="sta2" href=#>L</a></TH>

</TR>
<TR id=subst_L2>
<TH class="sth1"><A class="sta2" href=#>M</a></TH>
<TH class="sth1"><A class="sta2" href=#>N</a></TH>
<TH class="sth1"><A class="sta2" href=#>O</a></TH>
<TH class="sth1"><A class="sta2" href=#>P</a></TH>
<TH class="sth1"><A class="sta2" href=#>Q</a></TH>
<TH class="sth1"><A class="sta2" href=#>R</a></TH>
<TH class="sth1"><A class="sta2" href=#>S</a></TH>
<TH class="sth1"><A class="sta2" href=#>T</a></TH>
<TH class="sth1"><A class="sta2" href=#>U</a></TH>
<TH class="sth1"><A class="sta2" href=#>V</a></TH>
<TH class="sth1"><A class="sta2" href=#>W</a></TH>
<TH class="sth1"><A class="sta2" href=#>X</a></TH>
<TH class="sth1"><A class="sta2" href=#>Y</a></TH>
<TH class="sth1"><A class="sta2" href=#>Z</a></TH>
<TH class="sth1"><A class="sta2" href=#>-</a></TH>
<TH class="sth1"><A class="sta2" href=#>.</a></TH>
<TH class="sth1"><A class="sta2" href=#>_</a></TH>
<th></th><th></th><th></th><th></th><th></th><th></th>
</tr>

<tr id=subst_r2 style=display:none>
</tr>
<tr>
<TH colspan=23 align=center><b style=color:white>To find</b>&nbsp;&nbsp;
<textarea id=vbs2 
title="Enter the search context using the buttons and/or directly." style="WIDTH: 250px; BACKGROUND: white; HEIGHT: 20px"></textarea>&nbsp;
&nbsp;&nbsp;
<a style="width:30;background:yellow;color:black;text-Decoration:none" href=#  id=subst onclick=in_context("vbs2") title="Place a value from a cell in the search field." style=width:30><b>In</b></a>
&nbsp;&nbsp;
<A  id=poi3 title="Search, select the search column by clicking on its heading, enter the context and click me.
The search is performed by comparing the context and the beginning of the text in the selected column." 
onclick=vss2(this)  style="width:30;background:yellow;color:black;text-Decoration:none" href=#>&nbsp;?&nbsp;</a>
&nbsp;&nbsp;&nbsp;
<A title="Erase search context." 
onclick=document.getElementById('vbs2').value="" style="width:30;background:yellow;color:black;text-Decoration:none" href=#>&nbsp;X&nbsp;</a>
</TH>
</thead>
</TABLE>
</div>
</td></tr><tr><td id=listdiv >
<?php
//*********************************************************************************************************
// 
//*********************************************************************************************************
for ($ti = 0; $ti <= count($mmtip)-1; $ti++)           // 
{if ($mmtip[$ti]=="L")          // 
{
if ($mpod==2	or $mpod==1)
{$imspis=getcwd ( )."/".$_2s."/1-".$ti.".txt";         //
}
else
{$imspis=getcwd ( )."/".$_3s."/1-".$ti.".txt";         //
}
if  (file_exists($imspis))                             //
{if ($mob==0)
{echo '<div onclick=spc(this,event)  id=list'.($ti).' style="height:270;width:100%;OVERFLOW: scroll;background:#ffefd5;display:none">';}
else
{echo '<div onclick=spc(this,event) id=list'.($ti).' style="width:100%;background:#ffefd5;display:none">';}
echo '<table border=1 width=100%>';
$lsp = file($imspis); 	                              // 
$qtip=explode("```",$lsp[0]);                         // 
$qtip[0]="i";                                         //
foreach ($lsp as $lspi => $lsps)
{if ($lspi>2)
{if ($lspi==3)
{$tt5=explode("```",$lsps);
$mtt5="<tr id=zlist".($ti)." style=background:silver>";
foreach ($tt5 as $ti5 => $tin5)
{if (strstr($tin5, "/"))                             // 
{list($zg1, $zg2) = explode("/",$tin5);              // 
}
else                                                // 
{$zg1=$tin5;}
if (strpos(" ".$tt5[$ti5],"*")>0)   
{$mtt5=$mtt5."<td style=display:none title=".$qtip[$ti5]."><b title=".$ti5.">".$zg1."</b></td>";
}
else
{$mtt5=$mtt5."<td title=".$qtip[$ti5]."><b title=".$ti5.">".$zg1."</b></td>";
}}
$mtt5=$mtt5.'<td title=t><b title='.($ti5+1).'>selection</b></td></tr>';
echo $mtt5;
}
else
{$tt55=explode("```",$lsps);
$mtt55='<tr>';
foreach ($tt55 as $ti55 => $tin55)
{if (strpos(" ".$tt5[$ti55],"*")>0)   
{$mtt55=$mtt55."<td style=display:none>".$tin55."</td>";
}
else
{$mtt55=$mtt55."<td>".$tin55."</td>";
}}
$mtt55=$mtt55.'<td><img src=../../../../d~e~f/no.gif onclick=cb1(this,1)></td></tr>';
echo $mtt55;
}}}
echo '</table>';
echo '</div>';
}
else
{$os=getcwd ( ).$imspis;
}}}
?>
</td></tr>
<tr><td colspan=4 align=center style="background:#006400;color:white"><small>Always: key - 1 column; field value is 2 columns.
Sorting: Select the sorting checkbox and click the column header text in the header. Click the arrows to go.
Click "V" to show hidden columns (at the end of the column name *), to hide "H".</small>
 </td></tr>
</table> </td><td width=30%></td></tr>
</table>

<table id=lis  border=0 style="display:none;width:100%;height:9%;z-index:3;position:absolute;top:30px;left:0px;">
<tr>
<td width=30%>&nbsp;</td>
<td width=50%  valign=top align=center>
<table border=1><tr style="background:#008080;color:white">
<td   height=30px valign=top align=center><nobr><b style="color:yellow"></b>&#160;<b style="color:yellow">VALUES</b>&nbsp;&nbsp;&nbsp;&nbsp;
<button  onclick=flistv2(1) style="width:60;background:white"  title="Remember the newly selected value in the lookup in the table — click me or the cell again.">Replace</button>&#160;
<button id=add2 onclick=flistv2(2) style="width:35;background:white"  title="Add the selected field value in the lookup to the text box in the table.">Add</button>&#160;
<b style="color:yellow">Add</b> <img id=dob3 title="When you select add cell values." src=../../../../d~e~f/no.gif onclick=cb2(this,1)>&#160;
<button  onclick=sort2("lis-*-",44) style="background:white"  title="Show all columns.">&nbsp;V&nbsp;</button>&#160;
<button  onclick=sort2("lis-*-",54) style="background:white"  title="Hide all columns with *.">&nbsp;H&nbsp;</button>&#160;
<button  onclick=Bs(0) style="background:white"  title="Memorize the entire list of the clicked column in the input buffer.">&nbsp;Bs&nbsp;</button>&#160;
&nbsp;<img id=kvibz onclick=izs(this) src='../../../../d~e~f/no.gif' title="Click to select lines for the buffer. Set me and click the desired lines.">
&nbsp;<big style="color:white">Sort</big>&nbsp;<img id=ksort onclick=izs(this) src='../../../../d~e~f/yes.gif' 
title="Sort ascending install me.
Sort Descending Drop me.
Click the title text in the header to sort it.">
&nbsp;&nbsp;<button onclick='clea()' style="z-index:" title="Delete data from the selected cell." style="background:white"><b>XX</b></button>
&nbsp;&nbsp;&nbsp;<button title="To begin" onclick=tnd(0) style="background:white">&nbsp;&#8593;&nbsp;</button>&nbsp;&nbsp;
<button style="background:white" onclick=tnd(9999999) title="To end">&nbsp;&#8595;&nbsp;</button>
&#160;<button style="background:white" onclick=document.getElementById('lis').style.display='none' title="Close the editing window without saving">&#160;X&#160;</button>
</nobr>
<center id=lissi title="Replace"  onclick=flistv2(1) style="background:silver;color:black">
 </center>
<center id=liss title="Erase context." onclick=document.getElementById('vbs').value=""  style="background:yellow;color:red">.</center>
<div width=50%  style="POSITION: relative;HEIGHT: 70px;background:#008080;" onclick=vss(this,event) title="Click the letters to quickly enter the search context." >
<TABLE border=0>
<TR id=value_r1 style=display:none>
</tr>
<tr id=value_L1>
<TH class="sth"><A class="sta" href=#>0</a></TH>
<TH class="sth"><A class="sta" href=#>1</a></TH>
<TH class="sth"><A class="sta" href=#>2</a></TH>
<TH class="sth"><A class="sta" href=#>3</a></TH>
<TH class="sth"><A class="sta" href=#>4</a></TH>
<TH class="sth"><A class="sta" href=#>5</a></TH>
<TH class="sth"><A class="sta" href=#>6</a></TH>
<TH class="sth"><A class="sta" href=#>7</a></TH>
<TH class="sth"><A class="sta" href=#>8</a></TH>
<TH class="sth"><A class="sta" href=#>9</a></TH>
<TH class="sth1"><A class="sta2" href=#>A</a></TH>
<TH class="sth1"><A class="sta2" href=#>B</a></TH>
<TH class="sth1"><A class="sta2" href=#>C</a></TH>
<TH class="sth1"><A class="sta2" href=#>D</a></TH>
<TH class="sth1"><A class="sta2" href=#>E</a></TH>
<TH class="sth1"><A class="sta2" href=#>F</a></TH>
<TH class="sth1"><A class="sta2" href=#>G</a></TH>
<TH class="sth1"><A class="sta2" href=#>H</a></TH>
<TH class="sth1"><A class="sta2" href=#>I</a></TH>
<TH class="sth1"><A class="sta2" href=#>J</a></TH>
<TH class="sth1"><A class="sta2" href=#>K</a></TH>
<TH class="sth1"><A class="sta2" href=#>L</a></TH>

</TR>
<TR id=value_L2 >
<TH class="sth1"><A class="sta2" href=#>M</a></TH>
<TH class="sth1"><A class="sta2" href=#>N</a></TH>
<TH class="sth1"><A class="sta2" href=#>O</a></TH>
<TH class="sth1"><A class="sta2" href=#>P</a></TH>
<TH class="sth1"><A class="sta2" href=#>Q</a></TH>
<TH class="sth1"><A class="sta2" href=#>R</a></TH>
<TH class="sth1"><A class="sta2" href=#>S</a></TH>
<TH class="sth1"><A class="sta2" href=#>T</a></TH>
<TH class="sth1"><A class="sta2" href=#>U</a></TH>
<TH class="sth1"><A class="sta2" href=#>V</a></TH>
<TH class="sth1"><A class="sta2" href=#>W</a></TH>
<TH class="sth1"><A class="sta2" href=#>X</a></TH>
<TH class="sth1"><A class="sta2" href=#>Y</a></TH>
<TH class="sth1"><A class="sta2" href=#>Z</a></TH>
<TH class="sth1"><A class="sta2" href=#>-</a></TH>
<TH class="sth1"><A class="sta2" href=#>.</a></TH>
<TH class="sth1"><A class="sta2" href=#>_</a></TH>
<th></th><th></th><th></th><th></th><th></th><th></th>
</tr>

<tr id=value_r2 style=display:none>
</tr>
<tr>
<TH colspan=23 align=center><b style=color:white>To find</b>&nbsp;&nbsp;
<textarea id=vbs 
title="Enter the search context using the buttons and/or directly." style="WIDTH: 250px; BACKGROUND: white; HEIGHT: 20px"></textarea>
&nbsp;&nbsp;
<a style="width:30;background:yellow;color:black;text-Decoration:none" href=#  id=subst onclick=in_context("vbs") title="Place a value from a cell in the search field." style=width:30><b>In</b></a>
&nbsp;&nbsp;
<A  id=poi title="Search." 
onclick=vss2(this)  style="width:30;background:yellow;color:black;text-Decoration:none" href=#>&nbsp;?&nbsp;</a>
&nbsp;&nbsp;
<A title="Erase search context." 
onclick=document.getElementById('vbs').value="" style="width:30;background:yellow;color:black;text-Decoration:none" href=#>&nbsp;X&nbsp;</a>

</TH>
</TABLE>
</div>
<center id=zvs style="display:none"></center>
</td></tr><tr><td id=lisdiv  style=background:white >
<?php
//*********************************************************************************************************
//
//*********************************************************************************************************
//$l11=$properties[4];
$tt=explode("```",str_replace("\r\n","",$properties[4]));
$tt2=explode("```",str_replace("\r\n","",$properties[4]));  //
$mid="-";                                                  // 
for ($i = 0; $i <= count($tt2)-1; $i++)                    // 
{if ($tt2[$i]!="")                                         // 
{$mid=$mid.$i."-";                                         // 
for ($ii = $i+1; $ii <= count($tt2)-1; $ii++)              // 
{if ($tt2[$i]==$tt2[$ii])                                  // 
{$mid=$mid.$ii."-";                                        // 
$tt2[$ii]="";                                              // 
}}
$tt2[$i]=$mid;                                             // 
}
$mid="-";                                                  // 
}
// 
for ($i = 0; $i <= count($tt2)-1; $i++)                   //
{if ($tt2[$i]!="")
{$imspis=$abs1.$tt[$i];                                   //
if  (file_exists($imspis))                                //
{if ($mob==0)
{echo '<div onclick=spc2(this,event) id=lis'.$tt2[$i].' style="height:240;width:100%;OVERFLOW: scroll;background:#e0ffff;">'."\r\n";}
else
{echo '<div onclick=spc2(this,event)  id=lis'.$tt2[$i].' style="width:100%;background:#e0ffff;display:none">'."\r\n";}
$pul=str_replace("1.txt","",$tt[$i]);
$s =scandir($abs1.$pul);	                       // 
foreach ($s as $val) 			         
{if ($val != "." && $val != ".." && strstr($val,".htm"))           //
{$pul=rtr(str_replace(".htm","",$val));
$pul=str_replace("_"," ",$pul);
echo "<center style='background:silver;color:white'><big>".$pul."</big></center>";
}}
$imspis2=str_replace("1.txt","1s/0.txt",$imspis);        //
if  (file_exists($imspis2))                              //
{$ftt2 = file($imspis2); 	                             //
$tt22=explode("```",str_replace("\r\n","",$ftt2[0]));    //
$tt33=explode("```",str_replace("\r\n","",$ftt2[3]));    //
} 
echo '<table border=1 width=100%>'."\r\n";
echo '<tr id=zlis'.$tt2[$i].' style=background:silver;color:white>'."\r\n";
for ($i2 = 0; $i2 <= count($tt33)-1; $i2++)   
{list($zg1, $zg2) = explode("/",$tt33[$i2]);
if (!strstr($tt33[$i2], "*"))
{echo '<td title='.$tt22[$i2].'><b title='.$i2.'>'.$zg1."</b></td>"."\r\n";}
else
{echo '<td style="display:none" title='.$tt22[$i2].'><b title='.$i2.'>'.$zg1."</b></td>"."\r\n";}
}
echo '</tr>'."\r\n";
$lsp = file($imspis); 	                                 //
foreach ($lsp as $lspi => $lsps)
{$mlsps=explode("```",str_replace("\r\n","",$lsps));
echo '<tr>'."\r\n";
for ($i2 = 0; $i2 <= count($mlsps)-1; $i2++)   
{if (!strstr($tt33[$i2], "*"))
{echo '<td title='.$i2.'>'.$mlsps[$i2].'</td>'."\r\n";}
else
{echo '<td style="display:none" title='.$i2.'>'.$mlsps[$i2].'</td>'."\r\n";}
}
echo '</tr>';
}
echo '</table>'."\r\n";
echo '</div>';
}
else
{}
}}
?>
</td></tr>
<tr><td colspan=4  style="background:#008080;color:white"><small>To select a value, click a cell, to select a row, click
the selected row to replace "Replace" or click the cell again to add "Add".&nbsp;&nbsp;
To sort, select the sorting type checkbox and click the column header text in the header.&nbsp;Click the arrows to go.
Click "V" to show hidden columns (at the end of the column name *), to hide "H".</small>
</td></tr>
</table> </td><td width=30%></td></tr>
</table>
<table id=ref  border=0 style="display:none;width:100%;height:95%;z-index:3;position:absolute;top:30px;left:0px;">
<tr >
<td width=20%>&nbsp;</td><td width=60%  valign=top align=center>
<table border=1><tr style="background:#4682b4;color:white">
<td  height=30px align=center><nobr><b style="color:yellow"></b>&#160;<b style="color:white">LINKS</b>&nbsp;&nbsp;
<button  onclick=refrep(1) style="width:60;background:white"  title="Remember the new value of the combo box - click me or re-click the cell.">Replace</button>&#160;
&nbsp;<big style="color:white">Sort</big>&nbsp;<img id=ksort3 onclick=izs(this) src='../../../../d~e~f/yes.gif' title="Sort ascending install me.
Sort Descending Drop me.
Click the title text in the header to sort it.">
&nbsp;<button   onclick=refrep(2) style="background:white"  title="Remember all links or only selected links in the input buffer.">&nbsp;Bs&nbsp;</button>&#160;
&nbsp;<img id=kvib onclick=izs(this) src='../../../../d~e~f/no.gif' title="Click to select lines for the buffer. Set me and click the desired lines.">
&nbsp;&nbsp;<button onclick='clea()' style="z-index:" title="Delete data from the selected cell." style="background:white"><b>XX</b></button>
&nbsp;&nbsp;<button title="To begin" onclick=document.getElementById('ref1').scrollTop=0 style="background:white">&nbsp;&#8593;&nbsp;</button>&nbsp;&nbsp;
<button style="background:white" onclick=document.getElementById('ref1').scrollTop=999999 title="To end">&nbsp;&#8595;&nbsp;</button>
&#160;<button style="width:30;background:white" onclick=refrep(0) title="Close the editing window without saving.">X</button>
Column:
</nobr>
<center id=refsi onclick=refrep(1) title="Replace"   style="background:silver;color:black"></center>
<center id=refsii onclick=refrep(1) title="there is"   style="background:#e0ffff;color:black"></center>
<center id=refs  title="Erase context." onclick=document.getElementById('vbs3').value=""  style="background:yellow;color:red">.</center>
<div width=80%  style="POSITION: relative;HEIGHT: 70px" onclick=vss(this,event) title="Click the letters to quickly enter the search context." >

<TABLE border=0>
<TR id=links_r1 style=display:none>
</tr>
<tr id=links_L1 >
<TH class="sth"><A class="sta" href=#>0</a></TH>
<TH class="sth"><A class="sta" href=#>1</a></TH>
<TH class="sth"><A class="sta" href=#>2</a></TH>
<TH class="sth"><A class="sta" href=#>3</a></TH>
<TH class="sth"><A class="sta" href=#>4</a></TH>
<TH class="sth"><A class="sta" href=#>5</a></TH>
<TH class="sth"><A class="sta" href=#>6</a></TH>
<TH class="sth"><A class="sta" href=#>7</a></TH>
<TH class="sth"><A class="sta" href=#>8</a></TH>
<TH class="sth"><A class="sta" href=#>9</a></TH>
<TH class="sth1"><A class="sta2" href=#>A</a></TH>
<TH class="sth1"><A class="sta2" href=#>B</a></TH>
<TH class="sth1"><A class="sta2" href=#>C</a></TH>
<TH class="sth1"><A class="sta2" href=#>D</a></TH>
<TH class="sth1"><A class="sta2" href=#>E</a></TH>
<TH class="sth1"><A class="sta2" href=#>F</a></TH>
<TH class="sth1"><A class="sta2" href=#>G</a></TH>
<TH class="sth1"><A class="sta2" href=#>H</a></TH>
<TH class="sth1"><A class="sta2" href=#>I</a></TH>
<TH class="sth1"><A class="sta2" href=#>J</a></TH>
<TH class="sth1"><A class="sta2" href=#>K</a></TH>
<TH class="sth1"><A class="sta2" href=#>L</a></TH>

</TR>
<TR id=links_L2 >
<TH class="sth1"><A class="sta2" href=#>M</a></TH>
<TH class="sth1"><A class="sta2" href=#>N</a></TH>
<TH class="sth1"><A class="sta2" href=#>O</a></TH>
<TH class="sth1"><A class="sta2" href=#>P</a></TH>
<TH class="sth1"><A class="sta2" href=#>Q</a></TH>
<TH class="sth1"><A class="sta2" href=#>R</a></TH>
<TH class="sth1"><A class="sta2" href=#>S</a></TH>
<TH class="sth1"><A class="sta2" href=#>T</a></TH>
<TH class="sth1"><A class="sta2" href=#>U</a></TH>
<TH class="sth1"><A class="sta2" href=#>V</a></TH>
<TH class="sth1"><A class="sta2" href=#>W</a></TH>
<TH class="sth1"><A class="sta2" href=#>X</a></TH>
<TH class="sth1"><A class="sta2" href=#>Y</a></TH>
<TH class="sth1"><A class="sta2" href=#>Z</a></TH>
<TH class="sth1"><A class="sta2" href=#>-</a></TH>
<TH class="sth1"><A class="sta2" href=#>.</a></TH>
<TH class="sth1"><A class="sta2" href=#>_</a></TH>
<th></th><th></th><th></th><th></th><th></th><th></th>
</tr>
<tr id=links_r2 style=display:none>
</tr>
<tr>
<TH colspan=23 align=center>
<button onclick=rel_display(1) title="Show related selected lines" style=width:30>+</button>
&nbsp;&nbsp;&nbsp;<button onclick=rel_display(2) title="Undo show related selected row" style=width:30>-</button>



<b style=color:white>To find.</b>&nbsp;&nbsp;
<textarea id=vbs3 
title="Enter the search context using the buttons and/or directly." style="WIDTH: 250px; BACKGROUND: white; HEIGHT: 20px"></textarea>
&nbsp;&nbsp;
<a style="width:30;background:yellow;color:black;text-Decoration:none" href=#  id=subst onclick=in_context("vbs3") title="Place in the search field the value N from the cell." style=width:30><b>In</b></a>
&nbsp;&nbsp;
<A  id=poi2 title="Search" 
onclick=vss2(this)  style="width:30;background:yellow;color:black;text-Decoration:none" href=#>&nbsp;?&nbsp;</a>
&nbsp;&nbsp;&nbsp;
<A title="Erase search context." 
onclick=document.getElementById('vbs3').value="" style="width:30;background:yellow;color:black;text-Decoration:none" href=#>&nbsp;X&nbsp;</a>

</TH>
</TABLE>







</div>
</td></tr><tr><td >
<table id=zref   border=1 style="width:100%;height:20;background:#4682b4;color:white"><tr onclick=spc3(event) style="FONT-WEIGHT: bold;"> 
<td title=0 lang=0 align=center style="width:30">N</td>
<td align=center lang=t title=1 style="FONT-WEIGHT: bold;width:30">Year</td><td title=2 width=30>Mon</td>
<td title=3 width=35>Day</td><td title=4 width=40>Num</td><td title=5>Name</td><td></td></tr></table>
<?php
if ($mob==0)
{echo '<div  id=ref1 style="display:none;height:240;width:100%;OVERFLOW: scroll;background:#e6e6fa;">';}
else
{echo '<div  id=ref1 style="display:none;width:100%;background:#e6e6fa;">';}
?>
<table id=tref border=1 width=100%>
<?php
//************************************
// 
//************************************
$refs="";                              //
$mttt=str_replace('\\',"/",getcwd());
$ttt=explode('/',$mttt);               //
if  ($tipa)                            //
{$ppap="";
for ($i = 0; $i <= count($ttt)-2; $i++)        
{$ppap=$ppap.$ttt[$i]."/";
}
$s =scandir($ppap);	                       //
$nref=1;
foreach ($s as $val) 			         
{if ($val != "." && $val != "..")           // 
{if  (true)       //(strstr($val, "_".$numbaz."v") or !strstr($val, "v"))  
{//
$ss =scandir($ppap.$val);	            //
	foreach ($ss as $vals) 			         
    {if ($vals != "." && $vals != "..")      // 
     {if  (strstr($vals, ".htm") and  substr($vals,0,1)!="#")   // 
      {$irus=str_replace(".htm","",$vals);
	   $irus=str_replace("_"," ",$irus);
	   $irus=rtr($irus);
list($da5, $no5) = explode("_",$val);   // 
	   $no5=rtr($no5);
list($d5, $m5, $y5) = explode(",",$da5);   //

if (strstr($val, "v"))
{$dnon="style=display:none";}
else
{$dnon="";}
	   echo "<tr ".$dnon." onclick=spc1(this,event) ><td width=30>".$nref++."</td><td width=30>".$y5."</td><td width=35>".$m5."</td><td width=35>".$d5."</td><td width=40>".$no5."</td><td>".$irus."</td><td style='display:none'>".$val."/".str_replace(".htm",".php",$vals)."</td></tr>\r\n";

	   
	   $refs=$refs.$val."/".str_replace(".htm",".php",$vals).";";
	   }}}}}}
	  }
echo '</table>';
if ($mob!=0)
{echo '<b style="background:grey;color:yellow">Click the desired line and Replace</b>';
}
echo '</div>';
?>
</td></tr>
<?php
if ($mob==0)
{echo '<tr><td colspan=4 align=center style="background:#4682b4;color:yellow"><small>Click the desired line and Replace. To sort, select the sorting type checkbox and click the column header text in the header.
Click the arrows to go.</small></td></tr>';
}
?>
</table></td><td width=20%></td></tr>
</table>
<!---      ---->
<table id=prop border=0 style="display:none;width:100%;height:100%;z-index:3;position:absolute;top:30px;left:0px;">
<tr ><td width=10%>&nbsp;</td><td width=30%  valign=top align=center>
<table border=1><tr style="background:grey;color:white">
<td  height=30px align=center><b style="color:yellow"></b>&#160;<b style="color:yellow">PROPERTIES</b>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<button form=""  style="background:silver" onclick=tabprop() style="width:35">&nbsp;&nbsp;P&nbsp;&nbsp;</button>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<button  style="background:silver" onclick=col1() style="width:35">&nbsp;&nbsp;x&nbsp;&nbsp;</button>
</td></tr><tr><td style="background:#f0e68c">
<div id=prop1 width=50% onclick=spp(event)>
</div>
</td></tr></table> </td><td width=10% >&nbsp;</td></tr></table>

<!---     ---->
<table id=tabes border=0 style="display:none;width:100%;height:80%;z-index:33;position:absolute;top:30px;left:0px;">
<tr ><td width=10%>&nbsp;</td><td width=30%  valign=top align=center>
<table border=1><tr style="background:brown;color:white">
<td  height=30px align=center><b style="color:yellow"></b>&#160;<b style="color:yellow">TABLES</b>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<button form="" title="Add a line."  style="background:white;width:30" 
onclick=tabes_add2() >+</button>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<button form="" title="Change, mark for deletion, add table and click me."  style="background:white" 
onclick=tabes_add() >Execute</button>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<button form="" title="To print"  style="background:white;width:30" 
onclick=tabes_p() >P</button>


&nbsp;&nbsp;&nbsp;
<button title="Click me to close!" style="background:white;width:35" onclick=tabes_none()>X</button>
</td></tr><tr><td style="background:#ffdead  ">
<div id=tabes2 style="height:400;OVERFLOW: scroll;width:100%" >
<table id=tabes3 border=1 width=100%><tr style="background:darkblue;color:white" >
<th >Name</th><th align=center>X</th></tr>
<tr><td>1</td><td align=center><img src=../../../../d~e~f/yes.gif></td></tr>
</table>
</div>
</td></tr></table> </td><td width=10% >&nbsp;</td></tr></table>
<script type="text/javascript">
//********************************************************************************************************
//    
//*************************************************************
function tabes_p()       // 
//****************************************************************
{
dop=window.open("","","");
mas2=document.getElementById("prop1").getElementsByTagName("TR")
tnap="<HTML><HEAD><META http-equiv=Content-Type content='text/html; charset=windows-1251'></head><body>"
tnap=tnap+"<b>Website: </b>"+document.getElementById("sname2").innerHTML+"<b>&nbsp;&nbsp;&nbsp;Page:&nbsp;&nbsp;&nbsp;</b><?php echo $tablr;?><br>"
fl=window.top.frames
tnap=tnap+"<h4 style='text-align:center'>"
if (mpar.length==1) 
{tnap=tnap+document.getElementById("zag").outerHTML
}
if (mpar.length==2) 		  
{tnap=tnap+fl[0].document.getElementById("zag").outerHTML+",  son"
}
if (mpar.length==3)
{tnap=tnap+fl[0].document.getElementById("zag").outerHTML+", grandson"
}
tnap=tnap+", list of tables</h4><center><table border=1>"
tr_arr=document.getElementById("tabes3").getElementsByTagName("TR")  // 
tnap=tnap+"<th>N</th>"
tnap=tnap+"<th>Name</th>"
tnap=tnap+"<th>Properties</th>"
tnap=tnap+"<th>File</th>"
tnap=tnap+"</tr>"

for(var i = 1; i <= tr_arr.length-1; i++) 	
{td_arr=tr_arr[i].getElementsByTagName("TD")
if (td_arr[0].innerHTML!="*")
{
tnap=tnap+"<tr><td>"+i+"</td>"
tnap=tnap+"<td>"+td_arr[1].getElementsByTagName("TEXTAREA")[0].value+"</td>"
tnap=tnap+"<td>"+td_arr[2].innerHTML+"</td>"
tnap=tnap+"<td>"+td_arr[3].innerHTML+"</td>"
tnap=tnap+"</tr>"
}
}	



//tnap=tnap+tabes3.outerHTML
tnap=tnap+"</table></center></body></html>"
dop.document.write(tnap)

}
//****************************************************************
function tabes_add2()  // 
//****************************************************************
{tr_arr=document.getElementById("tabes3").getElementsByTagName("TEXTAREA")  // 
for(var i = 1; i <= tr_arr.length-1; i++) 	
{if (tr_arr[i].value.replace(/ /g,"")=="")
{alert("There is an empty line!")
document.getElementById("tabes2").scrollTop=9999
return
}
}

tabes_add2_last=tr_arr[i-1].parentNode.parentNode.getElementsByTagName("TD")
if (tabes_add2_last[2].innerHTML.indexOf("2s")>=0)
{new_num=parseInt(tabes_add2_last[2].innerHTML.replace("2s",""),10)+1;s10="2s"}
else if (tabes_add2_last[2].innerHTML.indexOf("3s")>=0)
{new_num=parseInt(tabes_add2_last[2].innerHTML.replace("3s",""),10)+1;s10="3s"}
new_str='<tr><td align=center>*</td><td title="To add a table, fill in me and click Run." align=center><textarea onchange=tab_sel_change(this)></textarea> </td>'+
'<td align=center>'+s10+new_num+'</td><td align=center>'+
new_num+'.txt</td><td align=center><img src=../../../../d~e~f/no.gif></td><td align=center>'+
'<img onclick=tabes2_img(this) src=../../../../d~e~f/no.gif></td></tr>'	
tr_arr2=document.getElementById("tabes3").getElementsByTagName("TEXTAREA")  //
new_tab=document.getElementById("tabes3").outerHTML
new_tab=new_tab.replace("</tbody>","</TBODY>")
new_tab=new_tab.replace("</TBODY>",new_str+"</TBODY>")
document.getElementById("tabes3").outerHTML=new_tab
tr_arr2=document.getElementById("tabes3").getElementsByTagName("TEXTAREA")  //
for(var i = 1; i <= tr_arr.length-1; i++) 	
{tr_arr2[i].value=tr_arr[i].value
}
document.getElementById("tabes2").scrollTop=9999
}

//*************************************************************
function tabes_add()  //
//*************************************************************
{if (confirm("On the server, "+ //
"all tables marked with 'x' will be deleted" +
"(we recommend deleting 1 table at a time)," +
"\r\n marked in 'r' have been changed!" +
"\r\n The table in 'N' with * will be added!" +
"\r\n To confirm 'OK' to cancel 'Cancel'."))
                                                                        //
{tr_arr=document.getElementById("tabes3").getElementsByTagName("TR")
var dou = new Object();                                                 //
exe=false                                                               //
for(var i = 1; i <= tr_arr.length-1; i++) 
{if  (tr_arr[i].innerHTML.indexOf("yes.")>0)                            //
{exe=true}
td_arr=tr_arr[i].getElementsByTagName("TD")                            // 
name7=td_arr[1].getElementsByTagName("TEXTAREA")[0].value               //
if (dou[name7]==undefined)                                              //
{dou[name7]=i}                                                          //
else                                                                    //
{alert("Repeat "+ name7 +"! \r\n Fix and repeat!")
return
}
if (name7.replace(/(^\s*)|(\s*)$/g, '')=="" && td_arr[0].innerHTML!="*")
{
alert("Empty 'Name'! \r\n Fix and repeat!")
return
}}	
if (!exe)                                                               //
{alert("No change!")
return
}	
    //
//alert(neud)


new_value_add=""                                                            //
new_value_replace=""                                                        //
new_value_delete=""                                                         //
for(var i = 1; i <= tr_arr.length-1; i++) 
{td_arr=tr_arr[i].getElementsByTagName("TD")
//*****************************************************************************************************************
if (td_arr[0].innerHTML.indexOf('*')>=0 && 
td_arr[4].innerHTML.indexOf("yes.")>0)                                  // 
{new_value_add=new_value_add+"add/"+
td_arr[2].innerHTML+"/" +
td_arr[1].getElementsByTagName("TEXTAREA")[0].value+"&"                 // 
}
//****************************************************************************************************
else if (td_arr[4].innerHTML.indexOf('yes.')>=0 
&& td_arr[5].innerHTML.indexOf("yes.")<0 
&& td_arr[0].innerHTML.indexOf('*')<0)               	               //
{new_value_replace=new_value_replace+"replace/"+
td_arr[2].innerHTML+"/" +
td_arr[1].getElementsByTagName("TEXTAREA")[0].value+"&"               // 
document.getElementById("form").elements["soob"].value="<i>Table name "+
td_arr[2].innerHTML+" changed!</i>"
}
//**************************************************************************************
else if (td_arr[5].innerHTML.indexOf("yes.")>0 
&& td_arr[0].innerHTML.indexOf('*')<0 )                                //
{new_value_delete=new_value_delete+"delete/"+
td_arr[2].innerHTML+"/&"                                               //
}
}
form.elements["s2"].value=new_value_add.substr(0,new_value_add.length-1)+"#"+
new_value_replace.substr(0,new_value_replace.length-1)+"#"+
new_value_delete.substr(0,new_value_delete.length-1)
//document.getElementById("form").elements["pain"].value="no" 
document.getElementById("form").elements["rel"].value="1" 
action_new=document.getElementById("form").action
action_new_arr=action_new.split("/")
action_new_arr2=action_new_arr[action_new_arr.length-1].split("&")
action_new_arr2[0]="1.txt"
action_new_arr[action_new_arr.length-1]=action_new_arr2.join("&")
fl=window.top.frames
kf=fl.length
document.getElementById("form").action=action_new_arr.join("/")+"&select2="+
tr_arr[1].getElementsByTagName("TD")[2].innerHTML
 // 
//alert(document.getElementById("form").action)
form.elements["pain"].value="no" 
form.elements["submit"].click()
}}

//*************************************************
function tabes_none()      // 
//*************************************************
{document.getElementById("tabes").style.display="none"
document.getElementById("h").style.visibility="hidden"
}

//**************************************************************
function table_add(p)     // 
//*************************************************************
{fl=window.top.frames                           // 
kf=fl.length                                    // 
//par=document.getElementById("form").action
if (kf==2 && mpar.length==2)
{name_pap="2s";}
else if (kf==3 && mpar.length==3)
{name_pap="3s";}
else
{alert("Only tables of grandchildren, or sons \r\n without grandchildren, can be added and deleted!")
return}
// 
tab_sel_cod='<table id=tabes3 border=1 width=100%>'+
'<tr style=background:silver><th title="Serial number">N</th>'+
'<th title="Entering, changing the name.">Name</th>'+
'<th title="The name of the table properties folder.">Properties</th><th title="The name of the table data file.">File</th>'+
'<th align=center title="The flag to change is set automatically.">r</th><th title="Flag to be removed, click me." align=center>x</th></tr>'
s2_new=0  
if (document.getElementById('tabl_sel')!=undefined)         // 
{tab_sel_arr=document.getElementById("tabl_sel").options    // 
for(var i = 0; i <= tab_sel_arr.length-1; i++)                     //
{ifl=tab_sel_arr[i].value.replace(name_pap,"")                     //
dis="<img onclick=tabes2_img(this) src=../../../../d~e~f/no.gif>"  //
if (ifl=="")                                                       //
{ifl="1"                                                           //
dis="&nbsp;"                                                       //
s2_new=1                                                           //
}
else                                                               //
{s2_new_i=parseInt(ifl,10)                                         //
if (s2_new<s2_new_i)                                               //
{s2_new=s2_new_i}
}                                                                  //
tab_sel_cod=tab_sel_cod+	
'<tr><td align=center>'+(i)+'</td><td align=center><textarea onchange=tab_sel_change(this)>'+tab_sel_arr[i].text+
'</textarea></td><td align=center>'+tab_sel_arr[i].value+'</td><td align=center>'+
ifl+'.txt</td><td align=center><img src=../../../../d~e~f/no.gif></td><td align=center>'+dis+'</td></tr>'	
}
s2_new++                                                           //
}
else                                                               //
{s2_new=1}                                                         //
tab_sel_cod=tab_sel_cod+
'<tr><td align=center>*</td><td title="To add a table, fill in me and click "Execute"." align=center><textarea onchange=tab_sel_change(this)></textarea> </td>'+
'<td align=center>'+name_pap+s2_new+'</td><td align=center>'+
s2_new+'.txt</td><td align=center><img src=../../../../d~e~f/no.gif></td><td align=center>'+
'<img onclick=tabes2_img(this) src=../../../../d~e~f/no.gif></td></tr>'	
+"</table>"
document.getElementById("tabes2").innerHTML=tab_sel_cod           // 
document.getElementById("com").style.display="none"	              // 
document.getElementById("tabes").style.display=""	              // 
}
//*****************************************************************
function tabes2_img(p)  // 
//*****************************************************************
{if (p.src.indexOf("yes.")>0)
{p.src='../../../../d~e~f/no.gif'}
else
{p.src='../../../../d~e~f/yes.gif'}
}

//******************************************************************
function tab_sel_change(p) //
//******************************************************************
{td_array=p.parentNode.parentNode.getElementsByTagName("TD") 
td_array[4].innerHTML="<img src=../../../../d~e~f/yes.gif>"
}
</script>
<!---    ---->
<table id=buf border=0 style="display:none;width:100%;height:90%;z-index:3;position:absolute;top:20px;left:0px;">
<tr ><td width=10%>&nbsp;</td><td width=30%  valign=top align=center>
<table border=1 style=color:white><tr style="background:#dcdcdc;">
<td  height=30px align=center style="background:#708090;color:white"><b>INSERT BUFFER</b>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<img src=../../../../d~e~f/tables_1.gif  onclick=bufa(2) border=1 title="Insert a buffer before the selected line, cancels sorting and selection.">
<img src=../../../../d~e~f/tables_4.gif  onclick=bufa(1) border=1 title="Insert buffer after the selected line, cancels sorting and selection.">
&nbsp;&nbsp;&nbsp;&nbsp;
<img src=../../../../d~e~f/tables_13.gif  onclick=bufa2() border=1 height=19 
title="Clear buffer and enter lines from the table that are marked for deletion.">
&nbsp;&nbsp;&nbsp;&nbsp;
<img src=../../../../d~e~f/tables_7.gif  onclick=bufa3() border=1 height=19 
title="Save buffer.">
&nbsp;&nbsp;&nbsp;&nbsp;
<button   onclick=bufa33() border=1 height=19  style=color:red
title="Remove buffer.">delete</button>


&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<img src=../../../../d~e~f/z.gif  border=1   title="Close the insert buffer form." style="background:white" 
onclick='document.getElementById("buf").style.display="none"' >
</td></tr><tr><td style="background:#708090;color:white">
<TEXTAREA id=buff  style="background:white;width:900;height:360">
<?php
//$tabbuff=getcwd ()."/".$_2s."/2.txt";
if ($kin=="father")                                        // 
{$tabbuff=getcwd ()."/1s/2.txt";}
else if ($kin=="son")
{$tabbuff=getcwd ()."/".$_2s."/2.txt";}                     //
else if ($kin=="grandson")                               
{$tabbuff=getcwd ()."/".$_3s."/2.txt";}                     //

if (file_exists($tabbuff))
{echo htmlspecialchars(file_get_contents($tabbuff));
}
?>
</TEXTAREA> 
<?php
?>
<br><b>To enter: </b> enter field values, field separator ``` if the field is empty, the default value is inserted. <br>
<b> To paste from EXEL, WORD and other applications: </b> select fields and rows in the table and store them in the system buffer with the "Copy" command, paste a copy into the clipboard with the "Paste" command.
The tab delimiter is replaced with the ``` delimiter automatically.
</td></tr></table> </td><td width=10% >
&nbsp;
</td></tr>
<tr>
<td colspan=3>
</td>
</tr>
</table>
<!---    ---->
<table id=sel border=0 style="display:none;width:100%;height:50%;z-index:3;position:absolute;top:30px;left:0px;">
<tr ><td width=10%>&nbsp;
</td>
<td width=30%  style="background:#dcdcdc"  valign=top align=center><table border=1><tr >
<td  height=30px align=center>
<table width=100% border=0>
<tr>
<td>
<b style="background:silver">SELECTION:</b>&nbsp;&nbsp;
<button  style="background:grey;color:white" title="Selection of rows in a group by entered conditions" 
onclick='sel1(this,0);' style="width:60">only</button>
<button  style="background: #808080;;color:yellow" 
title="Selection of rows in a group by negation of entered conditions" onclick='sel1(this,1);' style="width:60">
except</button>
<button  style="background:grey;color:white" title="Filtering rows on the server by entered conditions" 
onclick='sel1(this,2);' style="width:65">server</button>

&nbsp;&nbsp;&nbsp;<button  title="Erase values in all fields of the selection conditions." 
style="background: #808080;color:yellow" 
onclick='document.getElementById("repo").innerHTML="The selection conditions have been cleared!";selc();' 
style="width:20">C</button>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<button  title="Undo the last changes to the selection conditions and close this form. " 
style="background:#808080;color:yellow" onclick='selca(1);' 
style="width:80">Cancel</button>



</td>
<td align=right>
<button  title="Close the form."   style="background:white;color:black" onclick='selca(0);'
 style="width:20">X</button>
</td></tr></table>
<table width=100%>
<tr>
<div  style="height:100;OVERFLOW: scroll;width:100%">
<small id=seltext2>
Conditions not specified.
</small>
</div>
</tr>
<tr>
<td align=center >
<nobr>
<button style="background:grey;color:white" onclick=document.getElementById('fort').value='' 
title=" Erase the contents of the input field." >&nbsp;x&nbsp;</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<b title='Enter "in the list" of text columns, or the name of the selection.'>Input field</b>  
<button form="" style="background:grey;color:white;display:none" onclick=seltext() >&nbsp;/*/&nbsp;</button>
  </nobr>
</td></tr></table>
<table border=1>
<tr><td colspan=2>
<input style='width:475' id=fort value="">
</td></tr>
<?php
if ($pp=="")                             //
{echo "<tr>";}	
else                                     //
{echo "<tr style=display:none>";}        //
?>
<td ><b>SELECTION:</b>
<img border=1 src=../../../../d~e~f/tables_100.gif title="Edit"
onclick='document.getElementById("repo").innerHTML="Selection changed!";ud(3);'>
&nbsp;&nbsp;
<img border=1 src=../../../../d~e~f/tables_1.gif onclick='document.getElementById("repo").innerHTML="Selection inserted before!";ud(1);'
title="Insert into the list before the selection. Expand the list and click the selection before which you will insert. Enter the conditions. Enter the name of the selection in the input field and click me.">
<img border=1 src=../../../../d~e~f/tables_4.gif onclick='document.getElementById("repo").innerHTML="The selection is inserted after!";ud(2);'
title="Insert into the list after the selection. Expand the list and click the selection after which you will insert. Enter the conditions. Enter the name of the selection in the input field and click me.">
&nbsp;&nbsp;
<img border=1 src=../../../../d~e~f/tables_10.gif title="Add selection. Enter the conditions. Enter the name of the selection in the input field and click me."
onclick='document.getElementById("repo").innerHTML="Selection added!";ud(0);'>
&nbsp;&nbsp;&nbsp;
<img border=1 src=../../../../d~e~f/tables_6.gif title="Delete selection. Expand the list, click the selection to be deleted and click me."
onclick='document.getElementById("repo").innerHTML="Selection deleted!";uu();'>&nbsp;
<img border=1 src=../../../../d~e~f/z.gif title="Erase the list."
onclick='document.getElementById("repo").innerHTML="The list is erased!";uz2();'>
&nbsp;&nbsp;&nbsp;
<img border=1 src=../../../../d~e~f/tables_7.gif title="Save the list of selections. After changing the list, click me to save the changes." 
onclick='document.getElementById("repo").innerHTML="The list is saved!";us();'>
&nbsp;&nbsp;&nbsp;<b>choose:</b>
</td></tr>
<tr><td align=center id=select_create>
<?php
$ifsu2=file_get_contents($ifsu);                      //
//$ifsu2=str_replace('onchange=uz(this)'," ",$ifsu2);  //
echo $ifsu2;
?>
</td></tr>
</table>
</td></tr><tr><td style="background:#f5f5dc">
<div id=sel1  width=50%>
</div>
</td></tr></table> </td><td width=10% valign=top>
<TABLE border=0 height=40 style="background:#dcdcdc" ><TBODY><TR><TD vAlign=top>
<TABLE border=0><TBODY><TR style="BACKGROUND:silver"><TD height=25 align=middle>
<BUTTON style="WIDTH: 25px; BACKGROUND: #808080; HEIGHT: 25px; COLOR: yellow" onclick="document.getElementById('eva_s').value=''" ;>
<B title="Erase the contents of the operand field.">x</B></BUTTON> &nbsp;&nbsp;&nbsp;To enter conditions
</TD><TD align=middle >
<B title=" To enter 'from', 'to', 'in the list of' numeric columns, use the buttons to set a value, click =, click 'Conditions'." >CALCULATOR<B>~0.00</B> </B>

<button  title="Close the form"   style="background:white;color:black" onclick='selca(0);'
 style="width:20">X</button>

</TD></TR><TR><TD>
<TEXTAREA title="Operand field" id=eva_s rows=14 readonly onclick="this.value=document.getElementById('fort').value" style="background:#f5f5dc"></TEXTAREA> </TD><TD><TABLE id=eva border=2><TBODY><TR><TD onclick="eva_a(1)">
<BUTTON style="WIDTH: 25px; BACKGROUND: #808080; HEIGHT: 25px; COLOR: white">1</BUTTON></TD><TD onclick="eva_a(2)">
<BUTTON style="WIDTH: 25px; BACKGROUND: #808080; HEIGHT: 25px; COLOR: white">2</BUTTON></TD><TD onclick="eva_a(3)">
<BUTTON style="WIDTH: 25px; BACKGROUND: #808080; HEIGHT: 25px; COLOR: white">3</BUTTON></TD><TD onclick="eva_a(4)">
<BUTTON style="WIDTH: 25px; BACKGROUND: #808080; HEIGHT: 25px; COLOR: white">4</BUTTON></TD><TD onclick="eva_a(5)">
<BUTTON style="WIDTH: 25px; BACKGROUND: #808080; HEIGHT: 25px; COLOR: white">5</BUTTON></TD></TR><TR><TD onclick="eva_a(6)">
<BUTTON style="WIDTH: 25px; BACKGROUND: #808080; HEIGHT: 25px; COLOR: white">6</BUTTON></TD><TD onclick="eva_a(7)">
<BUTTON style="WIDTH: 25px; BACKGROUND: #808080; HEIGHT: 25px; COLOR: white">7</BUTTON></TD><TD onclick="eva_a(8)">
<BUTTON style="WIDTH: 25px; BACKGROUND: #808080; HEIGHT: 25px; COLOR: white">8</BUTTON></TD><TD onclick="eva_a(9)">
<BUTTON style="WIDTH: 25px; BACKGROUND: #808080; HEIGHT: 25px; COLOR: white">9</BUTTON></TD><TD onclick="eva_a(0)">
<BUTTON style="WIDTH: 25px; BACKGROUND: #808080; HEIGHT: 25px; COLOR: white">0</BUTTON></TD></TR><TR><TD onclick='eva_a(".")'>
<BUTTON style="WIDTH: 25px; BACKGROUND: #808080; HEIGHT: 25px; COLOR: white"><B>.</B></BUTTON></TD><TD onclick='eva_a("+")'>
<BUTTON style="WIDTH: 25px; BACKGROUND: black; HEIGHT: 25px; COLOR: white"><B>+</B></BUTTON></TD><TD onclick='eva_a("-")'>
<BUTTON style="WIDTH: 25px; BACKGROUND: black; HEIGHT: 25px; COLOR: white"><B>-</B></BUTTON></TD><TD onclick='eva_a("*")'>
<BUTTON style="WIDTH: 25px; BACKGROUND: black; HEIGHT: 25px; COLOR: white"><B>*</B></BUTTON></TD><TD onclick='eva_a("/")'>
<BUTTON style="WIDTH: 25px; BACKGROUND: black; HEIGHT: 25px; COLOR: white"><B>/</B></BUTTON></TD></TR><TR>
<TD title=result onclick="eva('r')"><BUTTON style="WIDTH: 25px; BACKGROUND: brown;color:yellow; HEIGHT: 25px">=</BUTTON></TD>
<TD style="BACKGROUND: white; COLOR: red" colSpan=4 align=middle><B id=eva_r>0.00</B></TD></TR><TR>
<TD title=enter onclick='eva_m("1-")'><BUTTON style="WIDTH: 25px; BACKGROUND: #808080; HEIGHT: 25px; COLOR: white">e</BUTTON>
</TD><TD title=save onclick='eva_m("1+")'><BUTTON style="WIDTH: 25px; BACKGROUND: #808080; HEIGHT: 25px; COLOR: white">s</BUTTON></TD>
<TD colSpan=3><B style="COLOR: brown" id=eva_m1>0.00</B></TD></TR><TR><TD title=enter onclick='eva_m("2-")'>
<BUTTON style="WIDTH: 25px; BACKGROUND: #808080; HEIGHT: 25px; COLOR: white">e</BUTTON></TD><TD title=save onclick='eva_m("2+")'>
<BUTTON style="WIDTH: 25px; BACKGROUND: #808080; HEIGHT: 25px; COLOR: white">s</BUTTON></TD><TD colSpan=3><B style="COLOR: brown" id=eva_m2>0.00</B>
</TD></TR><TR><TD title=enter onclick='eva_m("3-")'><BUTTON style="WIDTH: 25px; BACKGROUND: #808080; HEIGHT: 25px; COLOR: white">e</BUTTON></TD>
<TD title=save onclick='eva_m("3+")'><BUTTON style="WIDTH: 25px; BACKGROUND: #808080; HEIGHT: 25px; COLOR: white">s</BUTTON></TD>
<TD colSpan=3><B style="COLOR: brown" id=eva_m3>0.00</B></TD></TR></TBODY></TABLE><B id=eva_ss></B></TD></TR></TBODY></TABLE></TD>
</TR></TBODY></TABLE>
<SCRIPT type=text/javascript>function eva(p){msstr1=" ,0,1,2,3,4,5,6,7,8,9,+,-,*,/,.,";mmm=document.getElementById("eva_s").value.split("");mm="";for(var i=0; i<=mmm.length-1; i++){if (escape(mmm[i])=="%0D" || escape(mmm[i])=="%0A"){}else{mm=mm+mmm[i]}}msstr=mm.split("");if (msstr.length==0){alert("No expression!");return};document.getElementById("eva_r").innerHTML="ERROR !";ks=msstr[0];if (ks=="/" || ks=="*" || ks=="."){alert("Invalid character at the beginning of the expression!");return}ks=msstr[msstr.length-1];kpp=0;if (ks=="+" || ks=="-" || ks=="/" || ks=="*" || ks=="."){alert("Invalid character at the end of the expression!");return}for(var i=0; i<=msstr.length-1; i++){if (msstr1.indexOf(","+msstr[i]+",")<0){alert(msstr[i]+ " invalid character in expression!");return}ks=msstr[i];ks8=msstr[i+1];if (ks=="."){kpp++}if (kpp>0 && (ks=="+" || ks=="-" || ks=="/" || ks=="*")) {kpp--}if (kpp>1) {alert("Many points in the operand!");return}if ((ks=="+" || ks=="-" || ks=="/" || ks=="*" || ks==".") && (ks8=="+" || ks8=="-" || ks8=="/" || ks8=="*" || ks8==".")){alert(ks+ks8+" invalid characters in expression!");return}};evares=eval(document.getElementById("eva_s").value).toFixed(2);document.getElementById("eva_r").innerHTML=evares;}function eva_a(p){eva1=document.getElementById("eva_s").value;if (p=="+" || p=="-"){document.getElementById("eva_s").value=eva1+"\r\n"+p;document.getElementById("eva_s").scrollTop=9999;}else{document.getElementById("eva_s").value=eva1+p;}}function eva_c(p){document.getElementById("eva_s").value="";}function eva_m(p){eva1=document.getElementById("eva_s").value;switch (p){case "1+" : document.getElementById("eva_m1").innerHTML=document.getElementById("eva_r").innerHTML;break;case "1-" : document.getElementById("eva_s").value=eva1+document.getElementById("eva_m1").innerHTML;break;case "2+" : document.getElementById("eva_m2").innerHTML=document.getElementById("eva_r").innerHTML;break;case "2-" : document.getElementById("eva_s").value=eva1+document.getElementById("eva_m2").innerHTML;break;case "3+" : document.getElementById("eva_m3").innerHTML=document.getElementById("eva_r").innerHTML;break;case "3-" : document.getElementById("eva_s").value=eva1+document.getElementById("eva_m3").innerHTML;break;}}</SCRIPT>
<TABLE style="background:#dcdcdc"><TBODY><TR><TD>
<TABLE id=cal border=2 style="background:#dcdcdc" ><CAPTION style="BACKGROUND:silver;">
To enter conditions&nbsp;&nbsp; 
<B title=" To enter 'from', 'to', 'in the list of' date-columns, set the value with the buttons, click =, click 'Conditions'">THE CALENDAR</B>
</CAPTION>
<THEAD><TR style="BACKGROUND: ; COLOR: white"><TH onclick="cal.nu(2)">
<B><BUTTON style="WIDTH: 40px; BACKGROUND: #808080; COLOR: white">«y</BUTTON></B></TH>
<TH onclick="cal.nu(4)"><BUTTON style="WIDTH: 40px; BACKGROUND: #808080; COLOR: white">«m</BUTTON></TH>
<TH style="width:17;WIDTH: 200px; BACKGROUND: white; COLOR: red" id=cal_td colSpan=3 onclick="cal.nu(0)"></TH>
<TH onclick="cal.nu(3)"><BUTTON style="WIDTH: 40px; BACKGROUND: #808080; COLOR: white">m»</BUTTON></TH>
<TH onclick="cal.nu(1)"><BUTTON style="WIDTH: 40px; BACKGROUND: #808080; COLOR: white">y»</BUTTON></TH></TR>
<TR style="BACKGROUND: silver; COLOR: black">
<TH style="width:17;WIDTH: 40px">Mon</TH>
<TH style="width:17;WIDTH: 40px">Tue</TH>
<TH style="width:17;WIDTH: 40px">&nbsp;&nbsp;Wed&nbsp;</TH>
<TH style="width:17;WIDTH: 40px">&nbsp;&nbsp;Thu&nbsp;</TH>
<TH style="width:17;WIDTH: 40px">&nbsp;&nbsp;Fri&nbsp;</TH>
<TH style="width:17;WIDTH: 40px; BACKGROUND: #ffdead; COLOR: red">Sat</TH>
<TH style="width:17;WIDTH: 49px; BACKGROUND: #ffdead; COLOR: red">Sun</TH></TR></THEAD><TBODY>
<TR>
<TD onclick=utd(this) style="WIDTH: 60px">&nbsp;&nbsp;</TD>
<TD onclick=utd(this) style="WIDTH: 60px">&nbsp;&nbsp;</TD>
<TD onclick=utd(this) style="WIDTH: 60px">&nbsp;&nbsp;</TD>
<TD onclick=utd(this) style="WIDTH: 60px">&nbsp;&nbsp;</TD>
<TD onclick=utd(this) style="WIDTH: 60px">&nbsp;&nbsp;</TD>
<TD onclick=utd(this)  style="WIDTH: 60px;BACKGROUND: #ffdead; COLOR: red">&nbsp;&nbsp;</TD>
<TD onclick=utd(this) style="WIDTH: 60px;BACKGROUND: #ffdead; COLOR: red">&nbsp;&nbsp;</TD>
</TR>
<TR>
<TD onclick=utd(this)>&nbsp;&nbsp;</TD>
<TD onclick=utd(this)>&nbsp;&nbsp;</TD>
<TD onclick=utd(this)>&nbsp;&nbsp;</TD>
<TD onclick=utd(this)>&nbsp;&nbsp;</TD>
<TD onclick=utd(this)>&nbsp;&nbsp;</TD>
<TD onclick=utd(this) style="BACKGROUND: #ffdead; COLOR: red">&nbsp;&nbsp;</TD>
<TD onclick=utd(this) style="BACKGROUND: #ffdead; COLOR: red">&nbsp;&nbsp;</TD></TR>
<TR>
<TD onclick=utd(this)>&nbsp;&nbsp;</TD>
<TD onclick=utd(this)>&nbsp;&nbsp;</TD>
<TD onclick=utd(this)>&nbsp;&nbsp;</TD>
<TD onclick=utd(this)>&nbsp;&nbsp;</TD>
<TD onclick=utd(this)>&nbsp;&nbsp;</TD>
<TD onclick=utd(this) style="BACKGROUND: #ffdead; COLOR: red">&nbsp;&nbsp;</TD>
<TD onclick=utd(this) style="BACKGROUND: #ffdead; COLOR: red">&nbsp;&nbsp;</TD></TR>
<TR><TD onclick=utd(this)>&nbsp;&nbsp;</TD>
<TD onclick=utd(this)>&nbsp;&nbsp;</TD>
<TD onclick=utd(this)>&nbsp;&nbsp;</TD>
<TD onclick=utd(this)>&nbsp;&nbsp;</TD>
<TD onclick=utd(this)>&nbsp;&nbsp;</TD>
<TD onclick=utd(this) style="BACKGROUND: #ffdead; COLOR: red">&nbsp;&nbsp;</TD>
<TD onclick=utd(this) style="BACKGROUND: #ffdead; COLOR: red">&nbsp;&nbsp;</TD></TR>
<TR><TD onclick=utd(this)>&nbsp;&nbsp;</TD>
<TD onclick=utd(this)>&nbsp;&nbsp;</TD>
<TD onclick=utd(this)>&nbsp;&nbsp;</TD>
<TD onclick=utd(this)>&nbsp;&nbsp;</TD>
<TD onclick=utd(this)>&nbsp;&nbsp;</TD>
<TD onclick=utd(this) style="BACKGROUND: #ffdead; COLOR: red">&nbsp;&nbsp;</TD>
<TD onclick=utd(this) style="BACKGROUND: #ffdead; COLOR: red">&nbsp;&nbsp;</TD></TR>
<TR><TD onclick=utd(this)>&nbsp;&nbsp;</TD>
<TD onclick=utd(this)>&nbsp;&nbsp;</TD>
<TD onclick=utd(this)>&nbsp;&nbsp;</TD>
<TD onclick=utd(this)>&nbsp;&nbsp;</TD><TD>&nbsp;&nbsp;</TD>
<TD onclick=utd(this) style="BACKGROUND: #ffdead; COLOR: red">&nbsp;&nbsp;</TD>
<TD onclick=utd(this) style="BACKGROUND: #ffdead; COLOR: red" id=cal_td1>&nbsp;&nbsp;</TD></TR>
</TBODY></TABLE>
<SCRIPT type="text/javascript">
var cal = new Object();
cal.nu = function(p){dat=new Date();
if (p==1)
{my=document.getElementById("cal_td1").title.split(".");
dat.setYear(parseInt(my[2],10)+1);}
if (p==2)
{my=document.getElementById("cal_td1").title.split(".");
dat.setYear(parseInt(my[2],10)-1);}
if (p==3){my=document.getElementById("cal_td1").title.split(".");
dat.setYear(parseInt(my[2],10));dat.setMonth(parseInt(my[1],10));}
if (p==4){my=document.getElementById("cal_td1").title.split(".");
dat.setDate(1);dat.setYear(parseInt(my[2],10));
dat.setMonth(parseInt(my[1],10)-2);}
if (p!=0) {dat.setDate(1)}
var y="";
y=dat.getFullYear();var m="";
m=dat.getMonth()+1;
var c="";
c=dat.getDate();
var d="";
d=dat.getDay();
var dp="";
dp=y+"-"+m+"-"+c+"-"+d;
dp1=c+"."+m+"."+y;
cc=c;
mm=m;
if (parseInt(c,10)<10) 
{cc="0"+cc;}
if (parseInt(m,10)<10) 
{mm="0"+mm;}
dp11=cc+"."+mm+"."+y;
document.getElementById("cal_td").innerHTML=dp11;
document.getElementById("cal_td1").title=dp1;
dat.setDate(1);
na=dat.getDay()-1;
if (na<0) na=6;
var mt = document.getElementById("cal").getElementsByTagName("TD");
k=1;
lb="q,5,6,12,13,19,20,26,27,33,34,40,41,";
for(var ii=0; ii<mt.length-4; ii++)  
{if (lb.indexOf(","+ii+",",0)>0)
{mt[ii].style.background="#ffdead";
mt[ii].style.color="red";}
else
{mt[ii].style.background="";}
if (ii<na)
{mt[ii].innerHTML="&nbsp;&nbsp;";}
else
{dat.setDate(k);
if (m==dat.getMonth()+1){if (ii-na+1==c && p==0) 
{mt[ii].style.background="red";
mt[ii].style.color="black";}
mt[ii].innerHTML=k++;}
else
{mt[ii].innerHTML="&nbsp;&nbsp;";}}}
};
cal.nu(0);
//////////////
function utd(p) 
{td=p.innerHTML                             // 
if (td!="&nbsp;&nbsp;")                     // 
{if (parseInt(td,10)<10) {td="0"+td}        // 
mdd=document.getElementById("cal_td").innerHTML.split(".") 
document.getElementById("cal_td").innerHTML=td+"."+mdd[1]+"."+mdd[2]
}}
</SCRIPT>
</TD>
</TR></TBODY></TABLE>
</td>
<td width=10%>&nbsp;
</td>
</tr></table>
<table id=com border=0 style="display:none;width:100%;height:30%;z-index:3;position:absolute;top:25px;left:0px;">
<tr ><td width=20%>&nbsp;</td><td width=60%  valign=top align=center >
<table border=1 width=100% style=background:silver ><tr >
<td  height=30px align=center style="background:grey" ><b style=color:white >ADMINISTRATION.&nbsp;&nbsp; 
<?php
if  (file_exists(getcwd()."/script/~server-before.php"))
{echo '<a id=aaa href=""></a>Edit:</b>&nbsp;
<button onclick=redscript("script/~server-before.php") title="Edit the server-side script for clicking a user button." style="background:white;width:50">Server</button>
<button onclick=redscript("script/~submit.htm") title="Edit User Button Submits. " style="background:white;width:55">Submit</button>
<button onclick=redscript("script/~button-script.htm") title="Edit client side scripts - inserted buttons." style="background:white;width:65">Buttons</button>';
}
?>
&nbsp;&nbsp;&nbsp;<button  style="background:white" onclick="azak()">&nbsp;X&nbsp;</button>
</td></tr><tr><td style="background:#dcdcdc" align=center>
<table border=0><tr>
<td>
1. <button id=ki onclick=ars(this,"rep") style="background:white;width:220">Change column.</button><br>
2. <button id=kv onclick=ais(this,"ins") title="The insert is always to the right of the selection." style="background:white;color:green;width:220">Insert Column.</button><br>
3. <button id=ku onclick=ads(this,"del") style="background:white;color:red;width:220">Delete column.</button><br>
<?php
if ($pp=="")    //
{echo '4. <button id=kb onclick=mon(2) title="Insert button in all forms of tables." style="background:white;color:green;width:220">Insert button.</button><br>';
echo '5. <button  id=kb2 onclick=mon(3) title="Remove button from all form tables." style="background:white;color:red;width:220">Remove button.</button><br>';
}
else
{echo '4. <button disabled id=kb onclick=mon(2) title="Insert button in all forms of tables." style="background:white;color:green;width:220">Insert button.</button><br>';
echo '5. <button  disabled id=kb2 onclick=mon(3) title="Remove button from all form tables." style="background:white;color:red;width:220">Remove button.</button><br>';	
	
}
?>
</td>
<td>
<?php
if ($pp!="")    //
{echo '6. <button  onclick=ads1(this,"del1") disabled style="background:white;width:220">Save password.</button><br>';
echo '7. <button disabled  title="Set the table to deny access to all users except the administrator." onclick=mon(1) style="background:white;color:red;width:220">Establish a monopoly.</button><br>';
echo '8. <button disabled title="Unblock all users, does not work for single user mode." onclick=mon(0) style="background:white;color:green;width:220">Cancel the monopoly.</button><br>';
echo '9. <button disabled id=kt  title="Modify, add, or delete a linked son or grandson table." onclick=table_add(0)  style="background:white;color:green;width:220">Modify tables.</button><br>';
}
else
{
echo '6. <button  onclick=ads1(this,"del1") style="background:white;width:220">Save password.</button><br>';
echo '7. <button  title="Set the table to deny access to all users except the administrator." onclick=mon(1) style="background:white;color:red;width:220">Establish a monopoly.</button><br>';
echo '8. <button  title="Cancel access denial to all users." onclick=mon(0) style="background:white;color:green;width:220">Cancel the monopoly.</button><br>';
echo '9. <button id=kt  title="Modify, add, or delete a linked table for a son without a grandchild or grandson." onclick=table_add(0) style="background:white;color:green;width:220">Modify tables.</button>';
}
?>
</td></tr></table>
</td></tr>
<tr id=izm1 style="display:none"><td><b><center id=aold style="background:silver;color:yellow"></center></b>
</td></tr>
<tr id=atip style=""><td style="background:#dcdcdc" align=center>ENTER COLUMN HEADING:<br>
<textarea name=anew id=anew style="background:white;width:320;height:30"></textarea><br>
<small>IN THE HEADER: = prohibition of editing in this and the next column, entering data into them from the table of values;&nbsp;&nbsp; 
! input only from the table of values; * prohibition of displaying the column in the table of values;&nbsp;&nbsp;^ forbid editing, ~ unique values.</small>
</td></tr>

<tr id=atip2 style=""><td align=center  style="background:#dcdcdc">
<big style="width:100%;background:silver">CHOOSE THE DATA TYPE FOR THE COLUMN:</big>
<nobr>
<font style="border:white thin solid" >text&nbsp;<img id=ati0 onclick=atip2(this,0,"t") src=../../../../d~e~f/yes.gif>&nbsp;&nbsp;t,&nbsp;</font>
<font style="border:white thin solid">date&nbsp;<img  id=ati1 onclick=atip2(this,1,"d") src=../../../../d~e~f/no.gif>&nbsp;&nbsp;d,&nbsp;</font>
<font style="border:white thin solid">integer&nbsp;<img  id=ati2 onclick=atip2(this,2,"i") src=../../../../d~e~f/no.gif>&nbsp;&nbsp;i,&nbsp;</font>
<font style="border:white thin solid">money&nbsp;<img id=ati3 onclick=atip2(this,3,"$") src=../../../../d~e~f/no.gif>&nbsp;&nbsp;$,&nbsp;</font>
<?php
if ($pp=="")
{echo '<font style="border:white thin solid">list&nbsp;<img  id=ati4 onclick=atip2(this,4,"L") src=../../../../d~e~f/no.gif>&nbsp;L,&nbsp;</font>&nbsp;';
echo '<font style="border:white thin solid">link&nbsp;<img  id=ati5 onclick=atip2(this,5,"a") src=../../../../d~e~f/no.gif>&nbsp;a.&nbsp;</font>';
}
else
{echo '<font style="border:white thin solid">list&nbsp;<img  style="display:none" id=ati4 onclick=atip2(this,4,"L") src=../../../../d~e~f/no.gif>L&nbsp;,&nbsp;</font>&nbsp;';
echo '<font style="border:white thin solid">link&nbsp;<img  style="" id=ati5 onclick=atip2(this,5,"a") src=../../../../d~e~f/no.gif>a&nbsp;.&nbsp;</font>';
}
?>
</nobr>
</td></tr>
<tr id=atip4 style=""><td style="background:silver;color:brown">

ENTER, CHANGE:&nbsp;&nbsp;&nbsp;   <button form="" id=sav onclick=savi() title="Click me to save changes!"   style="display:none;background:yellow;color:brown;width:300">
<b>and, to save, click me!</b></button>
<table><tr id=pdef><td>default</td><td><input type=text readonly id=deff name=deff1 style="background:white" value="?">  enter with "d"  
</td></tr>
<tr id=pmin style="display:none"  ><td>min</td><td><input id=pminn title="For: dates, integers, money, list - the minimum allowed value, for text the number of characters."     type=text name=amin style="background:white"></td></tr>
<tr id=pmax><td>max</td><td><input type=text id=pmaxx title="For text, the number of characters; for: dates, integers, money, list - the maximum allowed value."   name=amax style="background:white"></td></tr>
<?php
echo "<tr id=podst style=display:none;>";         //
?>
<td>
<button form="" title="Click me to select a table of values."  onclick=pods() style="background:silver;width:100">
The values</button></td>
<td>
<input size=50 type=text id=podstx title="Select the table from which data will be inserted into this field."   
name=pod1 style="background:white"><button style="background:silver" title="Undo values." onclick=document.getElementById('podstx').value=""   >X</button>
</td>
</tr>
<tr>
<td colspan=2>
<table border=0 width=100%><tr>
<td width=50%>
Template&nbsp;&nbsp;
<input size=20 type=text id=sabl title="The data entry template for this field, if it starts with +, then includes the column value in the headers of the subordinate tables." name=sabl style="background:white">
</td><td width=50%>
Designation&nbsp;&nbsp;<input size=15 type=text id=oboz2 
title="Notation for referring to a column value in PHP." 
name=oboz2 style="background:white"></td></tr></table>
</td>
</tr>
<tr>
<td colspan=2>
Description&nbsp;&nbsp;
<input size=60 type=text id=opis title="A brief description of the data in the column."   name=opis style="background:white">
</td>
</tr>
</table>
</td></tr>
<tr><td>
</td></tr>
</table> </td><td width=20% >&nbsp;</td></tr></table>
<script type="text/javascript">
//***********************************
// 
//**********************************
function com(p)
{if (table.length==0)
{alert("Administrator commands with an empty table are not executed! \r\n Enter at least one line and save it.")
return}
kkk=0
for(var j = 0; j < table.length; j++)   //
{if (table[j][0]=="?")                
{kkk++}
}
if (kkk==table.length) 
{return}
inn=false                                              // 
for(var j = 0; j < table.length; j++)                  // 
 {if (table[j][0]=="?")                                 //
 {inn=true; break }
 if (table[j][table[j].length-1].indexOf('yes.gif')>0) // 
 {inn=true; break}
}
if (form.elements["ggg"].value!="")
{alert("Access to administrator commands is not possible! \r\n Graphs are shown! \r\n Cancel graphs and repeat.")
return
}
document.getElementById("h").style.visibility="visible"


if  (window.top.document.getElementById('refe').innerHTML.indexOf("reddoc")<0)    //
{
document.getElementById("ko").style.display="none"
document.getElementById("ko1").style.display="none"
document.getElementById("ko2").style.display="none"


document.getElementById("ko3").style.display="none"
mrepp=document.getElementById("repo").innerHTML
mrepp=mrepp.replace("\r\n","")
if (mrepp=="saved" || mrepp=="added")
{window.top.document.getElementById("papa").innerHTML="-"
}}
else                                                            //
{if (monn)   // 
{document.getElementById("ki").disabled=false
//par=document.getElementById("form").action
//par1=par.split('tabl=')
//mpar=par1[1].split('/')
if (par1[1].indexOf("-")<0 )                     // 
{document.getElementById("kt").disabled=false
}
}
else
{document.getElementById("ki").disabled=true
document.getElementById("kt").disabled=true
}
document.getElementById("ko4").style.display="none"}
if (parseInt(obj1.id.replace("ta",""),10)==0) 
{document.getElementById("ki").disabled=true;
document.getElementById("ku").disabled=true;
}
else
{if (monn)
{document.getElementById("ki").disabled=false;
document.getElementById("ku").disabled=false;
}}
document.getElementById("izm1").style.display="none"
document.getElementById("atip").style.display="none"
//document.getElementById("atip1").style.display="none"
document.getElementById("atip2").style.display="none"
document.getElementById("atip4").style.display="none"
//document.getElementById("ol").style.display=""
document.getElementById("com").style.display=""
is=parseInt(obj1.id.replace("ta",""),10)
mmzag2=document.getElementById("t").getElementsByTagName("TR") 
mmzag=mmzag2[0].getElementsByTagName("TD") 
document.getElementById("aold").innerHTML=mmzag[is].innerHTML.replace("\r\n","")
document.getElementById("anew").value=document.getElementById("aold").innerHTML
}
//***********************************
// 
//**********************************
function azak()
{document.getElementById("com").style.display="none"
document.getElementById("sav").style.display="none"
document.getElementById("h").style.visibility="hidden"
}
var objbutton=""
var chto=""
var oldtip=""
//***********************
// 
//***********************
function ars(p,p1)
{if (!acon()) return
selc(p)    // 
if (objbutton!="")
{objbutton.style.background="white"}
p.style.background="yellow"
objbutton=p
chto=p1
is=parseInt(obj1.id.replace("ta",""),10)
// 
oldtip=mtip[is]
oldpod=mpod[is]

if (mtip[is]=="i")   // 
{document.getElementById("ati2").click()
}
if (mtip[is]=="$")   // 
{document.getElementById("ati3").click()}
if (mtip[is]=="d")   // 
{document.getElementById("ati1").click()}
if (mtip[is]=="t")   // 
{document.getElementById("ati0").click()}
if (mtip[is]=="L")   // 
{document.getElementById("ati4").click()}
if (mtip[is]=="a")   // 
{document.getElementById("ati5").click()}
document.getElementById("sav").style.display=""
//document.getElementById("ol").style.display=""
document.getElementById("izm1").style.display=""
document.getElementById("atip").style.display=""
//document.getElementById("atip1").style.display="none"
document.getElementById("atip2").style.display=""
document.getElementById("atip4").style.display=""

}
//********************
// 
//********************
function ais(p,p1)
{if (!acon()) return
selc(p)    //
if (objbutton!="")
{objbutton.style.background="white"}
p.style.background="yellow"
objbutton=p
chto=p1
document.getElementById("sav").style.display=""
//document.getElementById("ol").style.display=""
document.getElementById("izm1").style.display=""
document.getElementById("atip").style.display=""
//document.getElementById("atip1").style.display=""
document.getElementById("atip2").style.display=""
document.getElementById("atip4").style.display=""
document.getElementById("ati0").click()
}
// 
function acon()
{if (obj1=="")
{alert("Column not selected! Click a column and repeat!")
document.getElementById("com").style.display="none"
return false
}
amst=document.getElementById("t").getElementsByTagName("INPUT")   
for(var i=0; i<amst.length-1; i++)                            // 
{ttk=amst[i].outerHTML
ttk=ttk.toUpperCase()
if (ttk.indexOf("CHECKED")>0)
{alert("The table has been changed! Click 'Save Changes' or 'Cancel Changes' and Redo!")
document.getElementById("com").style.display="none"
return false
}}
return true
}
//****************************************************************
function rus_lat(event)   // 
//****************************************************************
{
event = event || window.event
var t = event.target || event.srcElement

if (t.id=="value")
{if (document.getElementById("value_r1").style.display=="")
{document.getElementById("value_r1").style.display="none"
document.getElementById("value_r2").style.display="none"
document.getElementById("value_L1").style.display=""
document.getElementById("value_L2").style.display=""
}
else
{document.getElementById("value_r1").style.display=""
document.getElementById("value_r2").style.display=""
document.getElementById("value_L1").style.display="none"
document.getElementById("value_L2").style.display="none"	
}	
}
else if (t.id=="subst")
{if (document.getElementById("subst_r1").style.display=="")
{document.getElementById("subst_r1").style.display="none"
document.getElementById("subst_r2").style.display="none"
document.getElementById("subst_L1").style.display=""
document.getElementById("subst_L2").style.display=""
}
else
{document.getElementById("subst_r1").style.display=""
document.getElementById("subst_r2").style.display=""
document.getElementById("subst_L1").style.display="none"
document.getElementById("subst_L2").style.display="none"	
}
}
else if (t.id=="links")
{if (document.getElementById("links_r1").style.display=="")
{document.getElementById("links_r1").style.display="none"
document.getElementById("links_r2").style.display="none"
document.getElementById("links_L1").style.display=""
document.getElementById("links_L2").style.display=""
}
else
{document.getElementById("links_r1").style.display=""
document.getElementById("links_r2").style.display=""
document.getElementById("links_L1").style.display="none"
document.getElementById("links_L2").style.display="none"	
}
}
}

//****************************************************************
function in_context(p)   // 
//****************************************************************
{
if (p=="vbs3")	
{www=obj1.value.replace("n","")	
www=www.replace("?","")	
}
else
{www=obj1.value}
document.getElementById(p).value=www
}

rel_status=true
//****************************************************************
function rel_display(p)   // 
//****************************************************************
{ssp=document.getElementById("tref").getElementsByTagName("TR")
if (p==1 && rel_status)    //
{
if (olds4=="")
{alert("No highlighted line!")
return}	
m_olds4=olds4.parentNode.getElementsByTagName("TD")
m4=m_olds4[4].innerHTML
if (m4.indexOf("v")>0)
{alert("No highlighted line!")
return	
}
for(var jj = 0; jj < ssp.length; jj++) 
{td_ssp=ssp[jj].getElementsByTagName("TD")
mm4=td_ssp[4].innerHTML
if (mm4.indexOf(m4)==0)
{ssp[jj].style.display=""}
else
{ssp[jj].style.display="none"}	
}
rel_status=false	
}
if (p==2)    //
{rel_status=true	
for(var jj = 0; jj < ssp.length; jj++)       //
{td_ssp=ssp[jj].getElementsByTagName("TD")
if (td_ssp[4].innerHTML.indexOf("v")>0)
{ssp[jj].style.display="none"}	
else
{ssp[jj].style.display=""}	
}}}

</script>