来自json_encode php函数的Bootstrap填充表

时间:2015-10-30 15:58:35

标签: php twitter-bootstrap pdo

我正在尝试从php函数填充我的引导程序表,我无法使其工作,而奇怪的是函数Works,因为我的结果是我的控制台日志,但表没有填充。 这是代码

unsigned char *dbg_mem = NULL;
tmr_debug.stop();
int sysSts=0;  
dbg_mem = new unsigned char[nTmr_debug*1024*1024];
if (dbg_mem==NULL)
    {
        qDebug("Mem request fails: size =%d MB !!!!!",nTmr_debug);
    }
    else
    {
        memset((void*)dbg_mem,0xFF,nTmr_debug*1024*1024);
    }
sysSts =system("");
qDebug("Debug Mem: %dMB\t\t result:%d",nTmr_debug, sysSts);
if (dbg_mem)
    delete dbg_mem;
if(sysSts!=0)
    {
        qDebug("****RETRY**** after delete\t result:%d",system(""));
    }
nTmr_debug ++;
tmr_debug.start(1);

这是我的php fucntion

如果我创建一个单独的文件没有函数只使用该代码,它工作,我的意思是,而不是调用一个函数我调用一个PHP文件ex:xxx.php

<table id="table" class="table table-bordered table-striped"
               data-toggle="table"
               data-pagination="true"
               data-search="true"
               data-show-refresh="true"
               data-show-toggle="true"
               data-show-columns="true"
               data-toolbar="#toolbar"
               data-url='<?php $user->getAllItems(); ?>'>
            <thead>
                <tr>
                    <th data-field="id_itens" class="hidden">ID</th>
                    <th data-field="nome" data-editable="true" class="alinhado">Nome</th>
                    <th data-field="descricao" data-editable="true" class="alinhado">Descrição</th>
                    <th data-field="tipo" data-editable="true" class="alinhado">Tipo</th>
                    <th data-field="estado" data-editable="true" class="alinhado">Descrição</th>
                    <th data-field="data" data-editable="true" class="alinhado">Data</th>
                    <th data-field="quantidade" data-editable="true" class="alinhado">Quantidade</th>
                    <th data-field="operate" data-formatter="operateFormatter" data-events="operateEvents" class="alinhado">Opções</th>
                </tr>
            </thead>
        </table>

所以任何人都可以向我解释它与功能无关吗?

由于

0 个答案:

没有答案