고수님들 들어오세요

· 13년 전 · 658
<?php
require_once $_SERVER['DOCUMENT_ROOT']."/include/conf.php";
require_once $_SERVER['DOCUMENT_ROOT']."/include/function_race.php";
//******************** 데이타불러오기 *************************//
if($tbname == "money")
{
 $que = "select * from money where id = '$id' and (length(shopCode)>=$shopSize and shopCode like '$shopCode%')";
 $result = mysql_query($que);
 mysql_data_seek($result, 0);
 $row = mysql_fetch_array($result);
 $gubunSize = strlen($row[shopCode]);
 
  if($gubunSize==2) $gubunSize ="$row[shopCode]";
  else $gubunSize ="**";
      
  $shopName = getColumnValueText(admin, "shopName", "shopCode", "$row[shopCode]");
 
 if($row[gubun] == 1)
 {
  $title = "<font color=red size=3><b>- $row[shopName] 입금신청 </b>";
  $subT  = "($gubunSize : $shopName) -</font>";
 }
 else
elseif($tbname == "qna")
{
 $que = "select * from qna where seq = '$seq' and (length(shopCode)>=$shopSize and shopCode like '$shopCode%')";
 $result = mysql_query($que);
 mysql_data_seek($result, 0);
 $row = mysql_fetch_array($result);
 
 $gubunSize = strlen($row[shopCode]);
 if($gubunSize==2) $gubunSize ="$row[shopCode]";
  else $gubunSize ="**";
      
  $shopName = getColumnValueText(admin, "shopName", "shopCode", "$row[shopCode]");
 
 $title = "<font color=red size=3><b>- $row[shopName] 1:1문의 신청 </b>";
 $subT  = "($gubunSize : $shopName) -</font>";
 
 $openwin = "A_OPEN_".$row[id];
    $row[memberId] = $row[m_id];
    $row[name]     = $row[m_name];
}
elseif($tbname =="jm")
{
$que = "select * from race_time where id = '$id' ";
 $result = mysql_query($que);
 mysql_data_seek($result, 0);
 $row = mysql_fetch_array($result);
 
  $codename = "select cateName from cate where cateCode = '$row[cateCode]' ";
   $codename = mysql_query($codename);
 $codename = mysql_fetch_array($codename);
 
  $title = "<font color=red size=3><b>- $row[shopName] 마감 </b>";
  $subT  = "($row[time]) -</font>";
 $price = $row[round]."라운드";
 
 $openwin = "M_OPEN_".$row[id];

}elseif($tbname =="jm1")
{
$que = "select * from race_result where id = '$id' ";
 $result = mysql_query($que);
 mysql_data_seek($result, 0);
 $row = mysql_fetch_array($result);
 
  $codename = "select cateName from cate where cateCode = '$row[cateCode]' ";
   $codename = mysql_query($codename);
 $codename = mysql_fetch_array($codename);
 
  $title = "<font color=red size=3><b>-  결과 </b>";
  $subT  = "($row[time]) -</font>";
 $price = $row[round]."라운드";
 
 $openwin = "M_OPEN_".$row[id];

}
?>
<html>
<head>
<title>관리자</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<link rel="stylesheet" type="text/css" href="/adminBasic.style.css">
<script language="javascript">
//self.moveTo(0,0);
<!---
//쿠키 생성 함수
function setCookie(name, value, expire)
{
  var expire_date = new Date(expire)
  var today = new Date()
  var todayStr = today.getYear()+"-"+(today.getMonth()+1)+"-"+today.getDate()
  document.cookie = name + "=" + escape( todayStr ) + "; path=/; expires=" + expire_date.toGMTString() + ";"
}
//쿠키 소멸 함수
function clearCookie(name)
{
  var today = new Date()
  //어제 날짜를 쿠키 소멸 날짜로 설정한다.
  var expire_date = new Date(today.getTime() - 60*60*24*1000)
  document.cookie = name + "= " + "; path=/; expires=" + expire_date.toGMTString() + ";"
}
//쿠키값을 가져오는 함수
function getCookie(name)
{
  var from_idx = document.cookie.indexOf(name+'=');
  if (from_idx != -1)
  {
    from_idx += name.length + 1
    to_idx = document.cookie.indexOf(';', from_idx)
    if (to_idx == -1)
    {
      to_idx = document.cookie.length
    }
    return unescape(document.cookie.substring(from_idx, to_idx))
  }
}
//체크 상태에 따라 쿠키 생성과 소멸을 제어하는 함수
function controlCookie(elemnt) {
clearCookie("<?echo("$openwin")?>"); 
  self.close();
  return
}
 
function linkcheck() {
 <?if($tbname == "ask"){?>
   opener.parent.location.href ='<?=$admin_dir?>/board/ask.html?gubun=<?=$row[gubun]?>&siteItem=<?=$siteItem?>'
 <?}else{?>
   opener.parent.location.href ='<?=$admin_dir?>/money/money.html?gubun=<?=$row[gubun]?>siteItem=<?=$siteItem?>'
 <?}?>
  self.close();
  return
}
//alert("${$openwin}");
//--->
</script>
</head>
<?
echo("
<bgsound src=msg_voice.wav width=0 height=0>
<body leftmargin=0 rightmargin=0 topmargin=0 onUnload='controlCookie(this);' >
<table width=$row[width] height=$row[height] border=0 cellspacing=0 cellpadding=0 align=center>
 <a href=\"javascript:linkcheck(this)\">
  <tr height=30 align=center>
    <td>$title $subT</td>
  </tr>
  <tr height=30>    
    <td align=left>아이디 : $row[memberId]</td>
  </tr>
");
if($tbname == "money")
{
 echo("
  <tr height=30>
    <td align=left>신청자 : $row[name]</td>
  </tr>
  <tr height=30>
    <td align=left>금 &nbsp;&nbsp;액 : $price</td>
  </tr>
 ");
}
elseif($tbname == "qna")
{
 echo("
  <tr height=30>
    <td align=left>회원명 : $row[name]</td>
  </tr>
  <tr height=30>
    <td align=left>제 &nbsp;&nbsp;목 : $row[subject]</td>
  </tr>
 ");
}
elseif($tbname == "jm")
{
 echo("
  <tr height=30>
    <td align=left>$codename[cateName] : $row[round] 마감</td>
  </tr>
  <tr height=30>
    <td align=left></td>
  </tr>
 ");
}
elseif($tbname == "jm1")
{
 echo("
  <tr height=30>
    <td align=left>$codename[cateName] : $row[round] 결과입력</td>
  </tr>
  <tr height=30>
    <td align=left></td>
  </tr>
 ");
}
echo("
  <tr height=30>
    <td></td>
  </tr>
  </a>
</table>
<table width=100% border=0 cellspacing=0 cellpadding=0 align=center>
  <tr height=30>
    <td align=center bgcolor=818181>
 <bgsound src=1.wav style='display:none loop=100'>
     <a href=\"javascript:controlCookie(this)\"><font color=FFFFFF><b>[확 인]</font></a>
    </td>
  </tr>
</table>
</body>
</html>
");
?>
 
 
고수님들  이 소스가 뭐가 잘못됐는지 확인해주세요
입금이나   결과가  입력하면  자동으로 팝업이 나와서  알려주는건데   팝업이   일정한 시간되었다가  다 확인해준 팝업도  계속 나오네요       한번에   몇백개씩 나옵니다  ㅠ,ㅠ   죽겠습니다
어떻게  처리할 방법이 없나요
|
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

태그 필터 (최대 3개) 전체 개발자 소스 기타 mysql 팁자료실 javascript php linux flash 정규표현식 jquery node.js mobile 웹서버 os 프로그램 강좌 썸네일 이미지관련 도로명주소 그누보드5 기획자 견적서 계약서 기획서 마케팅 제안서 seo 통계 서식 통계자료 퍼블리셔 html css 반응형 웹접근성 퍼블리싱 표준화 반응형웹 홈페이지기초 부트스트랩 angularjs 포럼 스크린리더 센스리더 개발자톡 개발자팁 퍼블리셔톡 퍼블리셔팁 기획자톡 기획자팁 프로그램강좌 퍼블리싱강좌
+
제목 글쓴이 날짜 조회
13년 전 조회 1,719
13년 전 조회 1,065
13년 전 조회 2,734
13년 전 조회 607
13년 전 조회 2,271
13년 전 조회 2,662
13년 전 조회 4,427
13년 전 조회 997
13년 전 조회 1,212
13년 전 조회 1,394
13년 전 조회 1,208
13년 전 조회 1,213
13년 전 조회 2,881
13년 전 조회 1,297
13년 전 조회 1,049
13년 전 조회 1,182
13년 전 조회 1,173
13년 전 조회 856
13년 전 조회 1,728
13년 전 조회 2,120
13년 전 조회 1,406
13년 전 조회 1,000
13년 전 조회 979
13년 전 조회 876
13년 전 조회 1,605
13년 전 조회 2,640
13년 전 조회 1,341
13년 전 조회 1,624
13년 전 조회 1,153
13년 전 조회 1,171
13년 전 조회 1,382
13년 전 조회 897
13년 전 조회 874
13년 전 조회 891
13년 전 조회 1,221
13년 전 조회 1,295
13년 전 조회 1,058
13년 전 조회 816
13년 전 조회 1,093
13년 전 조회 1,042
13년 전 조회 968
13년 전 조회 1,070
13년 전 조회 967
13년 전 조회 1,278
13년 전 조회 1,044
13년 전 조회 1,169
13년 전 조회 1,687
13년 전 조회 631
13년 전 조회 2,956
13년 전 조회 659
13년 전 조회 858
13년 전 조회 649
13년 전 조회 1,032
13년 전 조회 970
13년 전 조회 1,228
13년 전 조회 754
13년 전 조회 1,820
13년 전 조회 1,460
13년 전 조회 1,042
13년 전 조회 6,723
13년 전 조회 647
13년 전 조회 1,018
13년 전 조회 852
13년 전 조회 999
13년 전 조회 1,290
13년 전 조회 883
13년 전 조회 1,133
13년 전 조회 725
13년 전 조회 745
13년 전 조회 1,271
13년 전 조회 3,135
13년 전 조회 704
13년 전 조회 2,132
13년 전 조회 905
13년 전 조회 806
13년 전 조회 1,699
13년 전 조회 1,624
13년 전 조회 640
13년 전 조회 1,544
13년 전 조회 1,977
13년 전 조회 1,373
13년 전 조회 629
13년 전 조회 2,037
13년 전 조회 841
13년 전 조회 626
13년 전 조회 590
13년 전 조회 1,310
13년 전 조회 1,694
13년 전 조회 1,169
13년 전 조회 647
13년 전 조회 792
13년 전 조회 1,287
13년 전 조회 1,231
13년 전 조회 572
13년 전 조회 3,375
13년 전 조회 1,234
13년 전 조회 4,400
13년 전 조회 800
13년 전 조회 1,790
13년 전 조회 861
🐛 버그신고