| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- <#def designatedPath="/designTypeList.htm"/>
- <script>
- function syncPinlei()
- {//同步品类
-
- var ajax = new Z.Ajax();
- ajax.setClassName("DesignPinleiPresenter");
- ajax.setMethodName("insert");
- ajax.setFailureAlert();
- ajax.setSuccess(function(){
- location.reload();
- });
- ajax.setLoading("submit", '<i class="z-font z-query"></i>正在查询', {disabled:true});
- ajax.execute();
- }
- function bindingType()
- {//绑定产品类型
- var id = Z.FM.getChecked("id");
- if (Z.V.isEmpty(id))
- {
- Z.alert("请选择一个品类");
- return;
- }
-
- var dialog = new Z.Dialog();
- dialog.title = "绑定产品类型";
- dialog.url = "/bindingType.htm?id=" + id;
- dialog.width = 600;
- dialog.height = 220;
- dialog.execute();
- }
- </script>
- ${zhiqim_manager_breadcrumb("设计类型")}
- ${zhiqim_manager_content()}
- <#-- 导航 -->
- <div data-role="z-tabnav" class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
- <nav>
- <ul>
- <li class="z-active">品类</li>
- </ul>
- <div class="z-text-right z-mg-t10 z-mg-r5">
- <button class="z-button ${zmr_color_class}" onclick="syncPinlei()"><i class="z-font z-add"></i>同步品类</button>
- <#-- <#if ZmrPathRule.check(request, "/designTypeModify.htm")><button class="z-button ${zmr_color_class}" onclick="Z.L.check('designTypeModify.htm?page=${page}', 'typeId');"><i class="z-font z-modify"></i>绑定产品类型</button></#if>
- --><button type="button" class="z-button z-blue" onclick="bindingType()"><i class="z-font z-modify"></i>绑定产品类型</button>
- </div>
- </nav>
- </div>
- <form>
- <table class="z-table z-pd10">
- <tr>
- <td width="250">品类ID:<input type="text" name="id" class="z-input z-w150 ${zmr_color_class}" value="" ></td>
- <td width="300">品类名称:<input type="text" name="name" class="z-input z-w200 ${zmr_color_class}" value="" placeholder="名称模糊匹配"></td>
- <td width="250">类型ID:<input type="text" name="typeId" class="z-input z-w150 ${zmr_color_class}" value="" ></td>
- <td width="300">类型名称:<input type="text" name="typeName" class="z-input z-w200 ${zmr_color_class}" value="" placeholder="名称模糊匹配"></td>
- <td width="*">
- <button type="submit" class="z-button z-blue"><i class="z-font z-query"></i>查询</button>
- <button type="button" class="z-button" onclick="Z.Forms.clearForm(this.form);">清空</button>
- </td>
- </tr>
- </table>
- </form>
- <#-- 列表 -->
- <table class="z-table z-bordered z-h40-tr z-pd6 z-bg-white z-text-center">
- <tr bgcolor="${zmr_thead_bgcolor}">
- <td width="40">选项</td>
- <td width="155">品类ID</td>
- <td width="100">品类名称</td>
- <td width="155">类型ID</td>
- <td width="100">类型名称</td>
- </tr>
- <#if Lists.size(pageResult.list()) == 0>
- ${zhiqim_manager_no_record(9, "无品类信息")}
- </#if>
- <#for item : pageResult.list()>
- <tr class="z-pointer" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
- <td><input id="id" name="id" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="${item.getId()}"></td>
- <td>${item.getId()}</td>
- <td>${item.getName()}</td>
- <#if item.getTypeId() == 0>
- <td></td>
- <#else>
- <td>${item.getTypeId()}</td>
- </#if>
- <td>${item.getTypeName()}</td>
- </tr>
- </#for>
- </table>
- ${zhiqim_manager_paging(pageResult, "/designPinleiList.htm")}
- ${zhiqim_manager_content_end()}
|