コード例 #1
0
<?php

header('Content-Type: text/html; charset=utf-8');
require_once __DIR__ . '/../models/userRegistration.php';
?>

<a class="close-btn" href="javascript:void(0)" onclick = "document.getElementById('modal-information').style.display='none';document.getElementById('fade').style.display='none'">Закрыть</a>
<span>Зарегистрировано пользователей: <?countUsers()?> </span><br>
<span>Первый пользователь зарегистрировался: <?firstUser()?> </span><br>
<span>Последний пользователь зарегистрировался:<?lastUser()?> </span><br>
コード例 #2
0
ファイル: index.php プロジェクト: kaveet/HackTX-2015f
                                        <button class="btn btn-default btn-sm" data-widget="remove" data-toggle="tooltip" title="" data-original-title="Remove"><i class="fa fa-times"></i></button>
                                    </div>
                                </div>
                                <div class="box-body">
                                      <ol>
                                        <?php 
$topPlayerList = bestFive($conn);
foreach ($topPlayerList as $row) {
    echo "<a href=\"#\"><li>" . $row['playerName'] . "</li></a>";
}
?>
                                      </ol>
                                </div><!-- /.box-body -->
                                <div class="box-footer">
                                    Showing 5 of <?php 
echo countUsers($conn);
?>
 players.
                                </div><!-- /.box-footer-->
                            </div>
                      </div>

                      <div class="col-lg-3 col-xs-6">
                        <div class="box">
                                <div class="box-header">
                                    <h3 class="box-title">Available Courts</h3>
                                    <div class="box-tools pull-right">
                                        <button class="btn btn-default btn-sm" data-widget="collapse" data-toggle="tooltip" title="" data-original-title="Collapse"><i class="fa fa-minus"></i></button>
                                        <button class="btn btn-default btn-sm" data-widget="remove" data-toggle="tooltip" title="" data-original-title="Remove"><i class="fa fa-times"></i></button>
                                    </div>
                                </div>
コード例 #3
0
ファイル: home.php プロジェクト: bdbai/wawall-sae
    ?>
</td>
            <?php 
}
?>
          </tr>
        </table>
      </div>
    </div>
    <div class="col-sm-6">
      <div id="user-count-panel">
        <h4>已有用户:</h4>
        <table class="counter">
          <tr>
            <?php 
$wallcount = countUsers();
foreach (str_split($wallcount, 1) as $n) {
    ?>
            <td><?php 
    echo $n;
    ?>
</td>
            <?php 
}
?>
          </tr>
        </table>
      </div>
    </div>
  </div>
</div>
コード例 #4
0
ファイル: currentzones.php プロジェクト: RzeszowPL/freedns
<?php

$title = $l['str_currently_hosted'];
global $user;
$cP = countPrimary();
$cS = countSecondary();
$content = sprintf("%s: %s<br>\n", $l['str_primary_count'], $cP);
$content .= sprintf("%s: %s<br>\n", $l['str_secondary_count'], $cS);
# TODO: fix and use ->isadmin
if ($user->login == "Beeth") {
    $cU = countUsers();
    $cR = countProdUsers();
    $content .= sprintf("%s: %s<br>\n", $l['str_user_count'], $cU);
    $content .= sprintf("%s: %s<br>\n", $l['str_user_count_prod'], $cR);
}
if ($user->login != "") {
    $cT = countRecords();
    $content .= sprintf("%s: %s<br>\n", $l['str_records_count'], $cT);
}
print $html->box('currentzones', $title, $content);
コード例 #5
0
        }
        // end else
    }
    // end if _OVERRIDE
    // Build the navigation menu
    $NAV .= "<h3>Site Navigation</h3>\n";
    $NAV .= "<big>&middot;</big> <a href=\"index.php?module=Account\">About Map Designer</a><br/>\n";
    $NAV .= "<big>&middot;</big> <a href=\"index.php?module=Map&amp;op=list\">Your Maps</a><br/>\n";
    $NAV .= "<big>&middot;</big> <a href=\"index.php?module=Map&amp;op=new\">Create a New Map</a><br/>\n";
    $NAV .= "<big>&middot;</big> <a href=\"index.php?module=Active\">Active Maps</a><br/>\n";
    // Create the logout text
    $authText = "<p style=\"margin-left: 20px;\"><em>Currently logged in as " . getEmail($UserID) . "</em>.<br/><em><a href=\"index.php?module=Account&reset=1\">Logout of TagPro Map Designer</a></em></p>";
}
// end else not logged in
// Create the body text
$BODY .= "<h3>Welcome to TagPro Map Designer v2.0</h3>\n";
$BODY .= "<p>It's been well over a year since I last supported this MapMaker.  But with more than <strong>" . number_format(countUsers()) . "</strong> users having created more than <strong>" . number_format(countMaps()) . "</strong>  maps, I thought it was time to open it back up to the general public.  I realize there are competing and even much better map programs available at this point.  But for anyone looking to get involved with a fun project, I'd love your help!</p>\n";
$BODY .= "<p>The GitHub project can be found here under <a href=\"https://github.com/kevinludlow/TagProMapMaker\">TagProMapMaker</a>.</p>\n\n";
$BODY .= "<h4>Getting an Account</h4>\n";
$BODY .= "<p>Map Designer uses the Google Authorization for account creation and management.</p>\n";
$BODY .= "{$authText}\n";
$BODY .= "<h4>Help us Out!</h4>\n";
$BODY .= "<p>All programming and hosting is done entirely for the benefit of the TagPro community.  If you have the ability to help support us, we'd greatly appreciate it!</p>\n\n";
$BODY .= "<a href=\"https://www.paypal.me/ludlow/9.99\">\n";
$BODY .= "  <img alt=\"\" border=\"0\" src=\"theme/Default/images/PayPal/Donate.png\" style=\"width: 160px;\" />\n";
$BODY .= "</a>\n";
$BODY .= "<h4>Using the Map Designer</h4>\n";
$BODY .= "<p>The Map Designer is pretty basic and intuitive.  Create a new map, click on a brush, and click on a cell to draw it.  Use the keyboard shortcuts to navigate more quickly.  When you're done, click on the 'Save Map Now' link.  Note that the program auto-saves your map with every 10 changes you make; at most you'll only lose ten data points if you forget to save.</p>\n";
$BODY .= "<p style=\"margin-left: 20px;\"><img src=\"theme/" . _THEME_NAME . "/images/help/MapDesignerHelp.png\" alt=\"Map Designer Help\" style=\"border: 3px solid #e5e5e5;\" /></p>\n\n";
$BODY .= "<h4>Testing Your Map</h4>\n\n";
$BODY .= "<p>Once our auto-generator is finished, we will have a link to let you test maps without needing to do anything special.  For the time being, you can download your PNG and JSON files from within the map editor.  Once you download both files, visit <a href=\"http://tagpro-maptest.koalabeast.com/testmap\">http://tagpro-maptest.koalabeast.com/testmap</a> and upload them.</p>\n\n";