|
|
|
|
Çô¿À¸®
2003/04/29 22:55:19
|
4284
|
|
¼³¹®Á¶»ç¿ä |
|
http://hr38.compuz.com/zboard/zboard.php?id=sal
¿©±â´Ù°¡ ¼³Ä¡ Çߴµ¥ ¼³¹®Á¶»ç°¡ ¾ÈµÇ¿ä
<?
$host_name = "mysql.compuz.com"; // È£½ºÆ® ³×ÀÓ
$user_name = "hr38"; // db ¾ÆÀ̵ð
$db_name = "hr38"; // db ³×ÀÓ
$db_password = "---"; // db ºñ¹ø
$zero_path = "http://hr38.compuz.com/zboard"; // Á¦·Îº¸µåÀÇ À§Ä¡
?>
<?
//---------------------------------------------------
$filename=realpath(__FILE__);
$config_dir=eregi_replace("vote.php","",$filename);
require "$config_dir"."dbconn.php";
$id = "sal"; //¼³¹®Á¶»ç º¸µåÀ̸§
$title_leg = "999"; //¼³¹® Á¦¸ñ ±æÀÌ ÁöÁ¤Çϱâ
$log_image = "http://hr38.compuz.com/zboard/skin/roobi/img"; //À̹ÌÁö °æ·Î
// ¿©±â±îÁö ¼öÁ¤ÇÏ½Ã°í ¾Æ·¡¿¡ À¥Á¤ÁÖ¼Ò¸¦ Àû¾îÁÖ¼¼¿ä
$connect = mysql_connect($host_name,$user_name,$db_password);
mysql_select_db($db_name);
echo"<STYLE TYPE='text/css'>
@font-face {font-family:µ¸¿ò;}
A:link {color: #FF7DBF; text-decoration: none;}
A:visited {color: #FF7DBF; text-decoration: none;}
A:hover {color:#FF7DBF; text-decoration: none;}
BODY,TABLE,TR,TD,table{font-size:9pt; color: #FF7DBF; font-family:À¥Á¤;}
BODY
{scrollbar-face-color: #FFFFFF;
scrollbar-shadow-color: #FFE4F0;
scrollbar-highlight-color: #FFFFFF;
scrollbar-3dlight-color: #FFFFFF;
scrollbar-darkshadow-color: #FFFFFF;
scrollbar-track-color: #FFFFFF;
scrollbar-arrow-color:#FD89BD}
</style>
<script>
function check_survey_submit()
{
var check=0;
for(i=0;i<main_survey.sub_no.length;i++)
{
if(main_survey.sub_no[i].checked) {check=1;}
}
if(check<1) {alert('ÅõÇ¥ ¼±ÅÃÀ» ÇÏ¼Å¾ß ÇÕ´Ï´Ù.!'); return false;}
return true;
}
</script>
<table align=center border=0 cellpadding=0 cellspacing=0 width=170>
<tr>
<td width=170 colspan=3>
<img src=$log_image/"."box_top.gif></td>
</tr>
<tr>
<td width=14 rowspan=2 background=$log_image/"."box_left.gif>
<p> </p>
</td>
<td width=145>
<table align=center border=0 cellpadding=0 cellspacing=0>";
$result=mysql_query("select * from zetyx_board_$id where prev_no=0 order by arrangenum asc") or die(mysql_error());
for($i=0; $i < $data=mysql_fetch_array($result); $i++)
{
//Á¦¸ñ ÀÚ¸£±â
$title_cut="$data[subject]";
$title_leg2=strlen($title_cut);
for($k=0; $k<$title_leg-1; $k++)
{
if(ord(substr($title_cut, $k, 1))>127) $k++;
}
if ($title_leg2 > $title_leg)
{
$title_cutt=substr($title_cut, 0, $k)."...";
}
else { //ÀÚ¸¥ °ªº¸´Ù ÀÛÀ¸¸é ¿ø·¡´ë·Î
$title_cutt=$title_cut;
}
if($i==0)
{
$no=$data[no];
echo "
<tr>
<td width=145><p style=line-height:150%; margin-top:0; margin-bottom:0;> $title_cutt</td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td></td>
</tr>
";
echo "<form method=post action=$zero_path/"."apply_vote.php name=main_survey onsubmit='return check_survey_submit()' target=_blank>
<input type=hidden name=id value=$id>
<input type=hidden name=no value=$no>";
}else{
$sub_no=$no+$i; //À§¿¡¼ Á¤ÇØÁØ no¿¡ ÇöÀç iÀÇ °ªÀ» ´õÇؼ sub_no¿¡ ³Ö¾îÁÜ.
echo "
<tr>
<td width=145><input type=radio name=sub_no value=$sub_no onfocus=blur()> $title_cutt </td>
</tr>
<tr>
<td colspan=2></td>
</tr>";
}
}//for¹®
echo "
</table>
</td>
<td width=14 rowspan=2 background=$log_image/"."box_right.gif>
<p> </p>
</td>
</tr>
<tr>
<td width=145>
<table align=center>
<tr>
<td colspan=2 height=36 ><p align=center>
<input type='image' style='cursor:hand' src=$log_image/"."vote1.gif onfocus=blur() target=_blank> <a href=$zero_path/"."view.php?id=$id&no=$no style='cursor:hand' onfocus=blur() target=_blank><img src=$log_image/"."vote2.gif border=0></a>
</td>
</tr>
</form>
</table>
</td>
</tr>
<tr>
<td width=170 colspan=3>
<img src=$log_image/"."box_bottom.gif>
</td>
</tr>
</table>";
mysql_close();
?>
µµ¿ÍÁÖ¼¼¿ä
¤Ð,¤Ð |
|
writer ip : 220.75.235.216
|
|
|
|
|
|
|
|
|
ÄÄÇ»Áî´åÄÄ(´ëÇ¥ ÀåÁ¤ÁÖ) ÀÎõ±¤¿ª½Ã µ¿±¸ ¹æÃà·Î83¹ø±æ 23, 24µ¿ 333È£
»ç¾÷ÀÚµî·Ï¹øÈ£ 137-05-83351, Åë½ÅÆǸŠÀÎõ µ¿±¸ 03-78È£, °³ÀÎÁ¤º¸Ã¥ÀÓÀÚ ÀåÁ¤ÁÖ
|
|
|