当前位置: 首页>>代码示例>>PHP>>正文


PHP new_sidebar_item函数代码示例

本文整理汇总了PHP中new_sidebar_item函数的典型用法代码示例。如果您正苦于以下问题:PHP new_sidebar_item函数的具体用法?PHP new_sidebar_item怎么用?PHP new_sidebar_item使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了new_sidebar_item函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: add_mspr_admin_sidebar

function add_mspr_admin_sidebar($year)
{
    $sidebar_html = "<ul class=\"menu\">";
    $sidebar_html .= "\t<li class=\"link\"><a href=\"" . ENTRADA_URL . "/admin/mspr?section=mspr-options&year=" . $year . "\">Class of " . $year . " MSPR Options</a></li>\n";
    $sidebar_html .= "\t<li class=\"link\"><a href=\"" . ENTRADA_URL . "/admin/mspr?mode=year&year=" . $year . "\">Manage Class of " . $year . " MSPRs</a></li>\n";
    $sidebar_html .= "\t<li class=\"link\"><a href=\"" . ENTRADA_URL . "/admin/mspr?mode=all\">Manage All MSPRs Requiring Attention</a></li>\n";
    $sidebar_html .= "</ul>";
    new_sidebar_item("MSPR Admin", $sidebar_html, "mspr-admin-nav", "open");
}
开发者ID:nadeemshafique,项目名称:entrada-1x,代码行数:9,代码来源:mspr.inc.php

示例2: add_manage_user_sidebar

function add_manage_user_sidebar()
{
    global $ENTRADA_ACL, $PROXY_ID;
    $baseurl = ENTRADA_URL . "/admin/users";
    $sidebar_html = "<ul class=\"menu\">";
    $sidebar_html .= "\t<li class=\"link\"><a href=\"" . ENTRADA_URL . "/admin/users/metadata\">Manage User Meta Data</a></li>\n";
    $sidebar_html .= "\t<li class=\"link\"><a href=\"" . ENTRADA_URL . "/admin/mspr\">Manage MSPRs</a></li>\n";
    $sidebar_html .= "</ul>";
    new_sidebar_item("User Management", $sidebar_html, "user-management-nav", "open");
}
开发者ID:nadeemshafique,项目名称:entrada-1x,代码行数:10,代码来源:users.inc.php

示例3: add_mspr_management_sidebar

function add_mspr_management_sidebar()
{
    global $ENTRADA_ACL, $PROXY_ID;
    $user = User::get($PROXY_ID);
    $year = $user->getGradYear();
    $sidebar_html = "<ul class=\"menu\">";
    $sidebar_html .= "\t<li class=\"link\"><a href=\"" . ENTRADA_URL . "/admin/users/manage/students?section=mspr-options&id=" . $PROXY_ID . "\">MSPR Options</a></li>\n";
    $sidebar_html .= "\t<li class=\"link\"><a href=\"" . ENTRADA_URL . "/admin/users/manage/students?section=mspr-revisions&id=" . $PROXY_ID . "\">MSPR File Revisions</a></li>\n";
    $sidebar_html .= "\t<li class=\"link\"><a href=\"" . ENTRADA_URL . "/admin/mspr?mode=year&year=" . $year . "\">Manage Class of " . $year . " MSPRs</a></li>\n";
    $sidebar_html .= "\t<li class=\"link\"><a href=\"" . ENTRADA_URL . "/admin/mspr?mode=all\">Manage All MSPRs Requiring Attention</a></li>\n";
    $sidebar_html .= "</ul>";
    new_sidebar_item("MSPR Management", $sidebar_html, "mspr-management-nav", "open");
}
开发者ID:nadeemshafique,项目名称:entrada-1x,代码行数:13,代码来源:manage.inc.php

