
<?php
$OptionsStr = "<option value=1>1<option value=2>2<option value=3>3<option value=4>4<option value=5>5<option value=6>6<option value=7>7<option value=8>8<option value=9>9<option value=10>10<option value=11>11<option value=12>12<option value=13>13<option value=14>14<option value=15>15<option value=16>16<option value=17>17<option value=18>18<option value=19>19<option value=20>20<option value=21>21<option value=22>22<option value=23>23<option value=24>24<option value=25>25<option value=26>26<option value=27>27<option value=28>28<option value=29>29<option value=30>30<option value=31>31<option value=32>32<option value=33>33<option value=34>34<option value=35>35<option value=36>36<option value=37>37<option value=38>38<option value=39>39<option value=40>40<option value=41>41<option value=42>42<option value=43>43<option value=44>44<option value=45>45<option value=46>46<option value=47>47<option value=48>48<option value=49>49<option value=50>50";
include('../graphic-conf.inc');


print "<h4>{$Heading_Graphics}</h4>";
if($ShowTips == 'yes')
  ShowTips($Page);
print "<fieldset class=GeneralField align=center>";
  print "<table align=center class=General border=0 cellpadding=0 cellspacing=0 width=90% >";
  print "<tr>";
    print "<td width=33% align=center><a href=index.php?page=graphic>{$Menu_grph_General}</a></td>";
    print "<td width=33% align=center><a href=index.php?page=graphic_access>{$Menu_grph_Access}</a></td>";
    print "<td width=33% align=center><a href=index.php?page=graphic_jpgraph_pies&type=pie>{$Menu_grph_jpgraph}</a></td>";
  print "</tr>";
  print "</table>";
print "</fieldset>";

print "<form action='graphic_generate.php' method=post>";
print "<fieldset class=MiniField align=center>";

//ширина и высота горизонтальных гистограмм
print "<table class=General align=center border=0 cellspacing=0 cellpadding=0 width=90%>";
	print "<tr><td colspan=3><b>{$Heading_HorizHistogrImageSize}</b></td></tr>";
	print "<tr>";
  	print "<td width=30%>{$Cpt_HorHist_Height}</td>";
	  print "<td width=10% align=left>";
      print "<select name=HorHistHeight>";
        $Tmp = str_replace("<option value={$HorHistImgHeight}>{$HorHistImgHeight}", "<option value={$HorHistImgHeight} selected>{$HorHistImgHeight}", $OptionsStr);
        print $Tmp;
      print "</select>";
    print "</td>";
    print "<td rowspan=2><input type = submit name=HorHistogrChangeSize value={$Cpt_Change}></td>";
  print "</tr>";
  print "<tr>";
  	print "<td>{$Cpt_HorHist_Width}</td>";
    print "<td>";
      print "<select name=HorHistWidth>";
        $Tmp = str_replace("<option value={$HorHistImgWidth}>{$HorHistImgWidth}", "<option value={$HorHistImgWidth} selected>{$HorHistImgWidth}", $OptionsStr);
        print $Tmp;
      print "</select>";
    print "</td>";
	print "</tr>";

print "</table>";

//ширина и высота вертикальных гистограмм
print "<table class=General align=center border=0 cellspacing=0 cellpadding=0 width=90%>";
	print "<tr><td colspan=3><b>{$Heading_VertHistogrImageSize}</b></td></tr>";
	print "<tr>";
  	print "<td width=30%>{$Cpt_VertHist_Height}</td>";
	  print "<td width=10% align=left>";
      print "<select name=VertHistHeight>";
        $Tmp = str_replace("<option value={$VertHistImgHeight}>{$VertHistImgHeight}", "<option value={$VertHistImgHeight} selected>{$VertHistImgHeight}", $OptionsStr);
        print $Tmp;
      print "</select>";
    print "</td>";
    print "<td rowspan=2><input type = submit name=VertHistogrChangeSize value={$Cpt_Change}></td>";
  print "</tr>";
  print "<tr>";
  	print "<td>{$Cpt_VertHist_Width}</td>";
    print "<td>";
      print "<select name=VertHistWidth>";
       $Tmp = str_replace("<option value={$VertHistImgWidth}>{$VertHistImgWidth}", "<option value={$VertHistImgWidth} selected>{$VertHistImgWidth}", $OptionsStr);
        print $Tmp;
      print "</select>";
    print "</td>";
	print "</tr>";
  print "<tr>";
    print "<td>{$Cpt_VertHist_ShowLegend}</td>";
    if($ShowLegend == 'on')
      $Checked = 'checked';
    print "<td><input type=checkbox name=ShowLegend {$Checked}></td>";
  print "</tr>";
print "</table>";
print "</form>";

//цвета
print "<form action='graphic_generate.php' method=post>";
print "<table class=General align=center border=0 cellspacing=0 cellpadding=0 width=90%>";
  print "<tr><td colspan=4><b>{$Heading_grph_Colors}</b></td></tr>";
  print "<tr>";
    print "<td width=150><b>{$TH_grph_Variations}</b></td>";
    print "<td align=center width=150><b>R</b></td>";
    print "<td align=center width=150><b>G</b></td>";
    print "<td align=center width=150><b>B</b></td>";
  print "</tr>";

  for($i = 1; $i <= 20; $i++)
  {
    print "<tr>";
	    print "<td>{$Cpt_Variation} № {$i}</td>";
	    print "<td align=center><input name=VarR{$i} value='{$VarRGB[$i][0]}' type=text size=3 maxlength=3></td>";
	    print "<td align=center><input name=VarG{$i} value='{$VarRGB[$i][1]}' type=text size=3 maxlength=3></td>";
	    print "<td align=center><input name=VarB{$i} value='{$VarRGB[$i][2]}' type=text size=3 maxlength=3></td>";
	  print "</tr>";
  }
print "</table>";
print "<table class=General align=center border=0 cellspacing=0 cellpadding=0 width=90%>";
  print "<tr align=center><td><input class=Button type=Submit name=GenerateImages value='{$Button_grph_Generate}'>&nbsp;&nbsp;<input type=Submit class=Button name=ChangePalette value='{$Button_grph_ChangePalette}'></td></tr>";
print "</table>";
print "</fieldset>";
print "</form>";

?>