113 lines
3.3 KiB
PHP
113 lines
3.3 KiB
PHP
<?
|
|
$_adminpage = true;
|
|
|
|
if(empty($argu['mode'])) $argu['mode'] = "LIST_FORM";
|
|
|
|
$argu["b_class"] = 5;
|
|
$_info = $Obj_board->get_boardconf_view($argu['b_class']);
|
|
|
|
switch ($argu['mode']) {
|
|
case "LIST_FORM":
|
|
$_list = $Obj_board->get_board_list($argu,$total,false);
|
|
|
|
break;
|
|
}
|
|
|
|
?>
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
<h1 class="page-header"><?=$_info['bc_name']?> 게시판 UPDATE</h1>
|
|
</div>
|
|
</div>
|
|
<!-- /.row -->
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
<div class="panel panel-default">
|
|
<div class="panel-body">
|
|
<?
|
|
/***********************************
|
|
===== 리스트 폼일경우 =====
|
|
***********************************/
|
|
if ($argu['mode'] == "LIST_FORM") {
|
|
?>
|
|
<div class="table-responsive">
|
|
<table class="table table-striped table-bordered table-hover">
|
|
<colgroup>
|
|
<col width="5%" />
|
|
<col width="47%" />
|
|
<col width="47%" />
|
|
</colgroup>
|
|
<thead>
|
|
<tr>
|
|
<th>번호</th>
|
|
<th>b_thumb</th>
|
|
<th>b_thumb_list</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?
|
|
if(count($_list) > 0){
|
|
for($i=0;$i<count($_list);$i++){
|
|
|
|
// $query = "
|
|
// update ".TABLE_BOARD." set b_thumb_list = '".$_list[$i]['b_thumb']."'
|
|
// where
|
|
// b_class = '{$argu['b_class']}'
|
|
// and b_no = '{$_list[$i]['b_no']}'
|
|
// ";
|
|
// $res = $_DB->query($query);
|
|
// if (DB::isError($res)) {
|
|
// debug($res);
|
|
// //go_url("", $res->getMessage());
|
|
// exit;
|
|
// }
|
|
|
|
?>
|
|
|
|
<tr>
|
|
<td><?=$_list[$i]['b_no']?></td>
|
|
<td><?=$_list[$i]["b_thumb"]?></td>
|
|
<td><?=$_list[$i]['b_thumb_list']?></td>
|
|
</tr>
|
|
<?
|
|
}
|
|
}
|
|
else{
|
|
?>
|
|
<tr>
|
|
<td colspan="3">등록된 데이터가 없습니다.</td>
|
|
</tr>
|
|
<?
|
|
}
|
|
?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- /.table-responsive -->
|
|
|
|
<div class="row">
|
|
<div class="col-sm-6">
|
|
</div>
|
|
<div class="col-sm-6">
|
|
<div class="dataTables_paginate paging_simple_numbers">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<?
|
|
}
|
|
/***********************************
|
|
===== 등록/수정 폼일경우 =====
|
|
***********************************/
|
|
elseif ($argu['mode'] == "INSERT_FORM" || $argu['mode'] == "MODIFY_FORM") {
|
|
$_w_mode=($argu['mode'] == "INSERT_FORM") ? "INSERT_ACTION" : "MODIFY_ACTION";
|
|
$argu["p"]=($argu['mode'] == "INSERT_FORM") ? 1 : $argu["p"];
|
|
?>
|
|
<?
|
|
}
|
|
?>
|
|
</div>
|
|
<!-- /.panel-body -->
|
|
</div>
|
|
</div>
|
|
</div>
|