示例4: new_sidebar_item

                <script type="text/javascript">
                $$('select.ed_select_off').each(function(el) {
                    $(el).disabled = true;
                    $(el).fade({ duration: 0.3, to: 0.25 });
                });
                </script>
                <?php 
                /**
                 * Sidebar item that will provide the links to the different sections within this page.
                 */
                $sidebar_html = "<ul class=\"menu\">\n";
                $sidebar_html .= "\t<li class=\"link\"><a href=\"#event-details-section\" onclick=\"\$('event-details-section').scrollTo(); return false;\" title=\"Event Details\">Event Details</a></li>\n";
                $sidebar_html .= "\t<li class=\"link\"><a href=\"#event-objectives-section\" onclick=\"\$('event-objectives-section').scrollTo(); return false;\" title=\"Event Objectives\">Event Objectives</a></li>\n";
                $sidebar_html .= "\t<li class=\"link\"><a href=\"#event-resources-section\" onclick=\"\$('event-resources-section').scrollTo(); return false;\" title=\"Event Resources\">Event Resources</a></li>\n";
                $sidebar_html .= "</ul>\n";
                new_sidebar_item("Page Anchors", $sidebar_html, "page-anchors", "open", "1.9");
            }
        } else {
            $ERROR++;
            $ERRORSTR[] = "In order to edit a event you must provide a valid event identifier. The provided ID does not exist in this system.";
            echo display_error();
            application_log("notice", "Failed to provide a valid event identifer when attempting to edit a event.");
        }
    } else {
        $ERROR++;
        $ERRORSTR[] = "In order to edit a event you must provide the events identifier.";
        echo display_error();
        application_log("notice", "Failed to provide event identifer when attempting to edit a event.");
    }
}
开发者ID:nadeemshafique,项目名称:entrada-1x,代码行数:30,代码来源:content.inc.php

示例5: fields

						</div>
                        <?php 
                        if (isset($recurring_events) && $recurring_events) {
                            $sidebar_html = "<div class=\"content-small\">Please select which fields (if any) you would like to apply to related recurring events: </div>\n";
                            $sidebar_html .= "<div class=\"pad-left\">\n";
                            $sidebar_html .= "  <ul class=\"menu none\">\n";
                            $sidebar_html .= "      <li><input type=\"checkbox\" value=\"course\" id=\"cascade_course\" onclick=\"toggleRecurringEventField(this.checked, jQuery(this).val())\" class=\"update-recurring-checkbox\" name=\"update_recurring_fields[]\" /> <label for=\"cascade_course\">Course</label></li>\n";
                            $sidebar_html .= "      <li><input type=\"checkbox\" value=\"event_title\" id=\"cascade_event_title\" onclick=\"toggleRecurringEventField(this.checked, jQuery(this).val())\" class=\"update-recurring-checkbox\" name=\"update_recurring_fields[]\" /> <label for=\"cascade_event_title\">Event Title</label></li>\n";
                            $sidebar_html .= "      <li><input type=\"checkbox\" value=\"event_location\" id=\"cascade_event_location\" onclick=\"toggleRecurringEventField(this.checked, jQuery(this).val())\" class=\"update-recurring-checkbox\" name=\"update_recurring_fields[]\" /> <label for=\"cascade_event_location\">Event Location</label></li>\n";
                            $sidebar_html .= "      <li><input type=\"checkbox\" value=\"event_types\" id=\"cascade_event_types\" onclick=\"toggleRecurringEventField(this.checked, jQuery(this).val())\" class=\"update-recurring-checkbox\" name=\"update_recurring_fields[]\" /> <label for=\"cascade_event_types\">Event Types</label></li>\n";
                            $sidebar_html .= "      <li><input type=\"checkbox\" value=\"associated_faculty\" id=\"cascade_associated_faculty\" onclick=\"toggleRecurringEventField(this.checked, jQuery(this).val())\" class=\"update-recurring-checkbox\" name=\"update_recurring_fields[]\" /> <label for=\"cascade_associated_faculty\">Associated Faculty</label></li>\n";
                            $sidebar_html .= "      <li><input type=\"checkbox\" value=\"associated_learners\" id=\"cascade_associated_learners\" onclick=\"toggleRecurringEventField(this.checked, jQuery(this).val())\" class=\"update-recurring-checkbox\" name=\"update_recurring_fields[]\" /> <label for=\"cascade_associated_learners\">Associated Learners</label></li>\n";
                            $sidebar_html .= "  </ul>\n";
                            $sidebar_html .= "</div>\n";
                            $sidebar_html .= "<div><strong><a href=\"#recurringEvents\" data-toggle=\"modal\" data-target=\"#recurringEvents\"><i class=\"icon-edit\"></i> <span id=\"recurring_events_count\">" . (isset($_POST["recurring_event_ids"]) && @count($_POST["recurring_event_ids"]) ? @count($_POST["recurring_event_ids"]) : @count($recurring_events)) . "</span> Recurring Events Selected</a></strong></div>";
                            new_sidebar_item("Recurring Events", $sidebar_html, "recurring-events-sidebar");
                            ?>
                            <style type="text/css">
                                #recurring-events-sidebar.fixed {
                                    position: fixed;
                                    top: 20px;
                                    z-index: 1;
                                    width: 225px;
                                    border-bottom: 5px solid #ffffff;
                                }
                                #recurring-events-sidebar .panel-head {
                                    background: linear-gradient(to bottom, #8A0808 0%, #3B0B0B 100%);
                                }

                            </style>
                            <script type="text/javascript">
