Example #1
0
 public function getUserPairs()
 {
     $pairs = array();
     foreach ($this->getUsernames() as $username) {
         $pairs[] = array('id' => $username, 'name' => Profile::fetchRealName($username));
     }
     return $pairs;
 }
Example #2
0
echo fHTML::encode($this->record->getJudgeMessage());
?>
</pre>
    <pre class="prettyprint linenums"><?php 
echo fHTML::encode($this->record->getSubmitCode());
?>
</pre>
  </div>
  <ul class="span3">
    <li>
      提交者:
      <?php 
echo fHTML::encode($this->record->getOwner());
?>
      <?php 
echo fHTML::encode(Profile::fetchRealName($this->record->getOwner()));
?>
    </li>
    <li>
      题目编号:
      <a href="<?php 
echo SITE_BASE;
?>
/problem/<?php 
echo $this->record->getProblemId();
?>
">
        <?php 
echo $this->record->getProblemId();
?>
</a>
Example #3
0
    </tr>
  </thead>
  <tbody>
    <?php 
foreach ($this->user_stats as $i => $user_stat) {
    ?>
      <tr>
        <td><?php 
    echo $i + 1 + ($this->page - 1) * $this->user_stats->getLimit();
    ?>
</td>
        <td><?php 
    echo $user_stat->getUsername();
    ?>
 <?php 
    echo Profile::fetchRealName($user_stat->getUsername());
    ?>
</td>
        <td><?php 
    echo $user_stat->getSolved();
    ?>
</td>
        <td><?php 
    echo $user_stat->getTried();
    ?>
</td>
        <td><?php 
    echo $user_stat->getSubmissions();
    ?>
</td>
      </tr>
Example #4
0
<div class="page-header">
  <h1><?php 
echo $title;
?>
</h1>
</div>
<form action="<?php 
echo SITE_BASE;
?>
/change/info" method="POST" class="form-horizontal">
  <fieldset>
    <div class="control-group">
      <label class="control-label" for="realname">姓名 (必填)</label>
      <div class="controls">
        <input type="text" class="input-medium" id="realname" name="realname" placeholder="姓名" value="<?php 
echo Profile::fetchRealName(fAuthorization::getUserToken());
?>
">
      </div>
    </div>
    <div class="control-group">
      <label class="control-label">性别 (必填)</label>
      <div class="controls">
        <?php 
$gender = Profile::fetchGender(fAuthorization::getUserToken());
?>
        <label style="display:inline"><input type="radio" name="gender" value="男"<?php 
if ($gender == '男') {
    echo ' checked';
}
?>
Example #5
0
foreach ($this->records as $r) {
    ?>
      <tr>
        <td><a href="<?php 
    echo $this->top_url;
    echo $r->getId();
    ?>
"><?php 
    echo $r->getId();
    ?>
</a></td>
        <td><?php 
    echo fHTML::encode($r->getOwner());
    ?>
 <?php 
    echo fHTML::encode(Profile::fetchRealName($r->getOwner()));
    ?>
</td>
        <td>
          <a href="<?php 
    echo SITE_BASE;
    ?>
/problem/<?php 
    echo $r->getProblemId();
    ?>
"><?php 
    echo $r->getProblemId();
    ?>
</a>
          <?php 
    if (fAuthorization::checkLoggedIn()) {