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
|
<? session_start(); ?> <?php include_once("_common.php");?>
<? if(( $id == "" ) && ( $sid == "" )) { ?> <script> alert("e¼ö¹ßÁÖ ·Î±×ÀÎ ÈÄ¿¡ À̿밡´ÉÇÕ´Ï´Ù."); location.href = "../onlinecs/intro.php"; </script> <? }
include("../onlinecs/commonST.php"); ?>
<script> <? $sub = substr($mvalue,0,2)."999999"; $mqry = "SELECT * FROM pclass WHERE plevel ='1' AND fullpath BETWEEN '$mvalue' AND '$sub'";
$resultm = mysql_query($mqry); $total = mysql_affected_rows()+1;
?>
parent.category.sub.length = <?=$total?>;
<? $i = 1; while($data = mysql_fetch_array($resultm)){ ?> parent.category.sub.options[<?=$i?>].text = '<?=$data[name]?>'; parent.category.sub.options[<?=$i?>].value = '<?=$data[fullpath]?>'; // parent.location.href = "popcategory.php?idx=<?=$idx?>&nidx=<?=$nidx?>&mvalue="+mvalue;
<? $i++; }
?>
</script>
|