开发者ID:nadeemshafique,项目名称:entrada-1x,代码行数:31,代码来源:edit.inc.php

示例6: foreach

if ($target_evaluations) {
    foreach ($target_evaluations as $target_evaluation) {
        if (isset($target_evaluation["allow_target_request"]) && $target_evaluation["allow_target_request"]) {
            $request_evaluations[] = $target_evaluation;
        }
    }
}
$query = "SELECT * FROM `evaluation_requests` AS a\n            JOIN `evaluations` AS b\n            ON a.`evaluation_id` = b.`evaluation_id`\n            WHERE `target_proxy_id` = " . $db->qstr($ENTRADA_USER->getID()) . "\n            AND `request_code` IS NOT NULL\n            AND (\n                `request_expires` = 0\n                OR `request_expires` > " . $db->qstr(time()) . "\n            )";
$requested_evaluations = $db->GetAll($query);
if (isset($requested_evaluations) && count($requested_evaluations)) {
    $sidebar_html = "<form method=\"post\" action=\"" . ENTRADA_RELATIVE . "/evaluations?section=attempt\">\n";
    $sidebar_html .= "\t<label class=\"form-nrequired\" for=\"request_code\">Request Code: </label>";
    $sidebar_html .= "  <input type=\"text\" id=\"request_code\" name=\"request_code\">";
    $sidebar_html .= "\t<br /><br /><input type=\"submit\" class=\"btn btn-small btn-primary\" value=\"Submit\" />";
    $sidebar_html .= "</form>";
    new_sidebar_item("Fulfill an Evaluation Request", $sidebar_html, "evaluation-request-code", "open", "1.9");
}
if (isset($request_evaluations) && count($request_evaluations)) {
    $HEAD[] = "\n\t<script type=\"text/javascript\">\n\t\tfunction loadEvaluators(evaluation_id) {\n\t\t\tnew Ajax.Updater('request_evaluators', '" . ENTRADA_URL . "/api/evaluations-request-evaluators.api.php', {\n                parameters: {\n                    id: evaluation_id\n                }, \n                method: 'post'\n            });\n\t\t}\n\t</script>";
    $sidebar_html = "<form method=\"post\" action=\"" . ENTRADA_RELATIVE . "/evaluations?request=1\">\n";
    $sidebar_html .= "\t<label class=\"form-nrequired\" for=\"evaluation_request_id\">Evaluation/Assessment: </label>";
    $sidebar_html .= "\t<select style=\"width: 150px; overflow: none;\" name=\"id\" onchange=\"loadEvaluators(this.value)\">";
    $sidebar_html .= "\t\t<option value=\"0\">-- Select an Evaluation or Assessment --</option>";
    foreach ($request_evaluations as $request_evaluation) {
        $sidebar_html .= "\t\t<option value=\"" . $request_evaluation["evaluation_id"] . "\"" . (isset($RECORD_ID) && $RECORD_ID == $request_evaluation["evaluation_id"] ? " selecte=\"selected\"" : "") . ">" . $request_evaluation["evaluation_title"] . "</option>";
    }
    $sidebar_html .= "\t</select>";
    $sidebar_html .= "  <div id=\"request_evaluators\">&nbsp;</div>";
    $sidebar_html .= "</form>";
    new_sidebar_item("Request an Evaluation", $sidebar_html, "request-evaluation", "open", "1.9");
}
开发者ID:nadeemshafique,项目名称:entrada-1x,代码行数:31,代码来源:index.inc.php

