Merhaba arkadawlar. Ben bir proje yazdim. 2 tane tablo var. onlarin hammisin 1 form icine yazdim. 1 tabloda 1 sutun 2-ci tabloda 8 sutun var. 1-ci tabloya yazdiqim deyerleri bazaya yaziyor. 2cide ise bazaya yazmiyor. ben input yaptiklarimi yazmiyor.


<form id="bolme1" name="bolme1" method="post" action="Insert">
        <table border="1" cellspacing="0" id="tab1">
            <h3>• I-Bölmə. Ümumi iqtisadi göstəricilər </h3>
            <tr>

                <th bgcolor="#B1E2DO">Göstəricinin adı</th>
                <th bgcolor="#B1E2DO">Sətrin<br>Kodu</th>
                <th bgcolor="#B1E2DO">Göstəricinin həcmi</th>
            </tr>

            <tr>
                <th bgcolor="#D6F5EA">A</th>
                <th bgcolor="#D6F5EA">B</th>
                <th bgcolor="#D6F5EA">1</th>
            </tr>

            <%  name = 1;
                for (Tablepojo p : DBoperations.listBolme1()) {

            %>
            <tr >
                <td><%=p.getGa()%></td>
                <td align="center"><%=p.getSk()%>
                    <input type="hidden" value="<%=p.getSk()%>" name="sk_<%=name%>" /></td>
                <td>
                    <!--    eğer bazada deyer yoxdursa bow input cixardacaq -->
                    <% if (p.getA1() == null) {%> <input type="text" name="txt_<%=name%>" maxlength="10" style="text-align: right" onkeypress="event.returnValue = (event.keyCode > 48) && (event.keyCode = < 57) ? true : event.keyCode == 46"/>
                    <!--  eğer bazada deyer varsa Hemen deyeri cixardacaq -->    
                    <% } else {%><input type="text" value="<%=p.getA1()%>" name="txt_<%=name%>" maxlength="10" style="text-align: right" onkeypress="event.returnValue = (event.keyCode > 48) && (event.keyCode = < 57) ? true : event.keyCode == 46"/>
                    <% }%>
                </td>
            </tr>
            <% name++;
                }%>
        </table>
        <br/>

        <hr/>
        <!-- 1-inci bolme ///// END -->

        <%-- 2-inci bolme ///// BEGIN --%>
        <h3>• II-Bölmə. Rüb ərzində daxilolmalar (ABŞ dolları ilə)</h3>
        <table border="1" cellspacing="0" id="tab2">

            <tr>
                <th rowspan="2" bgcolor="#B1E2DO">Göstəricinin adı </th>
                <th rowspan="2" bgcolor="#B1E2DO">Sətrin<br>Kodu</th>
                <th rowspan="2" bgcolor="#B1E2DO">Cəmi</th>
                <th colspan="7" bgcolor="#B1E2DO">Əməliyyatları ölkələr üzrə göstərməli</th>
            </tr> 
            <tr>
                <td>
                    <select name="sel" id="ss" >
                        <option value="dd" >Azərbaycan</option>
                    </select>
                </td>
            </tr>
            <tr>
                <th bgcolor="#D6F5EA">A</th>
                <th bgcolor="#D6F5EA">B</th>
                <th bgcolor="#D6F5EA">1</th>  
                <th bgcolor="#D6F5EA">2</th> 
                <th bgcolor="#D6F5EA">3</th> 
                <th bgcolor="#D6F5EA">4</th> 
                <th bgcolor="#D6F5EA">5</th> 
                <th bgcolor="#D6F5EA">6</th> 
                <th bgcolor="#D6F5EA">7</th> 
                <th bgcolor="#D6F5EA">8</th> 
            </tr>

            <!--  <th>İL</th>
              <th>RüB</th> -->

            <% name = 2;
                for (Tablepojo p : DBoperations.listBolme2()) {
            %>
            <tr>
                <td><%=p.getGa()%>
                    <input type="hidden" value="<%=p.getSk()%>" name="sk_<%=name%>" /></td>
                <td align="center"><%=p.getSk()%> 
                    <td>
                        <!--    eğer bazada deyer yoxdursa bow input cixardacaq -->
                        <% if (p.getA1() == null) {%> <input type="text" name="txt_<%=name%>" size="10" maxlength="10" style="text-align: right" onkeypress="event.returnValue = (event.keyCode > 48) && (event.keyCode = < 57) ? true : event.keyCode == 46"/>
                        <!--  eğer bazada deyer varsa Hemen deyeri cixardacaq -->    
                        <% } else {%><input type="text" value="<%=p.getA1()%>" name="txt_<%=name%>" size="10" maxlength="10" style="text-align: right" onkeypress="event.returnValue = (event.keyCode > 48) && (event.keyCode = < 57) ? true : event.keyCode == 46"/>
                        <% }%>
                    </td>
                    <td>
                        <!--    eğer bazada deyer yoxdursa bow input cixardacaq -->
                        <% if (p.getA2() == null) {%> <input type="text" name="txt_<%=name%>" size="10" maxlength="10" style="text-align: right" onkeypress="event.returnValue = (event.keyCode > 48) && (event.keyCode = < 57) ? true : event.keyCode == 46"/>
                        <!--  eğer bazada deyer varsa Hemen deyeri cixardacaq -->    
                        <% } else {%><input type="text" value="<%=p.getA2()%>" name="txt_<%=name%>" size="10" maxlength="10" style="text-align: right" onkeypress="event.returnValue = (event.keyCode > 48) && (event.keyCode = < 57) ? true : event.keyCode == 46"/>
                        <% }%>
                    </td>
                    <td>
                        <!--    eğer bazada deyer yoxdursa bow input cixardacaq -->
                        <% if (p.getA3() == null) {%> <input type="text" name="txt_<%=name%>" size="10" maxlength="10" style="text-align: right" onkeypress="event.returnValue = (event.keyCode > 48) && (event.keyCode = < 57) ? true : event.keyCode == 46"/>
                        <!--  eğer bazada deyer varsa Hemen deyeri cixardacaq -->    
                        <% } else {%><input type="text" value="<%=p.getA3()%>" name="txt_<%=name%>" size="10" maxlength="10" style="text-align: right" onkeypress="event.returnValue = (event.keyCode > 48) && (event.keyCode = < 57) ? true : event.keyCode == 46"/>
                        <% }%>
                    </td>
                    <td>
                        <!--    eğer bazada deyer yoxdursa bow input cixardacaq -->
                        <% if (p.getA4() == null) {%> <input type="text" name="txt_<%=name%>" size="10" maxlength="10" style="text-align: right" onkeypress="event.returnValue = (event.keyCode > 48) && (event.keyCode = < 57) ? true : event.keyCode == 46"/>
                        <!--  eğer bazada deyer varsa Hemen deyeri cixardacaq -->    
                        <% } else {%><input type="text" value="<%=p.getA4()%>" name="txt_<%=name%>" size="10" maxlength="10" style="text-align: right" onkeypress="event.returnValue = (event.keyCode > 48) && (event.keyCode = < 57) ? true : event.keyCode == 46"/>
                        <% }%>
                    </td>
                    <td>
                        <!--    eğer bazada deyer yoxdursa bow input cixardacaq -->
                        <% if (p.getA5() == null) {%> <input type="text" name="txt_<%=name%>" size="10" maxlength="10" style="text-align: right" onkeypress="event.returnValue = (event.keyCode > 48) && (event.keyCode = < 57) ? true : event.keyCode == 46"/>
                        <!--  eğer bazada deyer varsa Hemen deyeri cixardacaq -->    
                        <% } else {%><input type="text" value="<%=p.getA5()%>" name="txt_<%=name%>" size="10" maxlength="10" style="text-align: right" onkeypress="event.returnValue = (event.keyCode > 48) && (event.keyCode = < 57) ? true : event.keyCode == 46"/>
                        <% }%>
                    </td>
                    <td>
                        <!--    eğer bazada deyer yoxdursa bow input cixardacaq -->
                        <% if (p.getA6() == null) {%> <input type="text" name="txt_<%=name%>" size="10" maxlength="10" style="text-align: right" onkeypress="event.returnValue = (event.keyCode > 48) && (event.keyCode = < 57) ? true : event.keyCode == 46"/>
                        <!--  eğer bazada deyer varsa Hemen deyeri cixardacaq -->    
                        <% } else {%><input type="text" value="<%=p.getA6()%>" name="txt_<%=name%>" size="10" maxlength="10" style="text-align: right" onkeypress="event.returnValue = (event.keyCode > 48) && (event.keyCode = < 57) ? true : event.keyCode == 46"/>
                        <% }%>
                    </td> 
                    <td>
                        <!--    eğer bazada deyer yoxdursa bow input cixardacaq -->
                        <% if (p.getA7() == null) {%> <input type="text" name="txt_<%=name%>" size="10" maxlength="10" style="text-align: right" onkeypress="event.returnValue = (event.keyCode > 48) && (event.keyCode = < 57) ? true : event.keyCode == 46"/>
                        <!--  eğer bazada deyer varsa Hemen deyeri cixardacaq -->    
                        <% } else {%><input type="text" value="<%=p.getA7()%>" name="txt_<%=name%>" size="10" maxlength="10" style="text-align: right" onkeypress="event.returnValue = (event.keyCode > 48) && (event.keyCode = < 57) ? true : event.keyCode == 46"/>
                        <% }%>
                    </td>
                    <td>
                        <!--    eğer bazada deyer yoxdursa bow input cixardacaq -->
                        <% if (p.getA8() == null) {%> <input type="text" name="txt_<%=name%>" size="10" maxlength="10" style="text-align: right" onkeypress="event.returnValue = (event.keyCode > 48) && (event.keyCode = < 57) ? true : event.keyCode == 46"/>
                        <!--  eğer bazada deyer varsa Hemen deyeri cixardacaq -->    
                        <% } else {%><input type="text" value="<%=p.getA8()%>" name="txt_<%=name%>" size="10" maxlength="10" style="text-align: right" onkeypress="event.returnValue = (event.keyCode > 48) && (event.keyCode = < 57) ? true : event.keyCode == 46"/>
                        <% }%>
                    </td>
            </tr>
            <%
                    name++;
                }%>
        </table>
        <br/>
        <hr/>

        <!-- 2-inci bolme ///// END -->

