function showSubtreeData($aSubtreeData, $aItem)
{
    // Gibt innerhalb eines subtree das an item $aItem liegende ÇdataÈ-Array aus
    // Ausgabeform: Tabelle
    // CSS: fŸr label (dataobjectlabel), fŸr value (dataobjectvalue)
    //		$html .= makeTableOpen('subtreedata');
    $aLabelCSS = 'dataobjectlabel';
    $aValueCSS = 'dataobjectvalue';
    if ($aSubtreeData->value) {
        $html .= makeTableRow($aSubtreeData->name, $aSubtreeData->value, $aLabelCSS, $aValueCSS);
    } else {
        if ($aSubtreeData->urn) {
            $html .= makeTableRow($aSubtreeData->name, $aSubtreeData->urn, $aLabelCSS, $aValueCSS);
        }
    }
    //		$html .= makeTableClose();
    return $html;
}
示例#2
0
                            <tr>
<?php 
    // Show header
    for ($columnCnt = 0; $columnCnt < $columns; $columnCnt++) {
        echo "<th>" . $row[$columnCnt] . "</th>";
    }
    echo "<th>&nbsp;</th>";
    ?>
                            </tr>
                        </thead>                        
                        <tbody>
<?php 
    // Show content
    for ($lineCnt = 1; $lineCnt < sizeof($lines); $lineCnt++) {
        $row = explode(SDFE_CSVSeparator, $lines[$lineCnt]);
        echo makeTableRow($lineCnt, $row, $columns);
    }
    ?>
                        </tbody>
                    </table>
                </div>
                <div class="text-right">
                    <a href="#" id="addrow" class="btn btn-default"><i class="fa fa-plus"></i> Ny række</a>
                </div>
                <hr>
                <div>
                    <a href="#" id="cancel" class="btn btn-default"><i class="fa fa-undo"></i> Annulér</a>
                    <a href="#" id="save" class="btn btn-primary"><i class="fa fa-save"></i> Gem ændringer</a>
                </div>
                </form>
                <div style="margin-top: 20px;" id="message">