| Line | |
|---|
| 1 | <?php
|
|---|
| 2 | include '../../mainfile.php';
|
|---|
| 3 | include XOOPS_ROOT_PATH.'/modules/newbb/config.php';
|
|---|
| 4 |
|
|---|
| 5 | global $arrResponse;
|
|---|
| 6 |
|
|---|
| 7 | $sql = 'SELECT topic_id, topic_title, topic_response, topic_time FROM ' . $xoopsDB->prefix('bb_topics') . ' ORDER BY topic_response, topic_id';
|
|---|
| 8 |
|
|---|
| 9 | if ( !$result = $xoopsDB->query($sql) ) {
|
|---|
| 10 | redirect_header(XOOPS_URL.'/',1,_MD_ERROROCCURED);
|
|---|
| 11 | exit();
|
|---|
| 12 | }
|
|---|
| 13 |
|
|---|
| 14 | while ( $myrow = $xoopsDB->fetchArray($result) ) {
|
|---|
| 15 | foreach($myrow as $key => $val){
|
|---|
| 16 | //$val = mb_convert_encoding($val, "euc-jp");
|
|---|
| 17 |
|
|---|
| 18 | switch ($key) {
|
|---|
| 19 | case "topic_response":
|
|---|
| 20 | print("¡Ú" . $arrResponse[$val] . "¡Û");
|
|---|
| 21 | break;
|
|---|
| 22 | case "topic_time":
|
|---|
| 23 | print(date("Y/m/d H:i:s"), $val);
|
|---|
| 24 | break;
|
|---|
| 25 | default:
|
|---|
| 26 | print($val . "\t");
|
|---|
| 27 | break;
|
|---|
| 28 |
|
|---|
| 29 | }
|
|---|
| 30 | }
|
|---|
| 31 | print("<BR>");
|
|---|
| 32 | }
|
|---|
| 33 |
|
|---|
| 34 | ?> |
|---|
Note: See
TracBrowser
for help on using the repository browser.