📄 afficheportletview.jsp
字号:
<%@ page session="false" contentType="text/html;charset=UTF-8" import="java.util.*, affiche.*"%>
<%@ taglib uri="/WEB-INF/tld/portlet.tld" prefix="portletAPI" %>
<portletAPI:init/>
<script type="text/javascript"><!--function submitform()
{
document.<portletAPI:encodeNamespace value="listform"/>.submit();
}
function Del()
{
var bln=false;
var bl=false;
document.all["selectid"].value="";
document.all["buttype"].value="del";
var m=document.<portletAPI:encodeNamespace value="listform"/>.all;
//window.alert(m.length);//return bl;
for(i=0;i<m.length;i++)
{
if(m[i].type=="checkbox")
{
var ck=m[i];
if(ck.checked==true)
{
bl=true;
}
}
}
if(bl==true)
{
bln=window.confirm("你确定要删除所选项吗!");
//window.alert(document.all["selectid"].value);
return bln;
}
else
{
window.alert("请选择要删除的项!");
return false;
}
}
function Issue()
{
var bln=false;
var bl=false;
document.all["selectid"].value="";
document.all["buttype"].value="issue";
var m=document.<portletAPI:encodeNamespace value="listform"/>.all;
for(i=0;i<m.length;i++)
{
if(m[i].type=="checkbox")
{
var ck=m[i];
if(ck.checked==true)
{
bl=true;
}
}
}
if(bl==true)
{
bln=window.confirm("你确定要发布所选项吗!");
return bln;
}
else
{
window.alert("请选择要发布的项!");
return false;
}
}
function Annul()
{
var bln=false;
var bl=false;
document.all["selectid"].value="";
document.all["buttype"].value="annul";
var m=document.<portletAPI:encodeNamespace value="listform"/>.all;
for(i=0;i<m.length;i++)
{
if(m[i].type=="checkbox")
{
var ck=m[i];
if(ck.checked==true)
{
bl=true;
}
}
}
if(bl==true)
{
bln=window.confirm("你确定要取消发布所选项吗!");
return bln;
}
else
{
window.alert("请选择要取消发布的项!");
return false;
}
}
function add()
{
document.all["buttype"].value="add";
//submitform();
}
function update()
{
var n=0;document.all["buttype"].value="";
var m=document.<portletAPI:encodeNamespace value="listform"/>.all;
//window.alert(m.length);//return bl;
for(i=0;i<m.length;i++)
{
if(m[i].type=="checkbox")
{
var ck=m[i];
if(ck.checked==true)
{
n=n+1;
}
}
}
//window.alert(n);
if(n!=1)
{
document.all["selectid"].value="";
window.alert("只能选择一条记录修改!");
return false;
}
document.all["buttype"].value="update";
return true;
//submitform();
}//-->
</script>
<%
AffichePortletSessionBean sessionBean = (AffichePortletSessionBean)portletRequest.getPortletSession().getAttribute(AffichePortlet.SESSION_BEAN);
System.out.println(sessionBean.GetSqlStr()+"------");
%>
<DIV style="margin: 6px">
<FORM method="POST" name="<portletAPI:encodeNamespace value="listform"/>" action="<portletAPI:createURI><portletAPI:URIAction name='<%=AffichePortlet.FORM_ACTION%>'/></portletAPI:createURI>">
<LABEL class="wpsLabelText" for="<portletAPI:encodeNamespace value='<%=AffichePortlet.TEXT%>'/>">是否发布:</LABEL><BR>
<SELECT
name="<portletAPI:encodeNamespace value='<%=AffichePortlet.TEXT%>'/>"&;"class="wpsEditField" style="font-size: 12pt">
<OPTION value="0" >未发布</OPTION>
<OPTION value="1" >已发布</OPTION>
</SELECT>
<INPUT class="wpsButtonText" name="<portletAPI:encodeNamespace value='<%=AffichePortlet.SUBMIT%>'/>" value="查询" type="submit"/>
<jsp:include page="/common/control/sqlbuilder/sqlbuilderList.jsp" flush="true" >
</jsp:include>
<INPUT name="selectid" type="hidden">
<INPUT name="buttype" type="hidden">
</FORM>
</DIV>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -