복

고수님들 들어오세요

· 2012-02-25 (토) 21:01:05 · 2590
<?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>금   액 : $price</td>
  </tr>
 ");
}
elseif($tbname == "qna")
{
 echo("
  <tr height=30>
    <td align=left>회원명 : $row[name]</td>
  </tr>
  <tr height=30>
    <td align=left>제   목 : $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>
");
?>
 
 
고수님들  이 소스가 뭐가 잘못됐는지 확인해주세요
입금이나   결과가  입력하면  자동으로 팝업이 나와서  알려주는건데   팝업이   일정한 시간되었다가  다 확인해준 팝업도  계속 나오네요       한번에   몇백개씩 나옵니다  ㅠ,ㅠ   죽겠습니다
어떻게  처리할 방법이 없나요
|
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

8,188건
+
제목 글쓴이 날짜 조회
12-06-05 조회 3,122
12-06-04 조회 3,157
12-06-02 조회 3,065
12-06-02 조회 3,800
12-06-01 조회 3,535
12-05-25 조회 3,516
12-05-25 조회 3,032
12-05-21 조회 3,449
12-05-19 조회 2,784
12-05-18 조회 3,202
12-05-16 조회 3,257
12-05-11 조회 2,809
12-05-07 조회 2,868
12-05-05 조회 3,088
12-05-05 조회 2,988
12-05-05 조회 2,879
12-05-04 조회 3,932
12-05-03 조회 3,040
12-04-30 조회 3,058
12-04-26 조회 3,981
12-04-25 조회 2,799
12-04-23 조회 2,887
12-04-23 조회 2,830
12-04-20 조회 4,233
12-04-20 조회 3,187
12-04-18 조회 2,786
12-04-17 조회 3,458
12-04-17 조회 2,788
12-04-17 조회 3,284
12-04-16 조회 2,741
12-04-16 조회 3,034
12-04-13 조회 2,765
12-04-06 조회 3,507
12-04-05 조회 2,891
12-04-03 조회 3,146
12-04-03 조회 2,782
12-03-30 조회 2,768
12-03-30 조회 3,234
12-03-29 조회 3,794
12-03-27 조회 2,927
12-03-26 조회 4,011
12-03-24 조회 6,255
12-03-24 조회 3,759
12-03-23 조회 2,909
12-03-22 조회 3,141
12-03-22 조회 3,420
12-03-22 조회 3,607
12-03-22 조회 4,960
12-03-21 조회 3,062
12-03-21 조회 2,762
12-03-21 조회 4,778
12-03-20 조회 5,539
12-03-20 조회 2,724
12-03-17 조회 3,235
12-03-16 조회 3,268
12-03-15 조회 2,649
12-03-14 조회 2,816
12-03-13 조회 2,862
12-03-12 조회 3,906
12-03-09 조회 2,967
12-03-09 조회 3,901
12-03-07 조회 2,787
12-03-07 조회 2,952
12-03-07 조회 2,632
12-03-02 조회 2,995
12-03-02 조회 3,250
12-03-01 조회 5,034
12-02-29 조회 3,843
12-02-27 조회 4,224
12-02-27 조회 3,114
12-02-26 조회 2,846
12-02-26 조회 5,044
12-02-25 조회 2,591
12-02-23 조회 2,915
12-02-23 조회 2,680
12-02-22 조회 3,765
12-02-21 조회 2,793
12-02-20 조회 3,018
12-02-20 조회 2,862
12-02-20 조회 5,564
12-02-20 조회 3,474
12-02-19 조회 3,235
12-02-18 조회 2,963
12-02-17 조회 3,457
12-02-15 조회 3,010
12-02-14 조회 2,913
12-02-11 조회 2,885
12-02-09 조회 6,321
12-02-09 조회 3,005
12-02-06 조회 2,868
12-02-05 조회 2,881
12-02-04 조회 6,630
12-02-02 조회 5,268
12-01-31 조회 2,785
12-01-30 조회 2,723
12-01-30 조회 2,889
12-01-29 조회 3,100
12-01-27 조회 2,775
12-01-26 조회 2,825
12-01-25 조회 2,735