Пример #1
0
    $BillingRoot = $DOMLang->documentElement;
    // Settings Node
    $node_Billing = $DOMLang->createElement("node");
    $node_Billing->setAttribute("title", _("My domains"));
    $node_Billing->setAttribute("type", "domains");
    $BillingRoot->appendChild($node_Billing);
    $sep = $DOMLang->createElement("separator");
    $node_Billing->appendChild($sep);
    if ($display["reg_incomplete"] > 0) {
        $item = $DOMLang->createElement("item");
        $item->setAttribute("href", sprintf("incomplete_orders.php?op=%s", INCOMPLETE_OPERATION::DOMAIN_CREATE));
        $item->nodeValue = _("Incomplete registrations");
        $node_Billing->appendChild($item);
    }
    if ($display["trans_incomplete"] > 0) {
        $item = $DOMLang->createElement("item");
        $item->setAttribute("href", sprintf("incomplete_orders.php?op=%s", INCOMPLETE_OPERATION::DOMAIN_TRANSFER));
        $item->nodeValue = _("Incomplete transfers");
        $node_Billing->appendChild($item);
    }
    if ($display["trade_incomplete"] > 0) {
        $item = $DOMLang->createElement("item");
        $item->setAttribute("href", sprintf("incomplete_orders.php?op=%s", INCOMPLETE_OPERATION::DOMAIN_TRADE));
        $item->nodeValue = _("Incomplete transfers");
        $node_Billing->appendChild($item);
    }
    $XMLNav->AddNode($BillingRoot, $XMLNav->XML->documentElement);
}
// Generate menu
$XMLNav->Generate();