<%@ page language="java" contentType="text/html; charset=utf-8"
pageEncoding="utf-8"%>
<%@taglib prefix="bean" uri="/WEB-INF/struts-bean.tld"%>
<%@taglib prefix="logic" uri="/WEB-INF/struts-logic.tld"%>
<logic:empty name="manager.session">
<logic:forward name="login"/>
</logic:empty>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>垫片节目安排</title>
<script language="javascript">
function check(){
var t = document.getElementById("type");
switch(parseInt(t.value)){
case 2:{
document.getElementById("c1al").disabled=true;
document.getElementById("c1bl").disabled=true;
document.getElementById("c2al").disabled=true;
document.getElementById("c2bl").disabled=true;
document.getElementById("c3al").disabled=true;
document.getElementById("c3bl").disabled=true;
break;
}
case 3:{
document.getElementById("c1x86").disabled=true;
document.getElementById("c1bl").disabled=true;
document.getElementById("c2x86").disabled=true;
document.getElementById("c2bl").disabled=true;
document.getElementById("c3x86").disabled=true;
document.getElementById("c3bl").disabled=true;
break;
}
case 4:{
document.getElementById("c1x86").disabled=true;
document.getElementById("c1al").disabled=true;
document.getElementById("c2x86").disabled=true;
document.getElementById("c2al").disabled=true;
document.getElementById("c3x86").disabled=true;
document.getElementById("c3al").disabled=true;
break;
}
}
}
function showCount(e)
{
var aa = e.value;//这里是获取option中的value的值
var bb = e.options(e.selectedIndex).text;//这里是获取下拉列表中的数据。
alert("测试"+aa+"获取");
/* var a=document.getElementById("c1x86").value; */
var a=document.getElementById('c1x86');
var text=a.options[a.selectedIndex].text;//获取文本
alert(text+"didi");
}
function aa()
{
var a=document.getElementById('c1x86');
var text=a.options[a.selectedIndex].text;//获取文本
if(!confirm( "提示:你真的要删除吗? "))
{
return;
}else{
alert("cc"+${id});
window.location.href("${basePath }operation.do?action=player.deletePrj&myId="+${id});
}
return false;
}
</script>
<link href="${basePath}css/master.css" rel="stylesheet" type="text/css">
</head>
<body onLoad="check()" id="main">
<%
String navigation="";
if(session.getAttribute("navigation")!=null)
{
navigation=(String)session.getAttribute("navigation");
}
%>
<div class="navigation" id="navigation">
${lanSetting.winsign }:${navigation }
</div>
${toolBar }
<form name="groupForm" action="${basePath }operation.do?action=player.EditAddingPrj" method="post">
<input type="hidden" name="id" value="${id }">
<input type="text" name="id" value="${id }">
<input type="hidden" name="type" id="type" value="${type }">
<table id="table" width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
<tr>
<td height="30" bgcolor="#D3E9F3"><strong>${lanSetting.number }</strong></td>
<td bgcolor="#D3E9F3"><strong>X86${lanSetting.program }</strong></td>
<td bgcolor="#D3E9F3"><strong>AdvLinux${lanSetting.program }</strong></td>
<td bgcolor="#D3E9F3"><strong>BasicLinux${lanSetting.program }</strong></td>
</tr>
<tr>
<td height="30" bgcolor="#F3F5F8"><label><input type="text" name="cr1Id" value="${c1.paddingId }" size="2" readonly></label></td>
<td bgcolor="#F3F5F8">
<select name="c1x86" id="c1x86" onChange="showCount(this)">
<option value="">${lanSetting.pleaseChoose }</option>
<logic:iterate id="x86prj" name="xlist">
<logic:equal value="${c1.x86PrjName}" name="x86prj" property="name">
<option value="${x86prj.guid }" selected>${x86prj.name }</option>
</logic:equal>
<logic:notEqual value="${c1.x86PrjName}" name="x86prj" property="name">
<option value="${x86prj.guid }">${x86prj.name }</option>
</logic:notEqual>
</logic:iterate>
</select><button id="btn" type="button" οnclick="aa()">删除</button> </td>
<td bgcolor="#F3F5F8">
<select name="c1al" id="c1al">
<option value="">${lanSetting.pleaseChoose }.</option>
<logic:iterate id="alprj" name="alist">
<logic:equal value="${c1.alPrjName}" name="alprj" property="name">
<option value="${alprj.guid }" selected>${alprj.name }</option>
</logic:equal>
<logic:notEqual value="${c1.alPrjName}" name="alprj" property="name">
<option value="${alprj.guid }">${alprj.name }</option>
</logic:notEqual>
</logic:iterate>
</select> </td>
<td bgcolor="#F3F5F8">
<select name="c1bl" id="c1bl">
<option value="">${lanSetting.pleaseChoose }</option>
<logic:iterate id="blprj" name="blist">
<logic:equal value="${c1.blPrjName}" name="blprj" property="name">
<option value="${blprj.guid }" selected>${blprj.name }</option>
</logic:equal>
<logic:notEqual value="${c1.blPrjName}" name="blprj" property="name">
<option value="${blprj.guid }">${blprj.name }</option>
</logic:notEqual>
</logic:iterate>
</select> </td>
</tr>
<tr>
<td height="30" bgcolor="#F3F5F8"><label><input type="text" name="cr2Id" value="${c2.paddingId }" size="2" readonly></label></td>
<td bgcolor="#F3F5F8">
<select name="c2x86" id="c2x86" >
<option value="">${lanSetting.pleaseChoose }</option>
<logic:iterate id="x86prj" name="xlist" indexId="index">
<logic:equal value="${c2.x86PrjName}" name="x86prj" property="name">
<option value="${x86prj.guid }" id=${x86prj.guid } selected>${x86prj.name }</option>
</logic:equal>
<logic:notEqual value="${c2.x86PrjName}" name="x86prj" property="name">
<option value="${x86prj.guid }">${x86prj.name }</option>
</logic:notEqual>
</logic:iterate>
</select> </td>
<td bgcolor="#F3F5F8">
<select name="c2al" id="c2al">
<option value="">${lanSetting.pleaseChoose }</option>
<logic:iterate id="alprj" name="alist">
<logic:equal value="${c2.alPrjName}" name="alprj" property="name">
<option value="${alprj.guid }" selected>${alprj.name }</option>
</logic:equal>
<logic:notEqual value="${c2.alPrjName}" name="alprj" property="name">
<option value="${alprj.guid }">${alprj.name }</option>
</logic:notEqual>
</logic:iterate>
</select> </td>
<td bgcolor="#F3F5F8">
<select name="c2bl" id="c2bl">
<option value="">${lanSetting.pleaseChoose }</option>
<logic:iterate id="blprj" name="blist">
<logic:equal value="${c2.blPrjName}" name="blprj" property="name">
<option value="${blprj.guid }" selected>${blprj.name }</option>
</logic:equal>
<logic:notEqual value="${c2.blPrjName}" name="blprj" property="name">
<option value="${blprj.guid }">${blprj.name }</option>
</logic:notEqual>
</logic:iterate>
</select> </td>
</tr>
<tr>
<td height="30" bgcolor="#F3F5F8"><label><input type="text" name="cr3Id" value="${c3.paddingId }" size="2" readonly></label></td>
<td bgcolor="#F3F5F8">
<select name="c3x86" id="c3x86">
<option value="">${lanSetting.pleaseChoose }</option>
<logic:iterate id="x86prj" name="xlist">
<logic:equal value="${c3.x86PrjName}" name="x86prj" property="name">
<option value="${x86prj.guid }" selected>${x86prj.name }</option>
</logic:equal>
<logic:notEqual value="${c3.x86PrjName}" name="x86prj" property="name">
<option value="${x86prj.guid }">${x86prj.name }</option>
</logic:notEqual>
</logic:iterate>
</select> </td>
<td bgcolor="#F3F5F8">
<select name="c3al" id="c3al">
<option value="">${lanSetting.pleaseChoose }</option>
<logic:iterate id="alprj" name="alist">
<logic:equal value="${c3.alPrjName}" name="alprj" property="name">
<option value="${alprj.guid }" selected>${alprj.name }</option>
</logic:equal>
<logic:notEqual value="${c3.alPrjName}" name="alprj" property="name">
<option value="${alprj.guid }">${alprj.name }</option>
</logic:notEqual>
</logic:iterate>
</select> </td>
<td bgcolor="#F3F5F8">
<select name="c3bl" id="c3bl">
<option value="">${lanSetting.pleaseChoose }</option>
<logic:iterate id="blprj" name="blist">
<logic:equal value="${c3.blPrjName}" name="blprj" property="name">
<option value="${blprj.guid }" selected>${blprj.name }</option>
</logic:equal>
<logic:notEqual value="${c3.blPrjName}" name="blprj" property="name">
<option value="${blprj.guid }">${blprj.name }</option>
</logic:notEqual>
</logic:iterate>
</select> </td>
<%-- <td bgcolor="#F3F5F8"> <a href="delete.do?id=${x86prj.guid }">${x86prj.name }</a></td> --%>
</tr>
<tr>
<td height="30" colspan="4" align="left" bgcolor="#F3F5F8"><input type="submit" name="sub" value="${lanSetting.submit }"> <input type="reset" name="rst" value="${lanSetting.close }"></td>
</tr>
</table>
</form>
</body>
pageEncoding="utf-8"%>
<%@taglib prefix="bean" uri="/WEB-INF/struts-bean.tld"%>
<%@taglib prefix="logic" uri="/WEB-INF/struts-logic.tld"%>
<logic:empty name="manager.session">
<logic:forward name="login"/>
</logic:empty>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>垫片节目安排</title>
<script language="javascript">
function check(){
var t = document.getElementById("type");
switch(parseInt(t.value)){
case 2:{
document.getElementById("c1al").disabled=true;
document.getElementById("c1bl").disabled=true;
document.getElementById("c2al").disabled=true;
document.getElementById("c2bl").disabled=true;
document.getElementById("c3al").disabled=true;
document.getElementById("c3bl").disabled=true;
break;
}
case 3:{
document.getElementById("c1x86").disabled=true;
document.getElementById("c1bl").disabled=true;
document.getElementById("c2x86").disabled=true;
document.getElementById("c2bl").disabled=true;
document.getElementById("c3x86").disabled=true;
document.getElementById("c3bl").disabled=true;
break;
}
case 4:{
document.getElementById("c1x86").disabled=true;
document.getElementById("c1al").disabled=true;
document.getElementById("c2x86").disabled=true;
document.getElementById("c2al").disabled=true;
document.getElementById("c3x86").disabled=true;
document.getElementById("c3al").disabled=true;
break;
}
}
}
function showCount(e)
{
var aa = e.value;//这里是获取option中的value的值
var bb = e.options(e.selectedIndex).text;//这里是获取下拉列表中的数据。
alert("测试"+aa+"获取");
/* var a=document.getElementById("c1x86").value; */
var a=document.getElementById('c1x86');
var text=a.options[a.selectedIndex].text;//获取文本
alert(text+"didi");
}
function aa()
{
var a=document.getElementById('c1x86');
var text=a.options[a.selectedIndex].text;//获取文本
if(!confirm( "提示:你真的要删除吗? "))
{
return;
}else{
alert("cc"+${id});
window.location.href("${basePath }operation.do?action=player.deletePrj&myId="+${id});
}
return false;
}
</script>
<link href="${basePath}css/master.css" rel="stylesheet" type="text/css">
</head>
<body onLoad="check()" id="main">
<%
String navigation="";
if(session.getAttribute("navigation")!=null)
{
navigation=(String)session.getAttribute("navigation");
}
%>
<div class="navigation" id="navigation">
${lanSetting.winsign }:${navigation }
</div>
${toolBar }
<form name="groupForm" action="${basePath }operation.do?action=player.EditAddingPrj" method="post">
<input type="hidden" name="id" value="${id }">
<input type="text" name="id" value="${id }">
<input type="hidden" name="type" id="type" value="${type }">
<table id="table" width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
<tr>
<td height="30" bgcolor="#D3E9F3"><strong>${lanSetting.number }</strong></td>
<td bgcolor="#D3E9F3"><strong>X86${lanSetting.program }</strong></td>
<td bgcolor="#D3E9F3"><strong>AdvLinux${lanSetting.program }</strong></td>
<td bgcolor="#D3E9F3"><strong>BasicLinux${lanSetting.program }</strong></td>
</tr>
<tr>
<td height="30" bgcolor="#F3F5F8"><label><input type="text" name="cr1Id" value="${c1.paddingId }" size="2" readonly></label></td>
<td bgcolor="#F3F5F8">
<select name="c1x86" id="c1x86" onChange="showCount(this)">
<option value="">${lanSetting.pleaseChoose }</option>
<logic:iterate id="x86prj" name="xlist">
<logic:equal value="${c1.x86PrjName}" name="x86prj" property="name">
<option value="${x86prj.guid }" selected>${x86prj.name }</option>
</logic:equal>
<logic:notEqual value="${c1.x86PrjName}" name="x86prj" property="name">
<option value="${x86prj.guid }">${x86prj.name }</option>
</logic:notEqual>
</logic:iterate>
</select><button id="btn" type="button" οnclick="aa()">删除</button> </td>
<td bgcolor="#F3F5F8">
<select name="c1al" id="c1al">
<option value="">${lanSetting.pleaseChoose }.</option>
<logic:iterate id="alprj" name="alist">
<logic:equal value="${c1.alPrjName}" name="alprj" property="name">
<option value="${alprj.guid }" selected>${alprj.name }</option>
</logic:equal>
<logic:notEqual value="${c1.alPrjName}" name="alprj" property="name">
<option value="${alprj.guid }">${alprj.name }</option>
</logic:notEqual>
</logic:iterate>
</select> </td>
<td bgcolor="#F3F5F8">
<select name="c1bl" id="c1bl">
<option value="">${lanSetting.pleaseChoose }</option>
<logic:iterate id="blprj" name="blist">
<logic:equal value="${c1.blPrjName}" name="blprj" property="name">
<option value="${blprj.guid }" selected>${blprj.name }</option>
</logic:equal>
<logic:notEqual value="${c1.blPrjName}" name="blprj" property="name">
<option value="${blprj.guid }">${blprj.name }</option>
</logic:notEqual>
</logic:iterate>
</select> </td>
</tr>
<tr>
<td height="30" bgcolor="#F3F5F8"><label><input type="text" name="cr2Id" value="${c2.paddingId }" size="2" readonly></label></td>
<td bgcolor="#F3F5F8">
<select name="c2x86" id="c2x86" >
<option value="">${lanSetting.pleaseChoose }</option>
<logic:iterate id="x86prj" name="xlist" indexId="index">
<logic:equal value="${c2.x86PrjName}" name="x86prj" property="name">
<option value="${x86prj.guid }" id=${x86prj.guid } selected>${x86prj.name }</option>
</logic:equal>
<logic:notEqual value="${c2.x86PrjName}" name="x86prj" property="name">
<option value="${x86prj.guid }">${x86prj.name }</option>
</logic:notEqual>
</logic:iterate>
</select> </td>
<td bgcolor="#F3F5F8">
<select name="c2al" id="c2al">
<option value="">${lanSetting.pleaseChoose }</option>
<logic:iterate id="alprj" name="alist">
<logic:equal value="${c2.alPrjName}" name="alprj" property="name">
<option value="${alprj.guid }" selected>${alprj.name }</option>
</logic:equal>
<logic:notEqual value="${c2.alPrjName}" name="alprj" property="name">
<option value="${alprj.guid }">${alprj.name }</option>
</logic:notEqual>
</logic:iterate>
</select> </td>
<td bgcolor="#F3F5F8">
<select name="c2bl" id="c2bl">
<option value="">${lanSetting.pleaseChoose }</option>
<logic:iterate id="blprj" name="blist">
<logic:equal value="${c2.blPrjName}" name="blprj" property="name">
<option value="${blprj.guid }" selected>${blprj.name }</option>
</logic:equal>
<logic:notEqual value="${c2.blPrjName}" name="blprj" property="name">
<option value="${blprj.guid }">${blprj.name }</option>
</logic:notEqual>
</logic:iterate>
</select> </td>
</tr>
<tr>
<td height="30" bgcolor="#F3F5F8"><label><input type="text" name="cr3Id" value="${c3.paddingId }" size="2" readonly></label></td>
<td bgcolor="#F3F5F8">
<select name="c3x86" id="c3x86">
<option value="">${lanSetting.pleaseChoose }</option>
<logic:iterate id="x86prj" name="xlist">
<logic:equal value="${c3.x86PrjName}" name="x86prj" property="name">
<option value="${x86prj.guid }" selected>${x86prj.name }</option>
</logic:equal>
<logic:notEqual value="${c3.x86PrjName}" name="x86prj" property="name">
<option value="${x86prj.guid }">${x86prj.name }</option>
</logic:notEqual>
</logic:iterate>
</select> </td>
<td bgcolor="#F3F5F8">
<select name="c3al" id="c3al">
<option value="">${lanSetting.pleaseChoose }</option>
<logic:iterate id="alprj" name="alist">
<logic:equal value="${c3.alPrjName}" name="alprj" property="name">
<option value="${alprj.guid }" selected>${alprj.name }</option>
</logic:equal>
<logic:notEqual value="${c3.alPrjName}" name="alprj" property="name">
<option value="${alprj.guid }">${alprj.name }</option>
</logic:notEqual>
</logic:iterate>
</select> </td>
<td bgcolor="#F3F5F8">
<select name="c3bl" id="c3bl">
<option value="">${lanSetting.pleaseChoose }</option>
<logic:iterate id="blprj" name="blist">
<logic:equal value="${c3.blPrjName}" name="blprj" property="name">
<option value="${blprj.guid }" selected>${blprj.name }</option>
</logic:equal>
<logic:notEqual value="${c3.blPrjName}" name="blprj" property="name">
<option value="${blprj.guid }">${blprj.name }</option>
</logic:notEqual>
</logic:iterate>
</select> </td>
<%-- <td bgcolor="#F3F5F8"> <a href="delete.do?id=${x86prj.guid }">${x86prj.name }</a></td> --%>
</tr>
<tr>
<td height="30" colspan="4" align="left" bgcolor="#F3F5F8"><input type="submit" name="sub" value="${lanSetting.submit }"> <input type="reset" name="rst" value="${lanSetting.close }"></td>
</tr>
</table>
</form>
</body>
</html>
public class deletePrjAction extends BaseOperator{
public static final long PRIV = Privilege.PLAYER_MANAGE;
public ActionForward doAction() {
UILanguageSettings lan = (UILanguageSettings) request.getSession().getAttribute("lanSetting");
System.out.println(request.getParameter("myId"));