/home/mjc1/public_html/onlinecs/adminloadData.php


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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<?
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 LANGUAGE='JavaScript'> 

cnt = 0;
<?
 $Lsub 
substr($mvalue,0,2);
 
$sub $Lsub."999999";

 
$mqry "SELECT * FROM pclass WHERE plevel ='1' AND fullpath BETWEEN '$mvalue' AND '$sub'";

 
$resultm mysql_query($mqry);
 
$total mysql_affected_rows()+1//Áߺзù ´ÙÀ½À¸·Î ¿À°Ô Çϱâ À§ÇÑ +1ó¸®
?>

//    parent.category.sub.length = <?=$total?>;    //¼¿·ºÆ®¹Ú½º ±æÀÌ

    var objYears = parent.document.getElementById("sub");
    while(objYears.length > 1) objYears.remove(1);
<? 
    $i 
1;
    while(
$data mysql_fetch_array($resultm)){
?>

    var objOption = parent.document.createElement("option");
    objOption.text =  '<?=$data[name]?>';
    objOption.value =  '<?=$data[fullpath]?>';
    objYears.options.add(objOption);

//    parent.document.getElementById('sub')[<?=$i?>].text = '<?=$data[name]?>';
//    parent.document.getElementById('sub')[<?=$i?>].value = '<?=$data[fullpath]?>';
// ff
//    parent.category.sub.options[<?=$i?>].text = '<?=$data[name]?>';
//    parent.category.sub.options[<?=$i?>].value = '<?=$data[fullpath]?>';

// ie
//    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;
//    insert();

<? 
    $i
++;

?>
//    alert('Áõ°¡');
</script>
<!--------------------Áߺзù Ä«Å×°í¸® Ã³¸® ¿Ï·á --------------------->

<?
    $i 
1;
    
$Lqry "SELECT * FROM  pclass WHERE plevel = '2' AND fullpath BETWEEN '$mvalue' AND '$sub'";
    
$Lresult mysql_query($Lqry);
    while(
$Ldata mysql_fetch_array($Lresult)){
?>
<SCRIPT LANGUAGE='JavaScript'> 
    
    parent.insertform('tb_list',0); 
    parent.document.getElementsByName('leftcode')[<?=$i?>].value = '<?=$Ldata[fullpath]?>';
    parent.document.getElementsByName('leftname')[<?=$i?>].value = '<?=$Ldata[name]?>';


</script>
<?
     $i
++;
    }
?>