示例7: display_error

    echo display_error();
    application_log("error", "Group [" . $_SESSION["permissions"][$ENTRADA_USER->getAccessId()]["group"] . "] and role [" . $_SESSION["permissions"][$ENTRADA_USER->getAccessId()]["role"] . "] do not have access to this module [" . $MODULE . "]");
} else {
    define("IN_REGIONALED", true);
    $BREADCRUMB[] = array("url" => ENTRADA_URL . "/admin/regionaled", "title" => "Regional Education");
    if ($router && $router->initRoute()) {
        $PREFERENCES = preferences_load($MODULE);
        /**
         * Add the Regional Education module secondary navigation.
         */
        $sidebar_html = "<ul class=\"menu\">";
        $sidebar_html .= "\t<li class=\"link\"><a href=\"" . ENTRADA_URL . "/admin/regionaled\">Regional Education</a></li>\n";
        $sidebar_html .= "\t<li class=\"link\"><a href=\"" . ENTRADA_URL . "/admin/regionaled/apartments\">Manage Apartments</a></li>\n";
        $sidebar_html .= "\t<li class=\"link\"><a href=\"" . ENTRADA_URL . "/admin/regionaled/regions\">Manage Regions</a></li>\n";
        $sidebar_html .= "</ul>";
        new_sidebar_item("Regional Education", $sidebar_html, "regionaled-nav", "open");
        $module_file = $router->getRoute();
        if ($module_file) {
            require_once $module_file;
        }
        /**
         * Check if preferences need to be updated on the server at this point.
         */
        preferences_update($MODULE, $PREFERENCES);
    } else {
        $url = ENTRADA_URL . "/admin/" . $MODULE;
        application_log("error", "The Entrada_Router failed to load a request. The user was redirected to [" . $url . "].");
        header("Location: " . $url);
        exit;
    }
}
开发者ID:nadeemshafique,项目名称:entrada-1x,代码行数:31,代码来源:regionaled.inc.php

示例8: array

    $PAGE_META["title"] = "Formal Remediations";
    $PAGE_META["description"] = "";
    $PAGE_META["keywords"] = "";
    $PROXY_ID = $user_record["id"];
    $BREADCRUMB[] = array("url" => ENTRADA_URL . "/admin/users/manage/students?section=formalremediations&id=" . $PROXY_ID, "title" => "Formal Remediations");
    $HEAD[] = "<script language='javascript' src='" . ENTRADA_URL . "/javascript/PassiveDataEntryProcessor.js'></script>";
    if (is_array($_SESSION["permissions"]) && ($total_permissions = count($_SESSION["permissions"]) > 1)) {
        $sidebar_html = "The following individual" . ($total_permissions - 1 != 1 ? "s have" : " has") . " given you access to their " . APPLICATION_NAME . " permission levels:";
        $sidebar_html .= "<ul class=\"menu\">\n";
        foreach ($_SESSION["permissions"] as $access_id => $result) {
            if ($access_id != $ENTRADA_USER->getDefaultAccessId()) {
                $sidebar_html .= "<li class=\"checkmark\"><strong>" . html_encode($result["fullname"]) . "</strong><br /><span class=\"content-small\">Exp: " . ($result["expires"] ? date("D M d/y", $result["expires"]) : "Unknown") . "</span></li>\n";
            }
        }
        $sidebar_html .= "</ul>\n";
        new_sidebar_item("Delegated Permissions", $sidebar_html, "delegated-permissions", "open");
    }
    process_mspr_details($translate, "formal_remediation");
    display_status_messages();
    ?>
<h1>Formal Remediations: <?php 
    echo $user->getFullname();
    ?>
</h1>

<?php 
    $show_fr_form = $_GET['show'] == "fr_form";
    ?>
		
	
	<div id="add_formal_remediation_link" style="float: right;<?php 
开发者ID:nadeemshafique,项目名称:entrada-1x,代码行数:31,代码来源:formalremediation.inc.php

