- 注册时间
- 2012-6-12
- 最后登录
- 2012-12-26
- 阅读权限
- 10
- 积分
- 273
- 精华
- 0
- 帖子
- 79
|
factory 发表于 2012-7-13 17:33
放里面也可以设置默认值的.你把你的代码贴来看看,包括form的
<div id="editDataBaseManage" class="mini-window" title="新增/编辑数据库管理" style="width: 450px;"
showmodal="true" allowdrag="true">
<div id="editDataBaseManageform" class="form">
<input class="mini-hidden" name="DataBaseId" />
<table style="width: 410px">
<tr>
<td style="width: 100px; text-align: right;">
数据库名:
</td>
<td style="width: 300px;">
<input name="DataBaseName" width="300" class="mini-textbox" required="true" requirederrortext="数据库名不能为空" />
</td>
</tr>
<tr>
<td style="width: 100px; margin-top: 10px; text-align: right;">
当前服务器:
</td>
<td style="width: 300px; margin-top: 10px;">
<input id="cmbServer" name="ServerId" class="mini-combobox" style="width: 150px;"
textfield="ServerIp" valuefield="ServerId" url="Handle/DataBaseManage.aspx?Method=GetServerList"
value="0" required="true" />
</td>
</tr>
<tr>
<td style="width: 100px; text-align: right;">
用户名:
</td>
<td style="width: 300px;">
<input name="UserName" width="300" class="mini-textbox" required="true" requirederrortext="用户名不能为空" />
</td>
</tr>
<tr>
<td style="width: 100px; text-align: right;">
密码:
</td>
<td style="width: 300px;">
<input name="UserPwd" width="300" class="mini-password" required="true" requirederrortext="密码不能为空" />
</td>
</tr>
<tr>
<td style="width: 100px; margin-top: 10px; text-align: right;">
数据库说明:
</td>
<td style="width: 300px; margin-top: 10px;">
<input name="DataBaseDesc" width="300" required="true" requirederrortext="数据库说明不能为空"
class="mini-textarea" />
</td>
</tr>
<tr>
<td style="text-align: center; padding-top: 5px; padding-right: 20px;" colspan="2">
<a class="mini-button" iconcls="icon-add" onclick="SaveDataBaseManage">保存</a> <a
class="mini-button" iconcls="icon-cancel" onclick="CanncelSaveDataBaseManage">取消</a>
</td>
</tr>
</table>
</div>
</div>
数据源json
[{"ServerId":"0","ServerIp":"请选择服务器"},{"ServerId":"1","ServerName":"HomeUser","ServerDesc":"HomeUser","ServerIp":"192.168.8.226","UserName":"","UserPwd":""}] |
|