本文整理汇总了PHP中show_button函数的典型用法代码示例。如果您正苦于以下问题:PHP show_button函数的具体用法?PHP show_button怎么用?PHP show_button使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了show_button函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: create_confirm
function create_confirm($user, $team)
{
page_head("Create Message Board");
echo "\n\t\tYou may create a Message Board for use by {$team->name}.\n\t\t<ul>\n\t\t<li>Only team members will be able to post.</li>\n\t\t<li>At your option, only members will be able to read.</li>\n\t\t<li>You and your Team Admins will have moderator privileges.</li>\n\t\t</ul>\n\t";
$tokens = url_tokens($user->authenticator);
show_button("team_forum.php?teamid={$team->id}&cmd=create{$tokens}", "Create Message Board", "Create a Message Board for {$team->name}");
page_tail();
}
开发者ID:Turante,项目名称:boincweb,代码行数:8,代码来源:team_forum.php
示例2: create_confirm
function create_confirm($user, $team)
{
page_head(tra("Create Message Board"));
echo tra("You may create a message board for use by %1.", $team->name) . "\n <ul>\n <li>" . tra("Only team members will be able to post.") . "\n <li>" . tra("At your option, only members will be able to read.") . "\n <li>" . tra("You and your Team Admins will have moderator privileges.") . "\n </ul>\n ";
$tokens = url_tokens($user->authenticator);
show_button("team_forum.php?teamid={$team->id}&cmd=create{$tokens}", tra("Create Message Board"), tra("Create a message board for %1", $team->name));
page_tail();
}
开发者ID:CalvinZhu,项目名称:boinc,代码行数:8,代码来源:team_forum.php
示例3: show_admin
function show_admin($user, $admin)
{
$admin_user = BoincUser::lookup_id($admin->userid);
$tokens = url_tokens($user->authenticator);
$date = date_str($admin->create_time);
echo "<tr>\n <td>" . user_links($admin_user) . "</td>\n <td>{$date}</td>\n <td>\n ";
show_button("team_admins.php?teamid={$admin->teamid}&action=remove&userid={$admin_user->id}" . $tokens, tra("Remove"), tra("Remove Team Admin status from this member"));
echo "</td></tr>\n ";
}
开发者ID:nicolas17,项目名称:boincgit-test,代码行数:9,代码来源:team_admins.php
示例4: show_bossa_app
function show_bossa_app($app, $i)
{
$j = $i % 2;
echo "<tr class=row{$j}>\n <td>Name: {$app->name}<br>\n Short name: {$app->short_name}<br>\n Description: {$app->description}<br>\n Created: " . date_str($app->create_time) . "\n </td>\n <td>\n ";
if ($app->hidden) {
show_button("bossa_admin.php?action=unhide&app_id={$app->id}", "Unhide", "Unhide this app");
} else {
show_button("bossa_admin.php?action=hide&app_id={$app->id}", "Hide", "Hide this app");
}
echo "<br>";
show_button("bossa_admin.php?action=show_batches&app_id={$app->id}", "Show batches", "Show batches");
}
开发者ID:maexlich,项目名称:boinc-igemathome,代码行数:12,代码来源:bossa_admin.php
示例5: show_course
function show_course($course)
{
$x = "<b>{$course->name}</b>\n\t\t\t<br>Description: {$course->description}\n\t\t\t<br>Created: " . date_str($course->create_time) . "\n\t";
$y = "<a href=bolt_map.php?course_id={$course->id}>Map</a>\n\t\t<br><a href=bolt_compare.php?course_id={$course->id}>Experiments</a>\n\t\t<br>\n\t";
row2_init($x, $y);
if ($course->hidden) {
show_button("bolt_admin.php?action=unhide&course_id={$course->id}", "Unhide", "Unhide this course");
} else {
show_button("bolt_admin.php?action=hide&course_id={$course->id}", "Hide", "Hide this course");
}
show_button("bolt_admin.php?action=clear_confirm&course_id={$course->id}", "Clear data", "Clear student data for this course");
echo "</td></tr>";
}
开发者ID:Turante,项目名称:boincweb,代码行数:13,代码来源:bolt_admin.php
示例6: handle_list
function handle_list()
{
page_head("Project-wide management functions");
echo "<h3>User permissions and quotas</h3>\n The following users are allowed to submit jobs.\n <p>\n ";
show_button("manage_project.php?action=add_form", "Add user", "Allow a new user to submit jobs");
$us = BoincUserSubmit::enum("");
start_table();
table_header("User", "Can submit jobs for", "Quota");
foreach ($us as $u) {
user_row($u);
}
end_table();
page_tail();
}
开发者ID:nicolas17,项目名称:boincgit-test,代码行数:14,代码来源:manage_project.php
示例7: handle_list
function handle_list()
{
page_head("Job submission access control");
echo "The following users are allowed to submit jobs.\n <p>\n ";
$us = BoincUserSubmit::enum("");
start_table();
table_header("User<br><p class=\"text-muted\">Click to change permissions or quota</p>", "Can submit jobs for", "Quota", "Max jobs in progress<br><p class=\"text-muted\">0 means no limit</p>", "Current priority<br><p class=\"text-muted\">Later time = lower priority</p>");
foreach ($us as $u) {
user_row($u);
}
end_table();
show_button("manage_project.php?action=add_form", "Add user", "Allow a new user to submit jobs");
page_tail();
}
开发者ID:CalvinZhu,项目名称:boinc,代码行数:14,代码来源:manage_project.php
示例8: show_snap_form
function show_snap_form()
{
global $course_id;
admin_page_head("Data snapshot");
$s = read_map_snapshot($course_id);
if ($s) {
$end = date_str($s->time);
echo "\n\t\t\tA data snapshot exists for the {$s->dur} days prior to {$end}.\n\t\t";
show_button("bolt_map.php?action=map&course_id={$course_id}", "Use this snapshot", "Use this snapshot");
} else {
echo "There is currently no snapshot.";
}
echo "\n\t\t<form action=bolt_map.php>\n\t\t<input type=hidden name=action value=snap_action>\n\t\t<input type=hidden name=course_id value={$course_id}>\n\t\tCreate a new snapshot using data from the last\n\t\t<input name=dur value=7> days.\n\t\t<input type=submit value=OK>\n\t\t</form>\n\t";
admin_page_tail();
}
开发者ID:Turante,项目名称:boincweb,代码行数:15,代码来源:bolt_map.php
示例9: show_nav
function show_nav()
{
$config = get_config();
$master_url = parse_config($config, "<master_url>");
$no_computing = parse_config($config, "<no_computing>");
$no_web_account_creation = parse_bool($config, "no_web_account_creation");
$disable_acct = parse_bool($config, "disable_account_creation");
echo "<div class=\"mainnav\">\n <h2 class=headline>About " . PROJECT . "</h2>\n ";
if ($no_computing) {
echo "\n XXX is a research project that uses volunteers\n to do research in XXX.\n ";
} else {
echo "\n XXX is a research project that uses Internet-connected\n computers to do research in XXX.\n You can participate by downloading and running a free program\n on your computer.\n ";
}
echo "\n <p>\n XXX is based at \n [describe your institution, with link to web page]\n <ul>\n <li> [Link to page describing your research in detail]\n <li> [Link to page listing project personnel, and an email address]\n </ul>\n <h2 class=headline>Participate</h2>\n <ul>\n ";
if ($no_computing) {
if (!$no_web_account_creation && !$disable_acct) {
echo "\n <li> <a href=\"create_account_form.php\">Create an account</a>\n ";
} else {
echo "<li> This project is not currently accepting new accounts.";
}
} else {
echo "\n <li><a href=\"info.php\">" . tra("Read our rules and policies") . "</a>\n ";
if (0) {
echo "<li>";
show_button("register.php", "Join", null, "btn btn-green");
} else {
echo "<li> <a href=http://boinc.berkeley.edu/download.php>Download</a> and run BOINC.\n <li> Choose Add Project\n ";
}
echo "\n <li> If you have any problems,\n <a target=\"_new\" href=\"http://boinc.berkeley.edu/wiki/BOINC_Help\">get help here</a>.\n ";
}
echo "\n </ul>\n\n <h2 class=headline>Returning participants</h2>\n <ul>\n <li><a href=\"home.php\">Your account</a> - view stats, modify preferences\n ";
if (!$no_computing) {
echo "\n <li><a href=server_status.php>Server status</a>\n <li><a href=\"cert1.php\">Certificate</a>\n <li><a href=\"apps.php\">" . tra("Applications") . "</a>\n ";
}
if (!DISABLE_TEAMS) {
echo "\n <li><a href=\"team.php\">Teams</a> - create or join a team\n ";
}
echo "\n </ul>\n <h2 class=headline>" . tra("Community") . "</h2>\n <ul>\n ";
if (!DISABLE_PROFILES) {
echo "\n <li><a href=\"profile_menu.php\">" . tra("Profiles") . "</a>\n ";
}
echo "\n <li><a href=\"user_search.php\">User search</a>\n <li><a href=ffmail_form.php>Share</a>\n ";
if (!DISABLE_FORUMS) {
echo "\n <li><a href=\"forum_index.php\">" . tra("Message boards") . "</a>\n <li><a href=\"forum_help_desk.php\">" . tra("Questions and Answers") . "</a>\n ";
}
echo "\n <li><a href=\"stats.php\">Statistics</a>\n <li><a href=language_select.php>Languages</a>\n </ul>\n </div>\n ";
}
开发者ID:WilliamStilte,项目名称:boinc,代码行数:47,代码来源:sample_index.php
示例10: do_inbox
function do_inbox($logged_in_user)
{
page_head(tra("Private messages") . ": " . tra("Inbox"));
make_script();
if (get_int("sent", true) == 1) {
echo "<div class=\"notice\">" . tra("Your message has been sent.") . "</div>\n";
}
$options = get_output_options($logged_in_user);
BoincNotify::delete_aux("userid={$logged_in_user->id} and type=" . NOTIFY_PM);
$msgs = BoincPrivateMessage::enum("userid={$logged_in_user->id} ORDER BY date DESC");
if (count($msgs) == 0) {
echo tra("You have no private messages.");
} else {
echo "<form name=msg_list action=pm.php method=post>\n <input type=hidden name=action value=delete_selected>\n ";
echo form_tokens($logged_in_user->authenticator);
start_table();
echo "<tr><th>" . tra("Subject") . "</th><th>" . tra("Sender and date") . "</th><th>" . tra("Message") . "</th></tr>\n";
$i = 0;
foreach ($msgs as $msg) {
$sender = BoincUser::lookup_id($msg->senderid);
if (!$sender) {
$msg->delete();
continue;
}
$i++;
$class = $i % 2 ? "row0" : "row1";
echo "<tr class={$class}>\n";
$checkbox = "<input type=checkbox name=pm_select_{$msg->id}>";
if (!$msg->opened) {
$msg->update("opened=1");
}
echo "<td valign=top> {$checkbox} {$msg->subject} </td>\n";
echo "<td valign=top>" . user_links($sender, BADGE_HEIGHT_SMALL);
show_block_link($msg->senderid);
echo "<br>" . time_str($msg->date) . "</td>\n";
echo "<td valign=top>" . output_transform($msg->content, $options) . "<p>";
$tokens = url_tokens($logged_in_user->authenticator);
show_button("pm.php?action=new&replyto={$msg->id}", tra("Reply"), tra("Reply to this message"));
show_button("pm.php?action=delete&id={$msg->id}&{$tokens}", tra("Delete"), tra("Delete this message"));
echo "</ul></td></tr>\n";
}
echo "\n <tr><td>\n <a href=\"javascript:set_all(1)\">" . tra("Select all") . "</a>\n |\n <a href=\"javascript:set_all(0)\">" . tra("Unselect all") . "</a>\n </td>\n <td colspan=2>\n <input class=\"btn btn-danger\" type=submit value=\"" . tra("Delete selected messages") . "\">\n </td></tr>\n ";
end_table();
echo "</form>\n";
}
page_tail();
}
开发者ID:gchilders,项目名称:boinc,代码行数:47,代码来源:pm.php
示例11: show_download_page
function show_download_page()
{
page_head("Download required software");
$config = get_config();
$need_vbox = parse_bool($config, "need_vbox");
$mcv = parse_config($config, "<min_core_client_version>");
$dlv = "BOINC";
$dl = "BOINC";
if ($mcv) {
$dlv .= " version " . version_string_maj_min_rel($mcv) . " or later";
}
$verb = "this is";
if ($need_vbox) {
$dl .= " and VirtualBox";
$dlv .= " and VirtualBox";
$verb = "these are";
}
echo "To participate in " . PROJECT . ", {$dlv} must be installed.\n <p>\n If {$verb} already installed, <a href=download.php?action=installed>click here</a>. Otherwise\n <p>\n ";
show_button("download.php?action=download", "Download {$dl}");
echo "<p>\n When the download is finished,\n open the downloaded file to install BOINC.\n ";
page_tail();
}
开发者ID:CalvinZhu,项目名称:boinc,代码行数:22,代码来源:download.php
示例12: elseif
<?php
if ($v['paixu'] !== 0) {
echo '否';
} else {
if ($v['info']['table_name'] != 'undefined') {
echo $v['info']['table_name'];
} elseif ($v['info']['qita'] != 'undefined') {
echo $v['info']['qita'];
}
}
?>
</td>
<td>
<?php
if ($v['paixu'] !== 0) {
echo show_button(array('class' => 'but2 but2s but2r', 'onclick' => "del('" . $v['id'] . "')", 'text' => '删除', 'level' => 'E0801'));
}
?>
</td>
</tr>
<?php
}
?>
</table>
</form>
<div class="pagebar clearfix">
<?php
echo $resource_list['pagebar']['pagecode'];
?>
</div>
</div>
开发者ID:cranefly,项目名称:crane,代码行数:31,代码来源:tpl_resource.php
示例13: get_logged_in_user
// either version 3 of the License, or (at your option) any later version.
//
// BOINC is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
// See the GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with BOINC. If not, see <http://www.gnu.org/licenses/>.
require_once "../inc/boinc_db.inc";
require_once "../inc/util.inc";
require_once "../inc/profile.inc";
$user = get_logged_in_user();
$cmd = get_str("cmd", true);
if ($cmd == "delete") {
$result = delete_profile($user);
if (!$result) {
error_page(tra("couldn't delete profile - please try again later"));
}
delete_user_pictures($user->id);
page_head(tra("Delete Confirmation"));
$user->update("has_profile=0");
echo tra("Your profile has been deleted.") . "<br>";
page_tail();
exit;
}
page_head(tra("Profile delete confirmation"));
echo "\n <h2>" . tra("Are you sure?") . "</h2><p>\n " . tra("Deleted profiles are gone forever and cannot be recovered --\nyou will have to start from scratch\nif you want another profile in the future.") . "\n <p>\n " . tra("If you're sure, click 'Yes'\nto remove your profile from our database.") . "\n <p>\n";
show_button("delete_profile.php?cmd=delete", tra("Yes"), tra("Delete my profile"));
show_button("index.php", tra("No"), tra("Do not delete my profile"));
page_tail();
开发者ID:nicolas17,项目名称:boincgit-test,代码行数:31,代码来源:delete_profile.php
示例14: show_button
echo $v;
?>
">没有还原数据库文件</span>
</div>
<?php
}
?>
<div style="clear:both;"></div>
<div style=" text-align:center;">
<input type="radio" name="RadioGroup2" id='dblistchkAll' onclick="C.form.check_all('.dblist');">
<label for="dblistchkAll">全选</label>
<input type="radio" name="RadioGroup2" id="dblistchkallno" onclick="C.form.check_all('.dblist');" checked>
<label for="dblistchkallno">不选</label>
<?php
echo show_button(array('class' => 'but2', 'onclick' => "backin('dbbak.php?m=backin')", 'text' => '导入数据', 'level' => 'E0902'));
?>
</div>
</div>
</form>
</div>
<div style="width:600px; margin:0 auto; padding:30px 0; text-align:center; overflow:hidden;font-size:12px;line-height:22px;height:22px;">
<iframe id="autobackiframe" name="autobackiframe" src="about:blank" width="100%" height="230" scrolling="" frameborder="0" style="overflow-x: hidden; overflow-y: auto; font-size:10px; "></iframe>
</div>
</div>
</div><!-- 右侧主体内容结束 -->
<?php
require_once dirname(__FILE__) . "/inc_footer.php";
?>
开发者ID:cranefly,项目名称:crane,代码行数:30,代码来源:tpl_dbbak.php
示例15: page_head
$team = BoincTeam::lookup_id($forum->category);
page_head('Team message board for <a href="team_display.php?teamid=$team->id">$team->name</a>');
show_forum_header($user);
show_team_forum_title($forum);
break;
}
?>
<form action="forum_forum.php" method="get">
<?php
echo start_table("noborder");
?>
<table width="100%">
<tr valign="top">
<td colspan="2">
<?php
show_button("forum_post.php?id={$id}", "New thread", "Add a new thread to this forum");
?>
</td>
<td class="right">
<input type="hidden" name="id" value="<?php
echo $forum->id;
?>
">
<?php
echo select_from_array("sort", $forum_sort_styles, $sort_style);
?>
<input type="submit" value="Sort">
</td>
</tr>
</table>
</form>
开发者ID:Turante,项目名称:boincweb,代码行数:31,代码来源:forum_forum.php
示例16: tpl__list
function tpl__list()
{
global $page;
?>
<div class="mt10">
<table class="tb" >
<tr>
<th width="80"><a href="javascript:void(0);" onClick="C.form.check_all('.infoff');">全选/反选</a></th>
<th align='center' width="50"> 排序</th>
<th align='center' width="200" >ID</th>
<th align='center' width="200" >关键字</th>
<th align='center' width="200" >关键字分组</th>
<th>搜索次数</th>
<th width="100"></th>
</tr>
<?php
foreach ($page['list'] as $k => $v) {
?>
<tr>
<td><input type="checkbox" class="cklist infoff" value="<?php
echo $v['keyword_id'];
?>
" /></td>
<td><input type="text" size="2" value="<?php
echo $v['qorder'];
?>
" class="porder" pid="<?php
echo $v['keyword_id'];
?>
" /></td>
<td><?php
echo $v['keyword_id'];
?>
</td>
<td><?php
echo $v['keyword'];
?>
</td>
<td><?php
echo $v['qgroup'];
?>
</td>
<td><?php
echo $v['qnum'];
?>
</td>
<td align="center" width="100">
<?php
echo show_button(array('class' => 'but2 but2s but2r', 'onclick' => "tags_del('" . $v['keyword_id'] . "');", 'text' => "删除", 'level' => 'H0702'));
echo show_button(array('class' => 'but2 but2s', 'href' => "tags.php?m=add&kid=" . $v['keyword_id'], 'text' => "编辑", 'level' => 'H0701'));
?>
</td>
</tr>
<?php
}
?>
</table>
<div class="pagebar clearfix"><?php
echo $page['pagebar']['pagecode'];
?>
</div>
</div>
<?php
}
开发者ID:cranefly,项目名称:crane,代码行数:66,代码来源:tpl_tags.php
示例17: html_cate_list
public function html_cate_list($tree = array(), $i = 0)
{
global $c_obj;
$i++;
foreach ($tree as $k => $t) {
//验证权限
//if(!check_admin_level($t['cate_id'])) continue;
$flag = '';
for ($j = 1; $j < $i; $j++) {
$flag .= ' ';
}
// 分类类型
$ctype = '<font color=red>目录分类</font>';
if ($c_obj->cate_last($t['cate_id']) == 0) {
$ctype = '<font color=#888>终极分类</font>';
}
if ($c_obj->cate_last($t['cate_id']) == 0 && $t['cdata'] > 0) {
$ctype = '<font color=green>文档分类</font>';
}
// 前缀图标
if (count($t['son']) > 0) {
$onclick = ' onclick="show_hidden_2(' . $t['cate_id'] . ',this)" style="cursor:pointer;" title="点击展开子分类"';
$flag .= '<img src="/css/back/pc/img/folder.png"' . $onclick . '> ';
} else {
$onclick = '';
if ($ctype == '<font color=#888>终极分类</font>') {
$flag .= '<img src="/css/back/pc/img/file.png"> ';
} else {
$flag .= '<img src="/css/back/pc/img/www_link.png"> ';
}
}
echo '<table class="tb tbcate"><tr>';
echo '<td class="col1"><input class="corder" pid="' . $t['cate_id'] . '" type="text" size="3" value="' . $t['corder'] . '"></td>';
echo '<td class="col2">' . $t['cate_id'] . '</td>';
echo '<td class="col3">' . "扩展模型" . '</td>';
echo '<td class="col4"><div style="float:left">' . $flag . '<b style="color:#666;"><a href="info.php?state=0&cate_id=' . $t['cate_id'] . '">' . $t['cname'] . '</a></b> ' . $ctype . ' ' . ($t['nav_show'] == 1 ? '导航显示' : '') . ' <font color=#ccc>' . ($t['go_url'] == '' ? $t['cname_py'] : $t['go_url']) . '</font> <font color=deeppink>' . (count($t['son']) > 0 ? count($t['son']) : '') . '</font></div></td>';
echo '<td class="col5">' . $t['tpl_index'] . '</td>';
echo '<td class="col5">' . $t['tpl_listvar'] . '</td>';
echo '<td class="col6">' . $t['tpl_content'] . '</td>';
echo '<td class="col7">' . $t['cdata'] . '</td>';
echo '<td class="col8">';
if ($c_obj->cate_last($t['cate_id']) == 1 && $c_obj->categories[$t['cate_id']]['cdata'] > 0) {
echo show_button(array('class' => 'but2 but2s', 'onclick' => 'javascript:void(0);', 'other' => 'style="background:#ccc;border-color:#ccc;color:#888;cursor:default;"', 'text' => '移动', 'level' => 'C0405'));
} else {
echo show_button(array('class' => 'but2 but2s', 'onclick' => "cate_move_show('{$t['cate_id']}','{$t['cname']}');", 'text' => '移动', 'level' => 'C0405'));
}
if ($t['cdata'] == 0) {
echo show_button(array('class' => 'but2 but2s but2r', 'onclick' => "cate_del('{$t['cate_id']}');", 'text' => '删除', 'level' => 'C0402'));
} else {
echo show_button(array('class' => 'but2 but2s', 'onclick' => "javascript:void(0);", 'text' => '删除', 'level' => 'C0402', 'other' => 'style="background:#ccc;border-color:#ccc;color:#888;cursor:default;"'));
}
echo show_button(array('class' => 'but2 but2s', 'href' => "category.php?m=clist&cid={$t['cate_id']}", 'text' => '修改', 'level' => 'C0401'));
if ($t['cdata'] == 0 || $this->cate_last($t['cate_id']) == 1) {
echo show_button(array('class' => 'but2 but2s but2o', 'href' => "category.php?m=clist&cid={$t['cate_id']}&act=add_son", 'text' => '添加子类', 'level' => 'C0401'));
} else {
echo show_button(array('class' => 'but2 but2s', 'onclick' => "javascript:void(0);", 'text' => '添加子类', 'level' => 'C0401', 'other' => 'style="background:#ccc;border-color:#ccc;color:#888;cursor:default;"'));
}
echo '</td>';
echo '</tr></table>' . chr(10);
if (is_array($t['son']) && count($t['son']) > 0) {
echo chr(10) . '<div id="cate_body_' . $t['cate_id'] . '" >' . chr(10);
$this->html_cate_list($t['son'], $i);
echo chr(10) . '</div>' . chr(10);
}
}
}
开发者ID:cranefly,项目名称:crane,代码行数:66,代码来源:category.model_old.php
示例18: show_button
<td width="100">Q Q:</td>
<td class="alignleft"><input class="ipt" id="qq" style="width:200px;" value=""> * QQ号必须填写正确</td>
</tr>
<tr>
<td width="100">电 话:</td>
<td><input type="text" id="tel" class="ipt" value="" style="width:200px;"> 联系人电话</td>
</tr>
<tr>
<td width="100">邮 箱:</td>
<td><input type="text" id="email" class="ipt" value="" style="width:200px;"> 联系人邮箱</td>
</tr>
<tr>
<td> </td>
<td>
<?php
echo show_button(array('class' => 'but2 ml5', 'onclick' => "getauth();", 'text' => '我要申请', 'level' => 'A0501'));
?>
</td>
</tr>
</table>
<?php
}
?>
</div>
</div>
<!-- 右侧主体内容结束 -->
<?php
require_once dirname(__FILE__) . "/inc_footer.php";
?>
</div><!-- 右侧区域结束 -->
开发者ID:cranefly,项目名称:crane,代码行数:31,代码来源:tpl_auth.php
示例19: show_button
echo $vv;
?>
</td>
<?php
$i++;
}
?>
<td>
<?php
echo show_button(array('class' => 'but2 but2s but2r', 'onclick' => "del('{$alone_id}','{$table}');", 'text' => '删除', 'level' => $table . "_02"));
if ($action == '通过') {
echo show_button(array('class' => 'but2 but2s but2o', 'onclick' => "edit_state('{$alone_id}','{$table}','1')", 'text' => '屏蔽', 'level' => $table . "_03"));
} else {
echo show_button(array('class' => 'but2 but2s but2o', 'onclick' => "edit_state('{$alone_id}','{$table}','0')", 'text' => '通过', 'level' => $table . "_03"));
}
echo show_button(array('class' => 'but2 but2s', 'onclick' => "edit('{$alone_id}','{$alone_field}','{$extern_id}','edit')", 'text' => '编辑', 'level' => $table . "_01"));
?>
</td>
</tr>
<?php
}
}
?>
</table>
</form>
<?php
if (isset($table_list['pagebar'])) {
?>
<!--分页码-->
<div class="pagebar clearfix">
<?php
开发者ID:cranefly,项目名称:crane,代码行数:31,代码来源:tpl_alone_table.php
示例20: get_int
// under the terms of the GNU Lesser General Public License
// as published by the Free Software Foundation,
// either version 3 of the License, or (at your option) any later version.
//
// BOINC is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
// See the GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with BOINC. If not, see <http://www.gnu.org/licenses/>.
// reset user's preferences to the defaults
require_once "../inc/util.inc";
require_once "../inc/prefs.inc";
$confirmed = get_int("confirmed", true);
$user = get_logged_in_user();
if (!$confirmed) {
page_head("Confirm reset preferences");
echo "\n You have requested restoring your computing preferences\n to the default settings.\n Your current preferences will be discarded.\n Do you really want to do this?\n <br>\n ";
show_button("prefs_default.php?confirmed=1", "Yes", "Restore default preferences");
show_button("prefs.php", "No", "Keep current preferences");
page_tail();
} else {
$prefs = default_prefs_global();
$retval = global_prefs_update($user, $prefs);
if ($retval) {
error_page("Couldn't restore default preferences.");
} else {
Header("Location: prefs.php?subset=global&defaults=1{$c}");
}
}
开发者ID:CalvinZhu,项目名称:boinc,代码行数:31,代码来源:prefs_default.php
注:本文中的show_button函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论