天天看點

求救啊 radio改成checkbox之後送出還是會變成單選啊

<div class="form-group">
                <label class="col-lg control-label">分銷等級說明連結</label>
                <div class="col-sm-9 col-xs-12">
                	{ifp 'commission.set.edit'}
                    <input type="text" name="data[levelurl]" class="form-control" value="{$data['levelurl']}"  />
                    <span class="help-block">分銷等級說明連結</span>
                  {else}
                  	{$data['levelurl']}
                  {/if}
                </div>
            </div>  
<div class="form-group">
                <label class="col-lg control-label">分銷商等級更新依據</label>
                <div class="col-sm-9 col-xs-12">
              			{ifp 'commission.set.edit'}
                       <div style="background: #f5f7f9;width: 520px;padding: 10px;">
                           <label class="radio radio-inline" style="width:240px">
                               <input type="radio" name="data[leveltype]" value="0" {if empty($data['leveltype'])}checked{/if}/> 分銷訂單總額(完成的訂單)
                           </label>
                           <label class="radio radio-inline" style="width:240px">
                               <input type="radio" name="data[leveltype]" value="1" {if $data['leveltype']==1}checked{/if}/> 一級分銷訂單金額(完成的訂單)
                           </label>

                           <br/>

                           <label class="radio radio-inline" style="width:240px">
                               <input type="radio" name="data[leveltype]" value="2" {if $data['leveltype']==2}checked{/if}/> 分銷訂單總數(完成的訂單)
                           </label>
                           <label class="radio radio-inline" style="width:240px">
                               <input type="radio" name="data[leveltype]" value="3" {if $data['leveltype']==3}checked{/if}/> 一級分銷訂單總數(完成的訂單)
                           </label>
                       </div>
                        

												
                    <div style="background: #f5f7f9;width: 520px;padding: 10px;margin-top: 10px">
                        <label class="radio radio-inline" style="width:240px">
                            <input type="radio" name="data[leveltype]" value="4" {if $data['leveltype']==4}checked{/if}/> 自購訂單金額(完成的訂單)
                        </label>
                        <label class="radio radio-inline" style="width:240px">
                            <input type="radio" name="data[leveltype]" value="5" {if $data['leveltype']==5}checked{/if}/> 自購訂單數量(完成的訂單)
                        </label>
                    </div>

												
                    <div style="background: #f5f7f9;width: 520px;padding: 10px;margin-top: 10px">
                        <label class="radio radio-inline" style="width:240px">
                            <input type="radio" name="data[leveltype]" value="6" {if $data['leveltype']==6}checked{/if}/> 下線總人數(分銷商+非分銷商)
                        </label>
                        <label class="radio radio-inline" style="width:240px">
                            <input type="radio" name="data[leveltype]" value="7" {if $data['leveltype']==7}checked{/if}/> 一級下線人數(分銷商+非分銷商)
                        </label>
                        <br />
                        <label class="radio radio-inline" style="width:240px">
                            <input type="radio" name="data[leveltype]" value="8" {if $data['leveltype']==8}checked{/if}/> 下級分銷商總人數
                        </label>
                        <label class="radio radio-inline" style="width:240px">
                            <input type="radio" name="data[leveltype]" value="9" {if $data['leveltype']==9}checked{/if}/> 一級分銷商人數
                        </label>
                    </div>

                    <div style="background: #f5f7f9;width: 520px;padding: 10px;margin-top: 10px">
                        <label class="radio radio-inline" style="width:240px">
                            <input type="radio" name="data[leveltype]" value="11" {if $data['leveltype']==11}checked{/if}/> 購買指定産品
                        </label>
                    </div>

                    <div style="background: #f5f7f9;width: 520px;padding: 10px;margin-top: 10px">
                        <label class="radio radio-inline" style="width:240px">
                            <input type="radio" name="data[leveltype]" value="10" {if $data['leveltype']==10}checked{/if}/> 已提現傭金總金額
                        </label>
                    </div>
                        <span class="help-block">預設為分銷訂單總金額</span>
                      {else}
                      		{if empty($data['leveltype'])}{/if}
                      		{if $data['leveltype']==1}分銷訂單總額(完成的訂單){/if}
                      		{if $data['leveltype']==2}一級分銷訂單金額(完成的訂單){/if}
                      		{if $data['leveltype']==3}一級分銷訂單總數(完成的訂單){/if}
                      		{if $data['leveltype']==4}自購訂單金額(完成的訂單){/if}
                      		{if $data['leveltype']==5}自購訂單數量(完成的訂單){/if}
                      		{if $data['leveltype']==6}下線總人數(分銷商+非分銷商){/if}
                      		{if $data['leveltype']==7}一級下線人數(分銷商+非分銷商){/if}
                      		{if $data['leveltype']==8}下級分銷商總人數{/if}
                      		{if $data['leveltype']==9}一級分銷商人數{/if}
                      		{if $data['leveltype']==10}已提現傭金總金額{/if}
                            {if $data['leveltype']==11}購買指定産品{/if}
                      {/if}
                </div>
            </div>
           

這是我的代碼 求大神教!