将数据从弹出窗口发送到主窗体

时间:2012-11-08 13:31:08

标签: php forms codeigniter popup

我有一个弹出窗口codeigniter,我想将IDSatker发送到表单注册成员的主表单

这是我的代码

<?php
if (count($ListSatker) > 0) {
    echo "<table border='1' cellspacing='0' cellpadding='3' width='100%'>\n";
    echo "<tr valign='top'>\n";
    echo "
    <th><div align='center'>ID</th>\n
    <th><div align='center'>Inst SatkerKD</th>
    <th><div align='center'>Inst SatkerInduk</th>
    <th><div align='center'>Nama Satker</th>
    <th><div align='center'>Status</th>
    <th><div align='center'>Pilhan</th>\n";
    echo "</tr>\n";
    foreach ($ListSatker as $key => $list) {
        echo "<tr valign='top'>\n";
        echo "<td><div align='center'>" . $list['IDSatker'] . "</td>\n";
        echo "<td><div align='center'>" . $list['inst_satkerkd'] . "&nbsp;</td>\n";
        echo "<td><div align='center'>" . $list['inst_satkerinduk'] . "</td>\n";
        echo "<td>" . $list['inst_nama'] . "</td>\n";
        echo "<td>" . $list['inst_akronim'] . "</td>\n";
        echo "<td><div align='center'>";
        echo anchor('user/' . $list['IDSatker'], 'Pilih');
            echo "</td>\n";
        }
        echo "</table>";
    } ?>

当我将“Pilih”复制到主表单中时,我会发送IDSatker

<input name="inst_satkerkd" type="text" size="30" value="" /><?php echo anchor_popup('user/popup', 'Satker', $atts); ?>

感谢之前

0 个答案:

没有答案