本文整理汇总了PHP中Worker::nameString方法的典型用法代码示例。如果您正苦于以下问题:PHP Worker::nameString方法的具体用法?PHP Worker::nameString怎么用?PHP Worker::nameString使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Worker
的用法示例。
在下文中一共展示了Worker::nameString方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: makeWorkerListHTMLRows
function makeWorkerListHTMLRows(Worker $w, $position, Worker $author, $checkBoxFlag, $isSelected)
{
echo "<tr>\n";
if ($checkBoxFlag) {
$option = array($position, "");
echo " <td class='checkValue'>";
swwat_createRadioOption(PARAM_LIST_MULTIPLE, $option, SWWAT_CHECKBOX, $isSelected, FALSE);
echo " </td>\n";
}
echo ' <td class="fieldValueFirst">';
if (!$checkBoxFlag && $author->isOrganizer()) {
echo '<a href="WorkerViewPage.php?', PARAM_LIST_INDEX, '=', $position, '">';
}
echo htmlspecialchars($w->nameString());
if (!$checkBoxFlag && $author->isOrganizer()) {
echo "</a>";
}
echo "</td>\n";
if (!$author->isCrewMember()) {
echo "<td class='fieldValue'>";
echo htmlspecialchars($w->email);
echo "</td>\n";
echo "<td class='fieldValue'>";
echo swwat_format_phone($w->phone);
echo "</td>\n";
}
echo "</tr>\n";
}
示例2: makeShiftCheckInListHTMLRows
function makeShiftCheckInListHTMLRows(Worker $w, $statusType)
{
echo "<tr>\n";
echo "<td class=\"fieldValueFirst\">" . htmlspecialchars($w->nameString()) . "</td>\n";
echo "<td class=\"fieldValue\"><input type=\"submit\" name=\"" . $w->workerid . "\" value=\"Check In\"";
if (!strcmp($statusType, 'CHECK_IN')) {
echo " disabled=\"disabled\"";
}
echo "></td>\n";
echo "<td class=\"fieldValue\"><input type=\"submit\" name=\"" . $w->workerid . "\" value=\"Check Out\"";
if ($statusType == NULL || !strcmp($statusType, 'CHECK_OUT')) {
echo " disabled=\"disabled\"";
}
echo "></td>\n";
echo "<td class=\"fieldValue\"><input type=\"button\" name=\"" . $w->workerid . "\" value=\"View\" onclick=\"viewShiftStatus('" . $w->workerid . "')\"></td>\n";
echo "</tr>\n";
}
示例3: makeCheckInWorkerDashboardListHTMLRows2
function makeCheckInWorkerDashboardListHTMLRows2(Worker $w, $expoid)
{
echo "<tr>\n";
echo "<td class=\"fieldValueFirst\">" . htmlspecialchars($w->nameString()) . "</td>\n";
echo "<td class=\"fieldValue\">" . htmlspecialchars($w->email) . "</td>\n";
echo "<td class=\"fieldValue\">" . swwat_format_phone($w->phone) . "</td>\n";
$ss = ShiftStatus::mostRecentStatusWorker($w->workerid, $expoid);
echo "<td class=\"fieldValue\">";
if (!is_null($ss)) {
$s = StationJob::selectID($ss->stationid);
echo $s->location . " (" . $s->title . ")";
} else {
echo "-";
}
echo "</td>\n";
echo "<td class=\"fieldValue\">";
if (!is_null($ss)) {
if ($ss->statusType == "CHECK_IN") {
echo "<div style=\"color: red\">Checked In</div>";
} else {
if ($ss->statusType == "CHECK_OUT") {
echo "<div style=\"color: green\">Checked Out</div>";
}
}
} else {
echo "Never checked in";
}
echo "</td>\n";
echo "<td class=\"fieldValue\">";
if (!is_null($ss)) {
$hours = ShiftStatus::WorkerHours($w->workerid, $expoid);
if (is_int($hours)) {
echo $hours;
} else {
echo sprintf('%.2f', $hours);
}
} else {
echo "-";
}
echo "</td>\n";
echo "</tr>\n";
}
示例4: makeCheckInStationDashboardWorkerListHTMLRows
function makeCheckInStationDashboardWorkerListHTMLRows(Worker $w, $ss, $max_name_size, $max_email_size)
{
echo "<tr>\n";
echo "<td width=\"" . $max_name_size . "\" class=\"fieldValueFirst\">" . htmlspecialchars($w->nameString()) . "</td>\n";
echo "<td width=\"" . $max_email_size . "\" class=\"fieldValue\">" . htmlspecialchars($w->email) . "</td>\n";
echo "<td class=\"fieldValue\">" . htmlspecialchars(swwat_format_phone($w->phone)) . "</td>\n";
$statusType = NULL;
if ($ss != NULL) {
if (!strcmp($ss->statusType, 'CHECK_IN')) {
$statusType = "<div style=\"color: red\">Checked In</div>\n";
}
if (!strcmp($ss->statusType, 'CHECK_OUT')) {
$statusType = "<div style=\"color: green\">Checked Out</div>\n";
}
} else {
$statusType = '-';
}
echo "<td width=\"110\" class=\"fieldValue\">" . $statusType . "</td>\n";
echo "</tr>\n";
}
示例5: makeSchedulingReportWorkerListHTMLRows
function makeSchedulingReportWorkerListHTMLRows(Worker $w, $k, $max_name_size, $max_email_size)
{
echo "<tr>\n";
echo "<td width='" . $max_name_size . "' class='fieldValueFirst'>\n";
echo "<a href='StationLockReportPage.php?" . PARAM_LIST_INDEX . "=" . $k . "'>" . htmlspecialchars($w->nameString()) . "</a>\n";
echo "</td>\n";
echo "<td width='" . $max_email_size . "' class='fieldValue'>" . htmlspecialchars($w->email) . "</td>\n";
echo "<td class='fieldValue'>" . htmlspecialchars(swwat_format_phone($w->phone)) . "</td>\n";
echo "</tr>\n";
}