MINI MINI MANI MO

Path : /home/lhcar/www/mobile/
File Upload :
Current File : /home/lhcar/www/mobile/sub06_view.php

<?
require_once "./_common/common.php";
include $_SERVER['DOCUMENT_ROOT'].'/_config/global.php';
include $_SERVER['DOCUMENT_ROOT'].'/_config/_class/phpfun.class.php';
$phpfun = new phpfun();
$SID = session_id();

?>
              <?
if($idx){
	$Qry = "SELECT * FROM counsel WHERE idx = '".$idx."'  ";
	$data = mysql_fetch_array(mysql_query($Qry));
}
if(($data[pass]&&$_POST[counsel_pass]==$data[pass])||($_SESSION["login_user_no"]&&$data[user_idx]==$_SESSION["login_user_no"])||$_SESSION["login_level"]=="1"){
	$passok=1;
}
if($_POST[counsel_pass]){
	if($_POST[counsel_pass]!=$data[pass]){
		msg("비밀번호를 확인해 주세요.");
	}
}
 ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="format-detection" content="telephone=no">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, target-densitydpi=medium-dpi">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style type="text/css">
<!--
.style8 {font-weight: bold}
-->
</style>
<title></title><head>


<link rel="stylesheet" type="text/css" href="css/style.css">
<link href="css/scale.css" rel="stylesheet" type="text/css">

