我有一个带有2个标签的表单,这2个标签有两个选项来获得结果所以如果我使用表单打开标签不起作用所以任何人都可以帮我修复问题而不更改网址我怎样才能过滤我的结果单个表单中的不同选项卡这是我的视图文件
public BufferedImage getLabelTOBufferImg(){
BufferedImage img;
int imgW, imgH,
Icon icon = lable.getIcon();
imgW = icon.getIconWidth();
imgH = icon.getIconHeight();
img = new BufferedImage(imgW, imgH, BufferedImage.TYPE_INT_ARGB);
return img;
}
这是我的控制器
<ul id="myTab2" class="nav nav-tabs sidebar-tabs">
<li class="active">
<a href="#myTab2_example1" data-toggle="tab">
All Merchant IDs
</a>
</li>
<li>
<a href="#myTab2_example2" data-toggle="tab">
Single Merchant ID
</a>
</li>
<li>
<div class="tab-content">
<div class="tab-pane fade in active" id="myTab2_example1">
<div class="search_block">
<div class="form-group mar-b0">
<div class="section colm colm4">
<label class="tp-label">Select a year</label>
<select name="transactionYear" id="transactionYear" aria-required="true" required="required">
<?php $year=$this->livemerchant_model->Year_dropdown();
foreach ($year as $row){
?>
<option value="<?php echo $row->TheYear ?>"><?php echo $row->TheYear ?> </option>
<?php }?>
</select>
<input type="submit" name="reqsub" id="reqsub" class="btn btn-primary">
</div>
</div>
</div>
<div class="row">
<div class="col-lg-4 col-sm-12">
<table class="table table-bordered">
<thead>
<tr>
<th>Month</th>
<th>GBP</th>
</tr>
</thead>
<tbody>
<?php
foreach ($monthlyTotals as $row) {?>
<tr>
<td><?php echo $row->TheMonthName . PHP_EOL; ?></td>
<td><?php echo $row->TotalAmount. PHP_EOL;?></td>
</tr>
<?php }?>
</tbody>
<tfoot>
</tfoot>
</table>
</div>
<?php //echo form_open_multipart(base_url().'index.php/AdminController/sample');?>
<div class="search_block">
<div class="form-group mar-b0">
<div class="section colm colm4">
<label class="tp-label">Merchant ID</label>
<select name="transactionMerchant" id="transactionMerchant" aria- required="true" required="required">
<?php $merchanttype = $this->livemerchant_model- >merchant_type_dropdown();
foreach ($merchanttype as $merchant){
?>
<option value="<?php echo $merchant->TRANS_MerchantId ?>"><?php echo $merchant->TRANS_MerchantId ?></option>
<?php }?>
</select>
<select name="transactionYear" id="transactionYear" aria-required="true" required="required">
<?php $year=$this->livemerchant_model->Year_dropdown();
foreach ($year as $row){
?>
<option value="<?php echo $row->TheYear ?>"><?php echo $row->TheYear ?></option>
<?php }?>
</select>
<input type="submit" name="tell" id="tell" >
</div>
<?php echo form_close();?>
</div>
</div>
<div class="row">
<div class="col-lg-4 col-sm-12">
<table class="table table-bordered">
<thead> <tr>
<th>Month</th>
<th>GBP</th> </tr>
</thead>
<tbody>
<?php foreach ($monthlyTotals as $row) {?>
<tr>
<td><?php echo $row->TheMonthName . PHP_EOL; ?>
<td><?php echo $row->TotalAmount. PHP_EOL;?></td>
</tr>
<?php }?>
</tbody>
<tfoot>
</tfoot>
</table>
</div>
任何人都可以帮我解决标签问题