本文整理汇总了PHP中page_doc_link函数的典型用法代码示例。如果您正苦于以下问题:PHP page_doc_link函数的具体用法?PHP page_doc_link怎么用?PHP page_doc_link使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了page_doc_link函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: page_doc_link
<?php
if ($hasfooter) {
echo "<div class='johndocsleft'>";
echo $OUTPUT->login_info();
echo $OUTPUT->home_link();
echo $OUTPUT->standard_footer_html();
echo "</div>";
}
?>
<?php
if ($hasfooter) {
?>
<div class="johndocs">
<?php
echo page_doc_link(get_string('moodledocslink'));
?>
</div>
<?php
}
?>
</div>
</div>
</div>
</div>
<?php
示例2: page_doc_link
</div>
<div class="footerblock span2">
<?php echo $OUTPUT->blocks('footer-middle'); ?>
</div>
<div class="footerblock span2">
<?php echo $OUTPUT->blocks('footer-right-one'); ?>
</div>
<div class="footerblock span2">
<?php echo $OUTPUT->blocks('footer-right'); ?>
</div>
<!-- code end by sreekanth -->
</div>
<div class="footerlinks row-fluid">
<hr/>
<span class="helplink"><?php echo page_doc_link(get_string('moodledocslink')); ?></span>
<?php if ($hascopyright) { ?>
<span class="copy">©<?php echo userdate(time(), '%Y').' '.$hascopyright; ?></span>
<?php
}
?>
<?php if ($hasfootnote) {
echo '<div class="footnote span12">'.$hasfootnote.'</div>';
}
?>
</div>
<div class="footerperformance row-fluid">
<?php echo $OUTPUT->standard_footer_html(); ?>
</div>
</div>
</footer>
示例3: if
<?php if ($hassidepost) { ?>
<div id="region-post" class="block-region">
<div class="region-content">
<?php echo $OUTPUT->blocks_for_region('side-post') ?>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
<!-- START OF FOOTER -->
<?php if ($hasfooter) { ?>
<div id="page-footer" class="clearfix">
<p class="helplink"><?php echo page_doc_link(get_string('moodledocslink')) ?></p>
<?php
echo $OUTPUT->login_info();
echo $OUTPUT->home_link();
echo $OUTPUT->standard_footer_html();
?>
<div class="rounded-corner bottom-left"></div>
<div class="rounded-corner bottom-right"></div>
</div>
<?php } ?>
<div class="clearfix"></div>
</div>
<?php echo $OUTPUT->standard_end_of_body_html() ?>
</body>
</html>
示例4: admin_get_root
<?php
// $Id$
require_once '../../../config.php';
require_once $CFG->dirroot . '/question/upgrade.php';
require_once $CFG->libdir . '/adminlib.php';
$adminroot = admin_get_root();
admin_externalpage_setup('reportquestion', $adminroot);
admin_externalpage_print_header($adminroot);
print_heading(page_doc_link(get_string('adminreport', 'question')));
$probstr = '';
$contextupgradeversion = 2007081000;
if ($CFG->version < $contextupgradeversion) {
///cwrqpfs issue
$probstr = print_heading(get_string('cwrqpfs', 'question'), '', 3, 'main', true);
if ($updates = question_cwqpfs_to_update()) {
$probstr .= get_string('cwrqpfsinfo', 'question');
$probstr .= '<ul>';
$catlist = join(array_keys($updates), ',');
//get info about cateogries and no of questions used outside category's course
$categories = get_records_sql('SELECT qc.*, c.fullname as coursename FROM ' . $CFG->prefix . 'question_categories as qc, ' . $CFG->prefix . 'course as c WHERE qc.course = c.id AND qc.id IN (' . $catlist . ')');
foreach ($updates as $id => $publish) {
$categories[$id]->caturl = "{$CFG->wwwroot}/question/category.php?sesskey=" . sesskey() . "&edit={$id}&id=" . $categories[$id]->course;
if ($categories[$id]->publish) {
$categories[$id]->changefrom = get_string('published', 'question');
$categories[$id]->changeto = get_string('unpublished', 'question');
} else {
$categories[$id]->changefrom = get_string('unpublished', 'question');
$categories[$id]->changeto = get_string('published', 'question');
}
$probstr .= '<li>' . get_string('changepublishstatuscat', 'question', $categories[$id]);