コード例 #1
0
ファイル: tester_hangee.php プロジェクト: sandrain/hangee
<?php

#
# tester_hangee.php
#
# Written by HyoGi Sim <*****@*****.**>
#
require_once "__lib.php";
hangee_init(1);
###########################################################################
function populate_pages($form)
{
    global $dbconn;
    $response = new xajaxResponse();
    $ch = strtolower($form['word_select']);
    if (!$ch) {
        $response->assign("pages", "value", "");
        return $response;
    }
    $sql = "select min(page),max(page) from hangee_words where page < 300";
    if ($ch != 'all') {
        $sql .= " and word like '{$ch}%'";
    }
    $res = mysql_query($sql, $dbconn);
    if (!$res) {
        $msg = "query failed: {$sql} : " . mysql_error($dbconn);
        $response->assign("debug", "innerHTML", $msg);
        $response->assign("debug", "style.display", "block");
        return $response;
    }
    $row = mysql_fetch_array($res);
コード例 #2
0
ファイル: index.php プロジェクト: sandrain/hangee
<?php

#
# index.php
#
# Written by HyoGi Sim <*****@*****.**>
#
require_once "__lib.php";
hangee_init();
hangee_header("HanGEE: GRE Word Memorizing Helper");
?>

<div id="help_content">
<h2>Welcome!</h2>
<div class='explain'>
<p>Welcome, but this page is not ready, yet. You may like to check 
<a href='help.php'><strong>Help</strong></a> page first.</p>
</p>
</div>
</div>

<?php 
hangee_footer();
hangee_exit();