示例9: foreach

        default:
            continue;
            break;
    }
    /**
     * Add the dashboard links to the Helpful Links sidebar item.
     */
    if (is_array($dashboard_links) && count($dashboard_links)) {
        $sidebar_html = "<ul class=\"menu\">";
        foreach ($dashboard_links as $link) {
            if (trim($link["title"]) && trim($link["url"])) {
                $sidebar_html .= "<li class=\"link\"><a href=\"" . html_encode($link["url"]) . "\" title=\"" . (isset($link["description"]) && $link["description"] ? html_encode($link["description"]) : html_encode($link["title"])) . "\"" . ($link["target"] ? " target=\"" . html_encode($link["target"]) . "\"" : "") . ">" . html_encode($link["title"]) . "</a></li>\n";
            }
        }
        $sidebar_html .= "</ul>";
        new_sidebar_item("Helpful Links", $sidebar_html, "helpful-links", "open");
    }
    /**
     * Check if preferences need to be updated on the server at this point.
     */
    preferences_update($MODULE, $PREFERENCES);
    ?>
	<div class="rss-add">
		<a id="add-rss-feeds-link" href="#edit-rss-feeds" class="feeds add-rss">Add RSS Feed</a>
		<a id="edit-rss-feeds-link" href="#edit-rss-feeds" class="feeds edit-rss">Modify RSS Feeds</a>

		<div id="rss-edit-details" class="display-generic" style="display: none;">
			While you are in <strong>edit mode</strong> you can rearrange the feeds below by dragging them to your preferred location. You can also <a href="#edit-rss-feeds" id="rss-feed-reset">reset this page to the default RSS feeds</a> if you would like. <span id="rss-save-results">&nbsp;</span>
		</div>
		<div id="rss-add-details">
			<form id="rss-add-form" class="form-horizontal">
开发者ID:nadeemshafique,项目名称:entrada-1x,代码行数:31,代码来源:dashboard.inc.php

示例10: elseif

         $mail_list = $db->GetRow($query);
         if ($mail_list && $mail_list["list_type"] != "inactive") {
             $sidebar_html .= "<ul class=\"menu\" style=\"padding-left: 0px;\">\n";
             $sidebar_html .= "\t<li class=\"status-online\" style=\"font-weight: strong;\">Mailing List Active</li>\n";
             $sidebar_html .= "\t<li class=\"none\">" . ($mail_list["list_type"] == "announcements" ? "Announcement" : "Discussion") . " List</li>\n";
             if ($mail_list["list_type"] == "discussion" || $COMMUNITY_ADMIN) {
                 $sidebar_html .= "\t<li class=\"none\"><a href=\"mailto:" . $mail_list["list_name"] . "@" . $GOOGLE_APPS["domain"] . "\">Send Message</a></li>\n";
             }
             $sidebar_html .= "</ul>\n";
         } elseif ($COMMUNITY_ADMIN) {
             $sidebar_html .= "<ul class=\"menu\" style=\"padding-left: 0px;\">\n";
             $sidebar_html .= "\t<li class=\"status-offline\" style=\"font-weight: strong;\">Mailing List Not Active</li>\n";
             $sidebar_html .= "</ul>\n";
         }
     }
     new_sidebar_item("This Community", $sidebar_html, "community-my-membership", "open");
 }
 if ($PAGE_ACTIVE && (in_array($COMMUNITY_MODULE, array("default", "members", "pages", "course")) || array_key_exists($PAGE_URL, $COMMUNITY_PAGES["exists"]) && array_key_exists($COMMUNITY_MODULE, $COMMUNITY_MODULES["enabled"])) || $HOME_PAGE) {
     define("COMMUNITY_INCLUDED", true);
     if (array_key_exists($PAGE_URL, $COMMUNITY_PAGES["enabled"]) || $HOME_PAGE || $COMMUNITY_MODULE == "members" || $COMMUNITY_MODULE == "pages" && $USER_ACCESS == 3) {
         /**
          * ID of the record which can be set in the URL and used to edit or delete a page, etc.
          * Used within modules and actions.
          */
         if (isset($_GET["id"]) && (int) trim($_GET["id"]) && !(int) $RECORD_ID) {
             $RECORD_ID = (int) trim($_GET["id"]);
         }
         if (!in_array($COMMUNITY_MODULE, array("pages", "members", "default", "course"))) {
             $query = "SELECT `module_id` FROM `communities_modules` WHERE `module_shortname` = " . $db->qstr($COMMUNITY_MODULE);
             $result = $db->GetRow($query);
             if ($result) {
开发者ID:nadeemshafique,项目名称:entrada-1x,代码行数:31,代码来源:index.php

示例11: display_notice

                    echo "</tr>\n";
                }
            } else {
                ?>
				<tr>
					<td colspan="3">
						<?php 
                echo display_notice(array("The top podcast download stats are not currently available. There are podcasts in the system; however, it doesn't appear anyone has downloaded them."));
                ?>
					</td>
				</tr>
				<?php 
            }
            ?>
		</tbody>
		</table>
		<?php 
            $sidebar_html = "<ul class=\"menu\">\n";
            $sidebar_html .= "\t<li class=\"link\"><a href=\"#general-stats\" title=\"General Podcast Statistics\">General Podcast Statistics</a></li>\n";
            $sidebar_html .= "\t<li class=\"link\"><a href=\"#detailed-stats\" title=\"Detailed Download Statistics\">Detailed Download Statistics</a></li>\n";
            $sidebar_html .= "\t<li class=\"link\"><a href=\"#top-podcasts\" title=\"Top Podcast Events\">Top Podcast Events</a></li>\n";
            $sidebar_html .= "\t<li class=\"link\"><a href=\"#top-downloaders\" title=\"Top Podcast Downloaders\">Top Podcast Downloaders</a></li>\n";
            $sidebar_html .= "</ul>";
            new_sidebar_item("Report Sections", $sidebar_html, "report-sections", "open");
        } else {
            $NOTICE++;
            $NOTICESTR[] = "There are no podcasts in the system during the selected duration or belonging to the selected organisation. Please choose a new date range and/or a different organisation and try again.";
            echo display_notice();
        }
    }
}
开发者ID:nadeemshafique,项目名称:entrada-1x,代码行数:31,代码来源:report-on-podcasting.inc.php