<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.style3 {color: #da6c00}
.style7 {	color: #FFFFFF;
	font-size: 22px;
	font-weight: bold;
}
-->
</style>
</head>





<div id="top">
<? include "inc/sub_top.html"; ?>
</div>

<tr>	
			<td><? include "inc/customer_menu.php"; ?></td>
</tr>
<tr>
	<td>	
			<!-- navi start-->
							<table id="navi"  width="100%"  height="60"  border="0" cellpadding="0" cellspacing="0" align="center">
				  <tr>	
									<td>
										<table width="100%" border="0" cellpadding="0" cellspacing="0" align="center">
<?if(!$tt){$ts1="color: #FF0000;font-weight:bolder;";$ts2="color: #000000";}else{$ts2="color: #FF0000;font-weight:bolder;";$ts1="color: #000000";}?>
											<tr>
												<td><table align="left">
												  <tr>
												    <td style="padding-left:10px;"><strong>부품상담</strong></td>
											      </tr>
												  </table>
												</td>
										  </tr>
                                            <tr><td height="1" bgcolor="#0066CC"></td></tr>
                                            <tr><td height="10" ></td></tr>
										</table>								  </td>
						      </tr>
	  </table>
	  <!-- navi end-->
	</td>
</tr>

<tr>
  <td>	
			<!-- contents start--><div align="center">

<? if($passok){ ?>
							<table width="98%"  height="54"  border="0" cellpadding="0" cellspacing="0" align="center">
					    <tr>
								  <td height="20" align="center"  style="padding-left:10px; padding-right:10px;"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                      <td height="23" valign="top" style="color:#FF0000">*상담내용수정은 등록자만 가능하오니 비밀번호 꼭 기억하세요</td>
                                    </tr>
                                    <tr>
                                      <td height="5"><table width="100%"  style="border-collapse:collapse;" border="1" bordercolor="c6d0dd"  cellspacing="0" cellpadding="0">
                                      
                                          <tr>
                                            <td width='20%'  height="30" align="center" bgcolor="#F6F6F6" style='color:#5e7ea2'><strong>등록자</strong></td>
                                            <td height="30"  align="left" style="padding-left:10px;" colspan="3" ><?=$data[name]?></td>
                                        </tr>
                                            <tr>
                                            <td width='20%'  height="30" align="center" bgcolor="#F6F6F6" style='color:#5e7ea2'><strong>비밀번호</strong></td>
                                            <td height="30"  align="left" style="padding-left:10px;" colspan="3" ><?=$data[pass]?></td>
                                          </tr>
                                          <tr>
                                            <td  height="30" align="center" bgcolor="#F6F6F6" style='color:#5e7ea2'><strong>연락처</strong></td>
                                            <td height="30"  align="left" style="padding-left:10px;" colspan="3" ><?=$data[phone]?></td>
                                        </tr>
                                            <tr>
                                            <td  height="30" align="center" bgcolor="#F6F6F6" style='color:#5e7ea2'><strong>이메일</strong></td>
                                            <td height="30"  align="left" style="padding-left:10px;" colspan="3" ><?=$data[email]?></td>
                                          </tr>
                                          <tr>
                                            <td  height="30" align="center" bgcolor="#F6F6F6" style='color:#5e7ea2'><strong>제목</strong></td>
                                            <td height="30" colspan="3"  align="left" style="padding-left:10px;"><?=$data[type2]=="기타"?$data[title]:$data[type2]?></td>
                                          </tr>
                                          <tr>
                                            <td height="100" colspan="4" align="left" ><?=$data[memo]?></td>
                                          </tr>
                                      </table></td>
                                    </tr>
                                    <tr>
                                      <td height="2">&nbsp;</td>
                                    </tr>
                                    <tr>
                                      <td height="2" align="center"><table border="0" cellspacing="0" cellpadding="0">
                                          <tr>
                                            <td><a href='sub06.php'><img src='/images/list_bt.jpg' style='vertical-align:middle' /></a></td>
                                            <td style="padding-left:5px;"></td>
                                          </tr>
                                        </table>
                                        <a href="write.php"></a></td>
                                    </tr>
                                    <tr>
                                      <td height="3" align="center">&nbsp;</td>
                                    </tr>
                                    <tr>
                                      <td height="5"><table width="100%"  style="border-collapse:collapse;" border="1" bordercolor="c6d0dd"  cellspacing="0" cellpadding="0">
                                          <tr>
                                            <td width='20%' height="30" align="center" bgcolor="#F6F6F6" style='color:#5e7ea2'><strong>답변</strong></td>
                                            <td width="80%" height="30"  align="left" style="padding:10px;"><?=$data[reply]?></td>
                                          </tr>
                                      </table></td>
                                    </tr>
                                  </table></td>
							  </tr>
    </table>
<? }else{ ?>
							<table width="98%"  height="54"  border="0" cellpadding="0" cellspacing="0" align="center">
<form name="cform" method="post" enctype="multipart/form-data" >
<input type="hidden" name="idx" value="<?=$idx?>">
					    <tr>
								  <td height="20" align="center"  style="padding-left:10px; padding-right:10px;"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                      <td height="5"><table width="98%" border="1" align="center" cellpadding="0"  cellspacing="0" bordercolor="c6d0dd"  style="border-collapse:collapse;">
                                          <tr>
                                            <td width='40%' height="30" align="center" bgcolor="#F6F6F6" style='color:#5e7ea2'><strong>비밀번호를 입력하셔야 내용을 보실수 있습니다</strong></td></tr>
											<tr>
                                            <td colspan="3" height="40"  align="center" style="padding-left:10px;">비밀번호입력 
                                              <input type="text" name="counsel_pass" style="width:50%; height:25px; border:1px solid #0066CC" /></td>
                                          </tr>
                                      </table></td>
                                    </tr>
                                    <tr>
                                      <td height="2">&nbsp;</td>
                                    </tr>
                                    <tr>
                                      <td height="2" align="center">
                                        <table border="0" cellspacing="0" cellpadding="0">
                                          <tr>
                                            <td><table border="0" cellspacing="0" cellpadding="0">
                                          <tr>
                                            <td><input type="button" value="목록보기" style="border:1px solid #0066CC; background-color:#0066CC; color:#ffffff; font-weight:bold; width:70px; height:25px; padding-bottom:3px;cursor:pointer"  onclick="location.href='sub06.php'"></td>
                                          </tr>
                                        </table></td>
                                            <td>&nbsp;</td>
                                            <td><table border="0" cellspacing="0" cellpadding="0">
                                          <tr>
                                            <td><input type="submit" value="확인하기" style="border:1px solid #ff0000; background-color:#ff0000; color:#ffffff; font-weight:bold; width:70px; height:25px; padding-bottom:3px;cursor:pointer"></td>
                                          </tr>
                                        </table></td>
                                          </tr>
                                        </table></td>
                                    </tr>
                                    <tr>
                                      <td height="3" align="center">&nbsp;</td>
                                    </tr>
                                  </table></td>
							  </tr>
</form>
    </table>
<? } ?>
	
	
	</div>
	  <!-- contents end-->
  </td>
</tr>

<iframe name="HiddenFrm" style="display:none;"></iframe>
<form name='signform' method='post' action='myzzim.php'>
	<input type="hidden" name="no" value="<?=$idx?>">
	<input type="hidden" name="userid" value="<?=$loginId?>">
</form>
<iframe width=0 height=0 name='hiddenframe' style='display:none;'></iframe>

<div id="btm">
<? include "inc/btm.html"; ?>
</div>
  


OHA YOOOO