/home/mjc1/public_html/onlinecs/loadData_2.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
<? session_start(); ?>
<?php 
include_once("_common.php");?>

<?
    
if(( $id == "" ) && ( $sid == "" )) { 
?>
<script>
    alert("e¼ö¹ßÁÖ ·Î±×ÀΠÈÄ¿¡ À̿밡´ÉÇÕ´Ï´Ù.");
    location.href = "../onlinecs/intro.php";
</script>
<?     
     
}

  include(
"../onlinecs/commonST.php");
?>
<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
++;
    }
?>