{layout:simple} {class:Shop.Admin.storeConfig.Transport_Edit_window}
<lbbody>
<table class="table">
    <tr>
        <th style="width: 20%;">
            <%=Tag("配送方式")%>：
        </th>
        <td style="width: 80%;">
            <input type="text" shop="true" min="notnull" id="Name" name="Name" class="input" style="width: 200px;" value="<%=model.Name %>" />
        </td>
    </tr>
    <tr>
        <th style="width: 20%;">
            <%=Tag("配送方式代码")%>：
        </th>
        <td style="width: 80%;">
            <input type="text" shop="true" id="Code" name="Code" class="input" style="width: 200px;" value="<%=model.Code %>" />
            <span style="color: #ff0000"><a href="http://code.google.com/p/kuaidi-api/wiki/Open_API_API_URL" target="_blank"><%=Tag("代码对照表")%></a></span>
        </td>
    </tr>
    <tr>
        <th style="vertical-align:top">
            <%=Tag("配送描述")%>：
        </th>
        <td>
            <textarea name="Description" id="Description" class="input" shop="true" style="width: 300px;height: 60px;"><%=model.Description%></textarea>
            <div class="tools clear">
                <ul>
                    <li class="plus"><a href="javascript:void(0);" onclick="javascript:resizeEditor('Description',100);"><b></b><span><%=Tag("展开")%></span></a></li>
                    <li class="minus"><a href="javascript:void(0);" onclick="javascript:resizeEditor('Description',-100)"><b></b><span><%=Tag("收缩")%></span></a></li>
                </ul>
            </div>
        </td>
    </tr>
    <tr>
        <th>
            <%=Tag("货到付款")%>：
        </th>
        <td>
            <input type="radio" name="IsCanofflinePay" shop="true" value="1" <%=model.IsCanofflinePay==1?"checked":"" %> /><%=Tag("支持")%>
            <input type="radio" name="IsCanofflinePay" shop="true" value="0" <%=model.IsCanofflinePay==0?"checked":"" %> /><%=Tag("不支持")%>
        </td>
    </tr>
        <tr>
            <th>
                <%=Tag("配送类型")%>：
            </th>
            <td style="text-align: left;">
                <%=Shop.Bussiness.EX_Type.TypeRadio("TransportType", "Type_id_TransportType", model.Type_id_TransportType, "shop=\"true\"", CurrentLanguage.Code)%>
            </td>
        </tr>
    <tr>
        <th>
            <%=Tag("排序序号")%>：
        </th>
        <td style="text-align: left;">
            <input type="text" class="input" shop="true" name="Sort" id="Sort" value="<%=model.Sort %>"
                style="width: 70px;" />
        </td>
    </tr>
    <tr>
        <td colspan="2" class="action">
            <div class="tools tools-m">
                <ul>
                    <li class="submit"><a href="javascript:void(0);" onclick="SaveObj();"><b></b><span><%=Tag("保存")%></span></a></li>
                </ul>
            </div>
        </td>
    </tr>
</table>
<script type="text/javascript">
    function SaveObj() {
        var postData = GetFormJsonData("shop");
        if (!CheckForm("shop", "span"))
            return false;
        var url = "<%=site.AdminPath %>/ajax/ajax_site.aspx?__Action=Transport_Edit&id=<%=model.id %>";
        RequestAjax(url,postData,function(){MsgBox(1, "<%=Tag("操作成功")%>", "?")});
    }
</script>
</lbbody>