當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Worker::nameString方法代碼示例

本文整理匯總了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";
}
開發者ID:ConSked,項目名稱:scheduler,代碼行數:28,代碼來源:WorkerList.php

示例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";
}
開發者ID:ConSked,項目名稱:scheduler,代碼行數:17,代碼來源:ShiftCheckInList.php

示例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";
}
開發者ID:ConSked,項目名稱:scheduler,代碼行數:42,代碼來源:CheckInWorkerDashboardList.php

示例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";
}
開發者ID:ConSked,項目名稱:scheduler,代碼行數:20,代碼來源:CheckInStationDashboardList.php

示例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";
}
開發者ID:ConSked,項目名稱:scheduler,代碼行數:10,代碼來源:SchedulingReportList.php


注:本文中的Worker::nameString方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。