<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>プルダウンサンプル</title>
</head>

<body>
<h3>色を選択</h3>
<form id="form1" name="form1" method="post" action="">
  <table width="" border="1">
    <tr>
      <th width="" bgcolor="#00FF99" scope="col">番号</th>
      <th width="" bgcolor="#00FF99" scope="col">色選択</th>
    </tr>

{foreach from=$colorArray item=datnum}

    <tr>
      <td><div align="center">{$datnum.no}</div></td>
      <td><div align="center">
        <select name="select{$datnum.no}">
            {html_options options=$datnum.color selected=$datnum.color_select}
        </select>
      </div></td>
    </tr>

{/foreach}

  </table>
  <p>
    <input type="submit" name="Submit" value="送信" />
  </p>
  <p>&nbsp;  </p>
</form>
<p>&nbsp;</p>
<p>&nbsp;</p>
</body>

</html>