本文整理汇总了PHP中client::format_address方法的典型用法代码示例。如果您正苦于以下问题:PHP client::format_address方法的具体用法?PHP client::format_address怎么用?PHP client::format_address使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类client
的用法示例。
在下文中一共展示了client::format_address方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: clientContact
}
$TPL["clientCategoryOptions"] = page::select_options($cc, $client->get_value("clientCategory"));
$client->get_value("clientCategory") and $TPL["client_clientCategoryLabel"] = $cc[$client->get_value("clientCategory")];
// client contacts
if ($_POST["clientContact_save"] || $_POST["clientContact_delete"]) {
$clientContact = new clientContact();
$clientContact->read_globals();
if ($_POST["clientContact_save"]) {
#$clientContact->set_value('clientID', $_POST["clientID"]);
$clientContact->save();
}
if ($_POST["clientContact_delete"]) {
$clientContact->delete();
}
}
if (!$clientID) {
$TPL["message_help"][] = "Create a new Client by inputting the Client Name and other details and clicking the Create New Client button.";
$TPL["main_alloc_title"] = "New Client - " . APPLICATION_NAME;
$TPL["clientSelfLink"] = "New Client";
} else {
$TPL["main_alloc_title"] = "Client " . $client->get_id() . ": " . $client->get_name() . " - " . APPLICATION_NAME;
$TPL["clientSelfLink"] = sprintf("<a href=\"%s\">%d %s</a>", $client->get_url(), $client->get_id(), $client->get_name(array("return" => "html")));
}
if ($current_user->have_role("admin")) {
$TPL["invoice_links"] .= "<a href=\"" . $TPL["url_alloc_invoice"] . "clientID=" . $clientID . "\">New Invoice</a>";
}
$projectListOps = array("showProjectType" => true, "clientID" => $client->get_id());
$TPL["projectListRows"] = project::get_list($projectListOps);
$TPL["client_clientPostalAddress"] = $client->format_address("postal");
$TPL["client_clientStreetAddress"] = $client->format_address("street");
include_template("templates/clientM.tpl");
示例2: client
alloc_redirect($TPL["url_alloc_project"] . "projectID=" . $projectID . "&sbs_link=attachments");
}
$project->set_values("project_");
$db = new db_alloc();
$clientID = $project->get_value("clientID") or $clientID = $_GET["clientID"];
$client = new client();
$client->set_id($clientID);
$client->select();
$client->set_tpl_values("client_");
// If a client has been chosen
if ($clientID) {
$query = prepare("SELECT * \n FROM clientContact\n WHERE clientContact.clientID = %d AND clientContact.primaryContact = true", $clientID);
$db->query($query);
$cc = new clientContact();
$cc->read_db_record($db);
$one = $client->format_address("postal");
$two = $client->format_address("street");
$thr = $cc->format_contact();
$fou = $project->format_client_old();
$temp = str_replace("<br>", "", $fou);
$temp and $thr = $fou;
$url = $TPL["url_alloc_client"] . "clientID=" . $clientID;
if ($project->get_value("clientContactID")) {
$cc = new clientContact();
$cc->set_id($project->get_value("clientContactID"));
$cc->select();
$fiv = $cc->format_contact();
$temp = str_replace("<br>", "", $fiv);
$temp and $thr = $fiv;
}
$TPL["clientDetails"] = "<table width=\"100%\">";