Ejemplo n.º 1
0
<?php

$values = get_property_values($dbc, $db_name, PREFIX . $id);
echo '<hr>';
include "pv_panel.php";
$values = get_reverse_property_values($dbc, $db_name, PREFIX . $id);
include "pv_panel.php";
Ejemplo n.º 2
0
function get_types($dbc, $name)
{
    return get_property_values($dbc, $name, '类型');
}
Ejemplo n.º 3
0
       
        </strong>
        </font>
    </h1>

    <?php 
if (isset($name) && $name != '') {
    $values = array();
    $db_labels = array("tcmls" => "TCMLS", "tcmct" => "TCMCT", "clan" => "古籍语言", "spleen" => "证候库");
    foreach ($db_labels as $db_name => $db_label) {
        $db = $dbs["{$db_name}"];
        $dbc = mysqli_connect($db[0], $db[1], $db[2], $db[3]) or die('Error connecting to MySQL server.');
        $query = "select id from def where name ='{$name}'";
        $result = mysqli_query($dbc, $query) or die('Error querying database:' . $query);
        while ($row = mysqli_fetch_array($result)) {
            $values = get_property_values($dbc, $db_name, $db_label, $db_name . ':o' . $row[id], $values);
            $values = get_reverse_property_values($dbc, $db_name, $db_label, $db_name . ':o' . $row[id], $values);
        }
    }
    echo '<hr>';
    //include("pv_panel.php");
    foreach ($values as $property => $value) {
        ?>

            <div class="panel panel-info">
                <div class="panel-heading">
                    <h3 class="panel-title"><?php 
        echo $property;
        ?>
</h3>
                </div>