• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP print_link函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



在下文中一共展示了print_link函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: indexed_links

function indexed_links($total, $offset, $per_page)
{
    $separator = ' | ';
    // print "<<Prev" link
    print_link($offset == 1, '<< Prev', max(1, $offset - $per_page));
    // print all groupings except last one
    for ($start = 1, $end = $per_page; $end < $total; $start += $per_page, $end += $per_page) {
        print $separator;
        print_link($offset == $start, "{$start}-{$end}", $start);
    }
    /* print the last grouping -
     * at this point, $start points to the element at the beginning
     * of the last grouping
     */
    /* the text should only contain a range if there's more than
     * one element on the last page. For example, the last grouping
     * of 11 elements with 5 per page should just say "11", not "11-11"
     */
    $end = $total > $start ? "-{$total}" : '';
    print $separator;
    print_link($offset == $start, "{$start}{$end}", $start);
    // print "Next>>" link
    print $separator;
    print_link($offset == $start, 'Next >>', $offset + $per_page);
}
开发者ID:zmwebdev,项目名称:PHPcookbook-code-3ed,代码行数:25,代码来源:indexedlinks.php


示例2: print_menu

function print_menu($submenu_array, $current_menu)
{
    if (count($submenu_array) == 0) {
        return;
    }
    $links = array();
    $labels = array();
    foreach ($submenu_array as $submenu_item) {
        $pieces = preg_split('/\\s+/', $submenu_item, 2, PREG_SPLIT_NO_EMPTY);
        $links[] = $pieces[0];
        $labels[] = $pieces[1];
    }
    print_link($links[0], $labels[0], $current_menu, $links);
    if (count($links) > 1) {
        if (in_array($current_menu, $links)) {
            echo '<img src="images/dropdown_arrow_white.gif">';
        } else {
            echo '<img src="images/dropdown_arrow_white.gif" style="display:none;">';
            echo '<img src="images/dropdown_arrow_grey.gif">';
        }
    }
    array_shift($links);
    array_shift($labels);
    echo '</a>';
    if (count($links) > 0) {
        echo '<ul>';
        foreach ($links as $link) {
            $label = array_shift($labels);
            print_link($link, $label, $current_menu, array($link));
            echo '</a></li>';
        }
        echo '</ul>';
    }
    echo '</li>';
}
开发者ID:carriercomm,项目名称:Freeside,代码行数:35,代码来源:menu.php


示例3: indexed_links

function indexed_links($total, $offset, $per_page)
{
    $separator = '|';
    print_link($offset == 1, '<< Prev', max(1, $offset - $per_page));
    for ($start = 1, $end = $per_page; $end < $total; $start += $per_page, $end += $per_page) {
        print $separator;
        print_link($offset == $start, "{$start}-{$end}", $start);
    }
    //var_dump($start);
    $end = $total > $start ? "-{$total}" : '';
    print $separator;
    print_link($offset == $start, "{$start}{$end}", $start);
    print $separator;
    print_link($offset == $start, "Next>>", $offset + $per_page);
}
开发者ID:xiaobudongzhang,项目名称:lib,代码行数:15,代码来源:page.php


示例4: print_column_bugnotes_count

/**
 * Print column content for column bugnotes count
 *
 * @param BugData $p_bug bug object
 * @param int $p_columns_target see COLUMNS_TARGET_* in constant_inc.php
 * @return null
 * @access public
 */
function print_column_bugnotes_count($p_bug, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE)
{
    global $t_filter;
    # grab the bugnote count
    $t_bugnote_stats = bug_get_bugnote_stats($p_bug->id);
    if (NULL !== $t_bugnote_stats) {
        $bugnote_count = $t_bugnote_stats['count'];
        $v_bugnote_updated = $t_bugnote_stats['last_modified'];
    } else {
        $bugnote_count = 0;
    }
    echo '<td class="column-bugnotes-count">';
    if ($bugnote_count > 0) {
        $t_show_in_bold = $v_bugnote_updated > strtotime('-' . $t_filter[FILTER_PROPERTY_HIGHLIGHT_CHANGED] . ' hours');
        if ($t_show_in_bold) {
            echo '<span class="bold">';
        }
        print_link(string_get_bug_view_url($p_bug->id) . "&nbn={$bugnote_count}#bugnotes", $bugnote_count);
        if ($t_show_in_bold) {
            echo '</span>';
        }
    } else {
        echo '&#160;';
    }
    echo '</td>';
}
开发者ID:N0ctrnl,项目名称:mantisbt,代码行数:34,代码来源:columns_api.php


