本文整理匯總了PHP中Price::export方法的典型用法代碼示例。如果您正苦於以下問題:PHP Price::export方法的具體用法?PHP Price::export怎麽用?PHP Price::export使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Price
的用法示例。
在下文中一共展示了Price::export方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: Priceset
// }
if ($action == "upload_0") {
require_once "DataBase/Priceset.php";
require_once "DataBase/Customer.php";
require_once "DataBase/Product.php";
require_once "DataBase/Price.php";
require_once "DataBase/Category.php";
$priceset = new Priceset();
$customer = new Customer();
$product = new Product();
$price = new Price();
$category = new Category();
$priceset->export("mysql_export/priceset.csv");
$customer->export("mysql_export/customer.csv");
$product->export("mysql_export/product.csv");
$price->export("mysql_export/price.csv");
$category->export("mysql_export/category.csv");
// upload all db-files "mysql_export"
$handle = popen("/var/www/ursprung/bin/upload.sh", "r");
pclose($handle);
$main_box->add(new NTKLabel("", "Schritt erfolgreich"), 200, -1, "color: #00ff00; background-color: #dfe7f3;");
$button_next = new NTKButton("button_next", "Weiter", "location.replace('websync.php?action=upload_1');");
$main_box->add($button_next, 500);
} elseif ($action == "upload_1") {
$iframe = new NTKIFrame("upload_frame", "http://www.natuerlich-grobi.de/db_import.php", "width: 300px; height: 200px; background-color: #dfe7f3;");
$main_box->add($spacer, True, True, "background-color: #dfe7f3;");
$main_box->add(new NTKLabel("", "Serverausgabe (dauert etwas):"), False, False, "font-style: bold; background-color: #dfe7f3;");
$main_box->add($iframe, False, False, "background-color: #dfe7f3;");
$main_box->add($spacer, True, True, "background-color: #dfe7f3;");
} elseif ($action == "download_0") {
$iframe = new NTKIFrame("download_frame", "http://www.natuerlich-grobi.de/db_export.php", "width: 300px; height: 200px; background-color: #dfe7f3;");