⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sourceedit.jsp

📁 管理公司合同
💻 JSP
字号:
<%@ page contentType = "text/html;charset=GBK"%>
<%@ taglib uri="/WEB-INF/tag.tld" prefix="tag" %>
<%@ page import="cn.com.juneng.system.common.COMMON"%>
<%@ page import="cn.com.juneng.system.vo.DataSourceVOImpl"%>
<link href="<%=request.getContextPath()%>/css/commonPage.css" rel="stylesheet" type="text/css">
<script type='text/javascript' language='JavaScript' src='<%=request.getContextPath()%>/js/COMMON.js'></script>
<script type='text/javascript' language='JavaScript' src='<%=request.getContextPath()%>/js/calendar.js'></script>
<script>
	function changeType(type){
		if(type=="2"){
			document.getElementById("remote").style.display="block";	
		}else{
			document.getElementById("remote").style.display="none";	
		}
	}
</script>
<%
	DataSourceVOImpl vo = (DataSourceVOImpl)request.getAttribute("VO");
	String display = "2".equals(vo.getSourceType())?"block":"none";
%>
<table >
<tr>
<td class="tHeading"><div align='center'><b>data_source<%=vo.isReadonly()?"":".编辑"%></b></div></td>
</tr>
<%
if(request.getAttribute("Error")!=null){%>
<tr>
<td ><font color='red'><%=request.getAttribute("Error")%></font></td>
</tr>
<%}%>
</table>
<form name="form1" action="<tag:attr source="ActionUrl" />" method="post">
<input type="hidden" name="readonly" value="<tag:attr source="VO" attr="readonly" />">
<input type="hidden" name="currentPage" value="<tag:attr source="VO" attr="currentPage" />">
<input type="hidden" name="actionType" value="<tag:attr source="VO" attr="actionType" />">
<input type="hidden" name="sourceId" value="<tag:attr source="VO" attr="sourceId" />">
<table <%=COMMON.TABLE_STYLE %> >
	<tr>
		<td class="list_condition_td_title" width='20%'>数据源名</td>
		<td class="list_condition_td_input" width='30%'><input type="text"  name="sourceName" value="<tag:attr source="VO" attr="sourceName" />"></td>
		<td class="list_condition_td_title" width='20%'>数据源类型</td>
		<td class="list_condition_td_input" width='30%'>
			<tag:dic name="sourceType" value="<%=vo.getSourceType()==null?"1":vo.getSourceType() %>" kind="027"  showType="select" attr="required='true' onchange=\"changeType(this.value)\""/>
		</td>
	</tr>
	<tr>
	<td colspan='4'>
	<table <%=COMMON.TABLE_STYLE %> id="remote" style="display:<%=display%>">
		<tr>
		<td class="list_condition_td_title" width='20%'>远程服务器IP</td>
		<td class="list_condition_td_input" width='30%'><input type="text"  name="sourceHost" value="<tag:attr source="VO" attr="sourceHost" />"></td>
		<td class="list_condition_td_title" width='20%'>数据库类型</td>
		<td class="list_condition_td_input" width='30%'>
		<tag:dic name="dbType" value="<%=vo.getDbType() %>" kind="028"  showType="select" />
		</td>
	</tr>
	<tr>
		<td class="list_condition_td_title">用户名</td>
		<td class="list_condition_td_input" ><input type="text"  name="userName" value="<tag:attr source="VO" attr="userName" />"></td>
		<td class="list_condition_td_title">密码</td>
		<td class="list_condition_td_input" ><input type="text"  name="password" value="<tag:attr source="VO" attr="password" />"></td>
	</tr>
	<tr>
		<td class="list_condition_td_title">数据库名</td>
		<td class="list_condition_td_input" ><input type="text"  name="dbName" value="<tag:attr source="VO" attr="dbName" />"></td>
	</tr>
	</table>
	</td>
	</tr>
</table><br>
<%if(!vo.isReadonly()){%><input type=submit id="s_button" ACCESSKEY="S" title="【CTRL+S】或者【ALT+S】快速存盘" value="保存" onclick="return CheckForm(form1)"><%}%>
<input type=button value="返回" onclick='back()'>
</form>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -