forked from XoopsModules25x/assessment
-
Notifications
You must be signed in to change notification settings - Fork 1
/
lista.php
27 lines (20 loc) · 805 Bytes
/
lista.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
require __DIR__ . '/header.php';
/** @var \XoopsModules\Assessment\Helper $helper */
$helper = \XoopsModules\Assessment\Helper::getInstance();
//here begins the main content
//echo('uiohaiufuihfaui<br>');
//echo ($helper->getConfig('ploft'));
$GLOBALS['xoopsOption']['template_main'] = 'meumodulo_lista.tpl';
$xoopsTpl->assign('valor1', $helper->getConfig('ploft'));
$sql = 'SELECT teste_id,teste_nome FROM ' . $xoopsDB->prefix('meumodulo_tabela1');
$rs = $xoopsDB->query($sql);
$i = 1;
while (list($id, $nome) = $xoopsDB->fetchRow($rs)) {
$vetorresultados[$i]['id'] = $id;
$vetorresultados[$i]['nome'] = $nome;
++$i;
}
$xoopsTpl->assign('valor2', $vetorresultados);
//Close the page with your footer. Inclusion Required
require_once dirname(dirname(__DIR__)) . '/footer.php';