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); }
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>'; }
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); }
/** * 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 ' '; } echo '</td>'; }
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');
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 " "; // 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>";
</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'); ?>
} } //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><<a href='location.php?toloc={$star['wormhole']}'>{$star['wormhole']}</a>></td>"; } } else { //user not in a system that exists, so make a link to system 1. $error_str .= "<<a href='location.php?toloc=1'>1</a>> "; } $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.
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>";
<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> </td>';
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>";
$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
?> , <?php print make_bug_link('Documentation', 'report', '<strong>Documentation</strong>'); ?> or <?php print make_bug_link('Bug System', 'report', '<strong>Bug System</strong>'); ?> . Do be aware that this "Bug System" 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(); ?>
<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> </td>';
?> <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";
} 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);
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 {
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"'); ?> <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')); ?> <?php print_link('/copyright.php', 'Copyright © 2001-' . date('Y') . ' The PHP Group'); ?> <br /> 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 }
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();
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> Deposit  </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 ' '; } echo '</td><td class="shrink right">'; if ($db->f('transaction') == 'Deposit') { print number_format($db->f('amount')); } else { echo ' '; } echo '</td></tr>'; } echo '<tr>';
/** * add the blog post meta footer content * @since 3.1.3 */ function cp_blog_post_meta_footer() { global $post, $cp_options; if (!is_singular(array('post', APP_POST_TYPE))) { return; } ?> <div class="prdetails"> <?php if (is_singular('post')) { ?> <p class="tags"><?php if (get_the_tags()) { echo the_tags('', ' ', ''); } else { _e('No Tags', APP_TD); } ?> </p> <?php } else { ?> <p class="tags"><?php if (get_the_term_list($post->ID, APP_TAX_TAG)) { echo get_the_term_list($post->ID, APP_TAX_TAG, '', ' ', ''); } else { _e('No Tags', APP_TD); } ?> </p> <?php } ?> <?php if ($cp_options->ad_stats_all && current_theme_supports('app-stats')) { ?> <p class="stats"><?php appthemes_stats_counter($post->ID); ?> </p> <?php } ?> <p class="print"><?php if (function_exists('wp_email')) { email_link(); } ?> <?php if (function_exists('wp_print')) { print_link(); } ?> </p> <?php cp_edit_ad_link(); ?> </div> <?php }
function print_link_shortcode($atts) { if (!is_feed()) { return print_link('', '', false); } else { return __('Note: There is a print link embedded within this post, please visit this post to print it.', 'wp-print'); } }
} elseif ($out) { print " style=\"color:red;\""; } print ">{$rank}</td>"; print "<td valign=\"top\""; if ($player->alliance_id == $id) { print " style=\"font-weight:bold;\""; } elseif ($out) { print " style=\"color:red;\""; } print ">"; $container = create_container('skeleton.php', 'alliance_roster.php'); $container["alliance_id"] = $id; if ($out) { print $currAllianceName; } else { print_link($container, $currAllianceName); } print "</td>"; print "<td valign=\"top\" align=\"right\""; if ($player->alliance_id == $id) { print " style=\"font-weight:bold;\""; } if ($out) { print " style=\"color:red;\""; } print ">" . number_format($numKills) . "</td>"; print "</tr>"; } print "</table>"; print "</div>";
/** * add the blog post meta footer content * @since 3.1.3 */ function cp_blog_post_meta_footer() { if (!is_singular(array('post', APP_POST_TYPE))) { return; } global $post; ?> <div class="prdetails"> <?php if (is_singular('post')) { ?> <p class="tags"><?php if (get_the_tags()) { echo the_tags('', ' ', ''); } else { _e('No Tags', APP_TD); } ?> </p> <?php } else { ?> <p class="tags"><?php if (get_the_term_list($post->ID, APP_TAX_TAG)) { echo get_the_term_list($post->ID, APP_TAX_TAG, '', ' ', ''); } else { _e('No Tags', APP_TD); } ?> </p> <?php } ?> <?php if (get_option('cp_ad_stats_all') == 'yes') { ?> <p class="stats"><?php appthemes_stats_counter($post->ID); ?> </p> <?php } ?> <p class="print"><?php if (function_exists('wp_email')) { email_link(); } ?> <?php if (function_exists('wp_print')) { print_link(); } ?> </p> <?php cp_edit_ad_link(); ?> </div> <?php if (function_exists('selfserv_sexy')) { selfserv_sexy(); } }
function print_bug_attachments_list($p_bug_id) { $t_attachments = file_get_visible_attachments($p_bug_id); $t_attachments_count = count($t_attachments); $i = 0; $image_previewed = false; foreach ($t_attachments as $t_attachment) { $t_file_display_name = string_display_line($t_attachment['display_name']); $t_filesize = number_format($t_attachment['size']); $t_date_added = date(config_get('normal_date_format'), $t_attachment['date_added']); if ($image_previewed) { $image_previewed = false; echo '<br />'; } if ($t_attachment['can_download']) { $t_href_start = '<a href="' . string_attribute($t_attachment['download_url']) . '">'; $t_href_end = '</a>'; $t_href_clicket = " [<a href=\"file_download.php?file_id={$t_attachment['id']}&type=bug\" target=\"_blank\">^</a>]"; } else { $t_href_start = ''; $t_href_end = ''; $t_href_clicket = ''; } if (!$t_attachment['exists']) { print_file_icon($t_file_display_name); echo ' <span class="strike">' . $t_file_display_name . '</span>' . lang_get('word_separator') . '(' . lang_get('attachment_missing') . ')'; } else { echo $t_href_start; print_file_icon($t_file_display_name); echo $t_href_end . ' ' . $t_href_start . $t_file_display_name . $t_href_end . $t_href_clicket . ' (' . $t_filesize . ' ' . lang_get('bytes') . ') ' . '<span class="italic">' . $t_date_added . '</span>'; } if ($t_attachment['can_delete']) { echo ' ['; print_link('bug_file_delete.php?file_id=' . $t_attachment['id'] . form_security_param('bug_file_delete'), lang_get('delete_link'), false, 'small'); echo ']'; } if ($t_attachment['exists']) { if (FTP == config_get('file_upload_method') && $t_attachment['exists']) { echo ' (' . lang_get('cached') . ')'; } if ($t_attachment['preview'] && $t_attachment['type'] == 'text') { $c_id = db_prepare_int($t_attachment['id']); $t_bug_file_table = db_get_table('mantis_bug_file_table'); echo "<script type=\"text/javascript\" language=\"JavaScript\">\n<!--\nfunction swap_content( span ) {\ndisplayType = ( document.getElementById( span ).style.display == 'none' ) ? '' : 'none';\ndocument.getElementById( span ).style.display = displayType;\n}\n\n -->\n </script>"; echo " <span id=\"hideSection_{$c_id}\">[<a class=\"small\" href='#' id='attmlink_" . $c_id . "' onclick='swap_content(\"hideSection_" . $c_id . "\");swap_content(\"showSection_" . $c_id . "\");return false;'>" . lang_get('show_content') . "</a>]</span>"; echo " <span style='display:none' id=\"showSection_{$c_id}\">[<a class=\"small\" href='#' id='attmlink_" . $c_id . "' onclick='swap_content(\"hideSection_" . $c_id . "\");swap_content(\"showSection_" . $c_id . "\");return false;'>" . lang_get('hide_content') . "</a>]"; echo "<pre>"; /** @todo Refactor into a method that gets contents for download / preview. */ switch (config_get('file_upload_method')) { case DISK: if ($t_attachment['exists']) { $v_content = file_get_contents($t_attachment['diskfile']); } break; case FTP: if (file_exists($t_attachment['exists'])) { file_get_contents($t_attachment['diskfile']); } else { $ftp = file_ftp_connect(); file_ftp_get($ftp, $t_attachment['diskfile'], $t_attachment['diskfile']); file_ftp_disconnect($ftp); $v_content = file_get_contents($t_attachment['diskfile']); } break; default: $query = "SELECT *\n\t \t\t\t\t\tFROM {$t_bug_file_table}\n\t\t\t\t \t\t\tWHERE id=" . db_param(); $result = db_query_bound($query, array($c_id)); $row = db_fetch_array($result); $v_content = $row['content']; } echo htmlspecialchars($v_content); echo "</pre></span>\n"; } if ($t_attachment['can_download'] && $t_attachment['preview'] && $t_attachment['type'] == 'image') { $t_preview_style = 'border: 0;'; $t_max_width = config_get('preview_max_width'); if ($t_max_width > 0) { $t_preview_style .= ' max-width:' . $t_max_width . 'px;'; } $t_max_height = config_get('preview_max_height'); if ($t_max_height > 0) { $t_preview_style .= ' max-height:' . $t_max_height . 'px;'; } $t_preview_style = 'style="' . $t_preview_style . '"'; $t_title = file_get_field($t_attachment['id'], 'title'); $t_image_url = $t_attachment['download_url'] . '&show_inline=1' . form_security_param('file_show_inline'); echo "\n<br />{$t_href_start}<img alt=\"{$t_title}\" {$t_preview_style} src=\"{$t_image_url}\" />{$t_href_end}"; $image_previewed = true; } } if ($i != $t_attachments_count - 1) { echo "<br />\n"; $i++; } } }
<!-- noticias --> <div class="col-sm-8"> <div class="news-preview"> <?php /*$args = array( 'posts_per_page' => 10, 'post_type' => 'post' ); $items = get_posts( $args );*/ foreach ($posts as $item) { $img = get_blog_image($item, 'medium'); ?> <article class="fadeIn"> <a href="<?php print_link($item); ?> "> <div class="row"> <!-- image --> <div class="col-sm-6"> <figure style="background-image:url(<?php echo $img; ?> )"></figure> </div> <!-- content --> <div class="col-sm-6"> <h1><?php print_title($item); ?>
/** * Prints a single textual line of information about an attachment including download link, file * size and upload timestamp. * @param array $p_attachment An attachment arrray from within the array returned by the file_get_visible_attachments() function */ function print_bug_attachment_header($p_attachment) { echo "\n"; if ($p_attachment['exists']) { if ($p_attachment['can_download']) { echo '<a href="' . string_attribute($p_attachment['download_url']) . '">'; } print_file_icon($p_attachment['display_name']); if ($p_attachment['can_download']) { echo '</a>'; } echo lang_get('word_separator'); if ($p_attachment['can_download']) { echo '<a href="' . string_attribute($p_attachment['download_url']) . '">'; } echo string_display_line($p_attachment['display_name']); if ($p_attachment['can_download']) { echo '</a>'; } echo lang_get('word_separator') . '(' . number_format($p_attachment['size']) . lang_get('word_separator') . lang_get('bytes') . ')'; echo lang_get('word_separator') . '<span class="italic">' . date(config_get('normal_date_format'), $p_attachment['date_added']) . '</span>'; } else { print_file_icon($p_attachment['display_name']); echo lang_get('word_separator') . '<span class="strike">' . string_display_line($p_attachment['display_name']) . '</span>' . lang_get('word_separator') . '(' . lang_get('attachment_missing') . ')'; } if ($p_attachment['can_delete']) { echo lang_get('word_separator') . '['; print_link('bug_file_delete.php?file_id=' . $p_attachment['id'] . form_security_param('bug_file_delete'), lang_get('delete_link'), false, 'small'); echo ']'; } if ($p_attachment['exists']) { if (config_get('file_upload_method') == FTP) { echo lang_get('word_separator') . '(' . lang_get('cached') . ')'; } } }
function mystique_page() { global $post, $id, $comment; $tags = get_the_tags(); $comment_count = mystique_comment_count('comments'); do_action('mystique_before_page'); ?> <!-- post --> <div class="<?php mystique_post_class("clear-block"); ?> "> <?php $hide_title = get_post_meta($post->ID, 'hide_title', true); if (!$hide_title) { ?> <h1 class="title"> <?php the_title(); ?> </h1> <?php } the_content(); wp_link_pages(array('before' => '<p><strong>' . __("Pages: ", "mystique") . '</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); if (function_exists('wp_print')) { ?> <div class="alignright"><?php print_link(); ?> </div><?php } edit_post_link(__('Edit this page', 'mystique')); ?> </div> <!-- /post --> <?php do_action('mystique_after_page'); }
the_time('F j, Y'); ?> <span class="dot">⋅</span> <?php if (function_exists('wp_email')) { ?> <?php email_link(); ?> <span class="dot">⋅</span> <?php } ?> <?php if (function_exists('wp_print')) { ?> <?php print_link(); ?> <span class="dot">⋅</span> <?php } ?> <a href="#comments">Post a comment</a> </div> <div class="post_meta"> <?php the_tags('<span class="filedunder"><strong>Filed Under</strong></span> ', ', ', ''); ?> </div> <div class="post_text">
$js .= get_js_date_picker(); } page(_($help_context = "Produce or Unassemble Finished Items From Work Order"), false, false, "", $js); if (isset($_GET['trans_no']) && $_GET['trans_no'] != "") { $_POST['selected_id'] = $_GET['trans_no']; } //-------------------------------------------------------------------------------------------------- if (isset($_GET['AddedID'])) { include_once $path_to_root . "/reporting/includes/reporting.inc"; $id = $_GET['AddedID']; $stype = ST_WORKORDER; display_notification(_("The manufacturing process has been entered.")); display_note(get_trans_view_str($stype, $id, _("View this Work Order"))); display_note(get_gl_view_str($stype, $id, _("View the GL Journal Entries for this Work Order")), 1); $ar = array('PARAM_0' => $_GET['date'], 'PARAM_1' => $_GET['date'], 'PARAM_2' => $stype); display_note(print_link(_("Print the GL Journal Entries for this Work Order"), 702, $ar), 1); hyperlink_no_params("search_work_orders.php", _("Select another &Work Order to Process")); br(); end_page(); exit; } //-------------------------------------------------------------------------------------------------- $wo_details = get_work_order($_POST['selected_id']); if (strlen($wo_details[0]) == 0) { display_error(_("The order number sent is not valid.")); exit; } //-------------------------------------------------------------------------------------------------- function can_process() { global $wo_details, $SysPrefs, $Refs;