<input type="hidden" value="&lt;%=name%&gt;" name="count" &gt;="" <input="" type="submit" name="btnsave" value="Yadda saxla"></input> <input type="submit" name="btnprint" value="Çap et"> </input> </form>

soruldu: 14 Eki '14, 03:32

Ferid's gravatar image

Ferid
551272834
cevap kabul oranı: 10%

tablo kullanan kalmadı, hiçbir esnekliği de yok. div araştırmanı tavsiye ederim.

(14 Eki '14, 03:42) katil39 katil39's gravatar image

Anlamadim. Geniw malumat verirmisiniz?

(14 Eki '14, 05:22) Ferid Ferid's gravatar image

CSS, Div kullanarak tablo yapabilirsiniz.

(15 Eki '14, 07:48) rahmanyazgan ♦ rahmanyazgan's gravatar image

<%-- 2-inci bolme ///// BEGIN --%>

Bu satırdan emin misin?

<!-- 2-inci bolme ///// BEGIN -->

Sayfanın (kodun) geri kalanını parse etmiyor olabilir her ne araç kullanıyorsan

permanent link

cevaplandı: 15 Eki '14, 03:56

Dkyc's gravatar image

Dkyc
1.6k1920
cevap kabul oranı: 29%

Cevabınız
toggle preview

Bu soruyu takip et

E-Posta üzerinden:

Üyelik girişi yaptıktan sonra abonelik işlemlerini yapabilirsiniz

RSS üzerinden:

Cevaplar

Cevaplar ve Yorumlar

Yazı Formatlama

  • *italic* ya da _italic_
  • **bold** ya da __bold__
  • link:[text](http://url.com/ "başlık")
  • resim?![alt text](/path/img.jpg "başlık")
  • liste: 1. Foo 2. Bar
  • temel HTML etiketleri de kullanılabilir

Bu sorunun etiketleri:

×1,079
×112
×72
×8

Soruldu: 14 Eki '14, 03:32

Görüntüleme: 689 kez

Son güncelleme: 15 Eki '14, 07:48

powered by BitNami OSQA