123 lines
5.4 KiB
PHP
123 lines
5.4 KiB
PHP
<?
|
|
if (!$argu['p']) $argu['p'] = 1;
|
|
if(empty($argu['mode'])) $argu['mode'] = "MODIFY_FORM";
|
|
$_listnum=20;
|
|
|
|
$default_querystring = "pagecode=".$argu["pagecode"]."&subpage=".$argu["subpage"]."&s_type=".$argu["s_type"]."&keyword=".$argu["keyword"];
|
|
|
|
switch ($argu['mode']) {
|
|
case "LIST_FORM":
|
|
$_list = $obj_User->get_user_list($argu, $total);
|
|
break;
|
|
case "INSERT_FORM":
|
|
$_row['user_level'] = $obj_User->user_basic_level;
|
|
$_row['user_emaillist'] = "Y";
|
|
break;
|
|
case "MODIFY_FORM":
|
|
$argu['user_no'] = 1;
|
|
$_row = $obj_User->get_user_view($argu['user_no']);
|
|
array_walk ($_row, "htmlspecialcharsAll");
|
|
|
|
list($_row['user_hp1'], $_row['user_hp2'], $_row['user_hp3']) = explode("-",$_row['user_hp']);
|
|
break;
|
|
case "INSERT_ACTION":
|
|
$obj_User->set_user_insert($argu);
|
|
go_url("?".$default_querystring."&mode=LIST_FORM","회원 등록이 완료 되었습니다.");
|
|
exit;
|
|
break;
|
|
case "MODIFY_ACTION":
|
|
$obj_User->set_user_update($argu);
|
|
go_url("?".$default_querystring."&mode=MODIFY_FORM&p={$argu['p']}","회원정보가 수정되었습니다.");
|
|
exit;
|
|
break;
|
|
case "DELETE_ACTION":
|
|
$obj_User->set_user_update($argu);
|
|
go_url("?".$default_querystring."&mode=LIST_FORM&p={$argu['p']}","해당회원이 탈퇴 처리 되었습니다.");
|
|
exit;
|
|
break;
|
|
}
|
|
?>
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
<h1 class="page-header">관리자정보 관리</h1>
|
|
</div>
|
|
<!-- /.col-lg-12 -->
|
|
</div>
|
|
<!-- /.row -->
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
<div class="panel panel-default">
|
|
<div class="panel-body">
|
|
<?
|
|
if ($argu['mode'] == "MODIFY_FORM" || $argu['mode'] == "INSERT_FORM") {
|
|
$_w_mode=($argu['mode'] == "INSERT_FORM") ? "INSERT_ACTION" : "MODIFY_ACTION";
|
|
$argu["p"]=($argu['mode'] == "INSERT_FORM") ? 1 : $argu["p"];
|
|
?>
|
|
<form role="form" name="f" method="post" enctype="multipart/form-data" action="<?=$_SERVER["PHP_SELF"]?>">
|
|
<input type="hidden" name="mode" value="<?=$_w_mode?>">
|
|
<input type="hidden" name="user_no" value="<?=$_row['user_no']?>">
|
|
<input type="hidden" name="p" value="<?=$argu['p']?>">
|
|
<input type="hidden" name="pagecode" value="<?=$argu['pagecode']?>">
|
|
<input type="hidden" name="subpage" value="<?=$argu['subpage']?>">
|
|
<input type="hidden" name="user_level" value="1">
|
|
<input type="hidden" name="user_name" value="<?=$_row['user_name']?>">
|
|
<div class="form-group">
|
|
<label>아이디</label>
|
|
<p class="form-control-static"><strong><?=$_row['user_id']?></strong></p>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="user_pwd">비밀번호</label>
|
|
<input type="password" class="form-control <?if($argu['mode'] == "INSERT_FORM"){?>{label:'비밀번호',required:true}<?}?>" id="user_pwd" name="user_pwd" placeholder="Password" maxlength="16">
|
|
</div>
|
|
<div class="form-group">
|
|
<label>로그인정보</label>
|
|
<p class="form-control-static"><strong><?=$_row['user_lastlogin']?> (로그인횟수 : <?=number_format($_row['user_cnt'])?>)</strong></p>
|
|
</div>
|
|
<button type="submit" class="btn btn-outline btn-success">수정</button>
|
|
</form>
|
|
|
|
<!-- <div class="row">
|
|
<div class="col-lg-5">
|
|
<form class="form-horizontal" role="form" name="f" method="post" enctype="multipart/form-data" action="<?=$_SERVER["PHP_SELF"]?>">
|
|
<input type="hidden" name="mode" value="<?=$_w_mode?>">
|
|
<input type="hidden" name="user_no" value="<?=$_row['user_no']?>">
|
|
<input type="hidden" name="p" value="<?=$argu['p']?>">
|
|
<input type="hidden" name="pagecode" value="<?=$argu['pagecode']?>">
|
|
<input type="hidden" name="subpage" value="<?=$argu['subpage']?>">
|
|
<input type="hidden" name="user_level" value="1">
|
|
<input type="hidden" name="user_name" value="<?=$_row['user_name']?>">
|
|
<div class="form-group">
|
|
<label class="col-lg-2 control-label">아이디</label>
|
|
<div class="col-lg-10">
|
|
<p class="form-control-static"><strong><?=$_row['user_id']?></strong></p>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="inputPassword1" class="col-lg-2 control-label">비밀번호</label>
|
|
<div class="col-lg-10">
|
|
<input type="password" name="user_pwd" class="form-control <?if($argu['mode'] == "INSERT_FORM"){?>{label:'비밀번호',required:true}<?}?>" id="inputPassword1" placeholder="Password">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-lg-2 control-label">로그인정보</label>
|
|
<div class="col-lg-10">
|
|
<p class="form-control-static"><?=$_row['user_lastlogin']?> (로그인횟수 : <?=number_format($_row['user_cnt'])?>)</strong></p>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<div class="col-lg-offset-2 col-lg-10">
|
|
<button type="submit" class="btn btn-outline btn-success">수정</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div> -->
|
|
<?
|
|
}
|
|
?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- /.col-lg-12 -->
|
|
</div>
|