Çô¿À¸®      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    
      

       

20477 Àú±â¿ä~ [1] Àμ±¡Ú 03/19 700
20476 °èÁ¤°ü·Ã Áú¹®ÀÔ´Ï´Ù. [1] heeya* 03/19 1
20475 Á¦·Îº¸µå ¸®¼ÂÇϽðí,, [1] 03/19 1
20474 ¼­ºñ½º º¯°æ [1] ±èÇö 03/19 1
20473 ¼­ºñ½º º¯°æ¿¡ ´ëÇÏ¿© ´Ù½ÃÇѹø Áú¹® µå¸³´Ï´Ù. [2] Á¶º´Ãµ 03/19 2
20472 ¼­ºêµµ¸ÞÀÎ ¼ÂÆÃ°Ç (±Þ) [3] Á¶º´Ãµ 03/19 2
20471 ·Î¸ð°¶·¯¸® °ü·Ã [4] Á¶¼ºÈ£¾ß 03/19 3
20470 °³ÀÎÁ¤º¸ º¯°æ¿¡ ´ëÇØ [1] greenseoul 03/19 2
20469 °èÁ¤ÇØÁö¿ä [1] ±è¿¬Áø 03/19 1
20468 °èÁ¤°ü·Ã Áú¹®ÀÔ´Ï´Ù [1] Á¤Àμö 03/18 1
20467 ÀÔ±ÝÇÑÁö ÇÑ´Þµ¹ÆÄ~ÃàÇÏÇØ¿ä [2] ¹ø¿µ±³È¸ 03/18 724
20466 Á¦·Îº¸µå,·Î±äÀ̾ȵǿä, [1] 03/18 2
20465 ¼­ºñ½º º¯°æ¿¡ ´ëÇÏ¿©. [2] Á¶º´Ãµ 03/18 1
20464 ¹¹°¡ À߸øµÈ°É±î¿ä... Èæ [1] ¾µ 03/18 1
20463 ºñ¹Ð¹øÈ£¸¦ Àؾî¹ö·È½À´Ï´Ù. [1] ¹Ú¼Ò¿¬ 03/18 849
FIRST250257258259260261262263270LAST