- 浏览: 49056 次
- 性别:
- 来自: 北京
文章分类
最新评论
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/common/jsp/taglib.jsp" %>
<script type='text/javascript' src='/dwr/interface/expertView.js'></script>
<script type='text/javascript' src='/dwr/engine.js'></script>
<script type='text/javascript' src='/dwr/util.js'></script>
<script type="text/javascript" src="${htl }/common/scripts/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="${htl }/fckeditor/fckeditor.js"></script>
<title>专家看点新增</title>
<script type="text/javascript">
function changeSelect()
{
var expertTypeId=document.getElementById("expertTypeId").value;
expertView.queryExpert(expertTypeId,returnData);
}
function returnData(data)
{
var obj=document.getElementById("expert");
if(data!=null)
{
obj.length=0;
obj.options[obj.length]=new Option('---请选择---','');
for(var i=0;i<data.length;i++)
{
obj.options[obj.length]=new Option(data[i]["expertName"],data[i]["expertId"]);
}
}
}
function addExpertView()
{
if(document.getElementById("expertTypeId").value==""){
alert("请选择专家类型");
return;
}
if(document.getElementById("expert").value==""){
alert("请输入专家姓名");
return;
}
document.form1.action="<%=request.getContextPath() %>/expertView!add.do";
document.form1.submit();
}
</script>
<div id="maincontent">
<div id="mainc" class="da">
<table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="30"><h4>专家看点新增</h4></td>
</tr>
</table>
<form name="form1" method="post" enctype="multipart/form-data">
<table width="598" border="0" cellpadding="0" cellspacing="0" class="formbiao" style="font-size:12px">
<s:hidden id="expertViewId" name="expertViewId" />
<tr>
<td align="right" class="listbiaotd"><span class="lanbiaoti">标题</span></td>
<td align="left">
<s:textfield id="title" name="zjxExpertview.title" />
</td>
</tr>
<tr>
<td align="right" class="listbiaotd"><span class="lanbiaoti">专家类型</span></td>
<td align="left">
<select id="expertTypeId" name="zjxExpertview.expertViewtypeid" onchange="changeSelect()">
<option value="">---请选择---</option>
<s:iterator value="expertTypeList" id="list1" status="i">
<option value="<s:property value="#list1.expertTypeId"/>" ><s:property value="#list1.expertType"/></option>
</s:iterator>
</select>
</td>
</tr>
<tr>
<td align="right" class="listbiaotd"><span class="lanbiaoti">专家姓名</span></td>
<td align="left">
<select id="expert" name="zjxExpertview.expertId">
<option value="">---请选择---</option>
</select>
</td>
</tr>
<tr>
<td align="right" class="listbiaotd"><span class="lanbiaoti">是否最新</span></td>
<td align="left">
<input type="radio" name="zjxExpertview.isNew" checked value="0"/>否
<input type="radio" name="zjxExpertview.isNew" value="1"/>是
</td>
</tr>
<tr>
<td align="right" class="listbiaotd"><span class="lanbiaoti">是否置顶</span></td>
<td align="left">
<input type="radio" name="zjxExpertview.isTop" checked value="0"/>否
<input type="radio" name="zjxExpertview.isTop" value="1"/>是
</td>
</tr>
<tr>
<td align="right" class="listbiaotd"><span class="lanbiaoti">是否推荐</span></td>
<td align="left">
<input type="radio" name="zjxExpertview.isRecommend" checked value="0"/>否
<input type="radio" name="zjxExpertview.isRecommend" value="1"/>是
</td>
</tr>
<tr>
<td align="right" class="listbiaotd"><span class="lanbiaoti">专家看法</span></td>
<td align="left">
<textarea name="context" id="context" style="width:100%; height:200px;"></textarea>
<div align="left" >
<script type="text/javascript">
var oFCKeditor = new FCKeditor( 'context' ) ;
//oFCKeditor.BasePath = 'FCKeditor/' ;
oFCKeditor.ToolbarSet = 'Default' ;
oFCKeditor.Width = '100%' ;
oFCKeditor.Height = '400' ;
oFCKeditor.Value = '' ;
oFCKeditor.ReplaceTextarea();
//oFCKeditor.Create() ;
</script>
</div>
</td>
</tr>
<tr >
<td colspan="2" >
<input id="submitButton" name="submitButton" type="button" onclick="addExpertView()" value="提交" />
<input type="button" value="返回列表" onclick="window.location='<%=request.getContextPath() %>/expert!query.do'"/>
<input type="button" value="后退" onclick="history.back();"/></td>
</tr>
</table>
</form>
</div>
</div>
<%@ include file="/common/jsp/taglib.jsp" %>
<script type='text/javascript' src='/dwr/interface/expertView.js'></script>
<script type='text/javascript' src='/dwr/engine.js'></script>
<script type='text/javascript' src='/dwr/util.js'></script>
<script type="text/javascript" src="${htl }/common/scripts/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="${htl }/fckeditor/fckeditor.js"></script>
<title>专家看点新增</title>
<script type="text/javascript">
function changeSelect()
{
var expertTypeId=document.getElementById("expertTypeId").value;
expertView.queryExpert(expertTypeId,returnData);
}
function returnData(data)
{
var obj=document.getElementById("expert");
if(data!=null)
{
obj.length=0;
obj.options[obj.length]=new Option('---请选择---','');
for(var i=0;i<data.length;i++)
{
obj.options[obj.length]=new Option(data[i]["expertName"],data[i]["expertId"]);
}
}
}
function addExpertView()
{
if(document.getElementById("expertTypeId").value==""){
alert("请选择专家类型");
return;
}
if(document.getElementById("expert").value==""){
alert("请输入专家姓名");
return;
}
document.form1.action="<%=request.getContextPath() %>/expertView!add.do";
document.form1.submit();
}
</script>
<div id="maincontent">
<div id="mainc" class="da">
<table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="30"><h4>专家看点新增</h4></td>
</tr>
</table>
<form name="form1" method="post" enctype="multipart/form-data">
<table width="598" border="0" cellpadding="0" cellspacing="0" class="formbiao" style="font-size:12px">
<s:hidden id="expertViewId" name="expertViewId" />
<tr>
<td align="right" class="listbiaotd"><span class="lanbiaoti">标题</span></td>
<td align="left">
<s:textfield id="title" name="zjxExpertview.title" />
</td>
</tr>
<tr>
<td align="right" class="listbiaotd"><span class="lanbiaoti">专家类型</span></td>
<td align="left">
<select id="expertTypeId" name="zjxExpertview.expertViewtypeid" onchange="changeSelect()">
<option value="">---请选择---</option>
<s:iterator value="expertTypeList" id="list1" status="i">
<option value="<s:property value="#list1.expertTypeId"/>" ><s:property value="#list1.expertType"/></option>
</s:iterator>
</select>
</td>
</tr>
<tr>
<td align="right" class="listbiaotd"><span class="lanbiaoti">专家姓名</span></td>
<td align="left">
<select id="expert" name="zjxExpertview.expertId">
<option value="">---请选择---</option>
</select>
</td>
</tr>
<tr>
<td align="right" class="listbiaotd"><span class="lanbiaoti">是否最新</span></td>
<td align="left">
<input type="radio" name="zjxExpertview.isNew" checked value="0"/>否
<input type="radio" name="zjxExpertview.isNew" value="1"/>是
</td>
</tr>
<tr>
<td align="right" class="listbiaotd"><span class="lanbiaoti">是否置顶</span></td>
<td align="left">
<input type="radio" name="zjxExpertview.isTop" checked value="0"/>否
<input type="radio" name="zjxExpertview.isTop" value="1"/>是
</td>
</tr>
<tr>
<td align="right" class="listbiaotd"><span class="lanbiaoti">是否推荐</span></td>
<td align="left">
<input type="radio" name="zjxExpertview.isRecommend" checked value="0"/>否
<input type="radio" name="zjxExpertview.isRecommend" value="1"/>是
</td>
</tr>
<tr>
<td align="right" class="listbiaotd"><span class="lanbiaoti">专家看法</span></td>
<td align="left">
<textarea name="context" id="context" style="width:100%; height:200px;"></textarea>
<div align="left" >
<script type="text/javascript">
var oFCKeditor = new FCKeditor( 'context' ) ;
//oFCKeditor.BasePath = 'FCKeditor/' ;
oFCKeditor.ToolbarSet = 'Default' ;
oFCKeditor.Width = '100%' ;
oFCKeditor.Height = '400' ;
oFCKeditor.Value = '' ;
oFCKeditor.ReplaceTextarea();
//oFCKeditor.Create() ;
</script>
</div>
</td>
</tr>
<tr >
<td colspan="2" >
<input id="submitButton" name="submitButton" type="button" onclick="addExpertView()" value="提交" />
<input type="button" value="返回列表" onclick="window.location='<%=request.getContextPath() %>/expert!query.do'"/>
<input type="button" value="后退" onclick="history.back();"/></td>
</tr>
</table>
</form>
</div>
</div>
发表评论
-
Ext.Ajax.request提交实现waitMsg效果
2012-12-19 14:15 1536Ext.Ajax.request提交实现waitMsg效果 ... -
iframe页通过JS修改父页面元素值 & 调用父页面JS函数的方法
2012-08-09 15:41 950http://www.redicecn.com/html/WE ... -
js 将checkbox, radio, select控件设置为只读不可选
2012-08-02 10:44 2698http://hi.baidu.com/fan8888/blo ... -
myDate97时间多选
2012-07-31 15:26 1255<%@ page language="java ... -
6个出色的基于JQuery的Tab选项卡实例
2012-07-24 17:48 685http://www.jgpy.cn/blog/front-e ... -
select 多选
2012-07-20 12:18 879<!DOCTYPE html PUBLIC " ... -
js 修改 select 选中
2012-07-20 12:05 1065<SCRIPT LANGUAGE="JavaS ... -
JS修改radio选中
2012-07-20 11:48 1515JS修改radio选中 代码如下: <SCRIPT ... -
window.close关闭窗口,不弹出系统提示,直接关闭
2012-05-21 11:43 853window.opener=null window.open ... -
去除google地图气泡信息提示框的阴影
2012-04-19 15:16 1146map.getPane(G_MAP_MARKER_SHADOW ...
相关推荐
下面小编就为大家分享一篇js实现HTML中Select二级联动的实例,具有很好的参考价值,希望对大家有所帮助。一起跟随小编过来看看吧
个人制作的一个select联动菜单,效果还不错,代码很简单,select内容均从mysql数据库中取出的!
下面小编就为大家分享一篇vue select二级联动第二级默认选中第一个option值的实例,具有很好的参考价值,希望对大家有所帮助。一起跟随小编过来看看吧
div模拟select框的实现省市联动三级,div模拟select框的实现省市联动二级,共3套代码
<BODY <select id='prov' name ='prov' <select id='city' name = 'city' ></select> </BODY>
使用Select控件实现联动效果的ASP实例 省市二级联动 安徽机电职业技术学院 陈伟
两级联动选择插件调用: $('.select-value').mPicker({ //级别 level:2, //需要渲染的json,二级联动的需要嵌套子元素,有一定的json格式要求 dataJson:dataJson, //true:联动 Linkage:true, //显示...
wx_selectArea 因小程序更新了 picker-view 组件,在做地址联动选择器时交互更加友好,故... // 若只需省市两级联动,加入配置项,默认为true(省市区三级联动),可不传: const conf = { showDistrict: false // 省市
移动选择 多功能手机滚动选择器,支持单选多选,支持多级层叠,提供自定义回叫功能,提供更新功能重画,重定位功能,兼容的PC拖动等。 特征 具有本机js的手机选择组件,不... script src =" js/mobileSelect.js " ty
下面小编就为大家分享一篇VUE2 前端实现 静态二级省市联动选择select的示例。具有很好的参考价值,希望对大家有所帮助。一起跟随小编过来看看吧
有两个 select框,且这俩select框是关联的,触发select1,select2里面才会有值。 但是现在的问题是这样的: 触发select1,触发select2,再触发select1,此时select2里面的值变成了上次一选中的value 值,而不会被...
两级联动select刷新后,select值保持不变即点击提交按钮后,页面select中继续维持提交前的值,下面有个不错的示例,大家可以参考下
包括两种联动方式, 一种是传统的jquery+ajax+select, 一种是jquery+ajax+select+div+css,自定义select样式实现数据联动。 都可直接使用。里面有使用事例
主要介绍了select下拉菜单实现二级联动效果,在一些项目开发中经常会遇到这样的需求,今天小编通过实例代码给大家讲解,需要的朋友可以参考下
主要介绍了MyBatis之自查询使用递归实现 N级联动效果,本文给大家分享两种实现方式,需要的的朋友参考下吧
下拉框年月日3级联动,其中包含两个下拉框联动资源,可自行选用
整理文档,搜刮出一个yii2中dropDownList实现二级和三级联动写法的代码,稍微整理精简一下做下分享。 视图页面: <?php $form = ActiveForm::begin([ 'action' => ['index'], 'method' => 'get', ]); ?> ...
自己写的一个小的选择地区的控件,个人觉得还可以 分享上来大家一起讨论。