MINI MINI MANI MO
<? include "$DOCUMENT_ROOT/admin/inc/header.php"; ?>
<?
$href = "page=$page&Search_mode=$Search_mode&Search_text=$Search_text&list_sort=$list_sort";
$row = Row_string("SELECT * FROM woojung_member WHERE idx='$No'");
$tmp = explode("-",$row[tel]); $tel1 = $tmp[0]; $tel2 = $tmp[1]; $tel3 = $tmp[2];
$tmp = explode("-",$row[fax]); $fax1 = $tmp[0]; $fax2 = $tmp[1]; $fax3 = $tmp[2];
$tmp = explode("-",$row[pcs]); $pcs1 = $tmp[0]; $pcs2 = $tmp[1]; $pcs3 = $tmp[2];
$zipcode1 = $row[post1]; $zipcode2 = $row[post2]; $address = $row[addr1]; $address_ext = $row[addr2];
?>
<script>
function win_open(ret){
window.open('/member/post.php?ret='+ret,'zipcode','width=550,height=500,scrollbars=yes');
}
function check_nicname_Window(){
window.open("/member/nicname_chk1.php?userNick="+document.join.userNick2.value,"","width=400, height=350");
}
</script>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<script language="javascript" type="text/javascript">
$(document).ready(function() {
//******************************************************************************
// 상세검색 달력 스크립트
//******************************************************************************
var clareCalendar = {
monthNamesShort: ['1월','2월','3월','4월','5월','6월','7월','8월','9월','10월','11월','12월'],
dayNamesMin: ['일','월','화','수','목','금','토'],
weekHeader: 'Wk',
dateFormat: 'yy-mm-dd', //형식(20120303)
autoSize: false, //오토리사이즈(body등 상위태그의 설정에 따른다)
changeMonth: true, //월변경가능
changeYear: true, //년변경가능
showMonthAfterYear: true, //년 뒤에 월 표시
buttonImageOnly: true, //이미지표시
buttonText: '달력선택', //버튼 텍스트 표시
buttonImage: '/images/icon_data.gif', //이미지주소
showOn: "both", //엘리먼트와 이미지 동시 사용(both,button)
yearRange: '2010:2020' //1990년부터 2020년까지
};
$("#mdate").datepicker(clareCalendar);
$("#edate").datepicker(clareCalendar);
$("#adate").datepicker(clareCalendar);
$("#bdate").datepicker(clareCalendar);
$("img.ui-datepicker-trigger").attr("style","margin-left:5px; vertical-align:middle; cursor:pointer;"); //이미지버튼 style적용
$("#ui-datepicker-div").hide(); //자동으로 생성되는 div객체 숨김
});
</script>
<style>
.ui-datepicker select.ui-datepicker-month{ width:30%; }
.ui-datepicker select.ui-datepicker-year{ width:40%; }
</style>
<table width="100%" border="0" cellpadding="0" cellspacing="0" height='100%'>
<tr>
<td width='150' height='100%' valign='top' bgcolor="#ededed">
<!--레프트메뉴--><!--/레프트메뉴--> <? include "$DOCUMENT_ROOT/admin/inc/sub05.php"; ?></td>
<td width='1' bgcolor='#78858c'></td>
<td align="left" valign='top'><? include "$DOCUMENT_ROOT/admin/inc/qna.php"; ?>
<form name="join" method="post" action="proc.php">
<input type="hidden" name="Mode" value="Write" />
<input type="hidden" name="href" value="<?=$href?>">
<input type="hidden" value="0" name="nicchk_value">
<input type="hidden" value="0" name="idchk_value">
<table width="900" border="0" cellspacing="0" cellpadding="0" align="left" style="margin:20px;">
<tr>
<td align="center"><table width="900" border="0" cellspacing="0" cellpadding="0"><tr>
<td align="center"><table width="900" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="20" colspan="2" align="left"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="20" align="left" class="title" style="border-bottom:1px solid #000000"><img src="/admin/img/icon_1.jpg" align="absmiddle" /> 회원관리 > <strong>회원등록</strong></td>
<td align="right" class="title" style="border-bottom:1px solid #000000; cursor:pointer"><a href="list.php"><font color="#0066CC">목록보기</font></a></td>
</tr>
</table></td></tr>
<tr>
<td height="20" colspan="2"></td>
</tr>
<tr>
<td align="center"> <table width="900" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="20" class="title" align="left"><strong>기본정보</strong></td>
</tr>
<tr>
<td> <table width="900" border="0" cellpadding="0" cellspacing="1" bgcolor="b2b2b2" style="padding:0 0 0 0">
<tr>
<td width="100" height="28" align="center" bgcolor="f6f6f6">이름(성명)</td>
<td width="350" bgcolor="#FFFFFF" style="padding-left:10px;" align="left"> <input type="text" class="input" name="name"/>
</td>
<td width="100" align="center" bgcolor="f6f6f6">아 이 디</td>
<td width="350" bgcolor="#FFFFFF" style="padding-left:10px;"align="left"> <input type="text" class="input" name="userId"/> <a href="javascript:check_ID_Window()">중복확인</a>
</td>
</tr>
<tr>
<td height="28" align="center" bgcolor="f6f6f6">닉 네 임</td>
<td bgcolor="#FFFFFF" style="padding-left:10px;" align="left"><input name="userNick2" type="text" class="input" id="userNick" value="<?=$row[userNick]?>"maxlength="10" hname='닉네임' align=absmiddle> <a href="javascript:check_nicname_Window()">중복확인</a></td>
<td align="center" bgcolor="f6f6f6">비밀번호</td>
<td bgcolor="#FFFFFF" style="padding-left:10px;" align="left"><input name="userPw" type="text" id="userPw" size="20" class="input" /></td>
</tr>
<tr>
<td height="28" align="center" bgcolor="f6f6f6">이 메 일</td>
<td bgcolor="#FFFFFF" style="padding-left:10px;" align="left"><input name="email" type=" text" class="input" size="15" hname='이메일' value="<?=$row[email]?>"/ style='width:300;'></td>
<td height="28" align="center" bgcolor="f6f6f6">회원레벨</td>
<td bgcolor="#FFFFFF" style="padding-left:10px;" align="left">
<select name="usort" size="1" id="usort" onchange="change_usort()">
<option >==선택==</option>
<option value="indi" <? if($row[usort] == 'indi'){?> selected="selected" <? } ?>>일반회원</option>
<option value="company1" <? if($row[usort] == 'company1'){?> selected="selected" <? } ?>>기사(영업)</option>
<option value="admin" <? if($row[usort] == 'admin'){?> selected="selected" <? } ?>>관리자1</option>
<?
if($loginUsort == "superadmin" ){
?>
<option value="superadmin" <? if($row[usort] == 'superadmin'){?> selected="selected" <? } ?>>최고관리자</option>
<?
}
?>
</select> / 영업코드
<input type="text" name="textfield" id="textfield" />
</td>
</tr>
<tr>
<td height="28" align="center" bgcolor="f6f6f6">일반전화</td>
<td bgcolor="#FFFFFF" style="padding-left:10px;" align="left"><span>
<input name="tel1" type="text" class="input" size="3" maxlength="3" hname='일반전화' value="<?=$tel1?>"/>
-
<input name="tel2" maxlength="4" type="text" class="input" size="5" hname='일반전화' value="<?=$tel2?>"/>
-
<input name="tel3" maxlength="4" type="text" class="input" size="5" hname='일반전화' value="<?=$tel3?>"/>
</span></td>
<td align="center" bgcolor="f6f6f6">휴대전화</td>
<td bgcolor="#FFFFFF" style="padding-left:10px;" align="left"><span>
<input name="pcs1" type="text" class="input" size="3" maxlength="3" hname='일반전화' value="<?=$pcs1?>"/>
-
<input name="pcs2" maxlength="4" type="text" class="input" size="5" hname='일반전화' value="<?=$pcs2?>"/>
-
<input name="pcs3" maxlength="4" type="text" class="input" size="5" hname='일반전화' value="<?=$pcs3?>"/>
</span></td>
</tr>
<tr>
<td height="28" align="center" bgcolor="f6f6f6">주 소</td>
<td colspan="3" bgcolor="#FFFFFF" style="padding-left:10px;" align="left"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="28"><input name="zipcode" type="text" class="input" id="zipcode" value="<?=$zipcode1?>" size="10"/>
<a href="javascript:openDaumPostcode()" style='cursor:hand'> 우편번호</a>
</td>
</tr>
<tr>
<td height="28"><input name="address" id="address" type="text" class="input" size="100" hname='주소' value="<?=$address?>" readonly/></td>
</tr>
<tr>
<td height="28"><input name="address_ext" id="address_ext" type="text" class="input" size="100" hname='나머지주소' value="<?=$address_ext?>"/></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td height="80" align="center"><input name="button2" type="button" class="btn_blue" value="목록보기" onclick="location.href='list.php'"/>
<input name="button" type="button" class="btn_red" value="수정하기" onclick="document.join.submit()"/></td>
</tr>
<tr>
<td><table width="900" border="0" cellpadding="0" cellspacing="1" bgcolor="b2b2b2" style="padding:0 0 0 0">
<tr>
<td width="100" height="28" align="center" bgcolor="f6f6f6">메모</td>
<td width="730" bgcolor="#FFFFFF" style="padding:10px;" align="left"> <input type="text" class="input" style="width:100%; height:70px;" name="memo" value="<?=$row[memo]?>"/>
</td>
<td width="70" align="center" bgcolor="ffffff" style="color:#FF0000"><input type="button" value="등록" class="btn_red" onclick="document.join.submit();"></td>
</tr></table></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
</table></td>
</tr>
<tr>
<td height="40" align="center"> </td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</form>
</td></tr></table>
<? include_once "../inc/footer.php";?>
<script type="text/javascript">
function code_choices1() {
var c_name = document.getElementById('company_name').value;
if(!c_name){
if(document.join.team_name.value != 0){
document.join.action = "<?=$PHP_SELF?>?No=<?=$No?>";
document.join.submit();
}
} else {
alert("회사명 또는 보험 회사명 둘중 한가지만 입력 가능 합니다.");
document.join.team_name.value = '0';
return false;
}
}
function change_usort(){
document.join.usort_change.value = 1;
}
function change_upjongs(){
document.join.upjong_change.value = 1;
}
var please_wait = null;
function CallsubTeam(idx, subidx) {
var url = "../../inc/ncompany_ajax.php?idx="+idx;
if ( ! document.getElementById) {
return false;
}
document.getElementById('teamsub').innerText = "로딩중입니다.";
//if (please_wait != null) {
// document.getElementById(target).innerHTML = please_wait;
//}
if (window.ActiveXObject) {
link = new ActiveXObject("Microsoft.XMLHTTP");
} else if (window.XMLHttpRequest) {
link = new XMLHttpRequest();
}
if (link == undefined) {
return false;
}
link.onreadystatechange = function() { response(url, subidx); }
link.open("GET", url, true);
link.send(null);
}
function response(url, subidx) {
if (link.readyState == 4) {
if (link.status == 200)
{
var ReturnVal = link.responseText;
if (ReturnVal != "")
{
splitReturn = ReturnVal.split(',');
var html = "<select name='team_subname'>\n";
html += "<option value=''>==소속선택==</option>\n";
var sel;
for (var i=0; i < splitReturn.length ; i++ )
{
if(subidx == splitReturn[i]){
sel = "selected";
}else{
sel = "";
}
html += "<option value='"+ splitReturn[i] +"' "+ sel +">"+splitReturn[i]+"</option>\n";
}
html += "</select>\n";
document.getElementById('teamsub').innerHTML = html;
document.getElementById('team_subname_etc').value = "";
document.getElementById('team_subname_etc').readOnly = true;
document.getElementById('team_subname_etc').style.background = "#f3f3f3";
}else{
document.getElementById('teamsub').innerText = " 소속없음 ";
document.getElementById('team_subname_etc').value = "";
document.getElementById('team_subname_etc').readOnly = false;
document.getElementById('team_subname_etc').style.background = "#ffffff";
}
}
}
}
function check_ID_Window(){
var frm = document.join;
var id = frm.userId.value;
if(!frm.userId.value){
alert("아이디를 입력해주세요");
frm.userId.focus();
return;
}
if(frm.userId.value.length <= 3 || frm.userId.value.length >= 15){
alert("아이디는 3자 이상 15자 이하로 입력해주세요");
frm.userId.focus();
return;
}
window.open("/member/id_check.php?userId="+id,"","width=400, height=350");
}
</script>
<script src="http://dmaps.daum.net/map_js_init/postcode.v2.js"></script>
<script>
function openDaumPostcode() {
new daum.Postcode({
oncomplete: function(data) {
var fullAddr = ''; // 최종 주소 변수
var extraAddr = ''; // 조합형 주소 변수
if (data.userSelectedType === 'R') { // 사용자가 도로명 주소를 선택했을 경우
fullAddr = data.roadAddress;
} else { // 사용자가 지번 주소를 선택했을 경우(J)
fullAddr = data.jibunAddress;
}
if(data.userSelectedType === 'R'){
if(data.bname !== ''){
extraAddr += data.bname;
}
if(data.buildingName !== ''){
extraAddr += (extraAddr !== '' ? ', ' + data.buildingName : data.buildingName);
}
fullAddr += (extraAddr !== '' ? ' ('+ extraAddr +')' : '');
}
// 우편번호와 주소 정보를 해당 필드에 넣는다.
document.join.zipcode.value = data.zonecode; //5자리 새우편번호 사용
document.join.address.value = fullAddr;
document.join.address_ext.focus();
}
}).open();
}
function openDaumPostcode2() {
new daum.Postcode({
oncomplete: function(data) {
var fullAddr = ''; // 최종 주소 변수
var extraAddr = ''; // 조합형 주소 변수
if (data.userSelectedType === 'R') { // 사용자가 도로명 주소를 선택했을 경우
fullAddr = data.roadAddress;
} else { // 사용자가 지번 주소를 선택했을 경우(J)
fullAddr = data.jibunAddress;
}
if(data.userSelectedType === 'R'){
if(data.bname !== ''){
extraAddr += data.bname;
}
if(data.buildingName !== ''){
extraAddr += (extraAddr !== '' ? ', ' + data.buildingName : data.buildingName);
}
fullAddr += (extraAddr !== '' ? ' ('+ extraAddr +')' : '');
}
// 우편번호와 주소 정보를 해당 필드에 넣는다.
document.join.czipcode.value = data.zonecode; //5자리 새우편번호 사용
document.join.caddress.value = fullAddr;
document.join.caddress_ext.focus();
}
}).open();
}
</script>
OHA YOOOO