Модератор: Длиные скрипты выкладывайте на скрепке, что бы экономить трафик остальных участников форума.
AntonariyВыложи страничку, расковыряем))
Та там и вылаживать нечего...
За разметку не критикуйте, и за содержимое то же. Табличка была просто сохранена с реальной системы для принтинга, всё остальное не столь важно. Понимаю, что код ужасный, но его писали уже давно, да и не поменяешь, ибо страничка парсится через Oracle HTTP Web Server. Тут уж если менять, то всё целиком (вместе с проектом =).
margin-top: -20px было добавлено для того, чтобы скрыть "апендикс". На скрине обвёл красным. А стрелка внизу указывает на ту невидимую границу, которая равна высоте таблицы (хотя в принте там должна быть её длина).
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
47.
48.
49.
50.
51.
52.
53.
54.
55.
56.
57.
58.
59.
60.
61.
62.
63.
64.
65.
66.
67.
68.
69.
70.
71.
72.
73.
74.
75.
76.
77.
78.
79.
80.
81.
82.
83.
84.
85.
86.
87.
88.
89.
90.
91.
92.
93.
94.
95.
96.
97.
98.
99.
100.
101.
102.
103.
104.
105.
106.
107.
108.
109.
110.
111.
112.
113.
114.
115.
116.
117.
118.
119.
120.
121.
122.
123.
124.
125.
126.
127.
128.
129.
130.
131.
132.
133.
134.
135.
136.
137.
138.
139.
140.
141.
142.
143.
144.
145.
146.
147.
148.
149.
150.
151.
152.
153.
154.
155.
156.
157.
158.
159.
160.
161.
162.
163.
164.
165.
166.
167.
168.
169.
170.
171.
172.
173.
174.
175.
176.
177.
178.
179.
180.
181.
182.
183.
184.
185.
186.
187.
188.
189.
190.
191.
192.
193.
194.
195.
196.
197.
198.
199.
200.
201.
202.
203.
204.
205.
206.
207.
208.
209.
210.
211.
212.
213.
214.
215.
216.
217.
218.
219.
220.
221.
222.
223.
224.
225.
226.
227.
228.
229.
230.
231.
232.
233.
234.
235.
236.
237.
238.
239.
240.
241.
242.
243.
244.
245.
246.
247.
248.
249.
250.
251.
252.
253.
254.
255.
256.
257.
258.
259.
260.
261.
262.
263.
264.
265.
266.
267.
268.
269.
270.
271.
272.
273.
274.
275.
276.
277.
278.
279.
280.
281.
282.
283.
284.
285.
286.
287.
288.
289.
290.
291.
292.
293.
294.
295.
296.
297.
298.
299.
300.
301.
302.
303.
304.
305.
306.
307.
308.
309.
310.
311.
312.
313.
314.
315.
316.
317.
318.
319.
320.
321.
322.
323.
324.
325.
326.
327.
328.
329.
330.
331.
332.
333.
334.
335.
336.
337.
338.
339.
340.
341.
342.
343.
344.
345.
346.
347.
348.
349.
350.
351.
352.
353.
354.
355.
356.
357.
358.
359.
360.
361.
362.
363.
364.
365.
366.
367.
368.
369.
370.
371.
372.
373.
374.
375.
376.
377.
378.
379.
380.
381.
382.
383.
384.
385.
386.
387.
388.
389.
390.
391.
392.
393.
394.
395.
396.
397.
398.
399.
400.
401.
402.
403.
404.
405.
406.
407.
408.
409.
410.
411.
412.
413.
414.
415.
416.
417.
418.
419.
420.
421.
422.
423.
424.
425.
426.
427.
428.
429.
430.
431.
432.
433.
434.
435.
436.
437.
438.
439.
440.
441.
442.
443.
444.
445.
446.
447.
448.
449.
450.
451.
452.
453.
454.
455.
456.
457.
458.
459.
460.
461.
462.
463.
464.
465.
466.
467.
468.
469.
470.
471.
472.
473.
474.
475.
476.
477.
478.
479.
480.
481.
482.
483.
484.
485.
486.
487.
488.
489.
490.
491.
492.
493.
494.
495.
496.
497.
498.
499.
500.
501.
502.
503.
504.
505.
506.
507.
508.
509.
510.
511.
512.
513.
514.
515.
516.
517.
518.
519.
520.
521.
522.
523.
524.
525.
526.
527.
528.
529.
530.
531.
532.
533.
534.
535.
536.
537.
538.
539.
540.
541.
542.
543.
544.
545.
546.
547.
548.
549.
550.
551.
552.
553.
554.
555.
556.
557.
558.
559.
560.
561.
562.
563.
564.
565.
566.
567.
568.
569.
570.
571.
572.
573.
574.
575.
576.
577.
578.
579.
580.
581.
582.
583.
584.
585.
586.
587.
588.
589.
590.
591.
592.
593.
594.
595.
596.
597.
598.
599.
600.
601.
602.
603.
604.
605.
606.
607.
608.
609.
610.
611.
612.
613.
614.
615.
616.
617.
618.
619.
620.
621.
622.
623.
624.
625.
626.
627.
628.
629.
630.
631.
632.
633.
634.
635.
636.
637.
638.
639.
640.
641.
642.
643.
644.
645.
646.
647.
648.
649.
650.
651.
652.
653.
654.
655.
656.
657.
658.
659.
660.
661.
662.
663.
664.
665.
666.
667.
668.
669.
670.
671.
672.
673.
674.
675.
676.
677.
678.
679.
680.
681.
682.
683.
684.
685.
686.
687.
688.
689.
690.
691.
692.
693.
694.
695.
696.
697.
698.
699.
700.
701.
702.
703.
704.
705.
706.
707.
708.
709.
710.
711.
712.
713.
<html>
<head>
<META content="text/html; charset=windows-1251" http-equiv="Content-Type">
<style>
table.page {
border-color:green;
}
table.page table {
border-color:red;
margin-top: -20px;
width: 27 .5cm;
filter: progid:DXImageTransform.Microsoft.BasicImage(Rotation= 1 );
}
</style>
</head>
<body>
<table class="page" border= 1 ><tr><td>
<table border= 1 >
<colgroup>
<col style="width:5.00cm;">
<col style="width:0.90cm;">
<col style="width:1.80cm;">
<col style="width:1.90cm;">
<col style="width:1.80cm;">
<col style="width:1.70cm;">
<col style="width:1.70cm;">
<col style="width:1.70cm;">
<col style="width:1.80cm;">
<col style="width:1.80cm;">
<col style="width:1.80cm;">
<col style="width:1.80cm;">
<col style="width:1.90cm;">
<col style="width:1.90cm;">
</colgroup>
<caption style="font-size:14;">I.Заголовок</caption>
<thead>
<tr class="none"><th colspan= 10 align=left></th><th colspan= 4 align=right></th></tr>
<tr style="height:cm;">
<th rowspan= 3 >Найменування показника</th>
<th rowspan= 3 >№<BR> рядка</th>
<th colspan= 3 >Всього</th>
<th colspan= 9 >У тому числи</th>
</tr>
<tr style="height:cm;">
<th rowspan= 2 >доходи</th>
<th rowspan= 2 >у тому числ?<BR> ПДВ</th>
<th rowspan= 2 >витрати</th>
<th colspan= 3 >some text here</th>
<th colspan= 3 >some text here</th>
<th colspan= 3 >на сторону</th>
</tr>
<tr style="height:cm;">
<th > доходи</th>
<th > у тому числ?<BR> ПДВ</th>
<th > витрати</th>
<th > доходи</th>
<th > у тому числ?<BR> ПДВ</th>
<th > витрати</th>
<th > доходи</th>
<th > у тому числ?<BR> ПДВ</th>
<th > витрати</th>
</tr>
<tr style="height:cm;">
<th>А</th>
<th>Б</th>
<th> 1 </th>
<th> 2 </th>
<th> 3 </th>
<th> 4 </th>
<th> 5 </th>
<th> 6 </th>
<th> 7 </th>
<th> 8 </th>
<th> 9 </th>
<th> 10 </th>
<th> 11 </th>
<th> 12 </th>
</tr>
</thead><tbody style="float:left;">
<tr class=" " style="height:0.60cm;">
<th class="lefts" > <b>Всього</b> (сума рядк?в 20 ? 50 )</th>
<th class="centers"> 10 </th>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="1">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="2">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="3">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="4">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="5">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="6">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="7">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="8">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="9">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="10">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="11">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="12">
</td>
</tr>
<tr class=" " style="height:0.60cm;">
<th class="lefts" >some text here </th>
<th class="centers"> 20 </th>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="13">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="14">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="15">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="16">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="17">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="18">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="19">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="20">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="21">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="22">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="23">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="24">
</td>
</tr>
<tr class=" " style="height:0.70cm;">
<th class="lefts" > <b>у тому чис</b></th>
<th class="centers"> 30 </th>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="25">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="26">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="27">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="28">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="29">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="30">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="31">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="32">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="33">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="34">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="35">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="36">
</td>
</tr>
<tr class=" " style="height:0.60cm;">
<th class="lefts" > some text here
</th>
<th class="centers"> 40 </th>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="37">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="38">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="39">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="40">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="41">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="42">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="43">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="44">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="45">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="46">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="47">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="48">
</td>
</tr>
<tr class=" " style="height:0.70cm;">
<th class="lefts" >some text here</th>
<th class="centers"> 41 </th>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="49">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="50">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="51">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="52">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="53">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="54">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="55">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="56">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="57">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="58">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="59">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="60">
</td>
</tr>
<tr class=" " style="height:0.50cm;">
<th class="lefts" > some text here</th>
<th class="centers"> 42 </th>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="61">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="62">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="63">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="64">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="65">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="66">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="67">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="68">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="69">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="70">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="71">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="72">
</td>
</tr>
<tr class=" " style="height:0.50cm;">
<th class="lefts" >some text here</th>
<th class="centers"> 43 </th>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="73">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="74">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="75">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="76">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="77">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="78">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="79">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="80">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="81">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="82">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="83">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="84">
</td>
</tr>
<tr class=" " style="height:0.80cm;">
<th class="lefts" > some text here</th>
<th class="centers"> 50 </th>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="85">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="86">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="87">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="88">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="89">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="90">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="91">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="92">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="93">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="94">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="95">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="96">
</td>
</tr>
<tr class=" " style="height:0.70cm;">
<th class="lefts" > <b>у тому числ?:</b></th>
<th class="centers"> 51 </th>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="97">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="98">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="99">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="100">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="101">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="102">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="103">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="104">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="105">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="106">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="107">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="108">
</td>
</tr>
<tr class=" " style="height:0.50cm;">
<th class="lefts" > some text here</th>
<th class="centers"> 52 </th>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="109">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="110">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="111">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="112">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="113">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="114">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="115">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="116">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="117">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="118">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="119">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="120">
</td>
</tr>
<tr class=" " style="height:0.60cm;">
<th class="lefts" > some text here</th>
<th class="centers"> 53 </th>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="121">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="122">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="123">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="124">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="125">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="126">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="127">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="128">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="129">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="130">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="131">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="132">
</td>
</tr>
<tr class=" " style="height:0.60cm;">
<th class="lefts" >some text here</th>
<th class="centers"> 54 </th>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="133">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="134">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="135">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="136">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="137">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="X" param="138">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="139">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="140">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="141">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="142">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="143">
</td>
<td>
<input style="width:24px;" maxlength= 14 name="cell" value="" param="144">
</td>
</tr>
</tbody>
</table></td></tr>
</table>
</body>
</html>