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

       

24249 »çÀÌÆ® Á¢¼ÓÇÏ¸é °è¼ÓÇؼ­ Php Version °ü·ÃµÈ ³»... [1] ³ªµµ 10/16 3975
24248 Á¢¼ÓÀÌ ¾ÈµÇ¿ä [1] ÇÁ¸®Àª 10/12 0
24247 ÀÎÁõ¼­ ½ÅûÇÕ´Ï´Ù. [2] naoo 10/01 0
24246 Æ®·¡ÇÈ ÃÊ°ú °ü·Ã ¹®ÀÇ [1] yc0287 09/26 0
24245 ÇÑ È£½ºÆÿ¡ µÎ°³ µµ¸ÞÀÎ »ç¿ë °¡´ÉÇÑ°¡¿ä? [1] bodumu 09/15 4457
24244 °¡ÀÔÁ¤º¸ [1] UnKnown 09/12 0
24243 ¾ÆÀÌÆù¿¡¼­ ¸ÞÀÏ ¼ÂÆà [1] ziggletv 09/06 0
24242 XE ¼³Ä¡ ¹®ÀÇ µå¸³´Ï´Ù. [1] ±èº´Ã¶ 08/20 0
24241 ¹®ÀÇ [1] ¾ÆÀ̸° 08/15 0
24240 Á¢¼ÓÀÌ µÇÁö ¾Ê½À´Ï´Ù. [1] ¾ÆÀ̸° 08/14 4448
24239 ¼­¹ö º¯°æ ¿äûÇÕ´Ï´Ù.. [1] j-hwan 08/01 4293
24238 È£½ºÆà 1³â ¿¬Àå ±×¸®°í Ãß°¡µµ¸ÞÀÎ ¿¬°áÇØÁö. [1] ÁÖ¼ú»ç 07/29 0
24237 ¸ÞÀÏÀÌ ¾ÈµÇ¾î¼­ ¹®ÀÇ µå¸³´Ï´Ù. [1] ziggletv 07/26 0
24236 È£½ºÆÿ¡ Ãß°¡µµ¸ÞÀÎ ¿¬°á ÇØÁö °ü·Ã ¹®ÀÇ [1] ÁÖ¼ú»ç 07/01 0
24235 À¥È£½ºÆà °ü·Ã ¹®ÀÇ [1] ÀÓÁöÇý 06/26 0
FIRST41112131415161724LAST