67 lines
1.9 KiB
PHP
67 lines
1.9 KiB
PHP
|
|
<html>
|
||
|
|
<head>
|
||
|
|
<title> 설문조사 </title>
|
||
|
|
<link rel="stylesheet" type="text/css" href="../css/survey.css">
|
||
|
|
<meta charset="utf-8">
|
||
|
|
<script>
|
||
|
|
function update()
|
||
|
|
{
|
||
|
|
var vote;
|
||
|
|
var length = document.survey_form.composer.length;
|
||
|
|
for(var i=0; i<length; i++)
|
||
|
|
{
|
||
|
|
if(document.survey_form.composer[i].checked==true)
|
||
|
|
{
|
||
|
|
vote=document.survey_form.composer[i].value;
|
||
|
|
break;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
if(i==length)
|
||
|
|
{
|
||
|
|
alert("문항을 선택하세요!");
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
window.open("update.php?composer="+vote,"","left=200, top=200, width=250, height=250, status=no,scrollbars=no");
|
||
|
|
window.close();
|
||
|
|
}
|
||
|
|
|
||
|
|
function result()
|
||
|
|
{
|
||
|
|
window.open("result.php","left=200, top=200, width=250, height=250, status=no,scrollbars=no");
|
||
|
|
window.close();
|
||
|
|
}
|
||
|
|
</script>
|
||
|
|
</head>
|
||
|
|
<body>
|
||
|
|
<form name="survey_form" method="post">
|
||
|
|
<table border="0" cellspacing="0" cellpdding="0" width="230" align="center">
|
||
|
|
<input type="hidden" name="kkk" value="100"
|
||
|
|
<tr height="40">
|
||
|
|
<td><img src="../img/bbs_poll.gif"></td>
|
||
|
|
</tr>
|
||
|
|
<tr height="1" bgcolor="#cccccc"><td></td></tr>
|
||
|
|
<tr height="7"><td></td><tr>
|
||
|
|
<tr><td><b> 가장 좋아하는 작곡가는 ? </b></td></tr>
|
||
|
|
<tr><td><input type="radio" name="composer" value="ans1"> 1. 타레가</td></tr>
|
||
|
|
<tr height="5" <td></td></tr>
|
||
|
|
<tr><td><input type="radio" name="composer" value="ans2"> 2. 빌라로보스</td></tr>
|
||
|
|
<tr height="5" <td></td></tr>
|
||
|
|
<tr><td><input type="radio" name="composer" value="ans3"> 3. 끌레앙</td></tr>
|
||
|
|
<tr height="5" <td></td></tr>
|
||
|
|
<tr><td><input type="radio" name="composer" value="ans4"> 4. 소르</td></tr>
|
||
|
|
<tr height="5" <td></td></tr>
|
||
|
|
<tr height="7" <td></td></tr>
|
||
|
|
<tr>
|
||
|
|
<td aligh="middle"><img src="../img/b_vote.gif" border="0" style="cursor:hand" onclick="update()">
|
||
|
|
<img src="../img/b_result.gif" border="0" style="cursor:hand" onclick="result()"></td></tr>
|
||
|
|
</tabel>
|
||
|
|
</form>
|
||
|
|
</body>
|
||
|
|
</html>
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|