当前位置: 首页>>代码示例>>PHP>>正文


PHP XMLNameEncode函数代码示例

本文整理汇总了PHP中XMLNameEncode函数的典型用法代码示例。如果您正苦于以下问题:PHP XMLNameEncode函数的具体用法?PHP XMLNameEncode怎么用?PHP XMLNameEncode使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了XMLNameEncode函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: ExportToXML

function ExportToXML()
{
    global $nPageSize, $rs, $strTableName, $conn, $eventObj;
    header("Content-Type: text/xml");
    header("Content-Disposition: attachment;Filename=Anomalies.xml");
    if ($eventObj->exists("ListFetchArray")) {
        $row = $eventObj->ListFetchArray($rs);
    } else {
        $row = db_fetch_array($rs);
    }
    //if(!$row)
    //	return;
    global $cCharset;
    echo "<?xml version=\"1.0\" encoding=\"" . $cCharset . "\" standalone=\"yes\"?>\r\n";
    echo "<table>\r\n";
    $i = 0;
    while ((!$nPageSize || $i < $nPageSize) && $row) {
        $values = array();
        $values["ID"] = GetData($row, "ID", "");
        $values["Module ID"] = DisplayLookupWizard("Module ID", $row["Module ID"], $row, "", MODE_EXPORT);
        $values["Anomaly Description"] = GetData($row, "Anomaly Description", "");
        $values["Anomaly Type"] = DisplayLookupWizard("Anomaly Type", $row["Anomaly Type"], $row, "", MODE_EXPORT);
        $values["Date Time"] = GetData($row, "Date Time", "");
        $values["Action Taken"] = DisplayLookupWizard("Action Taken", $row["Action Taken"], $row, "", MODE_EXPORT);
        $eventRes = true;
        if ($eventObj->exists('BeforeOut')) {
            $eventRes = $eventObj->BeforeOut($row, $values);
        }
        if ($eventRes) {
            $i++;
            echo "<row>\r\n";
            foreach ($values as $fName => $val) {
                $field = htmlspecialchars(XMLNameEncode($fName));
                echo "<" . $field . ">";
                echo htmlspecialchars($values[$fName]);
                echo "</" . $field . ">\r\n";
            }
            echo "</row>\r\n";
        }
        if ($eventObj->exists("ListFetchArray")) {
            $row = $eventObj->ListFetchArray($rs);
        } else {
            $row = db_fetch_array($rs);
        }
    }
    echo "</table>\r\n";
}
开发者ID:samsulpendis,项目名称:Instant_Appointment,代码行数:47,代码来源:Anomalies_export.php

示例2: ExportToXML

function ExportToXML($cipherer)
{
    global $nPageSize, $rs, $strTableName, $conn, $eventObj, $pageObject;
    header("Content-Type: text/xml");
    header("Content-Disposition: attachment;Filename=pad_pad_daftar_hist.xml");
    if ($eventObj->exists("ListFetchArray")) {
        $row = $eventObj->ListFetchArray($rs, $pageObject);
    } else {
        $row = $cipherer->DecryptFetchedArray($rs);
    }
    //if(!$row)
    //	return;
    global $cCharset;
    echo "<?xml version=\"1.0\" encoding=\"" . $cCharset . "\" standalone=\"yes\"?>\r\n";
    echo "<table>\r\n";
    $i = 0;
    $pageObject->viewControls->forExport = "xml";
    while ((!$nPageSize || $i < $nPageSize) && $row) {
        $values = array();
        $values["id"] = $pageObject->showDBValue("id", $row);
        $values["daftar_id"] = $pageObject->showDBValue("daftar_id", $row);
        $values["status_id"] = $pageObject->showDBValue("status_id", $row);
        $values["create_date"] = $pageObject->showDBValue("create_date", $row);
        $values["create_uid"] = $pageObject->showDBValue("create_uid", $row);
        $values["keterangan"] = $pageObject->showDBValue("keterangan", $row);
        $eventRes = true;
        if ($eventObj->exists('BeforeOut')) {
            $eventRes = $eventObj->BeforeOut($row, $values, $pageObject);
        }
        if ($eventRes) {
            $i++;
            echo "<row>\r\n";
            foreach ($values as $fName => $val) {
                $field = htmlspecialchars(XMLNameEncode($fName));
                echo "<" . $field . ">";
                echo $values[$fName];
                echo "</" . $field . ">\r\n";
            }
            echo "</row>\r\n";
        }
        if ($eventObj->exists("ListFetchArray")) {
            $row = $eventObj->ListFetchArray($rs, $pageObject);
        } else {
            $row = $cipherer->DecryptFetchedArray($rs);
        }
    }
    echo "</table>\r\n";
}
开发者ID:aagusti,项目名称:padl-tng,代码行数:48,代码来源:pad_pad_daftar_hist_export.php

示例3: ExportToXML

function ExportToXML($cipherer)
{
    global $nPageSize, $rs, $strTableName, $conn, $eventObj, $pageObject;
    header("Content-Type: text/xml");
    header("Content-Disposition: attachment;Filename=public_pad_payment.xml");
    if ($eventObj->exists("ListFetchArray")) {
        $row = $eventObj->ListFetchArray($rs, $pageObject);
    } else {
        $row = $cipherer->DecryptFetchedArray($rs);
    }
    //if(!$row)
    //	return;
    global $cCharset;
    echo "<?xml version=\"1.0\" encoding=\"" . $cCharset . "\" standalone=\"yes\"?>\r\n";
    echo "<table>\r\n";
    $i = 0;
    $pageObject->viewControls->forExport = "xml";
    while ((!$nPageSize || $i < $nPageSize) && $row) {
        $values = array();
        $values["id"] = $pageObject->showDBValue("id", $row);
        $values["invoice_id"] = $pageObject->showDBValue("invoice_id", $row);
        $values["tgl"] = $pageObject->showDBValue("tgl", $row);
        $values["tagihan"] = $pageObject->showDBValue("tagihan", $row);
        $values["denda"] = $pageObject->showDBValue("denda", $row);
        $values["total_bayar"] = $pageObject->showDBValue("total_bayar", $row);
        $values["iso_request"] = $pageObject->showDBValue("iso_request", $row);
        $values["transmission"] = $pageObject->showDBValue("transmission", $row);
        $values["settlement"] = $pageObject->showDBValue("settlement", $row);
        $values["stan"] = $pageObject->showDBValue("stan", $row);
        $values["ntb"] = $pageObject->showDBValue("ntb", $row);
        $values["ntp"] = $pageObject->showDBValue("ntp", $row);
        $values["bank_id"] = $pageObject->showDBValue("bank_id", $row);
        $values["channel_id"] = $pageObject->showDBValue("channel_id", $row);
        $values["bank_ip"] = $pageObject->showDBValue("bank_ip", $row);
        $eventRes = true;
        if ($eventObj->exists('BeforeOut')) {
            $eventRes = $eventObj->BeforeOut($row, $values, $pageObject);
        }
        if ($eventRes) {
            $i++;
            echo "<row>\r\n";
            foreach ($values as $fName => $val) {
                $field = htmlspecialchars(XMLNameEncode($fName));
                echo "<" . $field . ">";
                echo $values[$fName];
                echo "</" . $field . ">\r\n";
            }
            echo "</row>\r\n";
        }
        if ($eventObj->exists("ListFetchArray")) {
            $row = $eventObj->ListFetchArray($rs, $pageObject);
        } else {
            $row = $cipherer->DecryptFetchedArray($rs);
        }
    }
    echo "</table>\r\n";
}
开发者ID:aagusti,项目名称:padl-tng,代码行数:57,代码来源:public_pad_payment_export.php

