[英]send data from one table to another page
I have this table I want when I click on a link in a table row that do a redirect to another page the data will be sent to the new page that can help me I have not found how to start 当我单击表行中的链接以重定向到另一个页面时,我想要这个表,数据将被发送到新页面,这可以帮助我,但我找不到如何启动
I'm really stuck code table 我真的卡住了代码表
<table cellpadding="0" cellspacing="0" border="0" class="display" id="example">
<thead>
<tr>
<th>Date</th>
<th>provider</th>
<th>CI</th>
<th>CELL</th>
<th>BSC</th>
<th>Commentaire</th>
<th>nbr</th>
<th>Type</th>
<th><img src="{{ asset('image/Modify.png') }}" ALIGN="CENTER"/></th>
<th><img src="{{ asset('image/Info.png') }}" ALIGN="CENTER"/></th>
<th><img src="{{ asset('image/Male.png') }}" ALIGN="CENTER"/></th>
<th>type_alertes</th>
</tr>
</thead>
<tbody>
<div class="textbox">
<h2> Information KPI dégradées</h2>
<div class="textbox_content" id="kpi_dégrades">
{% for liste in listes %}
<tr class="gradeU">
<td>{{ liste.DAT }} </td>
<td>{{ liste.PROVIDER}} </td>
<td>{{ liste.CI}} </td>
<td>{{ liste.CELL}} </td>
<td>{{ liste.BSC}}</td>
<td>{{ liste.Cmts}}</td>
<td >{{ liste.nbr}}</td>
<td>{{ liste.TYPE}}</td>
<td><a class="edit" href="">Edit</a></td>
<td onclick="getInfo('{{ liste.CELL}}')">Information KPI dégradés</td>
<td>{{ liste.user_name}}</td>
<td>{{ liste.type_alertes}}</td>
</tr>
{% endfor %}
</div>
</div>
</tbody>
Use the GET variable to find out the rowID. 使用GET变量找出rowID。
http://example.com/page.php?rowID=xx http://example.com/page.php?rowID=xx
In your main table have a link for each row. 在主表中,每行都有一个链接。
您可以在下一页上使用隐藏字段,将隐藏数据存储在下一页上。
<tr onclick="window.location="newPageLocation?value = this.innerHTML">
<th>Date</th>
<th>provider</th>
<th>CI</th>
<th>CELL</th>
<th>BSC</th>
<th>Commentaire</th>
<th>nbr</th>
<th>Type</th>
<th><img src="{{ asset('image/Modify.png') }}" ALIGN="CENTER"/></th>
<th><img src="{{ asset('image/Info.png') }}" ALIGN="CENTER"/></th>
<th><img src="{{ asset('image/Male.png') }}" ALIGN="CENTER"/></th>
<th>type_alertes</th>
in the next page using javascript get the value from td 在下一页使用javascript从td获取值
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.