示例12: array

                    $temp_responses = array();
                    foreach ($available_targets[$selected_target_id]["questions"][$question["equestion_id"]]["comments"] as $comment) {
                        if ($comment["equestion_id"] == $question["equestion_id"]) {
                            echo "      <li>" . $comment["text"] . "</li>\n";
                        }
                    }
                    echo "\t</ul>\n";
                    echo "</div>\n";
                }
            }
            echo "</div>\n";
            if ($evaluation["show_comments"] || $permissions[0]["contact_type"] == "reviewer") {
                $HEAD[] = "\n\t\t\t\t\t\t\t<script type=\"text/javascript\">\n\t\t\t\t\t\t\t\tfunction toggleComments () {\n\t\t\t\t\t\t\t\t\tif (\$('comments-display').hasClassName('on')) {\n\t\t\t\t\t\t\t\t\t\t\$('comments-display').removeClassName('on');\n\t\t\t\t\t\t\t\t\t\t\$('comments-display').addClassName('off');\n\t\t\t\t\t\t\t\t\t\tjQuery('#comments-display > a').text('Show Comments');\n\t\t\t\t\t\t\t\t\t\tjQuery('.comments-row').hide();\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\$('comments-display').removeClassName('off');\n\t\t\t\t\t\t\t\t\t\t\$('comments-display').addClassName('on');\n\t\t\t\t\t\t\t\t\t\tjQuery('#comments-display > a').text('Hide Comments');\n\t\t\t\t\t\t\t\t\t\tjQuery('.comments-row').show();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t</script>";
                $sidebar_html = "<ul class=\"menu\">\n";
                $sidebar_html .= "\t<li id=\"comments-display\" class=\"on\" style=\"cursor: pointer;\"><a onclick=\"toggleComments()\">Hide Comments</a></li>\n";
                $sidebar_html .= "</ul>\n";
                new_sidebar_item("Show/Hide Comments", $sidebar_html, "view-comments", "open", "1.9");
            }
        }
    } else {
        $ERROR++;
        $ERRORSTR[] = "In order to review an evaluation, you must provide a valid evaluation identifier.";
        echo display_error();
        application_log("error", "Failed to provide a valid evaluation_id identifer [" . $RECORD_ID . "] when attempting to review an evaluation.");
    }
} else {
    $ERROR++;
    $ERRORSTR[] = "In order to review an evaluation, you must provide a valid evaluation identifier.";
    echo display_error();
    application_log("error", "Failed to provide an evaluation_id identifier when attempting to review an evaluation.");
}
开发者ID:nadeemshafique,项目名称:entrada-1x,代码行数:31,代码来源:review.inc.php

