【发布时间】:2017-02-02 06:41:29
【问题描述】:
我试图将 jqgrids 放到我的 easyui 选项卡中。单击一个选项卡时,应加载一个网格。
下面是我的 products.php 的 HTML 代码 sn-p:
<?php
//Start the Session
if(!isset($_SESSION))
{
session_start();
}
// require_once("../includes/brand_name_gridview.php");
include("../includes/brand_name_gridview.php");
?>
<div id="tabs" class="easyui-tabs">
<!--Here goes other code snippet-->
<div title="Brand Name" id="tabs-1" style="display:none;"><br />
<div><form id="manageBrandNameForm" name="manageBrandNameForm" method="post" action="../includes/brandname_functions.php#tabs-1">
<table width="470" border="0" class="productsForm" align="center" frame="box" cellpadding="5px" bgcolor="#F2F2F2">
<tr>
<td width="200" align="left">Brand Name</td>
<td width="216"><span id="sprytextfield1">
<label>
<input name="txtBrandName" type="text" id="txtBrandName" tabindex="1" size="30"/>
</label>
<span class="textfieldRequiredMsg">A value is required.</span></span>
</td>
</tr>
<tr>
<td width="500" align="left">Brand Name Description</td>
<td><span id="sprytextarea1">
<label>
<textarea name="txtBrandNameDescription" id="txtBrandNameDescription" cols="32" rows="3" tabindex="3" class="txtArea"></textarea></label>
<span class="textareaRequiredMsg">A value is required.</span></span>
</td>
</tr>
<tr><td><img src="../images/brand_name.png"/></td>
<td colspan="2" align="right">
<input type="submit" name="btnSaveBrand" id="btnSaveBrand" value="SAVE" />
<input type="reset" name="btnReset" id="btnReset" value="RESET"/>
</td>
</tr>
</table><br />
</form></div>
<div id="productDataGridDiv">
<?php
echo $out;
?>
<br />
</div>
<!--end dataGridDiv-->
</div>
<!--end tabs-1-->
在“brand_name_gridview.php”中,我创建了我的网格并渲染如下:
$out = $g->render("list1");
我可以为一个标签加载一个网格,但 phpgrid.org 不允许在免费版本中每页加载多个网格。请帮助我继续进行此操作,以便为选项卡设置一个网格。
【问题讨论】:
标签: javascript php jquery tabs jqgrid