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


PHP replace_query函数代码示例

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


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

示例1: header

     header("Location: " . ENTRADA_URL . (isset($_SERVER["REQUEST_URI"]) ? "?url=" . rawurlencode(clean_input($_SERVER["REQUEST_URI"], array("nows", "url"))) : ""));
     exit;
 } elseif (!$ENTRADA_ACL->amIAllowed('annualreport', 'update')) {
     $ONLOAD[] = "setTimeout('window.location=\\'" . ENTRADA_URL . "/" . $MODULE . "\\'', 15000)";
     $ERROR++;
     $ERRORSTR[] = "You do not have the permissions required to use this module.<br /><br />If you believe you are receiving this message in error please contact <a href=\"mailto:" . html_encode($AGENT_CONTACTS["administrator"]["email"]) . "\">" . html_encode($AGENT_CONTACTS["administrator"]["name"]) . "</a> for assistance.";
     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 {
     // Meta information for this page.
     $PAGE_META["title"] = "Add Graduate Teaching";
     $PAGE_META["description"] = "Graduate Teaching portion of your annual report should be entered / located here.";
     $PAGE_META["keywords"] = "";
     // This grid should be expanded upon redirecting back to the education index.
     $_SESSION["education_expand_grid"] = "graduate_grid";
     $BREADCRUMB[] = array("url" => ENTRADA_URL . "/annualreport/education?" . replace_query(array("section" => "add_graduate")), "title" => "Add Graduate Teaching");
     echo "<h1>Add Graduate Teaching</h1>";
     // Error Checking
     switch ($STEP) {
         case 2:
             $ENDERROR = false;
             /**
              * Non Required field "course_number" / Course Number
              */
             if (isset($_POST["course_number"]) && ($course_number = clean_input($_POST["course_number"], array("notags", "trim")))) {
                 $PROCESSED["course_number"] = $course_number;
             }
             /**
              * Required field "course_name" / Course Name
              */
             if (isset($_POST["course_name"]) && ($course_name = clean_input($_POST["course_name"], array("notags", "trim")))) {
开发者ID:nadeemshafique,项目名称:entrada-1x,代码行数:31,代码来源:add_graduate.inc.php

示例2: display_status_messages

        case 2:
            display_status_messages();
            break;
        case 1:
        default:
            $HEAD[] = "<script type=\"text/javascript\" src=\"" . ENTRADA_URL . "/javascript/elementresizer.js\"></script>\n";
            $ONLOAD[] = "selectgroupOption('" . $group_type . "',0)";
            if ($ERROR) {
                echo display_error();
            }
            ?>
			<form id="frmSubmit" action="<?php 
            echo ENTRADA_URL;
            ?>
/admin/courses/groups?<?php 
            echo replace_query(array("step" => 2));
            ?>
" method="post" id="addGroupForm">
				<table style="width: 100%" cellspacing="0" cellpadding="2" border="0" summary="Adding Group">
					<colgroup>
						<col style="width: 3%" />
						<col style="width: 20%" />
						<col style="width: 77%" />
					</colgroup>
					<tr>
						<td colspan="3"><h3>Group Details</h3></td>
					</tr>
					<tr class="prefixR">
						<td></td>
						<td><label for="prefix" class="form-required">Group Prefix</label></td>
						<td><input type="text" id="prefix" name="prefix" value="<?php 
开发者ID:nadeemshafique,项目名称:entrada-1x,代码行数:31,代码来源:add.inc.php

示例3: trim

        $total_rows = 0;
        $total_pages = 1;
    }
    /**
     * Check if pv variable is set and see if it's a valid page, other wise page 1 it is.
     */
    if (isset($_GET["pv"])) {
        $page_current = (int) trim($_GET["pv"]);
        if ($page_current < 1 || $page_current > $total_pages) {
            $page_current = 1;
        }
    } else {
        $page_current = 1;
    }
    if ($total_pages > 1) {
        $pagination = new Pagination($page_current, $_SESSION[APPLICATION_IDENTIFIER]["cid_" . $COMMUNITY_ID][$PAGE_URL]["pp"], $total_rows, COMMUNITY_URL . $COMMUNITY_URL . ":" . $PAGE_URL, replace_query());
    }
    /**
     * Provides the first parameter of MySQLs LIMIT statement by calculating which row to start results from.
     */
    $limit_parameter = (int) ($_SESSION[APPLICATION_IDENTIFIER]["cid_" . $COMMUNITY_ID][$PAGE_URL]["pp"] * $page_current - $_SESSION[APPLICATION_IDENTIFIER]["cid_" . $COMMUNITY_ID][$PAGE_URL]["pp"]);
    ?>
	<script type="text/javascript">
		function eventRelease(id) {
			Dialog.confirm('Do you really wish to release \''+ $('event-' + id + '-title').innerHTML +'\' on this page?',
				{
					id:				'requestDialog',
					width:			350,
					height:			75,
					title:			'Release Confirmation',
					className:		'medtech',
开发者ID:nadeemshafique,项目名称:entrada-1x,代码行数:31,代码来源:moderate.inc.php

示例4: new_sidebar_item

            if ($student) {
                ?>
				<input style="margin-left: 20px;" type="button" class="btn btn-primary" value="Edit Entry" onclick="if ($('current-entry').value != '0') {window.location = '<?php 
                echo ENTRADA_URL . "/clerkship/logbook?section=edit&id=";
                ?>
'+$('current-entry').value;} else {alert('You must select an active entry before selecting the Edit Entry button.');}" />
				<?php 
            }
            ?>
			</div>
			<?php 
            $sidebar_html = "<div style=\"margin: 2px 0px 10px 3px; font-size: 10px\">\n";
            $sidebar_html .= "\t<div><img src=\"" . ENTRADA_URL . "/images/legend-active-member.gif\" width=\"14\" height=\"14\" alt=\"\" title=\"\" style=\"vertical-align: middle\" /> Active Entry</div>\n";
            $sidebar_html .= "\t<div><img src=\"" . ENTRADA_URL . "/images/legend-not-accessible.gif\" width=\"14\" height=\"14\" alt=\"\" title=\"\" style=\"vertical-align: middle\" /> Deactivated Entry</div>\n";
            $sidebar_html .= "</div>\n";
            new_sidebar_item("Logbook Encounters", $sidebar_html, "objective-legend", "open");
        } else {
            $ERROR++;
            $ERRORSTR[] = "Your account does not have the permissions required to use this feature of this module.<br /><br />If you believe you are receiving this message in error please contact <a href=\"mailto:" . html_encode($AGENT_CONTACTS["administrator"]["email"]) . "\">" . html_encode($AGENT_CONTACTS["administrator"]["name"]) . "</a> for assistance.";
            echo display_error();
        }
    } else {
        $ERROR++;
        if (array_key_exists($rotation_id, $rotation_names) && $rotation_names[$rotation_id]) {
            $ERRORSTR[] = "No clerkship logbook entries for this rotation [" . $rotation_names[$rotation_id] . "] have been found for this user in the system. You may view all entries for all rotations by clicking <a href=\"" . ENTRADA_URL . "/clerkship/logbook?" . replace_query(array("rotation" => false)) . "\" />here</a>.<br /><br />If you believe you are receiving this message in error please contact <a href=\"mailto:" . html_encode($AGENT_CONTACTS["administrator"]["email"]) . "\">" . html_encode($AGENT_CONTACTS["administrator"]["name"]) . "</a> for assistance.";
        } else {
            $ERRORSTR[] = "No clerkship logbook entries have been found for this user in the system.<br /><br />If you believe you are receiving this message in error please contact <a href=\"mailto:" . html_encode($AGENT_CONTACTS["administrator"]["email"]) . "\">" . html_encode($AGENT_CONTACTS["administrator"]["name"]) . "</a> for assistance.";
        }
        echo display_error();
    }
}
开发者ID:nadeemshafique,项目名称:entrada-1x,代码行数:31,代码来源:index.inc.php

示例5: replace_query

                }
            }
            ?>
							</select>
						</td>
					</tr>
					<tr>
						<td colspan="3">&nbsp;</td>
					</tr>
					<tr>
						<td colspan="3">
							<br />
							<div id="additions">
								<h2 style="margin-top: 10px">Add Members</h2>
								<form action="<?php 
            echo ENTRADA_URL . "/admin/" . $MODULE . "?" . replace_query(array("section" => "edit", "type" => "add", "step" => 2));
            ?>
" method="post">
									<table style="margin-top: 1px; width: 100%" cellspacing="0" cellpadding="2" border="0" summary="Add Member">
										<colgroup>
											<col style="width: 45%" />
											<col style="width: 10%" />
											<col style="width: 45%" />
										</colgroup>
										<tbody>
											<tr>
												<td colspan="3" style="vertical-align: top">
													If you would like to add users that already exist in the system to this group yourself, you can do so by clicking the checkbox beside their name from the list below.
													Once you have reviewed the list at the bottom and are ready, click the <strong>Proceed</strong> button at the bottom to complete the process.
												</td>
											</tr>
开发者ID:nadeemshafique,项目名称:entrada-1x,代码行数:31,代码来源:add.inc.php

示例6: replace_query

            ?>
				<h3>You have not been selected to mark any assignments.</h3>
			<?php 
        }
        ?>
		</div>
		<?php 
    }
    /**
     * Sidebar item that will provide another method for sorting, ordering, etc.
     */
    $sidebar_html = "Sort columns:\n";
    $sidebar_html .= "<ul class=\"menu\">\n";
    $sidebar_html .= "\t<li class=\"" . (strtolower($_SESSION[APPLICATION_IDENTIFIER][$MODULE]["sb"]) == "type" ? "on" : "off") . "\"><a href=\"" . ENTRADA_URL . "/admin/" . $MODULE . "?" . replace_query(array("sb" => "type")) . "\" title=\"Sort by Category\">by category</a></li>\n";
    $sidebar_html .= "\t<li class=\"" . (strtolower($_SESSION[APPLICATION_IDENTIFIER][$MODULE]["sb"]) == "code" ? "on" : "off") . "\"><a href=\"" . ENTRADA_URL . "/admin/" . $MODULE . "?" . replace_query(array("sb" => "code")) . "\" title=\"Sort by Code\">by code</a></li>\n";
    $sidebar_html .= "\t<li class=\"" . (strtolower($_SESSION[APPLICATION_IDENTIFIER][$MODULE]["sb"]) == "name" ? "on" : "off") . "\"><a href=\"" . ENTRADA_URL . "/admin/" . $MODULE . "?" . replace_query(array("sb" => "name")) . "\" title=\"Sort by Name\">by name</a></li>\n";
    $sidebar_html .= "</ul>\n";
    $sidebar_html .= "Order columns:\n";
    $sidebar_html .= "<ul class=\"menu\">\n";
    $sidebar_html .= "\t<li class=\"" . (strtolower($_SESSION[APPLICATION_IDENTIFIER][$MODULE]["so"]) == "asc" ? "on" : "off") . "\"><a href=\"" . ENTRADA_URL . "/admin/" . $MODULE . "?" . replace_query(array("so" => "asc")) . "\" title=\"Ascending Order\">in ascending order</a></li>\n";
    $sidebar_html .= "\t<li class=\"" . (strtolower($_SESSION[APPLICATION_IDENTIFIER][$MODULE]["so"]) == "desc" ? "on" : "off") . "\"><a href=\"" . ENTRADA_URL . "/admin/" . $MODULE . "?" . 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][$MODULE]["pp"]) == "5" ? "on" : "off") . "\"><a href=\"" . ENTRADA_URL . "/admin/" . $MODULE . "?" . 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][$MODULE]["pp"]) == "15" ? "on" : "off") . "\"><a href=\"" . ENTRADA_URL . "/admin/" . $MODULE . "?" . 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][$MODULE]["pp"]) == "25" ? "on" : "off") . "\"><a href=\"" . ENTRADA_URL . "/admin/" . $MODULE . "?" . 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][$MODULE]["pp"]) == "50" ? "on" : "off") . "\"><a href=\"" . ENTRADA_URL . "/admin/" . $MODULE . "?" . replace_query(array("pp" => "50")) . "\" title=\"Display 50 Rows Per Page\">50 rows per page</a></li>\n";
    $sidebar_html .= "</ul>\n";
    new_sidebar_item("Sort Results", $sidebar_html, "sort-results", "open");
}
开发者ID:nadeemshafique,项目名称:entrada-1x,代码行数:31,代码来源:index.inc.php

