Пример #1
0
    ?>
&amp;SeB=m"><?php 
    echo $row['User'];
    ?>
</a>
			<?php 
} else {
    ?>
			N/A
			<?php 
}
?>
		</strong>
		<br />
		<?php 
echo __("Submitted: %s by %s", gmdate("Y-m-d H:i", $row['Submitted']), html_format_username(username_from_id($row['SubmitterID'])));
?>
		<br />
		<?php 
echo __("End");
?>
:
		<strong><?php 
echo gmdate("Y-m-d H:i", $row['End']);
?>
</strong>
		<?php 
if ($isrunning == 0) {
    ?>
		<br />
		<?php 
Пример #2
0
			<th><?php 
echo __('Maintainer') . ': ';
?>
</th>
			<td><?php 
echo html_format_maintainers($maintainer, $comaintainers);
?>
</td>
		</tr>
		<tr>
			<th><?php 
echo __('Last Packager') . ': ';
?>
</th>
			<td><?php 
echo html_format_username($packager);
?>
</td>
		</tr>
		<tr>
			<th><?php 
echo __('Votes') . ': ';
?>
</th>
			<?php 
if (has_credential(CRED_PKGBASE_LIST_VOTERS)) {
    ?>
			<td><a href="<?php 
    echo get_pkgbase_uri($row['Name']);
    ?>
voters/"><?php 
Пример #3
0
/**
 * Format the maintainer and co-maintainers for inclusion in HTML data
 *
 * @param string $maintainer The user name of the maintainer
 * @param array $comaintainers The list of co-maintainer user names
 *
 * @return string The generated HTML code for the account links
 */
function html_format_maintainers($maintainer, $comaintainers)
{
    $code = html_format_username($maintainer);
    if (count($comaintainers) > 0) {
        $code .= ' (';
        foreach ($comaintainers as $comaintainer) {
            $code .= html_format_username($comaintainer);
            if ($comaintainer !== end($comaintainers)) {
                $code .= ', ';
            }
        }
        $code .= ')';
    }
    return $code;
}
Пример #4
0
        $heading = __('Anonymous comment on %s', $date_fmtd);
    }
    if ($row['EditedTS']) {
        $date_fmtd = gmdate('Y-m-d H:i', $row['EditedTS']);
        $heading .= ' <span class="edited">(';
        if ($row['DelUsersID']) {
            $user_fmtd = html_format_username($row['DelUserName']);
            $heading .= __('deleted on %s by %s', $date_fmtd, $user_fmtd);
        } else {
            $user_fmtd = html_format_username($row['EditUserName']);
            $heading .= __('last edited on %s by %s', $date_fmtd, $user_fmtd);
        }
        $heading .= ')</span>';
    }
    $row['DelUserName'] = html_format_username($row['DelUserName']);
    $row['EditUserName'] = html_format_username($row['EditUserName']);
    ?>
		<h4 id="comment-<?php 
    echo $row['ID'];
    ?>
"<?php 
    if ($row['DelUsersID']) {
        ?>
 class="comment-deleted"<?php 
    }
    ?>
>
			<?php 
    echo $heading;
    ?>
			<?php 
Пример #5
0
} else {
    while (list($indx, $row) = each($result)) {
        if ($indx % 2) {
            $c = "even";
        } else {
            $c = "odd";
        }
        $username = username_from_id($row["UserID"]);
        ?>
			<tr class="<?php 
        echo $c;
        ?>
">
				<td>
					<?php 
        echo html_format_username($username);
        ?>
				</td>
				<td>
					<a href="<?php 
        echo get_uri('/tu/');
        ?>
?id=<?php 
        echo $row['LastVote'];
        ?>
"><?php 
        echo intval($row["LastVote"]);
        ?>
</a>
				</td>
			</tr>