dongwei2882 2015-10-06 07:37
浏览 17

响应式表单,最初将显示表中PHP变量的数据

my requirement form link

I have made an html form that displays data from an PHP variable. The Form contains a table and that table has number of rows based on a PHP variable. but problem is that form is not responsive can you please give some idea how can i made a responsive form with table that will load data from an PHP variable. my current code is below:

<div class="row">
                <div class="col-md-8">
                <form method="POST" action="/updateInfo" enctype="multipart/form-data" name="InfoForm">
                            <div style ="width:100%; height:250px;">
                                <table style = "width:100%;border:2px;height:60%;"> 
                                    <tr style = "border-bottom: thin solid;background-color:#9a004b;color:White">
                                        <th></th>   
                                        <th>Register Date</th>
                                        <th>Reconciliation Date</th>
                                        <th>Amount</th>
                                        <th>IBAN</th>
                                        <th>Withhold</th>
                                    </tr>

                                    <?php   foreach($overpayment as $key=>$value){
                                            if(empty($value['ReconciliationDate'])){
                                    ?>              <tr  style="border:1px solid #9a004b;background-color: White">
                                                <div class="row">   
                                                    <td><input type="hidden" name=OverpaymentNr[] value="<?php echo $value['OverpaymentNr']?>"</td>
                                                    <td><label name=Paydate[] value=""/><?php echo $value['RegisterDate']?></td>
                                                    <td><label name=ReconciliationDate[] value=""/><?php echo $value['ReconciliationDate']?></td>
                                                    <td><label name=Amount[] value=""/><?php echo $value['Amount']?></td>


                                                    <td><input type="text" style="width:186px; height:35px;" name=IBAN[] value="<?php echo $value['IBAN']?>"/> </td>
                                                        <td><label name=Withhold[] value=""/><?php echo $value['Withhold']?></td>

                                                </div>
                                                </tr>   
                                    <?php       }
                                        } 
                                    ?>
                                        <tr  style="border-top:1px solid #9a004b;">
                                            <td></td>
                                            <td></td>
                                            <td></td>
                                            <td align="center"><input type="Submit" class="btn btn-danger pull-right" name= Submit value = Submit /> </td>
                                            <td></td>
                                        </tr>
                                </table>    
                            </div>

                        </form>     
                        </div>  
            </div>
  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line
    • ¥500 火焰左右视图、视差(基于双目相机)
    • ¥100 set_link_state
    • ¥15 虚幻5 UE美术毛发渲染
    • ¥15 CVRP 图论 物流运输优化
    • ¥15 Tableau online 嵌入ppt失败
    • ¥100 支付宝网页转账系统不识别账号
    • ¥15 基于单片机的靶位控制系统
    • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
    • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?