aboutsummaryrefslogtreecommitdiff
path: root/samples/phpisis.php
blob: cc691d6640bf9c7595aa8e9870590113e65484c7 (plain)
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
28
29
30
31
<?php
/**
 * Php Isis test script.
 */

// Import requisites.
require_once '../index.php';

// Draw the document.
$display = new CinisisDisplayHelper('Php Isis Test');

// Open the database.
$db = isis_open('db/dbname/dbname');
print_r(isis_last_mfn($db));

$display->open_table();

$result = isis_search('$', $db);
while ($record = isis_fetch_flat_array($result) ) {
  print (" <tr><td colspan=\"2\">MFN: $record[mfn]</td></tr>\n");
  for ($i=0; $i<count($record)-1; ++$i) { //-1 porque el mfn es +1
    list ($tag, $value) = $record[$i];
    print (" <tr>\n".
      " <td>$tag</td>\n".
      " <td>".htmlspecialchars($value)."</td>\n".
      " </tr>\n");
  }
}

$display->close_table();
$display->footer();