示例13: new_sidebar_item

         $sidebar_html = "<center><a href=\"" . ENTRADA_URL . "/clerkship/logbook?section=select\"><strong>{$clinical_rotation['title']}</strong></a></center><br>";
         $sidebar_html .= "<ul class=\"menu\">\n";
         $sidebar_html .= "\t<li class=\"rejected\"><a href=\"" . ENTRADA_URL . "/clerkship/logbook?section=view&type=missing&core={$rotation}\"><strong>" . ($objectives_required - $objectives_recorded) . "</strong>  CPs Not Seen</a></li>\n";
         $sidebar_html .= "\t<li class=\"checkmark\"><a href=\"" . ENTRADA_URL . "/clerkship/logbook?section=view&type=mandatories&core={$rotation}\"><strong>" . $objectives_recorded . "</strong>  CPs Seen</a></li>\n";
         $sidebar_html .= "\t<li><a href=\"" . ENTRADA_URL . "/clerkship/logbook?section=view&type=procedures&core={$rotation}\"><strong>" . $clinical_encounters["procedures"] . "</strong> Procedures</a></li>\n";
         $sidebar_html .= "</ul>\n";
         $sidebar_html .= "\t<a href=\"" . ENTRADA_URL . "/clerkship/logbook?section=add&event=" . (isset($clerkship_schedule[0]) && $clerkship_schedule[0]["event_id"] ? $clerkship_schedule[0]["event_id"] : $clerkship_past_schedule[count($clerkship_past_schedule) - 1]["event_id"]) . "\">Log encounter</a>\n";
         if ((int) $clinical_encounters["entries"] > 0) {
             $sidebar_html .= "\t<br /><br /><a href=\"" . ENTRADA_URL . "/clerkship/logbook?sb=rotation&rotation=" . $rotation . "\">View " . ($clinical_encounters["entries"] == 1 ? "entry" : "entries - {$clinical_encounters['entries']}") . "</a>\n";
         }
         if ($rotation) {
             $sidebar_html .= "<div style=\"margin-top: 10px\">\n";
             $sidebar_html .= "\tYou have " . $remaining_weeks["yet"] . " weeks remaining in this " . $remaining_weeks["total"] . " week clerkship.<br /> To change rotations, <a href=\"" . ENTRADA_URL . "/clerkship/logbook?section=select\">click here</a>.";
             $sidebar_html .= "</div>\n";
             if ($SHOW_LOGBOOK) {
                 new_sidebar_item("Logbook Entries", $sidebar_html, "page-clerkship", "open");
             }
         }
     }
 }
 if ($router && $router->initRoute()) {
     $PREFERENCES = preferences_load($MODULE);
     if (isset($_GET["step"]) && (int) trim($_GET["step"])) {
         $STEP = (int) trim($_GET["step"]);
     } elseif (isset($_POST["step"]) && (int) trim($_POST["step"])) {
         $STEP = (int) trim($_POST["step"]);
     } else {
         $STEP = 1;
     }
     $module_file = $router->getRoute();
     if ($module_file) {
开发者ID:nadeemshafique,项目名称:entrada-1x,代码行数:31,代码来源:clerkship.inc.php

示例14: replace_query

     $sidebar_html .= "\t<li class=\"" . (strtolower($_SESSION[APPLICATION_IDENTIFIER]["community_page"]["so"]) == "desc" ? "on" : "off") . "\"><a href=\"" . ENTRADA_URL . "/community" . $COMMUNITY_URL . ":" . $PAGE_URL . "?" . replace_query(array("so" => "desc")) . "\" title=\"Descending Order\">in descending order</a></li>\n";
     $sidebar_html .= "</ul>\n";
     $sidebar_html .= "Rows per page:\n";
     $sidebar_html .= "<ul class=\"menu\">\n";
     $sidebar_html .= "\t<li class=\"" . (strtolower($_SESSION[APPLICATION_IDENTIFIER]["community_page"]["pp"]) == "5" ? "on" : "off") . "\"><a href=\"" . ENTRADA_URL . "/community" . $COMMUNITY_URL . ":" . $PAGE_URL . "?" . replace_query(array("pp" => "5")) . "\" title=\"Display 5 Rows Per Page\">5 rows per page</a></li>\n";
     $sidebar_html .= "\t<li class=\"" . (strtolower($_SESSION[APPLICATION_IDENTIFIER]["community_page"]["pp"]) == "15" ? "on" : "off") . "\"><a href=\"" . ENTRADA_URL . "/community" . $COMMUNITY_URL . ":" . $PAGE_URL . "?" . replace_query(array("pp" => "15")) . "\" title=\"Display 15 Rows Per Page\">15 rows per page</a></li>\n";
     $sidebar_html .= "\t<li class=\"" . (strtolower($_SESSION[APPLICATION_IDENTIFIER]["community_page"]["pp"]) == "25" ? "on" : "off") . "\"><a href=\"" . ENTRADA_URL . "/community" . $COMMUNITY_URL . ":" . $PAGE_URL . "?" . replace_query(array("pp" => "25")) . "\" title=\"Display 25 Rows Per Page\">25 rows per page</a></li>\n";
     $sidebar_html .= "\t<li class=\"" . (strtolower($_SESSION[APPLICATION_IDENTIFIER]["community_page"]["pp"]) == "50" ? "on" : "off") . "\"><a href=\"" . ENTRADA_URL . "/community" . $COMMUNITY_URL . ":" . $PAGE_URL . "?" . replace_query(array("pp" => "50")) . "\" title=\"Display 50 Rows Per Page\">50 rows per page</a></li>\n";
     $sidebar_html .= "</ul>\n";
     $sidebar_html .= "&quot;Show Only&quot; settings:\n";
     new_sidebar_item("Sort Results", $sidebar_html, "sort-results", "open");
     $sidebar_html = "<div style=\"margin: 2px 0px 10px 3px; font-size: 10px\">\n";
     $sidebar_html .= "\t<div><img src=\"" . ENTRADA_URL . "/images/legend-updated.gif\" width=\"14\" height=\"14\" alt=\"\" title=\"\" style=\"vertical-align: middle\" /> recently updated</div>\n";
     $sidebar_html .= "\t<div><img src=\"" . ENTRADA_URL . "/images/legend-individual.gif\" width=\"14\" height=\"14\" alt=\"\" title=\"\" style=\"vertical-align: middle\" /> individual learning event</div>\n";
     $sidebar_html .= "</div>\n";
     new_sidebar_item("Learning Event Legend", $sidebar_html, "event-legend", "open");
     break;
 case preg_match("/objectives\$/", $PAGE_URL) != 0:
     $course_ids_str = "";
     $clean_ids_str = "";
     $course_ids = array();
     $query = "\tSELECT a.`course_id`\n                            FROM `community_courses` AS a\n                            JOIN `courses` AS b\n                            ON a.`course_id` = b.`course_id`\n                            WHERE b.`course_active` = '1'\n                            AND a.`community_id` = " . $db->qstr($COMMUNITY_ID);
     $results = $db->GetAll($query);
     if ($results) {
         foreach ($results as $course_id) {
             $course_ids[] = $course_id["course_id"];
             if ($course_ids_str) {
                 $course_ids_str .= ", " . $db->qstr($course_id["course_id"]);
                 $clean_ids_str .= "," . $course_id["course_id"];
             } else {
                 $course_ids_str = $db->qstr($course_id["course_id"]);
开发者ID:nadeemshafique,项目名称:entrada-1x,代码行数:31,代码来源:index.inc.php

示例15: array

            }
            echo "<h1 style=\"page-break-before: avoid\">Department of " . $departmentOuput . " Rearch Grants</h1>";
            echo "<div class=\"content-small\" style=\"margin-bottom: 10px\">\n";
            echo "\t<strong>Date Range:</strong> " . $startYear . " <strong>to</strong> " . $endYear;
            echo "</div>";
            if (is_array($fundingStatus) && in_array("*", $fundingStatus)) {
                $fundingStatus = array("funded", "submitted", "unfunded");
            }
            foreach ($fundingStatus as $fundingStatusSpecific) {
                $query = "SELECT *\n\t\t\tFROM `ar_research` \n\t\t\tWHERE `proxy_id` IN(" . $listOfDepartmentMembers . ")\n\t\t\tAND `funding_status` = '{$fundingStatusSpecific}'" . $dateWhere;
                $currentStatus = ucfirst($fundingStatusSpecific);
                $researchSidebar[] = $currentStatus;
                echo "<a name=\"" . $currentStatus . "\"></a>";
                echo "<h2>" . $currentStatus . "</h2>\n";
                if ($results = $db->GetAll($query)) {
                    display($results, $db);
                } else {
                    echo "No Grants for the specified query.<br>";
                }
            }
            if (isset($researchSidebar)) {
                $sidebar_html = "<ul class=\"menu\">\n";
                foreach ($researchSidebar as $result) {
                    $sidebar_html .= "\t<li class=\"link\"><a href=\"#" . $result . "\" title=\"" . html_encode($result) . "\">" . html_encode($result) . "</a></li>\n";
                }
                $sidebar_html .= "</ul>";
                new_sidebar_item("Research List", $sidebar_html, "research-list", "open");
            }
        }
    }
}
开发者ID:nadeemshafique,项目名称:entrada-1x,代码行数:31,代码来源:my_departmental_grants.inc.php


注:本文中的new_sidebar_item函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。