本文整理汇总了PHP中feedback_encode_target_url函数的典型用法代码示例。如果您正苦于以下问题:PHP feedback_encode_target_url函数的具体用法?PHP feedback_encode_target_url怎么用?PHP feedback_encode_target_url使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了feedback_encode_target_url函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: get_string
echo $OUTPUT->box_end();
} else {
echo '<p align="center">';
echo '<b><font color="green">';
echo get_string('entries_saved', 'feedback');
echo '</font></b>';
echo '</p>';
if ( intval($feedback->publish_stats) == 1) {
echo '<p align="center"><a href="'.$analysisurl->out().'">';
echo get_string('completed_feedbacks', 'feedback').'</a>';
echo '</p>';
}
}
if ($feedback->site_after_submit) {
$url = feedback_encode_target_url($feedback->site_after_submit);
} else {
if ($courseid) {
if ($courseid == SITEID) {
$url = $CFG->wwwroot;
} else {
$url = $CFG->wwwroot.'/course/view.php?id='.$courseid;
}
} else {
if ($course->id == SITEID) {
$url = $CFG->wwwroot;
} else {
$url = $CFG->wwwroot.'/course/view.php?id='.$course->id;
}
}
}
开发者ID:JP-Git,项目名称:moodle,代码行数:31,代码来源:complete.php
示例2: print_box_start
if ($feedback->page_after_submit) {
// print_simple_box_start('center', '75%');
print_box_start('generalbox boxaligncenter boxwidthwide');
echo format_text(stripslashes_safe($feedback->page_after_submit));
// print_simple_box_end();
print_box_end();
} else {
echo '<p align="center"><b><font color="green">' . get_string('entries_saved', 'feedback') . '</font></b></p>';
if (intval($feedback->publish_stats) == 1) {
echo '<p align="center"><a href="analysis.php?id=' . $id . '&courseid=' . $courseid . '">';
echo get_string('completed_feedbacks', 'feedback') . '</a>';
echo '</p>';
}
}
if ($feedback->site_after_submit) {
print_continue(feedback_encode_target_url($feedback->site_after_submit));
} else {
if ($courseid) {
print_continue($CFG->wwwroot . '/course/view.php?id=' . $courseid);
} else {
if ($course->id == SITEID) {
print_continue($CFG->wwwroot);
} else {
print_continue($CFG->wwwroot . '/course/view.php?id=' . $course->id);
}
}
}
} else {
if (isset($savereturn) && $savereturn == 'failed') {
echo '<p align="center"><b><font color="red">' . get_string('saving_failed', 'feedback') . '</font></b></p>';
}
开发者ID:kai707,项目名称:ITSA-backup,代码行数:31,代码来源:complete.php
示例3: format_text
}
if (isset($savereturn) && $savereturn == 'saved') {
if ($feedback->page_after_submit) {
echo $OUTPUT->box_start('generalbox boxaligncenter boxwidthwide');
echo format_text($feedback->page_after_submit, $feedback->page_after_submitformat, array('overflowdiv' => true));
echo $OUTPUT->box_end();
} else {
echo '<p align="center"><b><font color="green">' . get_string('entries_saved', 'feedback') . '</font></b></p>';
if (intval($feedback->publish_stats) == 1) {
echo '<p align="center"><a href="' . $analysisurl->out() . '">';
echo get_string('completed_feedbacks', 'feedback') . '</a>';
echo '</p>';
}
}
if ($feedback->site_after_submit) {
echo $OUTPUT->continue_button(feedback_encode_target_url($feedback->site_after_submit));
} else {
if ($courseid) {
if ($courseid == SITEID) {
echo $OUTPUT->continue_button($CFG->wwwroot);
} else {
echo $OUTPUT->continue_button($CFG->wwwroot . '/course/view.php?id=' . $courseid);
}
} else {
if ($course->id == SITEID) {
echo $OUTPUT->continue_button($CFG->wwwroot);
} else {
echo $OUTPUT->continue_button($CFG->wwwroot . '/course/view.php?id=' . $course->id);
}
}
}
开发者ID:vuchannguyen,项目名称:web,代码行数:31,代码来源:complete_guest.php
注:本文中的feedback_encode_target_url函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论