示例4: ExportToXML

function ExportToXML($cipherer)
{
    global $nPageSize, $rs, $strTableName, $conn, $eventObj, $pageObject;
    header("Content-Type: text/xml");
    header("Content-Disposition: attachment;Filename=pad_pad_jenis_pajak.xml");
    if ($eventObj->exists("ListFetchArray")) {
        $row = $eventObj->ListFetchArray($rs, $pageObject);
    } else {
        $row = $cipherer->DecryptFetchedArray($rs);
    }
    //if(!$row)
    //	return;
    global $cCharset;
    echo "<?xml version=\"1.0\" encoding=\"" . $cCharset . "\" standalone=\"yes\"?>\r\n";
    echo "<table>\r\n";
    $i = 0;
    $pageObject->viewControls->forExport = "xml";
    while ((!$nPageSize || $i < $nPageSize) && $row) {
        $values = array();
        $values["id"] = $pageObject->showDBValue("id", $row);
        $values["usaha_id"] = $pageObject->showDBValue("usaha_id", $row);
        $values["nama"] = $pageObject->showDBValue("nama", $row);
        $values["rekening_id"] = $pageObject->showDBValue("rekening_id", $row);
        $values["rekening_kd_sub"] = $pageObject->showDBValue("rekening_kd_sub", $row);
        $values["rekdenda_id"] = $pageObject->showDBValue("rekdenda_id", $row);
        $values["masapajak"] = $pageObject->showDBValue("masapajak", $row);
        $values["jatuhtempo"] = $pageObject->showDBValue("jatuhtempo", $row);
        $values["multiple"] = $pageObject->showDBValue("multiple", $row);
        $values["jalan_kelas_id"] = $pageObject->showDBValue("jalan_kelas_id", $row);
        $values["tmt"] = $pageObject->showDBValue("tmt", $row);
        $values["enabled"] = $pageObject->showDBValue("enabled", $row);
        $values["created"] = $pageObject->showDBValue("created", $row);
        $values["create_uid"] = $pageObject->showDBValue("create_uid", $row);
        $values["updated"] = $pageObject->showDBValue("updated", $row);
        $values["update_uid"] = $pageObject->showDBValue("update_uid", $row);
        $eventRes = true;
        if ($eventObj->exists('BeforeOut')) {
            $eventRes = $eventObj->BeforeOut($row, $values, $pageObject);
        }
        if ($eventRes) {
            $i++;
            echo "<row>\r\n";
            foreach ($values as $fName => $val) {
                $field = htmlspecialchars(XMLNameEncode($fName));
                echo "<" . $field . ">";
                echo $values[$fName];
                echo "</" . $field . ">\r\n";
            }
            echo "</row>\r\n";
        }
        if ($eventObj->exists("ListFetchArray")) {
            $row = $eventObj->ListFetchArray($rs, $pageObject);
        } else {
            $row = $cipherer->DecryptFetchedArray($rs);
        }
    }
    echo "</table>\r\n";
}
开发者ID:aagusti,项目名称:padl-tng,代码行数:58,代码来源:pad_pad_jenis_pajak_export.php

示例5: ExportToXML

