浏览 6120 次
锁定老帖子 主题:关于easyui form 加载 数据
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
|
|
---|---|
作者 | 正文 |
发表时间:2012-02-23
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>jQuery EasyUI</title> <style type="text/css"> label{ width:120px; display:block; } </style> <link rel="stylesheet" type="text/css" href="public/css/easyui/default/easyui.css"> <link rel="stylesheet" type="text/css" href="public/css/easyui/icon.css"> <script type="text/javascript" src="public/js/easyui/jquery-1.7.1.min.js"></script> <script type="text/javascript" src="public/js/easyui/jquery.easyui.min.js"></script> <script type="text/javascript" src="public/js/china_info.js"></script> <script type="text/javascript"> function loaddata1(){ $('#ff').form('load','china_info_one_getdata.php?id=31'); } function cleardata(){ $('#ff').form('clear'); } </script> </head> <body> <h1>Form Demo</h1> <div> <a href="#" onClick="loaddata1()">载入</a> <a href="#" onClick="cleardata()">Clear</a> </div> <form method="post" id="ff"> <div id="p" class="easyui-dialog" title="My Pane"> <div class="easyui-tabs" tools="#tab-tools" style="width:600px;height:300px;"> <div title="基本信息" style="padding:10px;"> <table> <tr> <td align="right">商品名称:</td> <td><input name="china_name" size="30"></td> <td align="right">产地:</td> <td><select name="china_splacid" class="easyui-combobox" url="property_list.php?parent_id=1"> </select></td> </tr> <tr> <td align="right">等级:</td> <td> <select name="china_levelid" class="easyui-combobox" url="property_list.php?parent_id=8"> </select> </td> <td align="right">分类:</td> <td><select name="china_typeid" class="easyui-combobox" url="property_list.php?parent_id=2"> </select></td> </tr> <tr> <td align="right">包装:</td> <td><select name="china_packageid" class="easyui-combobox" url="property_list.php?parent_id=9"> </select></td> <td align="right">品牌:</td> <td><select name="china_brandid" class="easyui-combobox" url="property_list.php?parent_id=3"> </select></td> </tr> <tr> <td align="right">重量:</td> <td><label> <input name="china_weight" size="6" maxlength="6" /> 千克</label></td> <td align="right">花色:</td> <td><select name="china_flowerid" class="easyui-combobox" url="property_list.php?parent_id=4"> </select></td> </tr> <tr> <td align="right">运费:</td> <td><input name="china_ltl" size="6" maxlength="6" /> 元</td> <td align="right">材质:</td> <td><select name="china_materialid" class="easyui-combobox" url="property_list.php?parent_id=5"> </select></td> </tr> <tr> <td align="right">库存:</td> <td><input name="china_quantity" size="6"> 件</td> <td align="right">工艺:</td> <td><select name="china_processid" class="easyui-combobox" url="property_list.php?parent_id=6"> </select></td> </tr> <tr> <td align="right">属性:</td> <td>新品 <input type="checkbox" name="china_ifnew" value="1"> 精品 <input type="checkbox" name="china_ifbest" value="1"> 适用微波炉 <input type="checkbox" name="china_ifmicrowave" value="1"></td> <td align="right">风格:</td> <td><select name="china_styleid" class="easyui-combobox" url="property_list.php?parent_id=7"> </select></td> </tr> <tr> <td align="right">市场价格:</td> <td><input name="china_sales_price" size="6" /></td> <td align="right">网上价格:</td> <td><input name="china_net_price" size="6" /></td> </tr> <tr> <td align="right">是否促销:</td> <td colspan="3"><input type="checkbox" name="china_ifhot" value="1"> 促销价: <input name="china_hot_price" size="6" maxlength="6" /> 促销日期: <input class="easyui-datebox" name="china_hot_star" style="width:100px;" required="true"> 至 <input class="easyui-datebox" name="china_hot_end" style="width:100px;" required="true"></td> </tr> </table> </div> <div title="详细描述" style="padding:10px;"> <textarea class="ckeditor" cols="69" id="china_message" name="china_message" rows="15"></textarea> </div> <div title="商品相册" style="padding:10px;"> Third Tab </div> </div> <div id="tab-tools"> <a href="#" class="easyui-linkbutton" plain="true" iconCls="icon-save" onclick="loaddata1()">保存</a> </div> </div> </form> </body> </html> 声明:ITeye文章版权属于作者,受法律保护。没有作者书面许可不得转载。
推荐链接
|
|
返回顶楼 | |
发表时间:2012-02-23
把form和dialog倒过来啊:
<div id="p" class="easyui-dialog" title="My Pane"> <form method="post" id="ff"> </form> </div> |
|
返回顶楼 | |
发表时间:2012-02-23
OK了,居然会这样!
|
|
返回顶楼 | |