示例7: elseif

 * @author Unit: School of Medicine
 * @author Developer: Matt Simpson <matt.simpson@queensu.ca>
 * @copyright Copyright 2010 Queen's University. All Rights Reserved.
 * 
*/
if (!defined("PARENT_INCLUDED") || !defined("IN_EVALUATIONS")) {
    exit;
} elseif (!isset($_SESSION["isAuthorized"]) || !$_SESSION["isAuthorized"]) {
    header("Location: " . ENTRADA_URL);
    exit;
} elseif (!$ENTRADA_ACL->amIAllowed("evaluationform", "create", false)) {
    add_error("Your account does not have the permissions required to use this feature of this module.<br /><br />If you believe you are receiving this message in error please contact <a href=\"mailto:" . html_encode($AGENT_CONTACTS["administrator"]["email"]) . "\">" . html_encode($AGENT_CONTACTS["administrator"]["name"]) . "</a> for assistance.");
    echo display_error();
    application_log("error", "Group [" . $_SESSION["permissions"][$ENTRADA_USER->getAccessId()]["group"] . "] and role [" . $_SESSION["permissions"][$ENTRADA_USER->getAccessId()]["role"] . "] does not have access to this module [" . $MODULE . "]");
} else {
    $BREADCRUMB[] = array("url" => ENTRADA_URL . "/admin/" . $MODULE . "?" . replace_query(array("section" => "add")), "title" => "Add Evaluation Form");
    echo "<h1>Add Evaluation Form</h1>\n";
    // Error Checking
    switch ($STEP) {
        case 2:
            /**
             * Required field "target_id" / Form Type.
             */
            if (isset($_POST["target_id"]) && ($tmp_input = clean_input($_POST["target_id"], "int")) && array_key_exists($tmp_input, $EVALUATION_TARGETS)) {
                $PROCESSED["target_id"] = $tmp_input;
            } else {
                $ERROR++;
                $ERRORSTR[] = "The <strong>Form Type</strong> field is required.";
            }
            /**
             * Required field "form_title" / Form Title.
开发者ID:nadeemshafique,项目名称:entrada-1x,代码行数:31,代码来源:add.inc.php

示例8: display_notice

            if ($NOTICE) {
                echo display_notice();
            }
            if ($ERROR) {
                echo display_error();
            }
            break;
        case 1:
        default:
            $HEAD[] = "<script type=\"text/javascript\" src=\"" . ENTRADA_URL . "/javascript/elementresizer.js\"></script>\n";
            if ($ERROR) {
                echo display_error();
            }
            ?>
			<form action="<?php 
            echo ENTRADA_URL . "/admin/settings/manage/medbiqresources" . "?" . replace_query(array("action" => "edit", "step" => 2)) . "&org=" . $ORGANISATION_ID;
            ?>
" method="post">
			<table style="width: 100%" cellspacing="0" cellpadding="2" border="0" summary="Editing Page">
			<colgroup>
				<col style="width: 30%" />
				<col style="width: 70%" />
			</colgroup>
			<thead>
				<tr>
					<td colspan="2"><h1>Resource Details</h1></td>
				</tr>
			</thead>
			<tfoot>
				<tr>
					<td colspan="2" style="padding-top: 15px; text-align: right">
开发者ID:nadeemshafique,项目名称:entrada-1x,代码行数:31,代码来源:edit.inc.php

示例9: html_encode

    $ONLOAD[] = "setTimeout('window.location=\\'" . ENTRADA_URL . "/admin/" . $MODULE . "\\'', 15000)";
    $ERROR++;
    $ERRORSTR[] = "Your account does not have the permissions required to use this feature of this module.<br /><br />If you believe you are receiving this message in error please contact <a href=\"mailto:" . html_encode($AGENT_CONTACTS["administrator"]["email"]) . "\">" . html_encode($AGENT_CONTACTS["administrator"]["name"]) . "</a> for assistance.";
    echo display_error();
    application_log("error", "Group [" . $_SESSION["permissions"][$ENTRADA_USER->getAccessId()]["group"] . "] and role [" . $_SESSION["permissions"][$ENTRADA_USER->getAccessId()]["role"] . "] does not have access to this module [" . $MODULE . "]");
} else {
    if ($EVENT_ID) {
        $query = "\tSELECT a.*, b.`organisation_id`\n\t\t\t\t\tFROM `events` AS a\n\t\t\t\t\tLEFT JOIN `courses` AS b\n\t\t\t\t\tON b.`course_id` = a.`course_id`\n\t\t\t\t\tWHERE a.`event_id` = " . $db->qstr($EVENT_ID);
        $event_info = $db->GetRow($query);
        if ($event_info) {
            if (!$ENTRADA_ACL->amIAllowed(new EventContentResource($event_info["event_id"], $event_info["course_id"], $event_info["organisation_id"]), "update")) {
                application_log("error", "Someone attempted to view statistics for an event [" . $EVENT_ID . "] that they were not the coordinator for.");
                header("Location: " . ENTRADA_URL . "/admin/" . $MODULE);
                exit;
            } else {
                $BREADCRUMB[] = array("url" => ENTRADA_URL . "/admin/events?" . replace_query(array("section" => "Statistics", "id" => $EVENT_ID)), "title" => "Event Statistics");
                $PROCESSED["proxy_id"] = $ENTRADA_USER->getID();
                //This will create a record set that has the proxyid, firstname, lastname, last timestamp, view per user.
                $statistics = Models_Statistic::getEventViews($EVENT_ID);
                $total_views = 0;
                events_subnavigation($event_info, 'statistics');
                ?>
                <div class="content-small"><?php 
                echo fetch_course_path($event_info["course_id"]);
                ?>
</div>
                <h1 id="page-top" class="event-title"><?php 
                echo html_encode($event_info["event_title"]);
                ?>
</h1>
                <h2 title="Event Statistics Section">Event Statistics</h2>
开发者ID:nadeemshafique,项目名称:entrada-1x,代码行数:31,代码来源:statistics.inc.php

示例10: replace_query

                ?>
/api/lti-wizard-event.api.php?action=add&id=<?php 
                echo $EVENT_ID;
                ?>
')" class="btn">Add LTI Provider</a>
                        </div>
                        <div class="clear"></div>
                        <?php 
                $query = "SELECT *\n                                       FROM `event_lti_consumers`\n                                       WHERE `event_id` = " . $db->qstr($EVENT_ID) . "\n                                       ORDER BY `lti_title` ASC";
                $results = $db->GetAll($query);
                ?>
                        <form id="lti-listing" action="<?php 
                echo ENTRADA_URL;
                ?>
/admin/events?<?php 
                echo replace_query();
                ?>
" method="post">
                            <input type="hidden" name="type" value="lti" />
                            <table class="tableList" cellspacing="0" summary="List of Attached LTI Providers">
                                <colgroup>
                                    <col class="modified wide"/>
                                    <col class="title" />
                                    <col class="title" />
                                    <col class="date" />
                                    <col class="date" />
                                </colgroup>
                                <thead>
                                    <tr>
                                        <td class="modified">&nbsp;</td>
                                        <td class="title sortedASC"><div class="noLink">LTI Provider Title</div></td>
开发者ID:nadeemshafique,项目名称:entrada-1x,代码行数:31,代码来源:content.inc.php

示例11: replace_query

        ?>
		<form action="<?php 
        echo ENTRADA_URL . "/admin/settings/manage/objectives?" . replace_query(array("section" => "delete", "step" => 1, "org" => $ORGANISATION_ID));
        ?>
" method="post">
			<table class="tableList" cellspacing="0" summary="List of Objectives">
				<thead>
					<tr>
						<td class="modified">&nbsp;</td>
						<td class="title">Objective Sets</td>
					</tr>
				</thead>
			</table>
			<ul class="objectives-list">
			<?php 
        //			echo objectives_inlists_conf(0, 0, array('id'=>'pagelists'));
        foreach ($result as $objective) {
            echo "<li><div class=\"objective-container\"><span class=\"delete\" style=\"width:27px;display:inline-block;\"><input type=\"checkbox\" id=\"delete_" . $objective["objective_id"] . "\" name=\"delete[" . $objective["objective_id"] . "][objective_id]\" value=\"" . $objective["objective_id"] . "\"" . ($selected == $objective["objective_id"] ? " checked=\"checked\"" : "") . " onclick=\"\$\$('#" . $objective["objective_id"] . "-children input[type=checkbox]').each(function(e){e.checked = \$('delete_" . $objective["objective_id"] . "').checked; if (e.checked) e.disable(); else e.enable();});\"/></span>\n";
            echo "<a href=\"" . ENTRADA_URL . "/admin/settings/manage/objectives?" . replace_query(array("section" => "edit", "id" => $objective["objective_id"])) . "\">" . $objective["objective_name"] . "</a></div></li>";
        }
        ?>
			</ul>
			<input type="submit" class="btn btn-danger" value="Delete Selected" />
		</form>
		<?php 
    } else {
        $NOTICE++;
        $NOTICESTR[] = "There are currently no Objectives assigned to this Organisation";
        echo display_notice();
    }
}
开发者ID:nadeemshafique,项目名称:entrada-1x,代码行数:31,代码来源:index.inc.php

示例12: elseif

     if ($TOTAL_ROWS <= $_SESSION[APPLICATION_IDENTIFIER]["cid_" . $COMMUNITY_ID][$PAGE_URL]["pp"]) {
         $TOTAL_PAGES = 1;
     } elseif ($TOTAL_ROWS % $_SESSION[APPLICATION_IDENTIFIER]["cid_" . $COMMUNITY_ID][$PAGE_URL]["pp"] == 0) {
         $TOTAL_PAGES = (int) ($TOTAL_ROWS / $_SESSION[APPLICATION_IDENTIFIER]["cid_" . $COMMUNITY_ID][$PAGE_URL]["pp"]);
     } else {
         $TOTAL_PAGES = (int) ($TOTAL_ROWS / $_SESSION[APPLICATION_IDENTIFIER]["cid_" . $COMMUNITY_ID][$PAGE_URL]["pp"]) + 1;
     }
     if ($TOTAL_PAGES > 1) {
         $pagination = new Pagination($PAGE_CURRENT, $_SESSION[APPLICATION_IDENTIFIER]["cid_" . $COMMUNITY_ID][$PAGE_URL]["pp"], $TOTAL_ROWS, COMMUNITY_URL . $COMMUNITY_URL . ":" . $PAGE_URL, replace_query());
     }
 } else {
     $TOTAL_ROWS = 0;
     $TOTAL_PAGES = 1;
 }
 if ($TOTAL_PAGES > 1) {
     $pagination = new Pagination($PAGE_CURRENT, $_SESSION[APPLICATION_IDENTIFIER]["cid_" . $COMMUNITY_ID][$PAGE_URL]["pp"], $TOTAL_ROWS, COMMUNITY_URL . $COMMUNITY_URL . ":" . $PAGE_URL, replace_query());
 }
 /**
  * Check if pv variable is set and see if it's a valid page, other wise page 1 it is.
  */
 if (isset($_GET["pv"])) {
     $PAGE_CURRENT = (int) trim($_GET["pv"]);
     if ($PAGE_CURRENT < 1 || $PAGE_CURRENT > $TOTAL_PAGES) {
         $PAGE_CURRENT = 1;
     }
 } else {
     $PAGE_CURRENT = 1;
 }
 $PAGE_PREVIOUS = $PAGE_CURRENT > 1 ? $PAGE_CURRENT - 1 : false;
 $PAGE_NEXT = $PAGE_CURRENT < $TOTAL_PAGES ? $PAGE_CURRENT + 1 : false;
 /**
开发者ID:nadeemshafique,项目名称:entrada-1x,代码行数:31,代码来源:index.inc.php

示例13: trim

    $DISPLAY = true;
}
if ($DISPLAY) {
    if (isset($_GET["gradyear"]) && ($_GET["gradyear"] || $_GET["gradyear"] === "0")) {
        $GRADYEAR = trim($_GET["gradyear"]);
        @app_setcookie("search[gradyear]", trim($_GET["gradyear"]));
    } elseif (isset($_POST["gradyear"]) && ($_POST["gradyear"] || $_POST["gradyear"] === "0")) {
        $GRADYEAR = trim($_POST["gradyear"]);
        @app_setcookie("search[gradyear]", trim($_POST["gradyear"]));
    } elseif (isset($_COOKIE["search"]["gradyear"])) {
        $GRADYEAR = $_COOKIE["search"]["gradyear"];
    } else {
        $GRADYEAR = 0;
    }
    $GRADYEAR = clean_input($GRADYEAR, "credentials");
    $BREADCRUMB[] = array("url" => ENTRADA_URL . "/clerkship?" . replace_query(array("section" => "search")), "title" => "Student Search");
    switch ($_POST["action"]) {
        case "results":
            ?>
			<div class="content-heading">Student Search Results</div>
			<br />
			<?php 
            if (isset($_GET["year"]) && trim($_GET["year"]) != "" || isset($_POST["year"]) && trim($_POST["year"]) != "") {
                if (isset($_POST["year"]) && trim($_POST["year"]) != "") {
                    $query_year = trim($_POST["year"]);
                } else {
                    $query_year = trim($_GET["year"]);
                }
                $query = "SELECT `" . AUTH_DATABASE . "`.`user_data`.`id` AS `proxy_id`, CONCAT_WS(', ', `" . AUTH_DATABASE . "`.`user_data`.`lastname`, `" . AUTH_DATABASE . "`.`user_data`.`firstname`) AS `fullname` \n\t\t\t\tFROM `" . AUTH_DATABASE . "`.`user_data` \n\t\t\t\tLEFT JOIN `" . AUTH_DATABASE . "`.`user_access` ON `" . AUTH_DATABASE . "`.`user_access`.`user_id`=`" . AUTH_DATABASE . "`.`user_data`.`id` \n\t\t\t\tWHERE `" . AUTH_DATABASE . "`.`user_access`.`app_id`='" . AUTH_APP_ID . "' \n\t\t\t\tAND `role`=" . $db->qstr(trim($query_year), get_magic_quotes_gpc()) . " \n\t\t\t\tAND `group`='student' \n\t\t\t\tORDER BY `" . AUTH_DATABASE . "`.`user_data`.`lastname`, `" . AUTH_DATABASE . "`.`user_data`.`firstname` ASC";
                $results = $db->GetAll($query);
                if ($results) {
开发者ID:nadeemshafique,项目名称:entrada-1x,代码行数:31,代码来源:search.inc.php

示例14: generate_calendars

                                    <h2>Time Release Options</h2>
                                    <table>
                                        <?php 
                            echo generate_calendars("viewable", "", true, false, isset($PROCESSED["release_date"]) ? $PROCESSED["release_date"] : 0, true, false, isset($PROCESSED["release_until"]) ? $PROCESSED["release_until"] : 0);
                            ?>
                                    </table>
                                </div>
                                <div style="padding-top: 25px">
                                    <table style="width: 100%" cellspacing="0" cellpadding="0" border="0">
                                        <tr>
                                            <td style="width: 25%; text-align: left">
                                                <input type="button" class="btn" value="Cancel" onclick="window.location='<?php 
                            echo ENTRADA_URL;
                            ?>
/admin/gradebook?<?php 
                            echo replace_query(array("step" => false, "section" => "view", "assessment_id" => false));
                            ?>
'" />
                                            </td>
                                            <td style="width: 75%; text-align: right; vertical-align: middle">
                                                <input type="submit" class="btn btn-primary" value="Save" />
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </form>
                            <?php 
                            break;
                    }
                } else {
                    $ERROR++;
开发者ID:nadeemshafique,项目名称:entrada-1x,代码行数:31,代码来源:add.inc.php

示例15: display_error

            break;
        case 1:
        default:
            if ($ERROR) {
                echo display_error();
            }
            $ONLOAD[] = "selectObjective(" . (isset($PROCESSED["objective_parent"]) && $PROCESSED["objective_parent"] ? $PROCESSED["objective_parent"] : "0") . ")";
            $ONLOAD[] = "selectOrder(" . (isset($PROCESSED["objective_parent"]) && $PROCESSED["objective_parent"] ? $PROCESSED["objective_parent"] : "0") . ")";
            if (isset($_GET["org"]) && ($org_id = clean_input($_GET["org"], array("notags", "trim", "int")))) {
                $PROCESSED["org_id"] = $org_id;
            } else {
                $PROCESSED["org_id"] = 0;
            }
            ?>
			<form action="<?php 
            echo ENTRADA_URL . "/admin/settings/manage/curriculumtypes" . "?" . replace_query(array("action" => "add", "step" => 2)) . "&org=" . $ORGANISATION_ID;
            ?>
" id="curriculum_form" method="post">
			<table style="width: 100%" cellspacing="0" cellpadding="2" border="0" summary="Adding Page">
			<colgroup>
				<col style="width: 20%" />
				<col style="width: 80%" />
			</colgroup>
			<thead>
				<tr>
					<td colspan="2"><h1>Add Curriculum Type</h1></td>
				</tr>
			</thead>
			<tfoot>
				<tr>
					<td colspan="2" style="padding-top: 15px;">
开发者ID:nadeemshafique,项目名称:entrada-1x,代码行数:31,代码来源:add.inc.php


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