0 and id='$id' order by id desc, sub1 desc"; $result3 = mysql_query($sql3); $row3 = mysql_fetch_array($result3); } ?>
>
0 and $add_write==yes or strlen($add_modify)>0) include("./entry_form.html"); ?> \n"; //½ÅûÀÚ À̸§°ú ¾ÆÀ̵ðÃâ·Â echo "$row[name]($row[id])\n"; //´Þ¸®±â Á¾¸ñ Ãâ·Â $pos = strpos($row[sub1],"_"); $sub_1 = substr($row[sub1],0,$pos); $int_1 = substr($row[sub1],$pos+1); if($sub_1=="5km") $sub_1="$sub_1"; elseif($sub_1=="10km") $sub_1="$sub_1"; elseif($sub_1=="HALF") $sub_1="$sub_1"; elseif($sub_1=="FULL") $sub_1="$sub_1"; else $sub_1="$sub_1"; echo "$sub_1\n"; //½Åû Àοø Ãâ·Â echo "$row[int_1]\n"; //Ƽ¼ÅÃ÷ »çÀÌÁî Ãâ·Â echo "$row[sub4]\n"; //Âü°¡ºñ Ãâ·Â $sub_2=$int_1*$row[int_1]; echo "$sub_2\n"; //Âü°¡ºñ ³³ºÎ ¿©ºÎ Ãâ·Â if($row[sub3]==Yes) $sub_3="$row[sub3]"; else $sub_3="$row[sub3]"; echo "$sub_3\n"; // ½Åû ³¯Â¥ include('../../inc_file/list/new_list.php'); //»õ±Û Ãâ·Â ¿©ºÎ¿Í ÀÛ¼º³¯ÀÚ ¼û±â±â°¡ µé¾î ÀÖ´Ù. echo "$row[sub5]\n"; //¼öÁ¤¹öư Ãâ·Â if($row[id]==$id) $mod_link="¼öÁ¤"; else $mod_link="¼öÁ¤"; echo "$mod_link\n"; //»èÁ¦¹öư Ãâ·Â echo "\n"; echo "\n"; return ($file_type); } // ========================================================ÇÔ¼ö µî·Ï ºÎ //db·ÎºÎÅÍ µ¥ÀÌŸ¸¦ ºÒ·¯¿Í¼­ °¡°øÃ³¸® //°Ô½Ã¹° ¸ñ·Ï °¡Á®¿À±â $sql= "select * from $board where code = '$code' and main_no=$main_no and dep_no='$dep_no' and add_no<>0 order by sub1 desc, name, add_no desc"; $result = mysql_query($sql); //Á¾¸ñº° Âü°¡ÀÚ¸¦ ±¸ÇϱâÀ§ÇØ º¯¼ö¸¦ resultº¯¼ö¸¦ Àá±ñ ÀÚ²å´Ù. $res = $result; $fi=0; $te=0; $ha=0; $fu=0; $g_1=0; $g_2=0; while($ro = mysql_fetch_array($res)) { if($ro[sub1]=="5km_$row[int_1]") $fi=$fi+$ro[int_1]; elseif($ro[sub1]=="10km_$row[int_2]") $te=$te+$ro[int_1]; elseif($ro[sub1]=="HALF_$row[int_3]") $ha=$ha+$ro[int_1]; elseif($ro[sub1]=="FULL_$row[int_4]") $fu=$fu+$ro[int_1]; elseif($ro[sub1]=="$row[sub7]Km_$row[int_5]") $g_1=$g_1+$ro[int_1]; elseif($ro[sub1]=="$row[sub8]Km_$row[int_6]") $g_2=$g_2+$ro[int_1]; } $t_count=$fi+$te+$ha+$fu+$g_1+$g_2; if($t_count>0) mysql_data_seek($res,0); $colm =""; //ÇÑÈ­¸é¿¡ Ãâ·ÂÇÒ ÁÙ ¼ö $rows = 20; //ÇÑ È­¸é¿¡ Ãâ·ÂÇÒ ÆäÀÌÁö ¼ö $page_scale = $a_page; // Àüü±Û ¸ñ·Ï ¼ö $count = mysql_num_rows($result); // ÇöÀç º¸¿©ÁÖ´Â ÆäÀÌÁö¹øÈ£ if (empty($page)) $page = 1; // ÇöÀç ÆäÀÌÁö¿¡ µû¸¥ º¸¿©ÁÙ °Ô½Ã¹°ÀÇ Ã¹ À§Ä¡ $start=($page-1)*$rows; // °á°ú Áß¿¡¼­ ÇöÀç ÆäÀÌÁöÀÇ Ã¹¹øÂ° ·¹ÄÚµå¼ÂÀ¸·Î À̵¿ÇÑ´Ù. if ($start > 1) mysql_data_seek($result,$start); // ÃÑ ÆäÀÌÁö¼ö $total = ceil(($count)/$rows); //±Û ³»¿ë º¸±â Æû°ú ÆäÀÌÁö À̵¿ Æû //include("../../inc_file/list/form.php"); ?>
CELLSPACING=0 CELLPADDING= BORDER=>
cellpadding=2 border=0 width=100% class=outline> 0 and $row[sub5]>=$run_date and strlen($add_write)<=0) {?> > ½ÅûÀÚ\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; ?>
>
0) {echo "HALF($ha ¸í)   ";} if($row[int_4]<>0) {echo "FULL($fu ¸í)   ";} if($row[int_1]<>0) {echo "5Km($fi ¸í)   ";} if($row[int_2]<>0) {echo "10Km($te ¸í)   ";} if($row[int_5]<>0) {echo "$row[sub7]Km($g_1 ¸í)   ";} if($row[int_6]<>0) {echo "$row[sub8]Km($g_2 ¸í)   ";} ?>
Á¾¸ñÀοøT-SizeÂü°¡ºñ³³ºÎ½ÅûÀϼöÁ¤»èÁ¦