function ExportToXML($cipherer)
{
    global $nPageSize, $rs, $strTableName, $conn, $eventObj, $pageObject;
    header("Content-Type: text/xml");
    header("Content-Disposition: attachment;Filename=pad_pad_customer_usaha.xml");
    if ($eventObj->exists("ListFetchArray")) {
        $row = $eventObj->ListFetchArray($rs, $pageObject);
    } else {
        $row = $cipherer->DecryptFetchedArray($rs);
    }
    //if(!$row)
    //	return;
    global $cCharset;
    echo "<?xml version=\"1.0\" encoding=\"" . $cCharset . "\" standalone=\"yes\"?>\r\n";
    echo "<table>\r\n";
    $i = 0;
    $pageObject->viewControls->forExport = "xml";
    while ((!$nPageSize || $i < $nPageSize) && $row) {
        $values = array();
        $values["id"] = $pageObject->showDBValue("id", $row);
        $values["konterid"] = $pageObject->showDBValue("konterid", $row);
        $values["reg_date"] = $pageObject->showDBValue("reg_date", $row);
        $values["customer_id"] = $pageObject->showDBValue("customer_id", $row);
        $values["usaha_id"] = $pageObject->showDBValue("usaha_id", $row);
        $values["so"] = $pageObject->showDBValue("so", $row);
        $values["kecamatan_id"] = $pageObject->showDBValue("kecamatan_id", $row);
        $values["kelurahan_id"] = $pageObject->showDBValue("kelurahan_id", $row);
        $values["notes"] = $pageObject->showDBValue("notes", $row);
        $values["enabled"] = $pageObject->showDBValue("enabled", $row);
        $values["create_uid"] = $pageObject->showDBValue("create_uid", $row);
        $values["customer_status_id"] = $pageObject->showDBValue("customer_status_id", $row);
        $values["aktifnotes"] = $pageObject->showDBValue("aktifnotes", $row);
        $values["tmt"] = $pageObject->showDBValue("tmt", $row);
        $values["air_zona_id"] = $pageObject->showDBValue("air_zona_id", $row);
        $values["air_manfaat_id"] = $pageObject->showDBValue("air_manfaat_id", $row);
        $values["def_pajak_id"] = $pageObject->showDBValue("def_pajak_id", $row);
        $values["opnm"] = $pageObject->showDBValue("opnm", $row);
        $values["opalamat"] = $pageObject->showDBValue("opalamat", $row);
        $values["latitude"] = $pageObject->showDBValue("latitude", $row);
        $values["longitude"] = $pageObject->showDBValue("longitude", $row);
        $values["created"] = $pageObject->showDBValue("created", $row);
        $values["updated"] = $pageObject->showDBValue("updated", $row);
        $values["update_uid"] = $pageObject->showDBValue("update_uid", $row);
        $values["kd_restojmlmeja"] = $pageObject->showDBValue("kd_restojmlmeja", $row);
        $values["kd_restojmlkursi"] = $pageObject->showDBValue("kd_restojmlkursi", $row);
        $values["kd_restojmltamu"] = $pageObject->showDBValue("kd_restojmltamu", $row);
        $values["kd_filmkursi"] = $pageObject->showDBValue("kd_filmkursi", $row);
        $values["kd_filmpertunjukan"] = $pageObject->showDBValue("kd_filmpertunjukan", $row);
        $values["kd_filmtarif"] = $pageObject->showDBValue("kd_filmtarif", $row);
        $values["kd_bilyarmeja"] = $pageObject->showDBValue("kd_bilyarmeja", $row);
        $values["kd_bilyartarif"] = $pageObject->showDBValue("kd_bilyartarif", $row);
        $values["kd_bilyarkegiatan"] = $pageObject->showDBValue("kd_bilyarkegiatan", $row);
        $values["kd_diskopengunjung"] = $pageObject->showDBValue("kd_diskopengunjung", $row);
        $values["kd_diskotarif"] = $pageObject->showDBValue("kd_diskotarif", $row);
        $values["mall_id"] = $pageObject->showDBValue("mall_id", $row);
        $values["cash_register"] = $pageObject->showDBValue("cash_register", $row);
        $values["pelaporan"] = $pageObject->showDBValue("pelaporan", $row);
        $values["pembukuan"] = $pageObject->showDBValue("pembukuan", $row);
        $values["bandara"] = $pageObject->showDBValue("bandara", $row);
        $values["wajib_pajak"] = $pageObject->showDBValue("wajib_pajak", $row);
        $values["jumlah_karyawan"] = $pageObject->showDBValue("jumlah_karyawan", $row);
        $values["tanggal_tutup"] = $pageObject->showDBValue("tanggal_tutup", $row);
        $values["parkir_luas"] = $pageObject->showDBValue("parkir_luas", $row);
        $values["parkir_masuk"] = $pageObject->showDBValue("parkir_masuk", $row);
        $values["parkir_tarif_mobil"] = $pageObject->showDBValue("parkir_tarif_mobil", $row);
        $values["parkir_tambahan"] = $pageObject->showDBValue("parkir_tambahan", $row);
        $values["parkir_kapasitas_mobil"] = $pageObject->showDBValue("parkir_kapasitas_mobil", $row);
        $values["parkir_mobil_hari"] = $pageObject->showDBValue("parkir_mobil_hari", $row);
        $values["parkir_keluar"] = $pageObject->showDBValue("parkir_keluar", $row);
        $values["parkir_motor_luas"] = $pageObject->showDBValue("parkir_motor_luas", $row);
        $values["parkir_motor_masuk"] = $pageObject->showDBValue("parkir_motor_masuk", $row);
        $values["parkir_motor_keluar"] = $pageObject->showDBValue("parkir_motor_keluar", $row);
        $values["parkir_tarif_motor"] = $pageObject->showDBValue("parkir_tarif_motor", $row);
        $values["parkir_motor_tambahan"] = $pageObject->showDBValue("parkir_motor_tambahan", $row);
        $values["parkir_kapasitas_motor"] = $pageObject->showDBValue("parkir_kapasitas_motor", $row);
        $values["parkir_motor_hari"] = $pageObject->showDBValue("parkir_motor_hari", $row);
        $values["kelompok_usaha_id"] = $pageObject->showDBValue("kelompok_usaha_id", $row);
        $values["zona_id"] = $pageObject->showDBValue("zona_id", $row);
        $values["manfaat_id"] = $pageObject->showDBValue("manfaat_id", $row);
        $values["golongan_id"] = $pageObject->showDBValue("golongan_id", $row);
        $values["id_old"] = $pageObject->showDBValue("id_old", $row);
        $eventRes = true;
        if ($eventObj->exists('BeforeOut')) {
            $eventRes = $eventObj->BeforeOut($row, $values, $pageObject);
        }
        if ($eventRes) {
            $i++;
            echo "<row>\r\n";
            foreach ($values as $fName => $val) {
                $field = htmlspecialchars(XMLNameEncode($fName));
                echo "<" . $field . ">";
                echo $values[$fName];
                echo "</" . $field . ">\r\n";
            }
            echo "</row>\r\n";
        }
        if ($eventObj->exists("ListFetchArray")) {
            $row = $eventObj->ListFetchArray($rs, $pageObject);
        } else {
            $row = $cipherer->DecryptFetchedArray($rs);
//.........这里部分代码省略.........
开发者ID:aagusti,项目名称:padl-tng,代码行数:101,代码来源:pad_pad_customer_usaha_export.php

示例6: ExportToXML

 /**
  * @param Mixed rs
  * @param Number nPageSize
  */
 public function ExportToXML($rs, $nPageSize)
 {
     global $cCharset;
     $exportFields = $this->pSet->getExportFields();
     header("Content-Type: text/xml");
     header("Content-Disposition: attachment;Filename=" . GetTableURL($this->tName) . ".xml");
     if ($this->eventsObject->exists("ListFetchArray")) {
         $row = $this->eventsObject->ListFetchArray($rs, $this);
     } else {
         $row = $this->cipherer->DecryptFetchedArray($this->connection->fetch_array($rs));
     }
     echo "<?xml version=\"1.0\" encoding=\"" . $cCharset . "\" standalone=\"yes\"?>\r\n";
     echo "<table>\r\n";
     $i = 0;
     $this->viewControls->forExport = "xml";
     while ((!$nPageSize || $i < $nPageSize) && $row) {
         $values = array();
         foreach ($exportFields as $field) {
             $fType = $this->pSet->getFieldType($field);
             if (IsBinaryType($fType)) {
                 $values[$field] = "código binario demasiado grande – no puede ser desplegado";
             } else {
                 $values[$field] = $this->getExportValue($field, $row);
             }
         }
         $eventRes = true;
         if ($this->eventsObject->exists('BeforeOut')) {
             $eventRes = $this->eventsObject->BeforeOut($row, $values, $this);
         }
         if ($eventRes) {
             $i++;
             echo "<row>\r\n";
             foreach ($values as $fName => $val) {
                 $field = runner_htmlspecialchars(XMLNameEncode($fName));
                 echo "<" . $field . ">";
                 echo $values[$fName];
                 echo "</" . $field . ">\r\n";
             }
             echo "</row>\r\n";
         }
         if ($this->eventsObject->exists("ListFetchArray")) {
             $row = $this->eventsObject->ListFetchArray($rs, $this);
         } else {
             $row = $this->cipherer->DecryptFetchedArray($this->connection->fetch_array($rs));
         }
     }
     echo "</table>\r\n";
 }
开发者ID:kcallow,项目名称:MatchMe,代码行数:52,代码来源:exportpage.php

示例7: ExportToXML

function ExportToXML($cipherer)
{
    global $nPageSize, $rs, $strTableName, $conn, $eventObj, $pageObject;
    header("Content-Type: text/xml");
    header("Content-Disposition: attachment;Filename=pad_pad_sspd.xml");
    if ($eventObj->exists("ListFetchArray")) {
        $row = $eventObj->ListFetchArray($rs, $pageObject);
    } else {
        $row = $cipherer->DecryptFetchedArray($rs);
    }
    //if(!$row)
    //	return;
    global $cCharset;
    echo "<?xml version=\"1.0\" encoding=\"" . $cCharset . "\" standalone=\"yes\"?>\r\n";
    echo "<table>\r\n";
    $i = 0;
    $pageObject->viewControls->forExport = "xml";
    while ((!$nPageSize || $i < $nPageSize) && $row) {
        $values = array();
        $values["id"] = $pageObject->showDBValue("id", $row);
        $values["tahun"] = $pageObject->showDBValue("tahun", $row);
        $values["sspdno"] = $pageObject->showDBValue("sspdno", $row);
        $values["sspdtgl"] = $pageObject->showDBValue("sspdtgl", $row);
        $values["sspdjam"] = $pageObject->showDBValue("sspdjam", $row);
        $values["invoice_id"] = $pageObject->showDBValue("invoice_id", $row);
        $values["keterangan"] = $pageObject->showDBValue("keterangan", $row);
        $values["bulan_telat"] = $pageObject->showDBValue("bulan_telat", $row);
        $values["hitung_bunga"] = $pageObject->showDBValue("hitung_bunga", $row);
        $values["denda"] = $pageObject->showDBValue("denda", $row);
        $values["bunga"] = $pageObject->showDBValue("bunga", $row);
        $values["jml_bayar"] = $pageObject->showDBValue("jml_bayar", $row);
        $values["sisa"] = $pageObject->showDBValue("sisa", $row);
        $values["jenis_bayar"] = $pageObject->showDBValue("jenis_bayar", $row);
        $values["printed"] = $pageObject->showDBValue("printed", $row);
        $values["tp_id"] = $pageObject->showDBValue("tp_id", $row);
        $values["is_validated"] = $pageObject->showDBValue("is_validated", $row);
        $values["is_valid"] = $pageObject->showDBValue("is_valid", $row);
        $values["enabled"] = $pageObject->showDBValue("enabled", $row);
        $values["created"] = $pageObject->showDBValue("created", $row);
        $values["create_uid"] = $pageObject->showDBValue("create_uid", $row);
        $values["updated"] = $pageObject->showDBValue("updated", $row);
        $values["update_uid"] = $pageObject->showDBValue("update_uid", $row);
        $values["petugas_id"] = $pageObject->showDBValue("petugas_id", $row);
        $values["pejabat_id"] = $pageObject->showDBValue("pejabat_id", $row);
        $eventRes = true;
        if ($eventObj->exists('BeforeOut')) {
            $eventRes = $eventObj->BeforeOut($row, $values, $pageObject);
        }
        if ($eventRes) {
            $i++;
            echo "<row>\r\n";
            foreach ($values as $fName => $val) {
                $field = htmlspecialchars(XMLNameEncode($fName));
                echo "<" . $field . ">";
                echo $values[$fName];
                echo "</" . $field . ">\r\n";
            }
            echo "</row>\r\n";
        }
        if ($eventObj->exists("ListFetchArray")) {
            $row = $eventObj->ListFetchArray($rs, $pageObject);
        } else {
            $row = $cipherer->DecryptFetchedArray($rs);
        }
    }
    echo "</table>\r\n";
}
开发者ID:aagusti,项目名称:padl-tng,代码行数:67,代码来源:pad_pad_sspd_export.php

示例8: ExportToXML

function ExportToXML($cipherer)
{
    global $nPageSize, $rs, $strTableName, $conn, $eventObj, $pageObject;
    header("Content-Type: text/xml");
    header("Content-Disposition: attachment;Filename=public_ar_payment_detail.xml");
    if ($eventObj->exists("ListFetchArray")) {
        $row = $eventObj->ListFetchArray($rs, $pageObject);
    } else {
        $row = $cipherer->DecryptFetchedArray($rs);
    }
    //if(!$row)
    //	return;
    global $cCharset;
    echo "<?xml version=\"1.0\" encoding=\"" . $cCharset . "\" standalone=\"yes\"?>\r\n";
    echo "<table>\r\n";
    $i = 0;
    $pageObject->viewControls->forExport = "xml";
    while ((!$nPageSize || $i < $nPageSize) && $row) {
        $values = array();
        $values["id"] = $pageObject->showDBValue("id", $row);
        $values["kode"] = $pageObject->showDBValue("kode", $row);
        $values["disabled"] = $pageObject->showDBValue("disabled", $row);
        $values["created"] = $pageObject->showDBValue("created", $row);
        $values["updated"] = $pageObject->showDBValue("updated", $row);
        $values["create_uid"] = $pageObject->showDBValue("create_uid", $row);
        $values["update_uid"] = $pageObject->showDBValue("update_uid", $row);
        $values["nama"] = $pageObject->showDBValue("nama", $row);
        $values["tahun"] = $pageObject->showDBValue("tahun", $row);
        $values["amount"] = $pageObject->showDBValue("amount", $row);
        $values["ref_kode"] = $pageObject->showDBValue("ref_kode", $row);
        $values["ref_nama"] = $pageObject->showDBValue("ref_nama", $row);
        $values["tanggal"] = $pageObject->showDBValue("tanggal", $row);
        $values["kecamatan_kd"] = $pageObject->showDBValue("kecamatan_kd", $row);
        $values["kecamatan_nm"] = $pageObject->showDBValue("kecamatan_nm", $row);
        $values["kelurahan_kd"] = $pageObject->showDBValue("kelurahan_kd", $row);
        $values["kelurahan_nm"] = $pageObject->showDBValue("kelurahan_nm", $row);
        $values["is_kota"] = $pageObject->showDBValue("is_kota", $row);
        $values["sumber_data"] = $pageObject->showDBValue("sumber_data", $row);
        $values["sumber_id"] = $pageObject->showDBValue("sumber_id", $row);
        $values["bulan"] = $pageObject->showDBValue("bulan", $row);
        $values["minggu"] = $pageObject->showDBValue("minggu", $row);
        $values["hari"] = $pageObject->showDBValue("hari", $row);
        $eventRes = true;
        if ($eventObj->exists('BeforeOut')) {
            $eventRes = $eventObj->BeforeOut($row, $values, $pageObject);
        }
        if ($eventRes) {
            $i++;
            echo "<row>\r\n";
            foreach ($values as $fName => $val) {
                $field = htmlspecialchars(XMLNameEncode($fName));
                echo "<" . $field . ">";
                echo $values[$fName];
                echo "</" . $field . ">\r\n";
            }
            echo "</row>\r\n";
        }
        if ($eventObj->exists("ListFetchArray")) {
            $row = $eventObj->ListFetchArray($rs, $pageObject);
        } else {
            $row = $cipherer->DecryptFetchedArray($rs);
        }
    }
    echo "</table>\r\n";
}
开发者ID:aagusti,项目名称:padl-tng,代码行数:65,代码来源:public_ar_payment_detail_export.php

示例9: ExportToXML

function ExportToXML($cipherer)
{
    global $nPageSize, $rs, $strTableName, $conn, $eventObj, $pageObject;
    header("Content-Type: text/xml");
    header("Content-Disposition: attachment;Filename=pad_pad_pemda.xml");
    if ($eventObj->exists("ListFetchArray")) {
        $row = $eventObj->ListFetchArray($rs, $pageObject);
    } else {
        $row = $cipherer->DecryptFetchedArray($rs);
    }
    //if(!$row)
    //	return;
    global $cCharset;
    echo "<?xml version=\"1.0\" encoding=\"" . $cCharset . "\" standalone=\"yes\"?>\r\n";
    echo "<table>\r\n";
    $i = 0;
    $pageObject->viewControls->forExport = "xml";
    while ((!$nPageSize || $i < $nPageSize) && $row) {
        $values = array();
        $values["id"] = $pageObject->showDBValue("id", $row);
        $values["type"] = $pageObject->showDBValue("type", $row);
        $values["kepala_nama"] = $pageObject->showDBValue("kepala_nama", $row);
        $values["alamat"] = $pageObject->showDBValue("alamat", $row);
        $values["telp"] = $pageObject->showDBValue("telp", $row);
        $values["pemda_nama"] = $pageObject->showDBValue("pemda_nama", $row);
        $values["ibukota"] = $pageObject->showDBValue("ibukota", $row);
        $values["tmt"] = $pageObject->showDBValue("tmt", $row);
        $values["jabatan"] = $pageObject->showDBValue("jabatan", $row);
        $values["ppkd_id"] = $pageObject->showDBValue("ppkd_id", $row);
        $values["reklame_id"] = $pageObject->showDBValue("reklame_id", $row);
        $values["pendapatan_id"] = $pageObject->showDBValue("pendapatan_id", $row);
        $values["pemda_nama_singkat"] = $pageObject->showDBValue("pemda_nama_singkat", $row);
        $values["airtanah_id"] = $pageObject->showDBValue("airtanah_id", $row);
        $values["self_dok_id"] = $pageObject->showDBValue("self_dok_id", $row);
        $values["office_dok_id"] = $pageObject->showDBValue("office_dok_id", $row);
        $values["tgl_jatuhtempo_self"] = $pageObject->showDBValue("tgl_jatuhtempo_self", $row);
        $values["spt_denda"] = $pageObject->showDBValue("spt_denda", $row);
        $values["tgl_spt"] = $pageObject->showDBValue("tgl_spt", $row);
        $values["pad_bunga"] = $pageObject->showDBValue("pad_bunga", $row);
        $values["fax"] = $pageObject->showDBValue("fax", $row);
        $values["website"] = $pageObject->showDBValue("website", $row);
        $values["email"] = $pageObject->showDBValue("email", $row);
        $values["daerah"] = $pageObject->showDBValue("daerah", $row);
        $values["alamat_lengkap"] = $pageObject->showDBValue("alamat_lengkap", $row);
        $values["ppj_id"] = $pageObject->showDBValue("ppj_id", $row);
        $values["hotel_id"] = $pageObject->showDBValue("hotel_id", $row);
        $values["walet_id"] = $pageObject->showDBValue("walet_id", $row);
        $values["restauran_id"] = $pageObject->showDBValue("restauran_id", $row);
        $values["hiburan_id"] = $pageObject->showDBValue("hiburan_id", $row);
        $values["parkir_id"] = $pageObject->showDBValue("parkir_id", $row);
        $values["enabled"] = $pageObject->showDBValue("enabled", $row);
        $values["surat_no"] = $pageObject->showDBValue("surat_no", $row);
        $values["ijin_kd"] = $pageObject->showDBValue("ijin_kd", $row);
        $values["hotel_kd"] = $pageObject->showDBValue("hotel_kd", $row);
        $values["restoran_kd"] = $pageObject->showDBValue("restoran_kd", $row);
        $values["hiburan_kd"] = $pageObject->showDBValue("hiburan_kd", $row);
        $values["ppj_kd"] = $pageObject->showDBValue("ppj_kd", $row);
        $values["parkir_kd"] = $pageObject->showDBValue("parkir_kd", $row);
        $values["airtanah_kd"] = $pageObject->showDBValue("airtanah_kd", $row);
        $values["reklame_kd"] = $pageObject->showDBValue("reklame_kd", $row);
        $values["restauran_kd"] = $pageObject->showDBValue("restauran_kd", $row);
        $eventRes = true;
        if ($eventObj->exists('BeforeOut')) {
            $eventRes = $eventObj->BeforeOut($row, $values, $pageObject);
        }
        if ($eventRes) {
            $i++;
            echo "<row>\r\n";
            foreach ($values as $fName => $val) {
                $field = htmlspecialchars(XMLNameEncode($fName));
                echo "<" . $field . ">";
                echo $values[$fName];
                echo "</" . $field . ">\r\n";
            }
            echo "</row>\r\n";
        }
        if ($eventObj->exists("ListFetchArray")) {
            $row = $eventObj->ListFetchArray($rs, $pageObject);
        } else {
            $row = $cipherer->DecryptFetchedArray($rs);
        }
    }
    echo "</table>\r\n";
}
开发者ID:aagusti,项目名称:padl-tng,代码行数:84,代码来源:pad_pad_pemda_export.php

示例10: ExportToXML

function ExportToXML()
{
    global $nPageSize, $rs, $strTableName, $conn, $eventObj;
    header("Content-Type: text/xml");
    header("Content-Disposition: attachment;Filename=Electricity_Rates.xml");
    if ($eventObj->exists("ListFetchArray")) {
        $row = $eventObj->ListFetchArray($rs);
    } else {
        $row = db_fetch_array($rs);
    }
    //if(!$row)
    //	return;
    global $cCharset;
    echo "<?xml version=\"1.0\" encoding=\"" . $cCharset . "\" standalone=\"yes\"?>\r\n";
    echo "<table>\r\n";
    $i = 0;
    while ((!$nPageSize || $i < $nPageSize) && $row) {
        $values = array();
        $values["Units"] = GetData($row, "Units", "");
        $values["PerUnit Price"] = GetData($row, "PerUnit Price", "");
        $eventRes = true;
        if ($eventObj->exists('BeforeOut')) {
            $eventRes = $eventObj->BeforeOut($row, $values);
        }
        if ($eventRes) {
            $i++;
            echo "<row>\r\n";
            foreach ($values as $fName => $val) {
                $field = htmlspecialchars(XMLNameEncode($fName));
                echo "<" . $field . ">";
                echo htmlspecialchars($values[$fName]);
                echo "</" . $field . ">\r\n";
            }
            echo "</row>\r\n";
        }
        if ($eventObj->exists("ListFetchArray")) {
            $row = $eventObj->ListFetchArray($rs);
        } else {
            $row = db_fetch_array($rs);
        }
    }
    echo "</table>\r\n";
}
开发者ID:samsulpendis,项目名称:Instant_Appointment,代码行数:43,代码来源:Electricity_Rates_export.php

示例11: ExportToXML

function ExportToXML($rs, $nPageSize, $strTableName, $eventObj, $cipherer, $pageObject)
{
	global $cCharset;
	header("Content-Type: text/xml");
	header("Content-Disposition: attachment;Filename=".GetTableURL($strTableName).".xml");
	if($eventObj->exists("ListFetchArray"))
		$row = $eventObj->ListFetchArray($rs, $pageObject);
	else
		$row = $cipherer->DecryptFetchedArray($rs);	
	//if(!$row)
	//	return;
	
	echo "<?xml version=\"1.0\" encoding=\"".$cCharset."\" standalone=\"yes\"?>\r\n";
	echo "<table>\r\n";
	$i = 0;
	$pageObject->viewControls->forExport = "xml";
	while((!$nPageSize || $i<$nPageSize) && $row)
	{
		$values = array();
			$values["id"] = $pageObject->getExportValue("id", $row);
			$values["username"] = $pageObject->getExportValue("username", $row);
			$values["password"] = $pageObject->getExportValue("password", $row);
			$values["email"] = $pageObject->getExportValue("email", $row);
		
		$eventRes = true;
		if ($eventObj->exists('BeforeOut'))
			$eventRes = $eventObj->BeforeOut($row, $values, $pageObject);
		
		if ($eventRes)
		{
			$i++;
			echo "<row>\r\n";
			foreach ($values as $fName => $val)
			{
				$field = runner_htmlspecialchars(XMLNameEncode($fName));
				echo "<".$field.">";
				echo $values[$fName];
				echo "</".$field.">\r\n";
			}
			echo "</row>\r\n";
		}
		
		
		if($eventObj->exists("ListFetchArray"))
			$row = $eventObj->ListFetchArray($rs, $pageObject);
		else
			$row = $cipherer->DecryptFetchedArray($rs);
	}
	echo "</table>\r\n";
}
开发者ID:helbertfurbino,项目名称:sgmofinanceiro,代码行数:50,代码来源:webreport_users_export.php

示例12: ExportToXML

function ExportToXML($cipherer)
{
    global $nPageSize, $rs, $strTableName, $conn, $eventObj, $pageObject;
    header("Content-Type: text/xml");
    header("Content-Disposition: attachment;Filename=pad_pad_spt_reklame.xml");
    if ($eventObj->exists("ListFetchArray")) {
        $row = $eventObj->ListFetchArray($rs, $pageObject);
    } else {
        $row = $cipherer->DecryptFetchedArray($rs);
    }
    //if(!$row)
    //	return;
    global $cCharset;
    echo "<?xml version=\"1.0\" encoding=\"" . $cCharset . "\" standalone=\"yes\"?>\r\n";
    echo "<table>\r\n";
    $i = 0;
    $pageObject->viewControls->forExport = "xml";
    while ((!$nPageSize || $i < $nPageSize) && $row) {
        $values = array();
        $values["id"] = $pageObject->showDBValue("id", $row);
        $values["spt_id"] = $pageObject->showDBValue("spt_id", $row);
        $values["media_id"] = $pageObject->showDBValue("media_id", $row);
        $values["kelas_jalan_id"] = $pageObject->showDBValue("kelas_jalan_id", $row);
        $values["panjang"] = $pageObject->showDBValue("panjang", $row);
        $values["lebar"] = $pageObject->showDBValue("lebar", $row);
        $values["tinggi"] = $pageObject->showDBValue("tinggi", $row);
        $values["muka"] = $pageObject->showDBValue("muka", $row);
        $values["sisi"] = $pageObject->showDBValue("sisi", $row);
        $values["banyak"] = $pageObject->showDBValue("banyak", $row);
        $values["lama"] = $pageObject->showDBValue("lama", $row);
        $values["nsr"] = $pageObject->showDBValue("nsr", $row);
        $values["alamat"] = $pageObject->showDBValue("alamat", $row);
        $values["update_uid"] = $pageObject->showDBValue("update_uid", $row);
        $values["create_uid"] = $pageObject->showDBValue("create_uid", $row);
        $values["updated"] = $pageObject->showDBValue("updated", $row);
        $values["created"] = $pageObject->showDBValue("created", $row);
        $values["status_baliho"] = $pageObject->showDBValue("status_baliho", $row);
        $values["tambahan"] = $pageObject->showDBValue("tambahan", $row);
        $values["jalan_id"] = $pageObject->showDBValue("jalan_id", $row);
        $eventRes = true;
        if ($eventObj->exists('BeforeOut')) {
            $eventRes = $eventObj->BeforeOut($row, $values, $pageObject);
        }
        if ($eventRes) {
            $i++;
            echo "<row>\r\n";
            foreach ($values as $fName => $val) {
                $field = htmlspecialchars(XMLNameEncode($fName));
                echo "<" . $field . ">";
                echo $values[$fName];
                echo "</" . $field . ">\r\n";
            }
            echo "</row>\r\n";
        }
        if ($eventObj->exists("ListFetchArray")) {
            $row = $eventObj->ListFetchArray($rs, $pageObject);
        } else {
            $row = $cipherer->DecryptFetchedArray($rs);
        }
    }
    echo "</table>\r\n";
}
开发者ID:aagusti,项目名称:padl-tng,代码行数:62,代码来源:pad_pad_spt_reklame_export.php

示例13: ExportToXML

function ExportToXML($cipherer)
{
    global $nPageSize, $rs, $strTableName, $conn, $eventObj, $pageObject;
    header("Content-Type: text/xml");
    header("Content-Disposition: attachment;Filename=public_tmp_bank2.xml");
    if ($eventObj->exists("ListFetchArray")) {
        $row = $eventObj->ListFetchArray($rs, $pageObject);
    } else {
        $row = $cipherer->DecryptFetchedArray($rs);
    }
    //if(!$row)
    //	return;
    global $cCharset;
    echo "<?xml version=\"1.0\" encoding=\"" . $cCharset . "\" standalone=\"yes\"?>\r\n";
    echo "<table>\r\n";
    $i = 0;
    $pageObject->viewControls->forExport = "xml";
    while ((!$nPageSize || $i < $nPageSize) && $row) {
        $values = array();
        $values["id"] = $pageObject->showDBValue("id", $row);
        $values["nama_wp"] = $pageObject->showDBValue("nama_wp", $row);
        $values["alamat_wp"] = $pageObject->showDBValue("alamat_wp", $row);
        $values["npwpd"] = $pageObject->showDBValue("npwpd", $row);
        $values["bayar"] = $pageObject->showDBValue("bayar", $row);
        $values["periode_1"] = $pageObject->showDBValue("periode_1", $row);
        $values["periode_2"] = $pageObject->showDBValue("periode_2", $row);
        $values["keterangan"] = $pageObject->showDBValue("keterangan", $row);
        $values["spt_id_old"] = $pageObject->showDBValue("spt_id_old", $row);
        $values["judul"] = $pageObject->showDBValue("judul", $row);
        $values["lokasi"] = $pageObject->showDBValue("lokasi", $row);
        $values["j"] = $pageObject->showDBValue("j", $row);
        $values["p"] = $pageObject->showDBValue("p", $row);
        $values["l"] = $pageObject->showDBValue("l", $row);
        $values["t"] = $pageObject->showDBValue("t", $row);
        $values["sspd_id"] = $pageObject->showDBValue("sspd_id", $row);
        $values["tanggal"] = $pageObject->showDBValue("tanggal", $row);
        $eventRes = true;
        if ($eventObj->exists('BeforeOut')) {
            $eventRes = $eventObj->BeforeOut($row, $values, $pageObject);
        }
        if ($eventRes) {
            $i++;
            echo "<row>\r\n";
            foreach ($values as $fName => $val) {
                $field = htmlspecialchars(XMLNameEncode($fName));
                echo "<" . $field . ">";
                echo $values[$fName];
                echo "</" . $field . ">\r\n";
            }
            echo "</row>\r\n";
        }
        if ($eventObj->exists("ListFetchArray")) {
            $row = $eventObj->ListFetchArray($rs, $pageObject);
        } else {
            $row = $cipherer->DecryptFetchedArray($rs);
        }
    }
    echo "</table>\r\n";
}
开发者ID:aagusti,项目名称:padl-tng,代码行数:59,代码来源:public_tmp_bank2_export.php

示例14: ExportToXML

function ExportToXML($cipherer)
{
    global $nPageSize, $rs, $strTableName, $conn, $eventObj, $pageObject;
    header("Content-Type: text/xml");
    header("Content-Disposition: attachment;Filename=pad_pad_daftar.xml");
    if ($eventObj->exists("ListFetchArray")) {
        $row = $eventObj->ListFetchArray($rs, $pageObject);
    } else {
        $row = $cipherer->DecryptFetchedArray($rs);
    }
    //if(!$row)
    //	return;
    global $cCharset;
    echo "<?xml version=\"1.0\" encoding=\"" . $cCharset . "\" standalone=\"yes\"?>\r\n";
    echo "<table>\r\n";
    $i = 0;
    $pageObject->viewControls->forExport = "xml";
    while ((!$nPageSize || $i < $nPageSize) && $row) {
        $values = array();
        $values["id"] = $pageObject->showDBValue("id", $row);
        $values["rp"] = $pageObject->showDBValue("rp", $row);
        $values["pb"] = $pageObject->showDBValue("pb", $row);
        $values["formno"] = $pageObject->showDBValue("formno", $row);
        $values["reg_date"] = $pageObject->showDBValue("reg_date", $row);
        $values["customernm"] = $pageObject->showDBValue("customernm", $row);
        $values["kecamatan_id"] = $pageObject->showDBValue("kecamatan_id", $row);
        $values["kelurahan_id"] = $pageObject->showDBValue("kelurahan_id", $row);
        $values["kabupaten"] = $pageObject->showDBValue("kabupaten", $row);
        $values["alamat"] = $pageObject->showDBValue("alamat", $row);
        $values["kodepos"] = $pageObject->showDBValue("kodepos", $row);
        $values["telphone"] = $pageObject->showDBValue("telphone", $row);
        $values["wpnama"] = $pageObject->showDBValue("wpnama", $row);
        $values["wpalamat"] = $pageObject->showDBValue("wpalamat", $row);
        $values["wpkelurahan"] = $pageObject->showDBValue("wpkelurahan", $row);
        $values["wpkecamatan"] = $pageObject->showDBValue("wpkecamatan", $row);
        $values["wpkabupaten"] = $pageObject->showDBValue("wpkabupaten", $row);
        $values["wptelp"] = $pageObject->showDBValue("wptelp", $row);
        $values["wpkodepos"] = $pageObject->showDBValue("wpkodepos", $row);
        $values["pnama"] = $pageObject->showDBValue("pnama", $row);
        $values["palamat"] = $pageObject->showDBValue("palamat", $row);
        $values["pkelurahan"] = $pageObject->showDBValue("pkelurahan", $row);
        $values["pkecamatan"] = $pageObject->showDBValue("pkecamatan", $row);
        $values["pkabupaten"] = $pageObject->showDBValue("pkabupaten", $row);
        $values["ptelp"] = $pageObject->showDBValue("ptelp", $row);
        $values["pkodepos"] = $pageObject->showDBValue("pkodepos", $row);
        $values["ijin1"] = $pageObject->showDBValue("ijin1", $row);
        $values["ijin1no"] = $pageObject->showDBValue("ijin1no", $row);
        $values["ijin1tgl"] = $pageObject->showDBValue("ijin1tgl", $row);
        $values["ijin1tglakhir"] = $pageObject->showDBValue("ijin1tglakhir", $row);
        $values["ijin2"] = $pageObject->showDBValue("ijin2", $row);
        $values["ijin2no"] = $pageObject->showDBValue("ijin2no", $row);
        $values["ijin2tgl"] = $pageObject->showDBValue("ijin2tgl", $row);
        $values["ijin2tglakhir"] = $pageObject->showDBValue("ijin2tglakhir", $row);
        $values["ijin3"] = $pageObject->showDBValue("ijin3", $row);
        $values["ijin3no"] = $pageObject->showDBValue("ijin3no", $row);
        $values["ijin3tgl"] = $pageObject->showDBValue("ijin3tgl", $row);
        $values["ijin3tglakhir"] = $pageObject->showDBValue("ijin3tglakhir", $row);
        $values["ijin4"] = $pageObject->showDBValue("ijin4", $row);
        $values["ijin4no"] = $pageObject->showDBValue("ijin4no", $row);
        $values["ijin4tgl"] = $pageObject->showDBValue("ijin4tgl", $row);
        $values["ijin4tglakhir"] = $pageObject->showDBValue("ijin4tglakhir", $row);
        $values["enabled"] = $pageObject->showDBValue("enabled", $row);
        $values["create_date"] = $pageObject->showDBValue("create_date", $row);
        $values["create_uid"] = $pageObject->showDBValue("create_uid", $row);
        $values["write_date"] = $pageObject->showDBValue("write_date", $row);
        $values["write_uid"] = $pageObject->showDBValue("write_uid", $row);
        $values["op_nm"] = $pageObject->showDBValue("op_nm", $row);
        $values["op_alamat"] = $pageObject->showDBValue("op_alamat", $row);
        $values["op_usaha_id"] = $pageObject->showDBValue("op_usaha_id", $row);
        $values["op_so"] = $pageObject->showDBValue("op_so", $row);
        $values["op_kecamatan_id"] = $pageObject->showDBValue("op_kecamatan_id", $row);
        $values["op_kelurahan_id"] = $pageObject->showDBValue("op_kelurahan_id", $row);
        $values["op_latitude"] = $pageObject->showDBValue("op_latitude", $row);
        $values["op_longitude"] = $pageObject->showDBValue("op_longitude", $row);
        $values["kd_restojmlmeja"] = $pageObject->showDBValue("kd_restojmlmeja", $row);
        $values["kd_restojmlkursi"] = $pageObject->showDBValue("kd_restojmlkursi", $row);
        $values["kd_restojmltamu"] = $pageObject->showDBValue("kd_restojmltamu", $row);
        $values["kd_filmkursi"] = $pageObject->showDBValue("kd_filmkursi", $row);
        $values["kd_filmpertunjukan"] = $pageObject->showDBValue("kd_filmpertunjukan", $row);
        $values["kd_filmtarif"] = $pageObject->showDBValue("kd_filmtarif", $row);
        $values["kd_bilyarmeja"] = $pageObject->showDBValue("kd_bilyarmeja", $row);
        $values["kd_bilyartarif"] = $pageObject->showDBValue("kd_bilyartarif", $row);
        $values["kd_bilyarkegiatan"] = $pageObject->showDBValue("kd_bilyarkegiatan", $row);
        $values["kd_diskopengunjung"] = $pageObject->showDBValue("kd_diskopengunjung", $row);
        $values["kd_diskotarif"] = $pageObject->showDBValue("kd_diskotarif", $row);
        $values["kd_waletvolume"] = $pageObject->showDBValue("kd_waletvolume", $row);
        $values["email"] = $pageObject->showDBValue("email", $row);
        $values["op_pajak_id"] = $pageObject->showDBValue("op_pajak_id", $row);
        $values["npwpd"] = $pageObject->showDBValue("npwpd", $row);
        $values["passwd"] = $pageObject->showDBValue("passwd", $row);
        $eventRes = true;
        if ($eventObj->exists('BeforeOut')) {
            $eventRes = $eventObj->BeforeOut($row, $values, $pageObject);
        }
        if ($eventRes) {
            $i++;
            echo "<row>\r\n";
            foreach ($values as $fName => $val) {
                $field = htmlspecialchars(XMLNameEncode($fName));
                echo "<" . $field . ">";
//.........这里部分代码省略.........
开发者ID:aagusti,项目名称:padl-tng,代码行数:101,代码来源:pad_pad_daftar_export.php

示例15: ExportToXML

function ExportToXML($cipherer)
{
    global $nPageSize, $rs, $strTableName, $conn, $eventObj, $pageObject;
    header("Content-Type: text/xml");
    header("Content-Disposition: attachment;Filename=pad_pad_customer.xml");
    if ($eventObj->exists("ListFetchArray")) {
        $row = $eventObj->ListFetchArray($rs, $pageObject);
    } else {
        $row = $cipherer->DecryptFetchedArray($rs);
    }
    //if(!$row)
    //	return;
    global $cCharset;
    echo "<?xml version=\"1.0\" encoding=\"" . $cCharset . "\" standalone=\"yes\"?>\r\n";
    echo "<table>\r\n";
    $i = 0;
    $pageObject->viewControls->forExport = "xml";
    while ((!$nPageSize || $i < $nPageSize) && $row) {
        $values = array();
        $values["id"] = $pageObject->showDBValue("id", $row);
        $values["parent"] = $pageObject->showDBValue("parent", $row);
        $values["npwpd"] = $pageObject->showDBValue("npwpd", $row);
        $values["rp"] = $pageObject->showDBValue("rp", $row);
        $values["pb"] = $pageObject->showDBValue("pb", $row);
        $values["formno"] = $pageObject->showDBValue("formno", $row);
        $values["reg_date"] = $pageObject->showDBValue("reg_date", $row);
        $values["nama"] = $pageObject->showDBValue("nama", $row);
        $values["kecamatan_id"] = $pageObject->showDBValue("kecamatan_id", $row);
        $values["kelurahan_id"] = $pageObject->showDBValue("kelurahan_id", $row);
        $values["kabupaten"] = $pageObject->showDBValue("kabupaten", $row);
        $values["alamat"] = $pageObject->showDBValue("alamat", $row);
        $values["kodepos"] = $pageObject->showDBValue("kodepos", $row);
        $values["telphone"] = $pageObject->showDBValue("telphone", $row);
        $values["wpnama"] = $pageObject->showDBValue("wpnama", $row);
        $values["wpalamat"] = $pageObject->showDBValue("wpalamat", $row);
        $values["wpkelurahan"] = $pageObject->showDBValue("wpkelurahan", $row);
        $values["wpkecamatan"] = $pageObject->showDBValue("wpkecamatan", $row);
        $values["wpkabupaten"] = $pageObject->showDBValue("wpkabupaten", $row);
        $values["wptelp"] = $pageObject->showDBValue("wptelp", $row);
        $values["wpkodepos"] = $pageObject->showDBValue("wpkodepos", $row);
        $values["pnama"] = $pageObject->showDBValue("pnama", $row);
        $values["palamat"] = $pageObject->showDBValue("palamat", $row);
        $values["pkelurahan"] = $pageObject->showDBValue("pkelurahan", $row);
        $values["pkecamatan"] = $pageObject->showDBValue("pkecamatan", $row);
        $values["pkabupaten"] = $pageObject->showDBValue("pkabupaten", $row);
        $values["ptelp"] = $pageObject->showDBValue("ptelp", $row);
        $values["pkodepos"] = $pageObject->showDBValue("pkodepos", $row);
        $values["ijin1"] = $pageObject->showDBValue("ijin1", $row);
        $values["ijin1no"] = $pageObject->showDBValue("ijin1no", $row);
        $values["ijin1tgl"] = $pageObject->showDBValue("ijin1tgl", $row);
        $values["ijin1tglakhir"] = $pageObject->showDBValue("ijin1tglakhir", $row);
        $values["ijin2"] = $pageObject->showDBValue("ijin2", $row);
        $values["ijin2no"] = $pageObject->showDBValue("ijin2no", $row);
        $values["ijin2tgl"] = $pageObject->showDBValue("ijin2tgl", $row);
        $values["ijin2tglakhir"] = $pageObject->showDBValue("ijin2tglakhir", $row);
        $values["ijin3"] = $pageObject->showDBValue("ijin3", $row);
        $values["ijin3no"] = $pageObject->showDBValue("ijin3no", $row);
        $values["ijin3tgl"] = $pageObject->showDBValue("ijin3tgl", $row);
        $values["ijin3tglakhir"] = $pageObject->showDBValue("ijin3tglakhir", $row);
        $values["ijin4"] = $pageObject->showDBValue("ijin4", $row);
        $values["ijin4no"] = $pageObject->showDBValue("ijin4no", $row);
        $values["ijin4tgl"] = $pageObject->showDBValue("ijin4tgl", $row);
        $values["ijin4tglakhir"] = $pageObject->showDBValue("ijin4tglakhir", $row);
        $values["kukuhno"] = $pageObject->showDBValue("kukuhno", $row);
        $values["kukuhnip"] = $pageObject->showDBValue("kukuhnip", $row);
        $values["kukuhtgl"] = $pageObject->showDBValue("kukuhtgl", $row);
        $values["kukuh_jabat_id"] = $pageObject->showDBValue("kukuh_jabat_id", $row);
        $values["kukuhprinted"] = $pageObject->showDBValue("kukuhprinted", $row);
        $values["enabled"] = $pageObject->showDBValue("enabled", $row);
        $values["create_uid"] = $pageObject->showDBValue("create_uid", $row);
        $values["tmt"] = $pageObject->showDBValue("tmt", $row);
        $values["customer_status_id"] = $pageObject->showDBValue("customer_status_id", $row);
        $values["kembalitgl"] = $pageObject->showDBValue("kembalitgl", $row);
        $values["kembalioleh"] = $pageObject->showDBValue("kembalioleh", $row);
        $values["kartuprinted"] = $pageObject->showDBValue("kartuprinted", $row);
        $values["kembalinip"] = $pageObject->showDBValue("kembalinip", $row);
        $values["penerimanm"] = $pageObject->showDBValue("penerimanm", $row);
        $values["penerimaalamat"] = $pageObject->showDBValue("penerimaalamat", $row);
        $values["penerimatgl"] = $pageObject->showDBValue("penerimatgl", $row);
        $values["catatnip"] = $pageObject->showDBValue("catatnip", $row);
        $values["kirimtgl"] = $pageObject->showDBValue("kirimtgl", $row);
        $values["batastgl"] = $pageObject->showDBValue("batastgl", $row);
        $values["petugas_jabat_id"] = $pageObject->showDBValue("petugas_jabat_id", $row);
        $values["pencatat_jabat_id"] = $pageObject->showDBValue("pencatat_jabat_id", $row);
        $values["created"] = $pageObject->showDBValue("created", $row);
        $values["updated"] = $pageObject->showDBValue("updated", $row);
        $values["update_uid"] = $pageObject->showDBValue("update_uid", $row);
        $values["npwpd_old"] = $pageObject->showDBValue("npwpd_old", $row);
        $values["id_old"] = $pageObject->showDBValue("id_old", $row);
        $eventRes = true;
        if ($eventObj->exists('BeforeOut')) {
            $eventRes = $eventObj->BeforeOut($row, $values, $pageObject);
        }
        if ($eventRes) {
            $i++;
            echo "<row>\r\n";
            foreach ($values as $fName => $val) {
                $field = htmlspecialchars(XMLNameEncode($fName));
                echo "<" . $field . ">";
                echo $values[$fName];
//.........这里部分代码省略.........
开发者ID:aagusti,项目名称:padl-tng,代码行数:101,代码来源:pad_pad_customer_export.php


注:本文中的XMLNameEncode函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。