本文整理汇总了PHP中request::openServices方法的典型用法代码示例。如果您正苦于以下问题:PHP request::openServices方法的具体用法?PHP request::openServices怎么用?PHP request::openServices使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类request
的用法示例。
在下文中一共展示了request::openServices方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: block
exit;
}
include '../themes/' . THEME . '/header.php';
$blockPage = new block();
$blockPage->openBreadcrumbs();
$blockPage->itemBreadcrumbs($blockPage->buildLink("../administration/admin.php?", $strings["administration"], in));
$blockPage->itemBreadcrumbs($blockPage->buildLink("../services/listservices.php?", $strings["service_management"], in));
$blockPage->itemBreadcrumbs($strings["delete_services"]);
$blockPage->closeBreadcrumbs();
if ($msg != "") {
include '../includes/messages.php';
$blockPage->messagebox($msgLabel);
}
$block1 = new block();
$block1->form = "service_delete";
$block1->openForm("../services/deleteservices.php?action=delete&" . session_name() . "=" . session_id());
$block1->heading($strings["delete_services"]);
$block1->openContent();
$block1->contentTitle($strings["delete_following"]);
$id = str_replace("**", ",", $id);
$tmpquery = "WHERE serv.id IN({$id}) ORDER BY serv.name";
$listServices = new request();
$listServices->openServices($tmpquery);
$comptListServices = count($listServices->serv_id);
for ($i = 0; $i < $comptListServices; $i++) {
echo "<tr class=\"odd\"><td valign=\"top\" class=\"leftvalue\"> </td><td>" . $listServices->serv_name[$i] . " (" . $listServices->serv_name_print[$i] . ")</td></tr>";
}
echo "<tr class=\"odd\"><td valign=\"top\" class=\"leftvalue\"> </td><td><input type=\"submit\" name=\"delete\" value=\"" . $strings["delete"] . "\"> <input type=\"button\" name=\"cancel\" value=\"" . $strings["cancel"] . "\" onClick=\"history.back();\"><input type=\"hidden\" value=\"{$id}\" name=\"id\"></td></tr>";
$block1->closeContent();
$block1->closeForm();
include '../themes/' . THEME . '/footer.php';
示例2: buildLink
if ($projectDetail->pro_phase_set[0] != "0") {
$block1->contentRow($strings["phase"], buildLink("../phases/viewphase.php?id=" . $targetPhase->pha_id[0], $targetPhase->pha_name[0], LINK_INSIDE));
}
$block1->contentRow($strings["organization"], $projectDetail->pro_org_name[0]);
$block1->contentRow($strings["created"], createDate($taskDetail->tas_created[0], $_SESSION['timezoneSession']));
$block1->contentRow($strings["assigned"], createDate($taskDetail->tas_assigned[0], $_SESSION['timezoneSession']));
$block1->contentRow($strings["modified"], createDate($taskDetail->tas_modified[0], $_SESSION['timezoneSession']));
$block1->contentTitle($strings["details"]);
$block1->contentRow($strings["name"], $taskDetail->tas_name[0]);
$block1->contentRow($strings['task_id'], $taskDetail->tas_id[0]);
$block1->contentRow($strings["description"], nl2br($taskDetail->tas_description[0]));
$block1->contentRow($strings['ical_url'], buildLink("{$root}/calendar/icalendar.php", "{$root}/calendar/icalendar.php", LINK_OUT));
if ($taskDetail->tas_milestone[0] != "0") {
$tmpquery = "WHERE id='" . $taskDetail->tas_service[0] . "'";
$serviceDetail = new request();
$serviceDetail->openServices($tmpquery);
$servicePrintName = $serviceDetail->serv_name_print[0];
$serviceHourlyRate = $serviceDetail->serv_hourly_rate[0];
if ($servicePrintName) {
$block1->contentRow($strings["service"], $servicePrintName . ' (' . $strings['hourly_rate'] . ' $' . $serviceHourlyRate . ')');
} else {
$block1->contentRow($strings["service"], $strings['none']);
}
}
$idStatus = $taskDetail->tas_status[0];
$idPriority = $taskDetail->tas_priority[0];
$idPublish = $taskDetail->tas_published[0];
$complValue = $taskDetail->tas_completion[0] > 0 ? $taskDetail->tas_completion[0] . "0 %" : $taskDetail->tas_completion[0] . " %";
$block1->contentRow($strings["milestone"], $milestoneis[$taskDetail->tas_milestone[0]]);
if ($taskDetail->tas_milestone[0] != "0") {
$block1->contentRow($strings["status"], $status[$idStatus]);
示例3: convertData
}
//case update user
if ($id != "") {
//case update user
if ($action == "update") {
//replace quotes by html code in name and address
$n = convertData($n);
$np = convertData($np);
$tmpquery = "UPDATE " . $tableCollab["services"] . " SET name='{$n}',name_print='{$np}',hourly_rate='{$hr}' WHERE id = '{$id}'";
connectSql($tmpquery);
headerFunction("../services/listservices.php?msg=update&" . session_name() . "=" . session_id());
exit;
}
$tmpquery = "WHERE serv.id = '{$id}'";
$detailService = new request();
$detailService->openServices($tmpquery);
$comptDetailService = count($detailService->serv_id);
//set values in form
$n = $detailService->serv_name[0];
$np = $detailService->serv_name_print[0];
$hr = $detailService->serv_hourly_rate[0];
}
//case add user
if ($id == "") {
if ($action == "add") {
//replace quotes by html code in name and address
$n = convertData($n);
$np = convertData($np);
//$tmpquery1 = "INSERT INTO ".$tableCollab["services"]." SET name='$n',name_print='$np',hourly_rate='$hr'";
$tmpquery1 = "INSERT INTO " . $tableCollab["services"] . " (name,name_print,hourly_rate) VALUES ('{$n}','{$np}','{$hr}')";
connectSql($tmpquery1);