HANYANG_REACT/www/index.php

63 lines
1.5 KiB
PHP

<?php
include_once "{$_SERVER['DOCUMENT_ROOT']}/common.inc.php";
phpinfo();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<?php
//$sql = "select * from B_BIZ_PARTNER";
//$rst = $_BDB->qry($sql);
//$row = sqlsrv_fetch_array($rst,2);
$query = array(
"mode" => $_REQUEST['mode'],
"viewnum" => $_REQUEST['viewnum'],
"sfld" => $_REQUEST['sfld'],
"stxt" => $_REQUEST['stxt'],
"ofld" => $_REQUEST['ofld'],
"oasc" => $_REQUEST['oasc'],
);
$clist = new Clist();
$clist->query = $query;
$clist->page = $_REQUEST['page']?:1;
$clist->orderby = "EDIT_USER_ID desc";
$clist->viewnum = $_REQUEST['viewnum']?:$GLOBALS['_varsBaseCode']['line_num'];
$clist->rownum = $GLOBALS['_varsBaseCode']['page_num'];
$clist->getCommonList("B_BIZ_PARTNER");
?>
<h3>DB 테이블 출력</h3>
<table width="100%" style='table-layout:fixed' class="table table-bordered" border>
<thead>
<?php foreach( (Array)$clist->rows[0] as $key => $val ){?>
<th><?=$key?></th>
<?php }?>
<thead>
<?php
foreach( (Array)$clist->rows as $row ){
?>
<tr>
<?php foreach( (Array)$row as $key => $val ){ if( is_object($val) ) $val = ((Array)$val)['date']; ?>
<td><?=$val?></td>
<?php }?>
</tr>
<?php }?>
</table>
<p>
<ul>
<?php foreach( $clist->pages as $page ){?>
<li><?=$page?></li>
<?php }?>
</ul>
</p>
</body>
http://211.213.24.71:8080/
</html>