Example #1
0
function show_contact_info()
{
    echo "<h3>" . _("Contact info") . "</h3>\n";
    printf("<p>%s: <a href=\"mailto:%s\">%s</a></p>\n", _("Email"), CONTACT_EMAIL_ADDRESS, CONTACT_EMAIL_ADDRESS);
    printf("<p>%s: <a href=\"skype:%s?call\">%s</a></p>\n", _("Skype"), CONTACT_SKYPE_ADDRESS, CONTACT_SKYPE_ADDRESS);
    printf("<p>%s: <a target=\"_blank\" href=\"%s\">%s</a></p>\n", _("Facebook"), CONTACT_FACEBOOK_URL, CONTACT_FACEBOOK_NAME);
    printf("<p>%s: <a target=\"_blank\" href=\"http://twitter.com/%s\">@%s</a></p>\n", _("Twitter"), CONTACT_TWITTER_NAME, CONTACT_TWITTER_NAME);
    printf("<p>%s: %s</p>\n", _("Call"), CONTACT_PHONE_NUMBER);
    printf("<p>%s: %s</p> \n", _("Office Hours"), CONTACT_OFFICE_HOURS);
    printf("<p>(%s: %s - %s %s)</p>\n", _("Standard time zone"), CONTACT_TIME_ZONE, _("it is currently"), get_time_text());
    printf("<p>%s</p>\n", CONTACT_ADDRESS_ETC);
}
Example #2
0
         <tbody>';
 while ($row = mysqli_fetch_row($q)) {
     $return_html .= '<tr>';
     //Rank
     if (time() >= $cont_starttime) {
         $return_html .= '<td>' . $row[3] . '</td>';
     } else {
         $return_html .= '<td>-</td>';
     }
     //User
     $return_html .= "<td>{$row['0']}</td>";
     $return_html .= '<td>' . htmlspecialchars($row[4]) . '</td>';
     //Total Score
     $return_html .= "<td>{$row['1']}</td>";
     //Total Time
     $return_html .= '<td>' . get_time_text($row[2]) . '</td>';
     //Problems
     if (time() >= $cont_endtime || time() >= $cont_starttime && $enrolled) {
         $r = mysqli_query($con, "SELECT contest_detail.problem_id,score,result from contest_detail\n                                                  LEFT JOIN (select problem_id,place from contest_problem where contest_id={$cont_id}) as contest_problem on (contest_problem.problem_id=contest_detail.problem_id)\n                                                  where contest_id={$cont_id} and user_id='{$row['0']}' order by contest_problem.place");
         while ($t_row = mysqli_fetch_row($r)) {
             //$return_html.='<td><i class='.(is_null($t_row[2]) ? '"fa fa-fw fa-question" style="color:grey"' : ($t_row[2] ? '"fa fa-fw fa-remove" style="color:red"' : '"fa fa-fw fa-check" style="color:green"')).'></i> ';
             $text_color = is_null($t_row[2]) ? 'grey' : ($t_row[2] ? 'red' : 'green');
             $return_html .= "<td style=\"color:{$text_color}\">" . $t_row[1] . '</td>';
         }
     }
     $return_html .= "</tr>\n";
 }
 $return_html .= '
         </tbody>
     </table>
 </div>';
Example #3
0
            while ($row2 = mysql_fetch_array($res2)) {
                $map = $row2['map'];
                $posx = $row2['position_x'];
                $posy = $row2['position_y'];
                if ($areaX1 > $posx && $areaX2 < $posx && $areaY1 > $posy && $areaY2 < $posy && $mapID == $map) {
                    if ($row2['id'] == $id) {
                        $img = "img/gps_icon.png";
                        $centerImage = 8;
                    } else {
                        $img = "img/green.gif";
                        $centerImage = 2;
                    }
                    $row['name'] = str_replace("'", "`", $row['name']);
                    $row['name'] = str_replace("\"", "`", $row['name']);
                    $type = $row['type'];
                    $time = get_time_text($row2['spawntimesecs']);
                    $x = round($imageX * ($posx - $areaX1) / ($areaX2 - $areaX1) - $centerImage, 0);
                    $y = round($imageY * ($posy - $areaY1) / ($areaY2 - $areaY1) - $centerImage, 0);
                    $name = validateTextForMap($row['name']);
                    echo "<a href=\"map.php?id={$id}&where={$where}&x={$posx}&y={$posy}&map={$row2['map']}\">";
                    echo "<img src=\"{$img}\" style=\"position: absolute; border: 0px; left: {$y}; top: {$x};\"onmouseover=\"this.T_TITLE='<div align=center>{$name}</div>';return escape('Уровень: {$row['maxlevel']}<br>Тип: {$NPCType[$type]}<br>Жизнь: {$row2['curhealth']}<br>Урон: {$row['mindmg']} - {$row['maxdmg']}<br>Респавн: {$time}<br>GUID {$row2['guid']}<br>{$posy} {$posx} {$row2['position_z']} {$row2['map']}')\"></a>\n";
                }
            }
        }
    }
    echo "</SPAN>";
    echo "</TD></TR></TBODY>";
    echo "</TABLE>";
    echo "</CENTER>";
    ?>
<script language="JavaScript" type="text/javascript" src="wz_tooltip.js"></script>
Example #4
0
    ?>
                                                <?php 
    if (isset($_SESSION['user']) && isset($row[13])) {
        ?>
                                                    <tr><td style="text-align:left"><?php 
        echo _('Your Score');
        ?>
</td><td><?php 
        echo $row[11];
        ?>
</td></tr>
                                                    <tr><td style="text-align:left"><?php 
        echo _('Time Penalty');
        ?>
</td><td><?php 
        echo get_time_text($row[12]);
        ?>
</td></tr>
                                                    <?php 
        if ($cont_status == 2) {
            ?>
                                                        <tr><td style="text-align:left"><?php 
            echo _('Your Rank');
            ?>
</td><td><?php 
            echo $row[13];
            ?>
</td></tr>
                                                    <?php 
        }
    }