本文整理汇总了PHP中button_link函数的典型用法代码示例。如果您正苦于以下问题:PHP button_link函数的具体用法?PHP button_link怎么用?PHP button_link使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了button_link函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: lang
</TD></TR>
<TR><TD align="left">
<INPUT class="button" type=submit name="save_preview" class="small" value="' . lang('mail_preview') . '">
</TD><TD align="right">
<INPUT class="button" type=submit name="save" value="' . lang('save') . '">
</TD></TR>
</TABLE>
</TD></TR>
<TR>
<TD colspan=2>
<TABLE class="or_option_buttons_box" style="background: ' . $color['options_box_background'] . ';">
<TR>
<TD colspan=3>' . lang('reminder_mails_in_mail_queue') . ': ';
$qmails = experimentmail__mails_in_queue("session_reminder", $experiment_id);
echo $qmails;
if (check_allow('mailqueue_show_experiment')) {
echo ' ' . button_link('experiment_mailqueue_show.php?experiment_id=' . $experiment['experiment_id'], lang('monitor_experiment_mail_queue'), 'envelope-square');
}
echo '</TD></TR></TABLE>
</TD>
</TR>';
echo '
</TABLE>
</FORM>';
echo '<BR><A HREF="experiment_show.php?experiment_id=' . $experiment_id . '">' . lang('mainpage_of_this_experiment') . '</A><BR><BR>
</CENTER>';
}
}
include "footer.php";
示例2: stripslashes
echo '
</TD>
<TD>';
if ($inputform == 'area') {
echo '<textarea name="' . $language . '" cols=50 rows=20 wrap=virtual>' . stripslashes($titem[$language]) . '</textarea>';
} else {
echo '<INPUT name="' . $language, '" type="text" size=30 maxlength=100 value="' . stripslashes($titem[$language]) . '">';
}
echo ' </TD>
</TR>';
}
echo ' </TABLE>
<TABLE>
<TR>
<TD COLSPAN=2 align=center>
<INPUT class="button" name=edit type=submit value="' . $button_title . '">
</TD>
</TR>
</table>
</FORM>
<BR>';
if ($id && check_allow($allow_cat . '_delete')) {
echo '<BR><BR>
' . button_link('lang_item_delete.php?id=' . urlencode($id) . '&item=' . urlencode($item), lang('delete'), 'trash-o') . '
';
}
echo '<BR><BR>
<A href="lang_item_main.php?item=' . $item . '"><i class="fa fa-level-up fa-lg" style="padding-right: 3px;"></i>' . lang('back') . '</A><BR><BR>
</center>';
}
include "footer.php";
示例3: ob_start
<?php
// part of orsee. see orsee.org
ob_start();
$menu__area = "options";
$title = "sub_subjectpools";
include "header.php";
if ($proceed) {
$allow = check_allow('subjectpool_edit', 'options_main.php');
}
if ($proceed) {
echo '<center>';
if (check_allow('subjectpool_add')) {
echo '<BR>' . button_link('subpool_edit.php?addit=true', lang('create_new'), 'plus-circle');
}
echo '<BR><BR>
<table class="or_listtable"><thead>
<TR style="background: ' . $color['list_header_background'] . '; color: ' . $color['list_header_textcolor'] . ';">
<TD>' . lang('id') . '</TD>
<TD>' . lang('name') . '
<TD>' . lang('description') . '</TD>
<TD>' . lang('subjects') . '</TD>
<TD></TD>
</TR></thead>
<tbody>';
$part_counts = array();
$query = "SELECT count(*) as part_count, subpool_id FROM " . table('participants') . " GROUP BY subpool_id";
$result = or_query($query);
while ($line = pdo_fetch_assoc($result)) {
$part_counts[$line['subpool_id']] = $line['part_count'];
}
示例4: lang
if ($proceed) {
// form
echo ' <CENTER>
<TABLE class="or_formtable">
<TR><TD colspan=2>
<TABLE width="100%" border=0 class="or_panel_title"><TR>
<TD style="background: ' . $color['panel_title_background'] . '; color: ' . $color['panel_title_textcolor'] . '" align="center">
' . $header . ' - ' . $titem[$headervar] . '
</TD>
</TR></TABLE>
</TD></TR>
<TR>
<TD colspan=2>
' . lang('do_you_really_want_to_delete') . '
<BR><BR>';
dump_array($titem);
echo '
</TD>
</TR>
<TR>
<TD align=left>
' . button_link('lang_item_delete.php?id=' . urlencode($id) . '&item=' . urlencode($item) . '&reallydelete=true', lang('yes_delete'), 'check-square biconred') . '
</TD>
<TD align=right>
' . button_link('lang_item_delete.php?id=' . urlencode($id) . '&item=' . urlencode($item) . '&betternot=true', lang('no_sorry'), 'undo bicongreen') . '
</TD>
</TR>
</TABLE>
</center>';
}
include "footer.php";
示例5: lang
<TD>
' . lang('answer_in_xxxlang') . ' ' . $language . '
</TD>
<TD>
<textarea name="answer[' . $language . ']" cols=40 rows=20 wrap=virtual>' . stripslashes($answer[$language]) . '</textarea>
</TD>
</TR>';
}
echo ' <TR>
<TD COLSPAN=2 align=center>
<INPUT class="button" name=edit type=submit value="';
if ($faq_id) {
echo lang('change');
} else {
echo lang('add');
}
echo '">
</TD>
</TR>
</table>
</FORM>
<BR>';
if ($faq_id && check_allow('faq_delete')) {
echo '<BR><BR>
' . button_link('faq_delete.php?faq_id=' . urlencode($faq_id), lang('delete'), 'trash-o');
}
echo '<BR><BR>
<A href="faq_main.php">' . icon('back') . ' ' . lang('back') . '</A><BR><BR>
</center>';
}
include "footer.php";
示例6: enforce_authentication
<?php
require '../../include/ctf.inc.php';
enforce_authentication(CONST_USER_CLASS_MODERATOR);
head('Hints');
menu_management();
section_head('Hints', button_link('Add new hint', 'new_hint'), false);
echo '
<table id="hints" class="table table-striped table-hover">
<thead>
<tr>
<th>Challenge</th>
<th>Added</th>
<th>Hint</th>
<th>Manage</th>
</tr>
</thead>
<tbody>
';
$hints = db_query_fetch_all('
SELECT
h.id,
h.added,
h.body,
c.title
FROM hints AS h
LEFT JOIN challenges AS c ON c.id = h.challenge');
foreach ($hints as $hint) {
echo '
<tr>
<td>', htmlspecialchars($hint['title']), '</td>
示例7: enforce_authentication
<?php
require '../../include/ctf.inc.php';
enforce_authentication(CONST_USER_CLASS_MODERATOR);
head('Dynamic pages');
menu_management();
section_head('Dynamic pages', button_link('New page', 'new_dynamic_page'), false);
$pages = db_select_all('dynamic_pages', array('id', 'title', 'visibility', 'min_user_class'), null, 'title ASC');
echo '
<table id="dynamic_pages" class="table table-striped table-hover">
<thead>
<tr>
<th>Title</th>
<th>visibility</th>
<th>Min user class</th>
<th>Manage</th>
</tr>
</thead>
<tbody>
';
foreach ($pages as $item) {
echo '
<tr>
<td>', htmlspecialchars($item['title']), '</td>
<td>', visibility_enum_to_name($item['visibility']), '</td>
<td>', user_class_name($item['min_user_class']), '</td>
<td><a href="' . CONFIG_SITE_ADMIN_URL . 'edit_dynamic_page?id=', $item['id'], '" class="btn btn-xs btn-primary">Edit</a></td>
</tr>
';
}
echo '
示例8: implode
}
$query = '
FROM submissions AS s
LEFT JOIN users AS u on s.user_id = u.id
LEFT JOIN challenges AS c ON c.id = s.challenge
';
if (!empty($where)) {
$query .= 'WHERE ' . implode('=? AND ', array_keys($where)) . '=? ';
}
if (array_get($_GET, 'user_id')) {
section_head('User submissions', button_link('List all submissions', 'list_submissions?only_needing_marking=0'), false);
} else {
if ($only_needing_marking) {
section_head('Submissions in need of marking', button_link('List all submissions', 'list_submissions?only_needing_marking=0'), false);
} else {
section_head('All submissions', button_link('Show only submissions in need of marking', 'list_submissions?only_needing_marking=1'), false);
}
}
$num_subs = db_query_fetch_one('
SELECT
COUNT(*) AS num
' . $query, array_values($where));
$from = get_pager_from($_GET);
$results_per_page = 70;
pager(CONFIG_SITE_ADMIN_URL . 'list_submissions', $num_subs['num'], $results_per_page, $from);
echo '
<table id="files" class="table table-striped table-hover">
<thead>
<tr>
<th>Challenge</th>
<th>Team name</th>
示例9: lang
' . lang('delete_language') . ' ' . $lang_names[$tlang] . ' (' . $tlang . ')
</TD>
</TR></TABLE>
</TD></TR>
<TR>
<TD colspan=2>
' . lang('do_you_really_want_to_delete') . '
<BR><BR>
</TD>
</TR>
<TR>
<TD align=left>
' . button_link('lang_lang_delete.php?elang=' . urlencode($tlang) . '&nlang=' . urlencode($slang) . '&reallydelete=true', lang('yes_delete'), 'check-square biconred') . '
</TD>
<TD align=right>
' . button_link('lang_lang_delete.php?elang=' . urlencode($tlang) . '&nlang=' . urlencode($slang) . '&betternot=true', lang('no_sorry'), 'undo bicongreen') . '
</TD>
</TR>
</TABLE>
</FORM>
</center>';
}
} else {
// delete form
echo ' <BR><BR>
<center>';
echo ' <FORM action="lang_lang_delete.php">
<TABLE class="or_formtable">
<TR>
示例10: ob_start
<?php
// part of orsee. see orsee.org
ob_start();
$menu__area = "options";
$title = "participant_statuses";
include "header.php";
if ($proceed) {
$allow = check_allow('participantstatus_edit', 'options_main.php');
}
if ($proceed) {
echo '<center>';
if (check_allow('participantstatus_add')) {
echo '
<BR>
' . button_link('participant_status_edit.php?addit=true', lang('create_new'), 'plus-circle');
}
echo '<BR>
<table class="or_listtable" style="width: 80%;"><thead>
<TR style="background: ' . $color['list_header_background'] . '; color: ' . $color['list_header_textcolor'] . ';">
<TD>' . lang('id') . '</TD>
<TD>' . lang('name') . '
<TD>' . lang('access_to_profile') . '</TD>
<TD>' . lang('eligible_for_experiments') . '</TD>
<TD>' . lang('default_for_active_participants') . '</TD>
<TD>' . lang('default_for_inactive_participants') . '</TD>
<TD>' . lang('subjects') . '</TD>';
if (check_allow('participantstatus_edit')) {
echo '<TD></TD>';
}
echo '
示例11: laboratories__get_laboratories
</TD>
</TR>
</TABLE>
</FORM>
</center>
';
}
}
} else {
if (!isset($preloaded_laboratories)) {
$preloaded_laboratories = laboratories__get_laboratories();
}
echo '<center>';
echo '<p align="right"><TABLE border=0>';
echo '<TR><TD>' . button_link('participant_edit.php' . $token_string, lang('edit_your_profile'), 'pencil-square-o') . '</TD></TR>';
echo '</TABLE></P>';
echo '<table border="0" width="90%">';
echo '<TR><TD>
<TABLE width="100%" class="or_panel" style="width: 100%;">
<TR><TD>
<TABLE width="100%" border=0 class="or_panel_title"><TR>
<TD style="background: ' . $color['panel_title_background'] . '; color: ' . $color['panel_title_textcolor'] . '">
' . lang('experiments_you_are_invited_for') . '
</TD>
</TR></TABLE>
</TD></TR>
<TR><TD>
' . lang('please_check_availability_before_register') . '
</TD></TR>
<TR><TD>';
示例12: button_link
echo '
<TD>
' . button_link('participants_show.php?active=true', lang('edit_active_participants'), 'list-alt') . '
</TD>
<TD>
' . button_link('participants_show.php', lang('edit_all_participants'), 'search') . '
</TD>
';
}
if (check_allow('participants_edit')) {
echo '
<TD>
' . button_link('participants_edit.php', lang('add_participant'), 'plus-circle') . '
</TD>
';
}
if (check_allow('participants_duplicates')) {
echo '
<TD>
' . button_link('participants_duplicates.php', lang('search_for_duplicates'), 'magnet') . '
</TD>
';
}
echo '
</TR>
</TABLE>
</TD></TR>
</TABLE>
</center>';
}
include "footer.php";
示例13: log__participant
log__participant("logout", $participant['participant_id']);
participant__logout();
redirect("public/participant_login.php?pw=true");
}
$proceed = false;
}
}
if ($proceed) {
echo ' <center>';
show_message();
echo '<TABLE border=0><TR><TD align="center">';
echo '<form action="participant_change_pw.php" method="POST">';
echo '<table class="or_formtable" style="width: 50%;">
<tr><td>' . lang('old_password') . '<BR>
<input type="password" name="passold" size="20" max-length="30">
</td></tr>';
echo participant__password_form_fields(true, false);
echo '<tr><td align="center">
<input class="button" type="submit" name="submit" value="' . lang('change') . '">
</td></tr>
</table>
</form>';
echo '</TD><TD align="right" valign="top">';
echo '<TABLE border=0>';
echo '<TR><TD>' . button_link('participant_edit.php', lang('edit_your_profile'), 'pencil-square-o') . '</TD></TR>';
echo '<TR><TD>' . button_link('participant_show.php', lang('my_registrations'), 'calendar-o') . '</TD></TR>';
echo '</TABLE>';
echo '</TD><TR></TABLE>';
echo '</center>';
}
include "footer.php";
示例14: lang
if ($mode == 'inbox') {
echo lang('mailbox_inbox');
} elseif ($mode == 'experiment') {
echo lang('experiment') . ': ' . $experiment['experiment_name'];
} elseif ($mode == 'session') {
echo lang('session') . ': ' . $experiment['experiment_name'] . ', ' . session__build_name($session);
} elseif ($mode == 'participant') {
echo lang('participant') . ': ' . $participant['email'];
} elseif ($mode == 'mailbox') {
echo lang('email_mailbox') . ': ' . $mailboxes[$id];
} elseif ($mode == 'listmailboxes') {
echo lang('all_mailboxes');
} elseif ($mode == 'trash') {
echo lang('mailbox_trash');
if (check_allow('emails_trash_empty')) {
echo button_link(thisdoc() . '?mode=trash&empty_trash=true', lang('email_empty_trash'), 'trash') . '<BR>';
}
}
echo '
</TD></TR></TABLE>
</TD></TR>
<TR><TD align="center">';
// list emails
if ($mode == 'listmailboxes') {
// show mail boxes
email__show_mail_boxes();
} elseif ($mode == 'search') {
// search for emails and list them
} else {
echo javascript__email_popup();
email__list_emails($mode, $id, $rmode, $url_string);
示例15: lang
echo ' </TD>
<TD>';
if (isset($lang['cron_job_time_' . $line['job_time']])) {
echo $lang['cron_job_time_' . $line['job_time']];
} else {
echo $line['job_time'];
}
echo ' </TD>
<TD>';
if ($line['job_last_exec'] == 0) {
echo lang('never');
} else {
echo ortime__format($line['job_last_exec'], 'hide_second:false', lang('lang'));
}
echo ' </TD>
<TD>';
if ($allow_edit) {
echo '<A HREF="cronjob_edit.php?job_name=' . $line['job_name'] . '">' . lang('edit') . '</A>';
}
echo ' </TD>';
echo '<TD>';
if ($allow_run) {
echo button_link('cronjob_main.php?job_name=' . $line['job_name'] . '&exec=true', lang('run_now'), 'play-circle', 'font-size: 8pt;');
}
echo '</TD>';
echo '</tr>';
}
echo '</tbody></table>
</CENTER>';
}
include "footer.php";