//ÇÔ¼ö µî·Ï ºÎ ========================================================
function echo_line($no, $row, $line) {
global $d_main, $d_dep, $code, $main_no, $dep_no, $icon, $a_border, $al_color, $ag_color, $avm_color, $read_key, $id, $new_list, $keyword, $ftype,
$a_cut, $thread, $down_no, $no_no, $writer_no, $date_no, $view_no, $cafe_url,$board, $opinion_num,$img_nums,$ats_color,$avs_color;
//¸ñ·Ï±ÛÀÇ ±æÀÌ ÀÚ¸£±â.
include("../../inc_file/list/cut.php");
//Á¦¸ñ°ú À̸§ÀÇ °Ë»ö¾î¿¡ ¹ÙÅÁ»ö ÀÔÈ÷±â
include("../../inc_file/list/keyword.php");
//ÀÌÀü±Û, ´ÙÀ½±ÛÀ» À§ÇØ 2¸¦ »«´Ù.
$no = $no-2;
//Àǰߴޱ⠰³¼ö ±¸Çϱâ
include("../../inc_file/list/opinion.php");
//dbÀÇ ÆÄÀÏÀ̸§¿¡¼ È®ÀåÀÚ¸¦ ÃßÃâÇØ ¸ÞÀγѹö¿Í µö³Ñ¹ö µÚ¿¡ ºÙÀδÙ.
$ext = strrchr($row[file1],".");
$fn = $row[main_no].$row[dep_no].$ext;
//1.2¹øÆÄÀÏÀÇ È®ÀåÀÚ¿Í ÆÄÀÏÅ©±â¸¦ ±¸ÇÏ´Â ¼Ò½º
include("../../inc_file/view/file.php");
//¾÷ÆÄÀÏÀÇ fd_1¿¡ ÆÄÀÏÀÌ ÀÖÀ¸¸é À̹ÌÁöÀÇ °¡·Î.¼¼·Î Å©±â¸¦ ±¸ÇØ ÆË¾÷âÀÇ Å©±â¸¦ °áÁ¤
if($file1_size) {
$img=GetImageSize("../../system/upfile/$code/fd_1/$fn");
$width=$img[0]; //°¡·Î »çÀÌÁî
$height=$img[1]; //¼¼·Î »çÀÌÁî
if($height>=650) {$w_rate=650/$height; $height=650; $width=floor($width*$w_rate);}
}
//ÇöÀçÀÇ ³ªÀÌ¿Í ´Þ¸®±â ½ÃÀ۳⵵¸¦ ±¸ÇÑ´Ù.
$current_old=date(Y)-$row[sub1]+1;
$carrier_year=date(Y)-$row[sub2]+1;
//Å«À̹ÌÁö º¸±â
if($row[file2]){
$img_link = "
\n";
}
else {
$img_link = "
\n";
}
//À̹ÌÁö¸¦ Ãâ·ÂÇϱâÀ§ÇÑ Á¶°Ç°ú ÇÔ¼ö, °¡·Î·Î ÃÖ´ë 5°³, ÃÖ¼Ò 1±îÁö Çã¿ë
if($img_nums<=0) $img_nums=1; //°¡·Î·Î ÃÖ¼Ò 1°³ÀÌ»óÀ» Çã¿ëÇϱâÀ§ÇØ
$td_size=floor(100/$img_nums); //ÇÑ ºí·°ÀÇ Å©±â¸¦ ³»¼ td¿¡ ³ÐÀ̸¦ Á¤ÇϱâÀ§ÇØ
if($line%$img_nums==0)
echo "
\n";
//ȸ¿ø¸¸ ³»¿ëº¸±â¸¦ ÇßÀ» ½Ã¿¡ ¸µÅ©
if(($read_key==c and strlen($id)>0) or $read_key==a or $read_key==b)
$title_link="";
echo "
\n";
//°øÁö±ÛÀÌ ¾Æ´Ñ ±Û¾´ÀÌ¿¡ ·¹À̾ °É¾îÁØ´Ù.
$noo=$no+2;
if($writer_no==a) {
if($row[main_no]<0) echo "$name";
else echo "$name";
}
echo "
|
$title_link$title $count_opp |
\n";
if($row[read_only]==a) echo "´Þ¸®±âÀÏÁöº¸±â[ºñ°ø°³]";
else
echo "´Þ¸®±âÀÏÁöº¸±â[°ø°³]";
echo "
|
\n";
if(strlen($row[file2])>0)
echo $img_link;
else
echo " \n";
if($row[sub4]=="W") $sex="(¿©)";
else $sex="(³²)";
echo "
|
ÇöÀ糪ÀÌ : $current_old"."¼¼ $sex
´Þ¸²°æ·Â : $carrier_year ³â°
ÀüȹøÈ£ : $row[sub3]\n";
if($row[email]) echo "
À̸ÞÀÏ : $row[email]";
if($row[homeurl]<>"http://") echo "
ȨÆäÀÌÁö : $row[homeurl]
| \n";
//runningÄÚµå·ÎºÎÅÍ µ¥ÀÌŸ¸¦ ºÒ·¯¿Â´Ù 10km, half, fullÄÚ½º ÃÖ°í±â·Ï »Ì¾Æ³»±â
$sql= "select * from $board
where code = 'running' and add_no=0 and main_no>0 and id='$row[id]'
order by sub1 desc, sub2 desc, sub3 desc, main_no desc, dep_no desc";
$result = mysql_query($sql);
$ten_num=0; $half_num=0; $full_num=0; $total_num=0;
while($rowr = mysql_fetch_array($result))
{
if($rowr[reply_sel]==n and $rowr[read_only]==b)
{$ten_best="$rowr[sub1]:$rowr[sub2]:$rowr[sub3]"; $ten_num++;}
if($rowr[reply_sel]==n and $rowr[read_only]==c)
{$half_best="$rowr[sub1]:$rowr[sub2]:$rowr[sub3]"; $half_num++;}
if($rowr[reply_sel]==n and $rowr[read_only]==d)
{$full_best="$rowr[sub1]:$rowr[sub2]:$rowr[sub3]"; $full_num++;}
$total_distance = $total_distance+$rowr[link1];
$total_num++;
}
if(!$ten_best) $ten_best="±â·Ï¾øÀ½";
if(!$half_best) $half_best="±â·Ï¾øÀ½";
if(!$full_best) $full_best="±â·Ï¾øÀ½";
if(!$total_distance) $total_distance="±â·Ï¾øÀ½"; else $total_distance=number_format($total_distance,0)." km";
echo "
ÃÖ °í ±â ·Ï |
Full : $full_best ($full_num"."ȸ) |
Half : $half_best ($half_num"."ȸ) |
10km : $ten_best ($ten_num"."ȸ) |
ÃÑ´Þ¸°°Å¸® |
$total_distance ($total_num) |
$title_link»ó¼¼³»¿ëº¸($row[view]) |
\n";
echo "
|
| \n";
}
// ========================================================ÇÔ¼ö µî·Ï ºÎ
//¾Æ·¡ DB·ÎºÎÅÍ µ¥ÀÌŸ¸¦ ºÒ·¯¿Í Á¤¿ÇÏ´Â ¹æ½ÄÀ» ¼±ÅÃ
//""¾È¿¡ Á¤¿À» ¿øÇÏ´Â º¯¼ö¸¦ ¾²¸é µÈ´Ù. ¿øÇÏÁö ¾ÊÀ¸¸é ""¸¸ ¾¸. (ÁÖÀÇ)º¯¼öµÚ ½°Ç¥(,)Àº ²À ¾µ °Í.
//¿ªÀ¸·Î Á¤¿À» ¿øÇϸé "º¯¼ö desc," ÀÌ·± ½ÄÀ¸·Î ÇÒ °Í.
$db_array="";
//db·ÎºÎÅÍ µ¥ÀÌŸ¸¦ ºÒ·¯¿Í¼ °¡°øÃ³¸®
include("../../inc_file/list/sql_1.php");
//±Û ³»¿ë º¸±â Æû°ú ÆäÀÌÁö À̵¿ Æû
include("../../inc_file/list/form.php");
//°Ô½ÃÆÇ Á¦¸ñ°ú Ä«¿îÅ͸¦ ´ã°í ÀÖÀ½--htmlÀ̹ǷΠº»ÀÎÀÇ ±¸¹Ì¿¡ ¸Â°Ô ¼öÁ¤ °¡´É
include("../../inc_file/list/titlecount.php");
?>
CELLSPACING=0 CELLPADDING==$cellped?>>
cellpadding=2 border=0 width=100% class=outline>
include("../../inc_file/list/while_notice.php");?>
include("../../inc_file/list/while_list.php");?>
|
include("../../inc_file/list/page.php"); ?>
|
|
include("../../inc_file/list/pagemove.php");?>
|
if($id) include("../../inc_file/list/write.php");?>
|
|