本文整理汇总了PHP中generate_calendars函数的典型用法代码示例。如果您正苦于以下问题:PHP generate_calendars函数的具体用法?PHP generate_calendars怎么用?PHP generate_calendars使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了generate_calendars函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: isset
<option value="1"<?php
echo isset($PROCESSED["incident_status"]) && (int) $PROCESSED["incident_status"] == 1 ? " selected=\"selected\" " : "";
?>
>Open</option>
<option value="0"<?php
echo isset($PROCESSED["incident_status"]) && (int) $PROCESSED["incident_status"] == 0 ? " selected=\"selected\" " : "";
?>
>Closed</option>
</select>
</div>
</div>
<div class="control-group">
<table>
<tr>
<?php
echo generate_calendars("incident", "Incident", true, true, isset($PROCESSED["incident_date"]) ? $PROCESSED["incident_date"] : time(), true, false, isset($PROCESSED["follow_up_date"]) ? $PROCESSED["follow_up_date"] : 0, true, false, " Date", " Follow Up");
?>
</tr>
</table>
</div>
<div class="control-group">
<label for="incident_description" class="control-label form-nrequired">Detailed Incidient Description / Information</label>
<div class="controls">
<textarea id="incident_description" name="incident_description" style="width: 99%; height: 200px"><?php
echo isset($PROCESSED["incident_description"]) ? html_encode($PROCESSED["incident_description"]) : "";
?>
</textarea>
</div>
</div>
<div class="pull-right">
<input type="submit" class="btn btn-primary" value="Save incident" />
示例2: generate_calendars
</div>
</div>
</div>
<div class="control-group">
<table>
<?php
echo generate_calendars("due", "Assignment Due Date", false, false, 0, true, true, isset($PROCESSED["due_date"]) ? $PROCESSED["due_date"] : 0, true, false, "", "");
?>
</table>
</div>
<div class="control-group">
<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>
示例3: isset
<label for="max_submittable" class="form-required control-label">Max Submittable:</label>
<div class="controls">
<input type="text" id="max_submittable" name="max_submittable" value="<?php
echo isset($PROCESSED["max_submittable"]) ? $PROCESSED["max_submittable"] : 1;
?>
" maxlength="2" style="width: 30px; margin-right: 10px" />
<span class="content-small"><strong>Tip:</strong> The maximum number of times each evaluator may complete this evaluation.</span>
</div>
</div>
<div class="control-group">
<div class="controls" id="submittable_notice"></div>
</div>
<div class="control-group">
<table>
<?php
echo generate_calendars("evaluation", "Evaluation", true, true, isset($PROCESSED["evaluation_start"]) ? $PROCESSED["evaluation_start"] : 0, true, true, isset($PROCESSED["evaluation_finish"]) ? $PROCESSED["evaluation_finish"] : 0);
?>
</table>
</div>
<div class="control-group">
<label for="evaluation_reviewers" class="control-label form-nrequired">Evaluation Reviewers:</label>
<div class="controls">
<input type="text" id="reviewer_name" name="fullname" size="30" autocomplete="off" style="width: 203px; vertical-align: middle" />
<?php
$ONLOAD[] = "reviewer_list = new AutoCompleteList({ type: 'reviewer', url: '" . ENTRADA_RELATIVE . "/api/personnel.api.php?type=facultyorstaff', remove_image: '" . ENTRADA_RELATIVE . "/images/action-delete.gif'})";
?>
<div class="autocomplete" id="reviewer_name_auto_complete"></div>
<input type="hidden" id="associated_reviewer" name="associated_reviewer" />
<input type="button" class="btn btn-small" id="add_associated_reviewer" value="Add" style="vertical-align: middle" />
<span class="content-small">(<strong>Example:</strong> <?php
echo html_encode($_SESSION["details"]["lastname"] . ", " . $_SESSION["details"]["firstname"]);
示例4: generate_calendars
?>
/> <label for="timedrelease_yes">Yes, this link has timed release information.</label><br />
</div>
<div id="timed-release-info" style="display: none">
<br />
By checking the box on the left, you will enable the ability to select release / revoke dates and times for this link.
<br /><br />
<table style="width: 100%" cellspacing="0" cellpadding="4" border="0" summary="Timed Release Information">
<colgroup>
<col style="width: 3%" />
<col style="width: 30%" />
<col style="width: 67%" />
</colgroup>
<?php
echo generate_calendars("valid", "Accessible", true, false, isset($PROCESSED["release_date"]) ? $PROCESSED["release_date"] : 0, true, false, isset($PROCESSED["release_until"]) ? $PROCESSED["release_until"] : 0, true, true);
?>
</table>
</div>
</div>
</div>
<div id="step3" style="display: none">
<div id="q5" class="wizard-question<?php
echo in_array("q5", $ERRORSTR) ? " display-error" : "";
?>
">
<div style="font-size: 14px">Please provide the full URL of the link:</div>
<div style="padding-left: 65px; padding-right: 10px; padding-top: 10px">
<label for="link" class="form-required">Link URL:</label> <span class="content-small"><strong>Example:</strong> http://meds.queensu.ca</span><br />
<input type="text" id="link" name="link" value="<?php
示例5: generate_calendars
/admin/reports?section=<?php
echo $SECTION;
?>
&step=2" method="post">
<table style="width: 100%" cellspacing="0" cellpadding="2" border="0">
<colgroup>
<col style="width: 3%" />
<col style="width: 20%" />
<col style="width: 77%" />
</colgroup>
<tbody>
<tr>
<td colspan="3"><h2>Reporting Dates</h2></td>
</tr>
<?php
echo generate_calendars("reporting", "Reporting Date", true, true, $_SESSION[APPLICATION_IDENTIFIER][$MODULE]["reporting_start"], true, true, $_SESSION[APPLICATION_IDENTIFIER][$MODULE]["reporting_finish"]);
?>
<tr>
<td colspan="3" style="text-align: right; padding-top: 10px"><input type="submit" class="btn btn-primary" value="Create Report" /></td>
</tr>
</tbody>
</table>
</form>
</div>
<?php
if ($STEP == 2) {
?>
<h1>Podcast Usage Report</h1>
<div class="content-small" style="margin-bottom: 10px">
<strong>Date Range:</strong> <?php
echo date(DEFAULT_DATE_FORMAT, $_SESSION[APPLICATION_IDENTIFIER][$MODULE]["reporting_start"]);
示例6: isset
<td colspan="3"> </td>
</tr>
<tr>
<td></td>
<td><label for="report_supporting_link" class="form-nrequired">Supporting Link</label></td>
<td>
<input type="text" id="report_supporting_link" name="report_supporting_link" value="<?php
echo isset($PROCESSED["report_supporting_link"]) && $PROCESSED["report_supporting_link"] ? html_encode($PROCESSED["report_supporting_link"]) : "http://";
?>
" maxlength="255" style="width: 99%;" />
</td>
</tr>
<tr>
<td colspan="3"> </td>
</tr>
<?php
echo generate_calendars("report", "Reporting Date", true, true, isset($PROCESSED["report_date"]) ? $PROCESSED["report_date"] : 0, false, false, 0, false, false, "");
?>
<tr>
<td colspan="3"> </td>
</tr>
<?php
echo generate_calendars("period", "Reporting Period", true, true, isset($PROCESSED["report_start"]) ? $PROCESSED["report_start"] : 0, true, true, isset($PROCESSED["report_finish"]) ? $PROCESSED["report_finish"] : 0, false);
?>
</tbody>
</table>
</form>
<?php
break;
}
}
示例7: generate_calendars
<table style="width: 100%" cellspacing="0" cellpadding="2" border="0" summary="Time Release Information">
<colgroup>
<col style="width: 3%" />
<col style="width: 30%" />
<col style="width: 67%" />
</colgroup>
<tr>
<td colspan="3"><h2>Time Release Options</h2></td>
</tr>
<?php
if (isset($PROCESSED["quiztype_id"]) && $PROCESSED["quiztype_id"]) {
$query = "SELECT `quiztype_code` FROM `quizzes_lu_quiztypes` WHERE `quiztype_id` = " . $db->qstr($PROCESSED["quiztype_id"]);
$quiztype = $db->GetOne($query);
$quiz_results_delayed = $quiztype == "delayed" ? true : false;
}
echo generate_calendars("accessible", "Accessible", true, false, isset($PROCESSED["release_date"]) ? $PROCESSED["release_date"] : 0, true, $quiz_results_delayed, isset($PROCESSED["release_until"]) ? $PROCESSED["release_until"] : 0, true, true);
?>
</table>
</div>
</div>
<div id="footer">
<input type="hidden" name="go_back" id="go_back" value="0" />
<input type="hidden" name="go_forward" id="go_forward" value="0" />
<button class="btn" id="close-button" onclick="closeWizard()">Close</button>
<input class="btn btn-primary" type="button" id="next-button" name="next_button" onclick="quizNextStep()" value="Finish" />
<input class="btn" type="button" id="back-button" name="back_button" onclick="quizPrevStep()" value="Previous Step" />
</div>
</div>
</form>
</div>
<?php
示例8: generate_calendars
<tbody id="associated_events" style="display: none">
<tr>
<td colspan="3"> </td>
</tr>
<tr>
<td> </td>
<td style="vertical-align: top"><span class="form-nrequired">Associated Event</span></td>
<td id="associated_events_contents"> </td>
</tr>
</tbody>
<tbody>
<tr>
<td colspan="3"> </td>
</tr>
<?php
echo generate_calendars("inhabiting", "", true, true, $PROCESSED["inhabiting_start"], true, true, $PROCESSED["inhabiting_finish"], false);
?>
<tr>
<td colspan="3">
<div class="display-error" id="availability_details" style="display: none">
</div>
</td>
</tr>
</tbody>
</table>
</form>
<script type="text/javascript" defer="defer">
Event.observe(window, 'load', function() {
updateOccupantOptions(false);
});
示例9: generate_calendars
?>
</div>
</div>
<div class="control-group">
<table>
<?php
echo generate_calendars("copy", "", true, true, isset($PROCESSED["draft_start_date"]) ? $PROCESSED["draft_start_date"] : strtotime("September 1st, " . (date("o") - 1)), true, true, isset($PROCESSED["draft_finish_date"]) ? $PROCESSED["draft_finish_date"] : time(), false);
?>
</table>
</div>
<div class="control-group">
<table>
<?php
echo generate_calendars("new", "New Start Date", true, true, isset($PROCESSED["new_start_day"]) ? $PROCESSED["new_start_day"] : (isset($PROCESSED["draft_start_date"]) ? strtotime("+1 Year", $PROCESSED["draft_start_date"]) : strtotime("September 1st, " . date("o"))), false, false, 0, false, false, "");
?>
</table>
</div>
</div>
<a href="<?php
echo ENTRADA_RELATIVE;
?>
/admin/events/drafts" class="btn">Cancel</a>
<input type="submit" class="btn btn-primary pull-right" value="Create Draft" />
</form>
</div>
<?php
break;
示例10: isset
<td>
<div id="plan_body" name="plan_body" style="width: 95%"><?php
echo isset($PROCESSED["plan_body"]) ? html_encode($PROCESSED["plan_body"]) : "";
?>
</div>
</td>
</tr>
<?php
}
?>
<tr>
<td colspan="3"> </td>
</tr>
<?php
if (!isset($PROCESSED["clerk_accepted"]) || !$PROCESSED["clerk_accepted"]) {
echo generate_calendars("timeline", "", true, true, isset($PROCESSED["timeline_start"]) ? $PROCESSED["timeline_start"] : 0, true, true, isset($PROCESSED["timeline_finish"]) ? $PROCESSED["timeline_finish"] : 0);
} else {
?>
<tr>
<td></td>
<td><label class="form-nrequired">Timeline Start</label></td>
<td><?php
echo date(DEFAULT_DATE_FORMAT, $PROCESSED["timeline_start"]);
?>
</td>
</tr>
<tr>
<td></td>
<td><label class="form-nrequired">Timeline Finish</label></td>
<td><?php
echo date(DEFAULT_DATE_FORMAT, $PROCESSED["timeline_finish"]);
示例11: generate_calendars
?>
" style="width:50%;"></td>
</tr>
<tr class="preceptor_manual">
<td> </td>
<td><label for="supervisor" class="form-required">Preceptor Lastname:</label></td>
<td><input id="preceptor_lastname" name="preceptor_lastname" value="<?php
echo $OBSERVERSHIP->getPreceptorLastname();
?>
" style="width:50%;"></td>
</tr>
<tr>
<td colspan="3"> </td>
</tr>
<?php
echo generate_calendars("observership", "", true, true, $OBSERVERSHIP->getStart() ? $OBSERVERSHIP->getStart() : 0, true, true, $OBSERVERSHIP->getEnd() ? $OBSERVERSHIP->getEnd() : 0, false);
?>
</tbody>
</table>
<div class="row-fluid">
<div class="display-generic">By sending this approval form I certify that the above information has been completed to the best of my knowledge. I am aware that in order for this activity to be recognized by the UGME office as completed, I am responsible to ensure that my Supervisor electronically submits my confirmation of attendance within one week of the observership end date. I understand that if this is an International activity it is my responsibility to follow the International process and guidelines located on the UGME website.</div>
<?php
if ($ACTION == "Create") {
?>
<label for="read" style="vertical-align:middle;font-weight:bold;"> <input name="read" type="checkbox" value="1" id="read"> Yes, I have read and agree to the procedures and regulations of the Student Observership policy.</label>
<?php
}
示例12: function
<td> </td>
<td><label for="assistant_name" class="form-required">Assistants Fullname:</label></td>
<td>
<input type="text" id="assistant_name" name="fullname" size="30" value="" autocomplete="off" style="width: 203px; vertical-align: middle" onkeyup="checkAssistant()" />
<div class="autocomplete" id="assistant_name_auto_complete"></div><script type="text/javascript">new Ajax.Autocompleter('assistant_name', 'assistant_name_auto_complete', '<?php
echo ENTRADA_RELATIVE;
?>
/api/personnel.api.php', {frequency: 0.2, minChars: 2, afterUpdateElement: function (text, li) {selectAssistant(li.id); copyAssistant();}});</script>
<span class="content-small">(<strong>Example:</strong> <?php
echo html_encode($_SESSION["details"]["lastname"] . ", " . $_SESSION["details"]["firstname"]);
?>
)</span>
</td>
</tr>
<?php
echo generate_calendars("valid", "Access", true, true, $start_time = isset($PROCESSED["valid_from"]) ? $PROCESSED["valid_from"] : mktime(0, 0, 0, date("n", time()), date("j", time()), date("Y", time())), true, true, isset($PROCESSED["valid_until"]) ? $PROCESSED["valid_until"] : strtotime("+1 week 23 hours 59 minutes 59 seconds", $start_time));
?>
<tr>
<td colspan="3"> </td>
</tr>
</tbody>
</table>
</form>
<br /><br />
<?php
$query = "\tSELECT a.`permission_id`, a.`assigned_to`, a.`valid_from`, a.`valid_until`, CONCAT_WS(', ', b.`lastname`, b.`firstname`) AS `fullname`\n\t\t\t\t\t\t\t\t\tFROM `permissions` AS a\n\t\t\t\t\t\t\t\t\tLEFT JOIN `" . AUTH_DATABASE . "`.`user_data` AS b\n\t\t\t\t\t\t\t\t\tON b.`id` = a.`assigned_to`\n\t\t\t\t\t\t\t\t\tWHERE a.`assigned_by`=" . $db->qstr($ENTRADA_USER->getID()) . "\n\t\t\t\t\t\t\t\t\tORDER BY `valid_until` ASC";
$results = $db->GetAll($query);
if ($results) {
?>
<form action="<?php
echo ENTRADA_URL;
示例13: generate_calendars
echo !isset($PROCESSED_ACCESS["account_active"]) || $PROCESSED_ACCESS["account_active"] == "true" ? " selected=\"selected\"" : "";
?>
>Active</option>
<option value="false"<?php
echo $PROCESSED_ACCESS["account_active"] == "false" ? " selected=\"selected\"" : "";
?>
>Disabled</option>
</select>
</div>
</div>
<!--- End control-group ---->
<div class="control-group">
<table>
<?php
echo generate_calendars("access", "Access", true, true, isset($PROCESSED_ACCESS["access_starts"]) ? $PROCESSED_ACCESS["access_starts"] : time(), true, false, isset($PROCESSED_ACCESS["access_expires"]) ? $PROCESSED_ACCESS["access_expires"] : 0);
?>
</table>
</div>
<h2>Personal Information</h2>
<div class="control-group">
<label class="control-label form-nrequired" for="prefix">Prefix:</label>
<div class="controls">
<select id="prefix" name="prefix" class="input-small">
<option value=""<?php
echo !isset($result["prefix"]) ? " selected=\"selected\"" : "";
?>
></option>
<?php
if (@is_array($PROFILE_NAME_PREFIX) && @count($PROFILE_NAME_PREFIX)) {
示例14: isset
</td>
</tr>
</tbody>
<tbody>
<tr>
<td colspan="4"><h2>Apartment Availability</h2></td>
</tr>
<tr>
<td colspan="3"></td>
<td rowspan="3"></td>
</tr>
<?php
$available_start = isset($PROCESSED["available_start"]) ? (int) $PROCESSED["available_start"] : time();
$available_finish = isset($PROCESSED["available_finish"]) ? (int) $PROCESSED["available_finish"] : 0;
echo generate_calendars("available", "", true, true, $available_start, true, false, $available_finish, false);
?>
</tbody>
<tbody>
<tr>
<td colspan="4">
<label for="contact_name" class="control-label form-nrequired"><h2>Apartment Contacts:</h2>
<div class="content-small" style="margin-top: 15px">
<strong>Tip:</strong> Select any other individuals you would like to give access to this apartment.
</div>
</label>
</td>
</tr>
<tr>
<td colspan="3">
<input type="text" id="contact_name" name="fullname" size="30" autocomplete="off" style="width: 203px" />
示例15: isset
?>
" maxlength="60" style="width: 300px" />
</span>
</div>
<div class="control-group row-fluid">
<label for="category_code" class="form-nrequired span4">Category Code:</label>
<span class="controls span7 offset1">
<input type="text" id="category_code" name="category_code" value="<?php
echo isset($PROCESSED["category_code"]) ? html_encode($PROCESSED["category_code"]) : "";
?>
" maxlength="100" style="width: 300px" />
</span>
</div>
<table style="width:100%">
<?php
echo generate_calendars("category", "", true, false, isset($PROCESSED["category_start"]) ? $PROCESSED["category_start"] : 0, true, false, isset($PROCESSED["category_finish"]) ? $PROCESSED["category_finish"] : 0, false);
?>
</table>
<br />
<div class="control-group row-fluid">
<label for="category_desc" class="form-nrequired span4">Category Description: </label>
<span class="controls span7 offset1">
<textarea id="category_desc" name="category_desc" style="width: 98%; height: 200px" rows="20" cols="70"><?php
echo isset($PROCESSED["category_desc"]) ? html_encode($PROCESSED["category_desc"]) : "";
?>
</textarea>
</span>
</div>
<br />
<div class="control-group row-fluid">
<label for="category_id" class="form-required span4">Category Order:</label>