示例5: print_link

echo '<br>';
$container['body'] = '';
$container['url'] = 'mgu_create.php';
print_link($container, 'DL MGU Maps');
echo '<br>';
$container['body'] = '';
$container['url'] = 'mgu_create_new.php';
print_link($container, 'MGU Test');
echo '<br>';
$container['url'] = 'skeleton.php';
$container['body'] = 'album_edit.php';
print_link($container, 'Edit Photo');
echo '<br>';
echo '<a href="' . $URL . '/album/" target="_blank">Album</a><br><br>';
$container['body'] = 'bug_report.php';
print_link($container, 'Report a Bug');
echo '<br>';
$container['body'] = 'contact.php';
print_link($container, 'Contact Form');
echo '<br><br><b>';
if ($session->game_id > 0) {
    echo '<big>';
    $container['body'] = 'chat_rules.php';
    print_link($container, 'IRC Chat');
    echo '</big><br>';
}
echo '<a href="http://smrcnn.smrealms.de/viewtopic.php?t=3515/album/" target="_blank">User Policy</a><br>';
echo '<a href="http://smrcnn.smrealms.de/" target="_blank">WebBoard</a></b><br>';
$container['body'] = 'donation.php';
print_link($container, 'Donate');
开发者ID:smrealms,项目名称:smrv2.0,代码行数:30,代码来源:menue.php


示例6: while

print "</tr>";
print "<tr>";
print "<td>Turrets</td><td align=\"center\">" . $planet->construction[3] . "</td><td align=\"center\">" . $planet->accuracy() . " %</td>";
print "</tr>";
print "</table>";
print "<br />";
$db->query("SELECT * FROM player WHERE sector_id = {$player->sector_id} AND " . "game_id = " . SmrSession::$game_id . " AND " . "account_id != " . SmrSession::$old_account_id . " AND " . "land_on_planet = 'TRUE' " . "ORDER BY last_active DESC");
while ($db->next_record()) {
    $planet_player = new SMR_PLAYER($db->f("account_id"), SmrSession::$game_id);
    $container = array();
    $container["url"] = "planet_kick_processing.php";
    $container["account_id"] = $planet_player->account_id;
    print_form($container);
    $container = array();
    $container["url"] = "skeleton.php";
    $container["body"] = "trader_search_result.php";
    $container["player_id"] = $planet_player->player_id;
    print_link($container, "<span style=\"color:yellow;\">{$planet_player->player_name}</span>");
    print "&nbsp;";
    // should we be able to kick this player from our rock?
    if (($player->alliance_id != $planet_player->alliance_id || $player->alliance_id == 0) && $planet->owner_id == $player->account_id) {
        print_submit("Kick");
    }
    print "</form>";
}
if ($db->nf() > 0) {
    print "<br>";
}
print_form(create_container("planet_launch_processing.php", ""));
print_submit("Launch");
print "</form>";
开发者ID:smrealms,项目名称:smrv2.0,代码行数:31,代码来源:planet_main.php


示例7: lang_get

	</ul>
</div>

<div class="table-container">
	<h2><?php 
echo lang_get('manage_tags_link');
?>
 [<?php 
echo $t_total_tag_count;
?>
]</h2>
	<?php 
if ($t_can_edit) {
    ?>
	<div class="section-link"><?php 
    print_link('#tagcreate', lang_get('tag_create'));
    ?>
</div>
	<?php 
}
?>
	<table>
		<thead>
			<tr class="row-category">
				<td><?php 
