{__NOLAYOUT__}
<include file="Common:dialog" />
<div class="page_table" style="width: 98%;">
    <form action="{:U("Admin/$modulename/CategorySave")}" method="post" class="formvalidate">
    <input type="hidden" name="model" id="model" value="{$modulename}"> 
    <input type="hidden" name="id" value="{$data.id}" id="id" />
        <table width="100%" cellpadding="0" cellspacing="1" border="0">
            <tbody>               
                <tr>
                    <td class="left" width="120">
                        <label class="validation"><span class="spanMsg">*</span>分类名称：</label>
                    </td>
                    <td>
                        <input type="text" class="input rounded" name="title" size="40" value="{$data.title}" style="width:300px;" validate='{ required:true,maxlength:50",messages:{required:"分类名称不能为空",maxlength:"分类名称不能超出30字符"}}'>
                    </td>
                    <td class="field"></td>
                </tr>
                <!--
                <tr>
                    <td class="left">
                        <label class="validation">别名：</label>
                    </td>
                    <td>
                        <input type="text" name="alias" id="alias" value="{$data.alias}" class="input rounded iColorPicker" size="40" style="width:300px;">
                    </td>
                    <td class="field">
                        
                    </td>
                </tr>
                -->
                <tr class="odd">
                    <td class="left">
                        <label class="validation">
                            <span class="spanMsg">*</span>父分类：
                        </label>
                    </td> 
                    <td>
                        {$category}
                    </td>
                    <td class="field"></td>
                </tr>
                <tr>
                    <td class="left">
                        <label class="validation"><span class="spanMsg">*</span>排序：</label>
                    </td>
                    <td>
<input type="text" name="order" value="<empty name="data.order">0<else />{$data.order}</empty>" class="input rounded" size="10">  
                    </td>
                    <td class="field">

                    </td>
                </tr>
                <tr>
                    <td class="left">
                        <label class="validation">
                            <span class="spanMsg">*</span>状态：
                        </label>
                    </td>  
                    <td class="rowform">
                        <ul>

                            <li>
                                <label>
                                    <input type="radio" <if condition="$data.status eq '1'">checked="checked"</if> value="1" name="status">启用</label>
                            </li>
                            <li>
                                <label>
                                    <input type="radio" <empty name="data.order">checked="checked"</empty> value="0" name="status">停用</label>
                            </li>
                        </ul>
                    </td>
                </tr>
                <!--
                <tr class="even">
                    <td class="left">
                        <label class="validation">
                            描述：
                        </label>
                    </td>
                    <td>
                        <textarea class="text-input textarea" id="wysiwyg" name="description" rows="10" cols="75">{$data.description}</textarea>
                    </td>
                    <td class="field"></td>
                </tr>
                -->
            </tbody>
        </table>
        <input type="submit" style="display:none;" name="dosubmit" id="dosubmit" class="dialog" value=" 提交 ">
    </form>
</div>