//ÇÔ¼ö µî·Ï ºÎ ========================================================
function echo_line($no, $row,$total_in, $total_out) {
global $d_main, $d_dep, $code, $main_no, $dep_no, $my_color, $icon, $a_border, $al_color, $ag_color,$scroll_color,$a_cut, $id, $read_key,$atb_color,$a_bordersize,
$check_box, $thread, $down_no, $no_no, $writer_no, $date_no, $view_no, $admin_email, $opinion_num, $new_list, $vote_no, $cafe_url,$board,$keyword, $ftype;
//¸ñ·Ï±ÛÀÇ ±æÀÌ ÀÚ¸£±â.
include("../../inc_file/list/cut.php");
//Á¦¸ñ°ú À̸§ÀÇ °Ë»ö¾î¿¡ ¹ÙÅÁ»ö ÀÔÈ÷±â
if(strlen($keyword)>0 and $ftype==subj) $title = eregi_replace("($keyword)", "$keyword", $title);
else $title=$title;
if(strlen($keyword)>0 and $ftype==name) $sub1 = eregi_replace("($keyword)", "$keyword", $row[sub1]);
else $sub1=$row[sub1];
//¸ñ·Ï±Û¿¡ ¾²·¹µå À̹ÌÁö ³Ö°í ¸µÅ©°É±â
include("../../inc_file/list/titlelink.php");
//Àǰߴޱ⠰³¼ö ±¸Çϱâ
include("../../inc_file/list/opinion.php");
//±×¸®µ¥ÀÌ¼Ç ±¸ÇöºÎ ½ÃÀÛ
if($no%2==0) $my_color="white"; elseif($no%2==1) $my_color="$atb_color";
echo "
\n";
//üũ¹Ú½º¸¦ »ç¿ëÇÒ °ÍÀΰ¡ ¸» °ÍÀΰ¡ °áÁ¤
if($check_box==a)
echo " | \n";
//¸®½ºÆ®¸¦ ¼±Åà Ãâ·ÂÇϱâ(d_main°ú d_depÀº view.html¿¡¼ ³Ñ¾î¿Â °ª),±Û ¹øÈ£¿Í ¼±Åà À̹ÌÁö Ãâ·Â
if($no_no==a && $row[main_no]==$d_main && $row[dep_no]==$d_dep)
echo " | \n";
elseif($no_no==a)
echo "$no | \n";
// °Å·¡ÀÏ
echo "$sub1 | \n";
//Àû ¿ä
echo "$title $count_opp | \n";
if($row[sub2]=="in") {$account_in=number_format($row[int_1]);$account_out=" ";}
elseif($row[sub2]=="out") {$account_in=" ";$account_out=number_format($row[int_1]);}
// ÀԱݱݾ×
echo "$account_in | \n";
// Ãâ±Ý±Ý¾×
echo "$account_out | \n";
$total_rest=($total_in-$total_out);
$total_rest=number_format($total_rest);
// ÀÜ ¾×
echo "$total_rest | \n";
echo "
\n";
return ($file_type);
}
// ========================================================ÇÔ¼ö µî·Ï ºÎ
//ÀÔÃâ±Ý ³¯Â¥º°·Î Á¤¸®Çϱâ À§ÇØ...
$db_array="sub1 desc,";
//°Ô½Ã¹° ¸ñ·Ï °¡Á®¿À±â
if(strlen($keyword) > 0)
{
switch ($ftype) {
case "subj":
$colm = title;
break;
case "cont":
$colm = content;
break;
case "name":
$colm = sub1;
break;
}
$sql="select * from $board
where code = '$code' and main_no>0 and
add_no =0 and
$colm like '%$keyword%'
order by $db_array main_no desc, dep_no desc";
}
else
$sql= "select * from $board
where code = '$code' and add_no=0 and main_no>0
order by $db_array main_no desc, dep_no desc";
//¾Æ·¡ sql¹®Àº °øÁö±ÛÀ» ¼±Åà Ãâ·ÂÇϱâ À§ÇØ ÀÛ¼ºÇÑ °ÍÀÌ´Ù.
$sql_notice= "select * from $board
where code = '$code' and add_no=0 and main_no<0
order by main_no desc, dep_no desc";
$result_notice = mysql_query($sql_notice);
$result = mysql_query($sql);
$colm ="";
//ÇÑȸ鿡 Ãâ·ÂÇÒ ÁÙ ¼ö
$rows = $a_rows;
//ÇÑ È¸é¿¡ Ãâ·ÂÇÒ ÆäÀÌÁö ¼ö
$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");
//°Ô½ÃÆÇ Á¦¸ñ°ú Ä«¿îÅ͸¦ ´ã°í ÀÖÀ½--htmlÀ̹ǷΠº»ÀÎÀÇ ±¸¹Ì¿¡ ¸Â°Ô ¼öÁ¤ °¡´É
include("../../inc_file/list/titlecount.php");
?>
CELLSPACING=0 CELLPADDING==$cellped?>>
cellpadding=2 border=0 width=100% class=outline >
height=25>
if($check_box==a) echo " | \n";
if($no_no==a) echo "¹øÈ£ | \n";
?>
°Å·¡ÀÏ |
Àû ¿ä |
ÀÔ±Ý±Ý¾× |
Ãâ±Ý±Ý¾× |
ÀÜ ¾× |
|