echo lang_get('tag_name');
?>
</td>
				<td><?php 
echo lang_get('tag_creator');
?>
开发者ID:keetron,项目名称:mantisbt,代码行数:31,代码来源:manage_tags_page.php


示例8: print_link

    }
}
//this table contains the star system, and the minimap. The first row being for the system data
$error_str .= "\n\n<table width='100%' border='0'><tr><td>";
$error_str .= "\n<table border='0' cellspacing='1' cellpadding='3'>";
$error_str .= "\n<tr>\n<td bgcolor='#333333' colspan='2' nowrap><h4 id='systeme'>" . $cw['star_system'] . " #{$user['location']} - <b class='b1'>{$star['star_name']}</b> = ({$star['planetary_slots']} " . $cw['planetary_slots'] . ")</h4></td></tr>";
#warp links
$error_str .= "\n<tr><td bgcolor='#555555'><span class='liens_prl'>" . $cw['sauter_vers'] . "</span></td><td bgcolor=#333333>";
if ($user['location'] > 0 && $user['location'] <= $game_info['num_stars']) {
    //ensure user is in a system that exists.
    print_link($star['link_1']);
    print_link($star['link_2']);
    print_link($star['link_3']);
    print_link($star['link_4']);
    print_link($star['link_5']);
    print_link($star['link_6']);
    $error_str .= $auto_str . "</td>";
    // => autowarp
    if (!empty($star['wormhole'])) {
        $error_str .= "<td bgcolor=#555555>" . $cw['wormhole'] . "</td><td bgcolor=#333333>&lt;<a href='location.php?toloc={$star['wormhole']}'>{$star['wormhole']}</a>&gt;</td>";
    }
} else {
    //user not in a system that exists, so make a link to system 1.
    $error_str .= "&lt;<a href='location.php?toloc=1'>1</a>&gt; ";
}
$error_str .= "</tr>";
#end warp links
#autowarp
if (!empty($auto_link)) {
    if (preg_match("/[0-9]/", $sys_to_go)) {
        //only put the '-' in when more than 1 jump left.
开发者ID:nilsine,项目名称:Astra-Vires,代码行数:31,代码来源:location.php


示例9: get_file_loc

include get_file_loc('menue.inc');
print_galactic_post_menue();
$db->query("SELECT * FROM galactic_post_applications WHERE game_id = {$player->game_id}");
if ($db->nf()) {
    print "You have received an application from the following players (click name to view description)<br>";
    print "Becareful when choosing your writters.  Make sure it is someone who will actually help you.<br><br>";
} else {
    print "You have no applications to view at the current time.";
}
while ($db->next_record()) {
    $appliee = new SMR_PLAYER($db->f("account_id"), $player->game_id);
    $container = array();
    $container["url"] = "skeleton.php";
    $container["body"] = "galactic_post_view_applications.php";
    $container["id"] = $appliee->account_id;
    print_link($container, "<font color=yellow>{$appliee->player_name}</font>");
    print " who has ";
    if ($db->f("written_before") == "YES") {
        print "written for some kind of a newspaper before.";
    } else {
        print "not written for a newspaper before.";
    }
    print "<br>";
}
print "<br><br>";
if (isset($var["id"])) {
    $db->query("SELECT * FROM galactic_post_applications WHERE game_id = {$player->game_id} AND account_id = {$var['id']}");
    $db->next_record();
    $desc = stripslashes($db->f("description"));
    $applie = new SMR_PLAYER($var["id"], $player->game_id);
    print "Name : {$applie->player_name}<br>";
开发者ID:smrealms,项目名称:smrv2.0,代码行数:31,代码来源:galactic_post_view_applications.php


示例10: foreach

<table class="width75" cellspacing="0">
<?php 
$t_column_count = 0;
$t_max_column_count = 2;
foreach ($t_query_arr as $t_id => $t_name) {
    if ($t_column_count == 0) {
        print '<tr>';
    }
    print '<td>';
    if (OFF != $t_rss_enabled) {
        # Use the "new" RSS link style.
        print_rss(rss_get_issues_feed_url(null, null, $t_id), lang_get('rss'));
        echo ' ';
    }
    $t_query_id = (int) $t_id;
    print_link('view_all_set.php?type=3&source_query_id=' . $t_query_id, $t_name);
    if (filter_db_can_delete_filter($t_id)) {
        echo ' ';
        print_button('query_delete_page.php?source_query_id=' . $t_query_id, lang_get('delete_query'));
    }
    print '</td>';
    $t_column_count++;
    if ($t_column_count == $t_max_column_count) {
        print '</tr>';
        $t_column_count = 0;
    }
}
# Tidy up this row
if ($t_column_count > 0 && $t_column_count < $t_max_column_count) {
    for ($i = $t_column_count; $i < $t_max_column_count; $i++) {
        print '<td>&#160;</td>';
开发者ID:gtn,项目名称:mantisbt,代码行数:31,代码来源:query_view_page.php


示例11: print_link

    print_link($container, $curr_player->get_colored_name());
    print "</td>";
    print "<td valign=\"top\"";
    if ($player->account_id == $curr_player->account_id) {
        print " style=\"font-weight:bold;\"";
    }
    print ">{$curr_player->race_name}</td>";
    print "<td valign=\"top\"";
    if ($player->account_id == $curr_player->account_id) {
        print " style=\"font-weight:bold;\"";
    }
    print ">";
    if ($curr_player->alliance_id > 0) {
        $container = array();
        $container["url"] = "skeleton.php";
        $container["body"] = "alliance_roster.php";
        $container["alliance_id"] = $curr_player->alliance_id;
        print_link($container, "{$curr_player->alliance_name}");
    } else {
        print "(none)";
    }
    print "</td>";
    print "<td valign=\"top\" align=\"right\"";
    if ($player->account_id == $curr_player->account_id) {
        print " style=\"font-weight:bold;\"";
    }
    print ">" . number_format($curr_player->deaths) . "</td>";
    print "</tr>";
}
print "</table>";
print "</div>";
开发者ID:smrealms,项目名称:smrv2.0,代码行数:31,代码来源:rankings_player_death.php


示例12: config_get

$t_rss_enabled = config_get('rss_enabled');
if (OFF != $t_rss_enabled && news_is_enabled()) {
    $t_rss_link = rss_get_news_feed_url($t_project_id);
    html_set_rss_link($t_rss_link);
}
html_page_top(lang_get('main_link'));
if (!current_user_is_anonymous()) {
    $t_current_user_id = auth_get_current_user_id();
    $t_hide_status = config_get('bug_resolved_status_threshold');
    echo '<div class="quick-summary-left">';
    echo lang_get('open_and_assigned_to_me_label') . lang_get('word_separator');
    print_link("view_all_set.php?type=1&handler_id={$t_current_user_id}&hide_status={$t_hide_status}", current_user_get_assigned_open_bug_count(), false, 'subtle');
    echo '</div>';
    echo '<div class="quick-summary-right">';
    echo lang_get('open_and_reported_to_me_label') . lang_get('word_separator');
    print_link("view_all_set.php?type=1&reporter_id={$t_current_user_id}&hide_status={$t_hide_status}", current_user_get_reported_open_bug_count(), false, 'subtle');
    echo '</div>';
    echo '<div class="quick-summary-left">';
    echo lang_get('last_visit_label') . lang_get('word_separator');
    echo date(config_get('normal_date_format'), current_user_get_field('last_visit'));
    echo '</div>';
}
if (news_is_enabled()) {
    $t_news_rows = news_get_limited_rows($f_offset, $t_project_id);
    $t_news_count = count($t_news_rows);
    if ($t_news_count) {
        echo '<div id="news-items">';
        # Loop through results
        for ($i = 0; $i < $t_news_count; $i++) {
            $t_row = $t_news_rows[$i];
            # only show VS_PRIVATE posts to configured threshold and above
开发者ID:N0ctrnl,项目名称:mantisbt,代码行数:31,代码来源:main_page.php


示例13: make_bug_link

?>
,
   <?php 
print make_bug_link('Documentation', 'report', '<strong>Documentation</strong>');
?>
 or
   <?php 
print make_bug_link('Bug System', 'report', '<strong>Bug&nbsp;System</strong>');
?>
.
   Do be aware that this &quot;Bug System&quot; link is
   <strong>only</strong> for reporting issues with the
   <strong>user interface</strong> for reporting, searching and
   editing the bugs, so is <strong>not</strong> for reporting bugs
   about packages or other parts of the website.
  </li>
</ul>

<p>
You may find the
<?php 
print_link('https://bugs.php.net/stats.php', 'Bug Statistics');
?>
 page interesting.
</p>

<?php 
response_footer();
?>

开发者ID:phpsource,项目名称:web-pecl,代码行数:29,代码来源:index.php


示例14: foreach

<table class="width75" cellspacing="0">
<?php 
$t_column_count = 0;
$t_max_column_count = 2;
foreach ($t_query_arr as $t_id => $t_name) {
    if ($t_column_count == 0) {
        print '<tr>';
    }
    print '<td>';
    if (OFF != $t_rss_enabled) {
        # Use the "new" RSS link style.
        print_rss(rss_get_issues_feed_url(null, null, $t_id), lang_get('rss'));
        echo ' ';
    }
    $t_query_id = db_prepare_int($t_id);
    print_link("view_all_set.php?type=3&source_query_id={$t_query_id}", $t_name);
    if (filter_db_can_delete_filter($t_id)) {
        echo ' ';
        print_button("query_delete_page.php?source_query_id={$t_query_id}", lang_get('delete_query'));
    }
    print '</td>';
    $t_column_count++;
    if ($t_column_count == $t_max_column_count) {
        print '</tr>';
        $t_column_count = 0;
    }
}
# Tidy up this row
if ($t_column_count > 0 && $t_column_count < $t_max_column_count) {
    for ($i = $t_column_count; $i < $t_max_column_count; $i++) {
        print '<td>&#160;</td>';
开发者ID:Kirill,项目名称:mantisbt,代码行数:31,代码来源:query_view_page.php


示例15: printf

?>

<P>This list is used for general questions and discussion of hwloc.
Please see the "<a href="<?php 
printf("{$topdir}/community/help/");
?>
">Getting Help</a>" page for details on submitting requests for
help.  <?php 
red("Subscribers");
?>
 can post questions, comments,
suspected bug reports, etc. to the list at the following address:</p>

<?php 
print_list("hwloc-devel");
?>

<?php 
print_link("Git commit list (<font color=red>USERS\nCANNOT POST TO THIS LIST</font>)", "hwloc-commits");
?>

<p>A mail is sent to this list for every git push to Github in the
hwloc code base.  The mail includes a list of files that were changed,
the developer's commit message, and a diff of the changes.  <strong>Only the
automated Github web hook post to this list;</strong> all other posts
are automatically discarded.

</UL>

<?php 
include_once "{$topdir}/includes/footer.inc";
开发者ID:nrgraham23,项目名称:ompi-www,代码行数:31,代码来源:hwloc.php


示例16: create_recurrent_invoices

        } else {
            $invs[] = create_recurrent_invoices($myrow['debtor_no'], $myrow['group_no'], $myrow['order_no'], $myrow['id'], $date, $from, $to);
        }
        if (count($invs) > 0) {
            $min = min($invs);
            $max = max($invs);
        } else {
            $min = $max = 0;
        }
        display_notification(sprintf(_("%s recurrent invoice(s) created, # %s - # %s."), count($invs), $min, $max));
        if (count($invs) > 0) {
            $ar = array('PARAM_0' => $min . "-" . ST_SALESINVOICE, 'PARAM_1' => $max . "-" . ST_SALESINVOICE, 'PARAM_2' => "", 'PARAM_3' => 0, 'PARAM_4' => 0, 'PARAM_5' => "", 'PARAM_6' => $def_print_orientation);
            display_note(print_link(sprintf(_("&Print Recurrent Invoices # %s - # %s"), $min, $max), 107, $ar), 0, 1);
            $ar['PARAM_3'] = 1;
            // email
            display_note(print_link(sprintf(_("&Email Recurrent Invoices # %s - # %s"), $min, $max), 107, $ar), 0, 1);
        }
    } else {
        display_error(_("The entered date is not in fiscal year."));
    }
}
$result = get_recurrent_invoices();
start_form();
start_table(TABLESTYLE_NOBORDER);
start_row();
date_cells(_("Invoice date:"), 'date', '');
end_row();
end_table();
start_table(TABLESTYLE, "width=70%");
$th = array(_("Description"), _("Template No"), _("Customer"), _("Branch") . "/" . _("Group"), _("Days"), _("Monthly"), _("Begin"), _("End"), _("Last Created"), "");
table_header($th);
开发者ID:knjy24,项目名称:FrontAccounting,代码行数:31,代码来源:create_recurrent_invoices.php


示例17: array

    print "<td align=center{$bold}>" . $rank++ . "</td>";
    //link to stat page
    $container = array();
    $container["url"] = "skeleton.php";
    $container["body"] = "hall_of_fame_player_detail.php";
    $container["acc_id"] = $db->f("account_id");
    if (isset($game_id)) {
        $container["game_id"] = $game_id;
        $container["sending_page"] = 'current_hof';
    } else {
        $container["game_id"] = $player->game_id;
        $container["sending_page"] = 'hof';
    }
    print "<td align=center{$bold}>";
    $hof_name = stripslashes($this_acc->HoF_name);
    print_link($container, "{$hof_name}");
    print "</td>";
    if ($cat == "Turns Since Last Death") {
        print "<td align=center{$bold}>" . $db->f("amount") . "</td>";
    } else {
        print "<td align=center{$bold}>" . $db->f("amount") . "</td>";
    }
    print "</tr>";
}
//our rank goes here if we aren't shown...first get our value
if (isset($past)) {
    $db = new SMR_HISTORY_DB();
}
if ($cat == "<b>Money Donated to SMR</b>") {
    $db->query("SELECT account_id, sum(amount) as amount FROM account_donated " . "WHERE account_id = " . SmrSession::$old_account_id . " GROUP BY account_id");
} else {
开发者ID:smrealms,项目名称:smrv2.0,代码行数:31,代码来源:hall_of_fame_new_detail.php


示例18: commonFooter

function commonFooter($padding = true)
{
    global $RIGHT_SIDEBAR_DATA;
    if ($padding) {
        print "<br />";
    }
    ?>
      </td>
     </tr>
    </table>
   </td>
   <?php 
    if (isset($RIGHT_SIDEBAR_DATA)) {
        ?>
   <td bgcolor="#CCCCCC" style="background-image: url(/gifs/checkerboard.gif)"><?php 
        spacer(1, 1);
        ?>
<br /></td>
   <td width="170" bgcolor="#F0F0F0">
    <table width="100%" cellpadding="4" cellspacing="0">
     <tr valign="top">
      <td class="sidebar">
       <?php 
        echo $RIGHT_SIDEBAR_DATA;
        ?>
      </td>
     </tr>
    </table>
   </td>
   <?php 
    }
    ?>
  </tr>
 </table>

 <table border="0" cellspacing="0" cellpadding="0" width="100%">
  <tr bgcolor="#000033"><td><?php 
    spacer(1, 1);
    ?>
<br /></td></tr>
  <tr bgcolor="#006699">
   <td align="right" valign="bottom">
    <?php 
    //print_link('/source.php?url='.$_SERVER['SCRIPT_NAME'], 'show source', false, 'class="menuWhite"');
    //echo delim();
    print_link('/credits.php', 'credits', false, 'class="menuWhite"');
    ?>
&nbsp;<br />
   </td>
  </tr>
  <tr bgcolor="#000033"><td><?php 
    spacer(1, 1);
    ?>
<br /></td></tr>
 </table>

 <table border="0" cellspacing="0" cellpadding="6" width="100%">
  <tr valign="top" bgcolor="#CCCCCC">
   <td>
    <small>
     <?php 
    print_link('http://www.php.net/', make_image('php-logo.gif', 'PHP', 'left'));
    ?>
     &nbsp;<?php 
    print_link('/copyright.php', 'Copyright &copy; 2001-' . date('Y') . ' The PHP Group');
    ?>
<br />
     &nbsp;All rights reserved.<br />
    </small>
   </td>
   <td align="right">
    <small>
     Last updated: <?php 
    echo strftime("%c %Z", getlastmod());
    ?>
<br />
    </small>
    <br />
   </td>
  </tr>
 </table>
</body>
</html>
<?php 
}
开发者ID:marcosptf,项目名称:web-gtk,代码行数:85,代码来源:layout.php


示例19: print_link

            print_link($container, $alliance);
            print "</td><td align=center>{$exp}</td></tr>";
        }
        print "</table>";
    }
    print "\n\t</td>\n\t<td valign=top align=center>";
    $rank = 0;
    //now for the alliance stuff
    $db2->query("SELECT kills, alliance_name, alliance_id FROM alliance WHERE game_id = {$game_id} ORDER BY kills DESC LIMIT 10");
    if ($db2->nf()) {
        print "<table><tr><th align=center>Rank</th><th align=center>Alliance</th><th align=center>Kills</th></tr>";
        $container = array();
        $container["url"] = "skeleton.php";
        $container["body"] = "alliance_detail_old.php";
        $container["game_id"] = $game_id;
        while ($db2->next_record()) {
            $kill = $db2->f("kills");
            $alliance = stripslashes($db2->f("alliance_name"));
            $id = $db2->f("alliance_id");
            $container["alliance_id"] = $id;
            print "<tr><td align=center>" . ++$rank . "</td><td align=center>";
            print_link($container, $alliance);
            print "</td><td align=center>{$kill}</td></tr>";
        }
        print "</table>";
    }
    print "\n\t</td>\n\t</tr>\n\t</table><br>";
}
print "</div>";
//to stop errors on the following scripts
$db = new SmrMySqlDatabase();
开发者ID:smrealms,项目名称:smrv2.0,代码行数:31,代码来源:games_previous.php


示例20: array

 echo '<input class="center" type="text" name="maxValue" size="3" value="' . $maxValue . '">';
 echo '</td><td>';
 echo $form['submit'];
 echo '</td></tr></table></form>';
 echo '<table cellspacing="0" cellpadding="0"class="standard inset"><tr><th>#</th><th>Date</th><th>Trader</th><th>Withdrawal</th><th>&nbsp;&nbsp;Deposit&nbsp;&nbsp</th></tr>';
 $container = array();
 $container["url"] = "skeleton.php";
 $container["body"] = "trader_search_result.php";
 while ($db->next_record()) {
     echo '<tr><td class="shrink center">';
     echo $db->f('transaction_id');
     echo '</td><td class="shrink center nowrap">';
     echo date('n/j/Y\\<b\\r /\\>g:i:s A', $db->f('time'));
     echo '</td><td>';
     $container["player_id"] = $db->f('player_id');
     print_link($container, get_colored_text($db->f('alignment'), stripslashes($db->f('player_name'))));
     echo '</td><td class="shrink right">';
     if ($db->f('transaction') == 'Payment') {
         echo number_format($db->f('amount'));
     } else {
         echo '&nbsp;';
     }
     echo '</td><td class="shrink right">';
     if ($db->f('transaction') == 'Deposit') {
         print number_format($db->f('amount'));
     } else {
         echo '&nbsp;';
     }
     echo '</td></tr>';
 }
 echo '<tr>';
开发者ID:smrealms,项目名称:smrv2.0,代码行数:31,代码来源:bank_anon.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP print_liste_field_titre函数代码示例发布时间:2022-05-15
下一篇:
PHP print_line函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap