1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
<? session_start(); ?> <?php include_once("_common.php");?> <head> <? if( $adminid == "" ){ ?> <SCRIPT LANGUAGE='JavaScript'> alert("°ü¸®ÀÚ ·Î±×ÀÎ ÈÄ¿¡ À̿밡´ÉÇÕ´Ï´Ù."); location.href = "../onlinecs/adminintro.php"; </script> <? }
$admin = str_replace("admin+","",$adminid); include("../onlinecs/commonSTADMIN.php");
$qry = "SELECT * FROM customer WHERE loginid = '$id'"; $result = mysql_query($qry) or die (mysql_error()); if( mysql_num_rows($result) > 0){ $row = mysql_fetch_array($result); // mysql_close(); $sacode = $row[ocode]; $cuscode = $row[code];
}
?> <script>
<? $sub2 = substr($sub,0,4)."9999"; $mqry = "SELECT * FROM pclass WHERE plevel ='2' AND fullpath BETWEEN '$sub' AND '$sub2'";
$resultm = mysql_query($mqry); $total = mysql_affected_rows()+1;
?>
parent.category.detail.length = <?=$total?>;
<? $i = 1; while($data = mysql_fetch_array($resultm)){ ?> parent.category.detail.options[<?=$i?>].text = '<?=$data[name]?>'; parent.category.detail.options[<?=$i?>].value = '<?=$data[fullpath]?>';
<? $i++; } ?>
</script>
<!--------------------¼ÒºÐ·ù Ä«Å×°í¸® ó¸® ¿Ï·á --------------------->
<? $i = 1; $Lqry = "SELECT * FROM pclass WHERE plevel = '2' AND fullpath BETWEEN '$sub' AND '$sub2'"; $Lresult = mysql_query($Lqry); while($Ldata = mysql_fetch_array($Lresult)){ ?> <script> parent.insertform('tb_list',0); parent.document.getElementsByName('leftname')[<?=$i?>].value = '<?=$Ldata[name]?>'; parent.document.getElementsByName('leftcode')[<?=$i?>].value = '<?=$Ldata[fullpath]?>';
</script> <? $i++; } ?>
|