这回问你们一个比较有难度的问题,
<form action="city.php?module=add" method="Post" name='frmdirection' id='frmdirection'><br /> <input type="hidden" name="id" value="{$data.id}" id="uid"/><br /> <table width="100%" border="0" cellpadding="0" cellspacing="0" class="ttbb2"><br /> <tr ><br /> <td width="40%" align="right" bgcolor="#e9f4ff"><strong>所属省</strong></td><br /> <td><br /> <select name = "province" id="parent_one_id" {if $data.parent_one_id neq '99999'}style="display:block"{else}style="display:none"{/if}><br /> {foreach from=$province item=item key=index}<br /> <option value="{$item.id}"<br /> {if $item.id eq $data.parent_one_id && $data.parent_one_id neq ""}<br /> selected="selected"<br /> {/if}<br /> >{$item.name} </option><br /> {/foreach}<br /><br /> </select><br /> </td><br /> </tr> <br /> <br /> <br /> <tr ><br /> <td width="40%" align="right" bgcolor="#e9f4ff"><strong>所属国家</strong></td><br /> <td><br /> <select name = "country" id="parent_one_id" {if $data.parent_one_id neq '99999'}style="display:block"{else}style="display:none"{/if}><br /> {foreach from=$parent item=item key=index}<br /> <option value="{$item.id}"<br /> {if $item.id eq $data.parent_one_id && $data.parent_one_id neq ""}<br /> selected="selected"<br /> {/if}<br /> >{$item.name} </option><br /> {/foreach}<br /><br /> </select><br /> </td><br /> </tr> <br /> <tr><br /> <td width="40%" align="right" bgcolor="#e9f4ff"><strong>地区/行政区域</strong></td><br /> <td><br /> <input type="radio" name="pos_occu" value="0" {if $data.parent_one_id eq "" or $data.parent_one_id neq '99999'}checked="checked"{/if} onclick="clickRadio()"/>市<br /> <input type="radio" name="pos_occu" value="1" {if $data.parent_one_id eq '99999'}checked="checked"{/if} onclick="clickRadio()"/>省<br /> <br /> </td><br /> </tr><br /> <tr><br /> <td width="40%" align="right" bgcolor="#e9f4ff"><strong>名称</strong></td><br /> <td><input type ="text" class="txt150" name = "name" value="{$data.name}" id="name"><br /> </td><br /> </tr><br /></table><br /></form>