【问题标题】:How to add multiple php grids in tabs container, one phpgrid per tab?如何在选项卡容器中添加多个 php 网格,每个选项卡一个 phpgrid?
【发布时间】: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 不允许在免费版本中每页加载多个网格。请帮助我继续进行此操作,以便为选项卡设置一个网格。

【问题讨论】:

  • 免责声明:我为 phpgrid.org 工作 免费版的 phpgrid.org 确实支持在选项卡中加载多个网格。这使用 JqueryUI 选项卡是工作 codedemo![Tabs](i.stack.imgur.com/tCV3m.png) 而这个使用 Bootstrap3 选项卡,codedemoh

标签: javascript php jquery tabs jqgrid


【解决方案1】:

您是指专门针对 jqgrid 还是 php grid 的解决方案?这是一个您可以尝试用于选项卡式数据网格的示例。对我来说效果很好。

http://phpgrid.com/example/tabbed-datagrid/

【讨论】:

  • 谢谢你会检查。我指的是 phpgrid(来自 phpgrid.org)。
猜你喜欢
  • 2012-10-08
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多