------
<a href="/product/info?hotelid=${c.id!}" target="_blank">基本信息</a> 集中跳转方式
------
<a href="javascript:dateDelete('roomTypeids','roomTypeDate');">删除</a>
<form action="/product/roomTypeUpdate" method="post" id="roomTypeDate" name="roomTypeDate">
<input type="hidden" id="hotelId" name="hotelId" value="${hotel.id!}"/>
<input type="hidden" id="hotelName" name="hotelName" value="${hotel.hotelName!}"/>
<table width="960" border="0" cellspacing="0" cellpadding="0" class="td_List">
<tr>
<th><input type="checkbox" οnclick="checkedbox('roomTypeids',this.checked)"/></th>
<th>房型ID</th>
<th>房型名称</th>
<th>roomType</th>
<th>房间数</th>
<th>床型</th>
<th>面积㎡</th>
<th>所在楼层</th>
<th>房间网络服务</th>
<th>描述</th>
<th width="150">备注</th>
</tr>
<#if roomTypeList??>
<#list roomTypeList as a>
<tr>
<td><input type="checkbox" id="roomTypeids" name="roomTypeids" value="${a.id!}"/></td>
<td>${a.id!'-'}<input type="hidden" id="id" name="id" value="${a.id!}"/></td>
<td><input type="text" id="roomTypeName" name="roomTypeName" value="${a.roomTypeName!}" class="edit_text w80" /></td>
<td><input type="text" id="roomType" name="roomType" value="${a.roomType!}" class="edit_text w80" /></td>
<td><input type="text" id="roomNumbers" name="roomNumbers" value="${a.roomNumbers!}" class="edit_text w35" /></td>
<td>
<select id="bedType" name="bedType">
<option value="1" <#if a.bedType==1> selected="selected" </#if> >大床</option>
<option value="2" <#if a.bedType==2> selected="selected" </#if> >双床</option>
</select>
</td>
<td><input type="text" id="acreage" name="acreage" value="${a.acreage!}" class="edit_text w25" /></td>
<td><input type="text" id="floor" name="floor" value="${a.floor!}" class="edit_text w35" /></td>
<td>
<select id="networkService" name="networkService"><option value="1" <#if a.networkService==1> selected="selected" </#if> >免费WIFI</option><option value="2"
<#if a.networkService==2> selected="selected" </#if> >收费WIFI</option>
<option value="3" <#if a.networkService==3> selected="selected" </#if> >免费宽带</option><option value="4" <#if a.networkService==4>
selected="selected" </#if> >收费宽带</option></select>
</td>
<td><input type="text" id="description" name="description" value="${a.description!''}" class="edit_text" /></td>
<td><input type="text" id="note" name="note" value="${a.note!}" class="edit_text" /></td>
</tr>
</#list>
</#if>
</table>
</form>
<scrip>
function dateDelete(name,tabfrom){
var pitchChecked = document.getElementsByName(name);
var count = 0;
for (var i=0 ;i<pitchChecked.length; i++){
if(pitchChecked[i].checked){
count++;
}
}
if(count==0){
alert("请选择您要删除的数据");
return ;
}
if(!confirm("您确定删除选中数据?")){
return ;
}
var f = getTableForm(tabfrom);
if(name=="roomTypeids"){
f.action = "/product/roomTypeDelete";
}else if(name=="locationttrafficids"){
f.action = "/product/locationttrafficDelete";
}else if(name="hotelPictureids"){
f.action = "/product/hotelPictureDelete";
}else{
alert("删除数据失败!");
}
f.submit();
}
</script>
---------------------------
<a href="#" title="换一张" οnclick="changeImg();">
----------------------------------------
form 提交
<form action="/member/regcourse" method="post" name="regcourseform">
<p><label>手机号</label><input type="text" id="username" name="username" value="可用作登录名" class="f_text radius3"
vld="{remote:'/member/username_unique.action',messages:{remote:'用戶名已存在,請重新輸入一個賬戶'}}" /> <span id="usernameErr"></span><!-- <span class="warm" id="usernameErr">
请输入正确的手机号。</span> --></p>
<p><label>密码</label><input type="password" id="password" name="password" value="6-20位字母、数字和符号" class="f_text radius3" /><span id="pwdErr"></span>
<!-- <span class="right"> </span> --></p>
<p><label>确认密码</label><input type="password" id="repassword" name="repassword" value="再次输入密码" class="f_text radius3" /><span id="pwd2Err"></span><!--
<span class="wrong"> 两次密码输入不一致,请重新输入 --></span></p>
<p><label>验证码</label><input type="text" id="checkcode" value="" class="f_text radius3" /><a href="#" title="换一张" οnclick="changeImg();"><img
src="/Chinese.svl" width="100" height="25" id="imgObj"/></a></p>
<input type="hidden" name="groupId" id="groupId" value="1"/>
<p><label></label><a class="mod_date radius3" href="javascript:;"><input type="checkbox" checked> 同意<<有程旅行网服务条款>></a></p>
<p><label></label><input type="button" class="btn radius3" value="注册" οnclick="submitreg(this.form)"/></p>
</form>
function submitreg(obj) {
obj.submit();
}
-------------------
<a href="#" οnclick="return optsalableState(0);">不可售</a><a href="#" οnclick="return optsalableState(1);">可售</a>
/**
* 修改可售状态
*/
function optsalableState(obj) {
var f = document.getElementById("deleteForm");
if(obj!=0&&obj!=1){
alert("非法的参数,请确认后提交");
return false;
}
if(Pn.checkedCount('ids')<=0) {
alert("请选择您要操作的数据");
return;
}
if(!confirm("您确定修改吗?")) {
return;
}
f.action="/product/salableState?State="+obj;
f.submit();
}
<form action="" method="post" name="deleteForm" id="deleteForm">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="td_List">
<thead class="pn-lthead">
<tr>
<th width="40"><input type='checkbox' οnclick='selectAll(this)'/></th>
<th>可售状态</th>
<th>推荐级别</th>
<th>产品经理</th>
<th>产品标签</th>
<th>酒店ID</th>
<th>国家/地区</th>
<th>城市</th>
<th>城区</th>
<th>位置</th>
<th>星级</th>
<th>酒店名称</th>
<th colspan="2">操作</th>
</tr>
</thead>
<tbody class="pn-ltbody">
<#if pagination.list?size gt 0>
<#list pagination.list as c>
<tr οnmοuseοver="this.bgColor='#eeeeee'" οnmοuseοut="this.bgColor='#ffffff'">
<td><input type='checkbox' name='ids' value="${c.id!''}"/></td>
<td>
<#if c.salableState==0>不可售</#if>
<#if c.salableState==1>可售</#if>
</td>
<td>
<#if c.recommendedLevel==1>银牌</#if>
<#if c.recommendedLevel==2>金牌</#if>
<#if c.recommendedLevel==3>特推</#if>
</td>
<td>${c.producManager!'-'}</td>
<td>${c.productLabel !''}</td>
<td>${c.id!''}</td>
<td>${c.country!''}</td>
<td>${c.city!''}</td>
<td>${c.tow!''}</td>
<td>${c.location!''}</td>
<td>
<#if c.starLevel==3>三星级</#if>
<#if c.starLevel==4>四星级</#if>
<#if c.starLevel==5>五星级</#if>
</td>
<td>${c.hotelName!''}</td>
<td class="oper"><a href="/product/info?hotelid=${c.id!}" target="_blank">基本信息</a></td>
<td class="oper"><a href="/product/price?hotelid=${c.id!}" target="_blank">房型报价</a></td>
</tr>
</#list>
</#if>
</tbody>
</table>
</form>
集中 提交 form、 方式 和 a标签的使用方式
最新推荐文章于 2021-03-14 18:41:45 发布