当前位置: 首页>>代码示例>>PHP>>正文


PHP show_button函数代码示例

本文整理汇总了PHP中show_button函数的典型用法代码示例。如果您正苦于以下问题:PHP show_button函数的具体用法?PHP show_button怎么用?PHP show_button使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了show_button函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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}&amp;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&amp;replyto={$msg->id}", tra("Reply"), tra("Reply to this message"));
            show_button("pm.php?action=delete&amp;id={$msg->id}&amp;{$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>&nbsp;&nbsp;
						<?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


注:本文中的show_button函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。