Çô¿À¸®      2003/04/29 22:55:19     4167   
   ¼³¹®Á¶»ç¿ä
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    
      

       

14063 ¿À´Ã ÀÔ±ÝÇߴµ¥... [1] È«ÁöÇö 01/31 1
11555 ¸ðÁú¶ó´Ô; [1] È«Áö¿µ 10/13 6
11544 [re] °Ô½ÃÆÇ¿À·ù [1] È«Áö¿µ 10/13 1525
11537 °Ô½ÃÆÇ¿À·ù [2] È«Áö¿µ 10/13 1396
10292 ¹Ø¿¡ ±Û ¿Ã·È¾ú´Âµ¥¿ä.. È«Áö¿µ 08/26 1305
10283 Áú¹®ÀÌ¿ä ! [2] È«Áö¿µ 08/26 1351
23850 Áú¹®ÇÒ²²¿ä. [1] È«ÁÖ¾ß 01/22 0
23577 À¥È£½ºÆà ¿¬Àå. [1] È«ÁÖ¾ß 03/13 4621
22902 ¿¬Àå½Åû.. [1] È«ÁÖ¾ß 04/09 1
22898 °èÁ¤¿¬Àå½ÅûÇÕ´Ï´Ù. [1] È«ÁÖ¾ß 04/07 2
22480 ¿¬Àå½ÅûÇÕ´Ï´Ù [1] È«ÁÖ¾ß 04/06 3171
20982 Á¦·Îº¸µå°¡ ÀÌ»óÇϳ׿ä [2] È«ÁÖ¾ß 07/14 1874
20233 ¼­ºñ½º º¯°æ& ¿¬Àå ¹®ÀÇÀÔ´Ï´Ù. [1] È«ÁÖ¾ß 02/17 1655
14634 ¸ðÁú¶ó´Ô [3] È«ÁÖ¾ß 02/18 1669
14618 Áú¹®ÀÌ¿ä~ [2] È«ÁÖ¾ß 02/17 1427
FIRST41112131415161724LAST