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

📄 list.jsp

📁 很好的,网上商城在线购物网站系统,电子商务自助建站管理系统。适合电脑,手机,数码,化妆品,服装,运动鞋,首饰,母婴,成人用品,书籍,汽车,办公用品,音像制品的网店
💻 JSP
字号:
<%@ page contentType="text/html;charset=utf-8"%>
<%@ include file="../../include.jsp"%> 
<%
int type = StringUtil.getInt(request,"type");
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>无标题文档</title>
<script src="<%=ConfigBean.getStringValue("systenFolder")%>alert_js.jsp"></script>
<script language="JavaScript" type="text/JavaScript">
<!--
function onMOBg(row,cl,index)
{
	row.style.background=cl;
}

function del(id)
{
	if (confirm("确认删除吗?"))
	{
			document.tmp.qcsid.value = id;
			document.tmp.submit();
	}
}

function check(theForm)
{
	if (theForm.name.value=="")
	{
		alert("请填写名称");
		return(false);
	}

	  <%
	  if (type==1)
	  {
	  %>
	if (theForm.qq.value=="")
	{
		alert("请填写QQ");
		return(false);
	}
	  <%
	  }
	  else if (type==2)
	  {
	  %>
	if (theForm.email.value=="")
	{
		alert("请填写MSN");
		return(false);
	}
	  <%
	  }
	  else if (type==3)
	  {
	  %>
	if (theForm.account.value=="")
	{
		alert("请填写SKYPE");
		return(false);
	}
	  <%
	  }
	  else if (type==4)
	  {
	  %>
	if (theForm.account.value=="")
	{
		alert("请填写旺旺");
		return(false);
	}
	  <%
	  }
	  %>
	if (theForm.description.value=="")
	{
		alert("请填写描述");
		return(false);
	}
	
	return(true);
}
//-->
</script>
<link href="../comm.css" rel="stylesheet" type="text/css">
</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<br>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="0">
  <tr>
    <td class="page-title"><img src="../imgs/page_title.gif" alt="title" width="17" height="12" align="absmiddle">&nbsp;&nbsp; 客服中心 »  
      <%
	  if (type==1)
	  {
	  %>
QQ
<%
	  }
	  else if (type==2)
	  {
	  %>
MSN
<%
	  }
	  else if (type==3)
	  {
	  %>
SKYPE
<%
	  }
	  else if (type==4)
	  {
	  %>
旺旺
<%
	  }
	  %>
    客服</td>
  </tr>
</table>
<br>
<br>
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="0">
  <form name="tmp" action="<%=ConfigBean.getStringValue("systenFolder")%>appController/delQQClientService" method="post">
    <input type="hidden" name="qcsid">
  </form>
  <form name="qq_form" action="<%=ConfigBean.getStringValue("systenFolder")%>appController/addQQClientService" method="post" onSubmit="return check(this)">
  <input type="hidden" name="type" value="<%=type%>">
    <tr> 
      <td width="26%">名称&nbsp;&nbsp;&nbsp;&nbsp; 
      <input name="name" type="text" id="name"></td>
      <td width="25%">
	  <%
	  if (type==1)
	  {
	  %>
	  QQ&nbsp;&nbsp;&nbsp;&nbsp;
      <input name="qq" type="text" id="qq">
	  <%
	  }
	  else if (type==2)
	  {
	  %>
	  MSN&nbsp;&nbsp;&nbsp;&nbsp;
      <input name="email" type="text" id="email">
	  <%
	  }
	  else if (type==3)
	  {
	  %>
	  SKYPE&nbsp;&nbsp;&nbsp;&nbsp;
      <input name="account" type="text" id="account">
	  <%
	  }
	  else if (type==4)
	  {
	  %>
	  旺旺&nbsp;&nbsp;&nbsp;&nbsp;
      <input name="account" type="text" id="account">
	  <%
	  }
	  %>
	  </td>
      <td width="33%">描述&nbsp;&nbsp;&nbsp;&nbsp;
      <input name="description" type="text" id="description" size="40"></td>
      <td width="16%"><input name="Submit3" type="submit" class="long-button" value=" 增加客服 "></td>
    </tr>
  </form>
</table>
<br>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="0"  class="thetable">
  <thead>
    <tr> 
      <td width="25%" valign="middle" class="left-title">名 称</td>
      <td width="24%" valign="middle" class="right-title">
	  <%
	  if (type==1)
	  {
	  %>
	  QQ
	  <%
	  }
	  else if (type==2)
	  {
	  %>
	  MSN
	  <%
	  }
	  else if (type==3)
	  {
	  %>
	  SKYPE
	  <%
	  }
	  else if (type==4)
	  {
	  %>
	  旺旺
	  <%
	  }
	  %>
	  </td>
      <td width="30%" valign="middle" class="right-title">描 述</td>
      <td width="21%" align="center" valign="middle" class="right-title">操作</td>
    </tr>
  </thead>
  <%
DBRow rows[] = memberMgr.getAllQQClientServiceByType(type);

String className;
for ( int i=0; i<rows.length; i++ )
{
	if ( i%2==0 )
	{
		className = "row-line1";
	}
	else
	{
		className = "row-line2";
	}
%>
  <tr  > 
    <td height="31" valign="middle"  class="<%=className%>" > 
      <a  class="in-table" href="<%=memberMgr.getServiceLink(rows[i].get("type",0),rows[i].getString("qq"),rows[i].getString("account"),rows[i].getString("email"))%>" ><%=rows[i].getString("name")%></a>
    </td>
    <td valign="middle"  class="<%=className%>" > 
     
	  <%
	  if (type==1)
	  {
	  %>
	  <%=rows[i].getString("qq")%>
	  <%
	  }
	  else if (type==2)
	  {
	  %>
	   <%=rows[i].getString("email")%>
	  <%
	  }
	  else if (type==3)
	  {
	  %>
	   <%=rows[i].getString("account")%>
	  <%
	  }
	  else if (type==4)
	  {
	  %>
	  <%=rows[i].getString("account")%>
	  <%
	  }
	  %>
    </td>
    <td valign="middle"  class="<%=className%>" >
      <%=rows[i].getString("description")%>
    </td>
    <td align="center" valign="middle" class="<%=className%>" > <input name="Submit" type="button" class="short-button" onClick="location='modify.jsp?type=<%=type%>&qcsid=<%=rows[i].getString("qcsid")%>&backurl=<%=StringUtil.getCurrentURL(request)%>'" value="修改"> 
      &nbsp;&nbsp;&nbsp;
      <input name="Submit2" type="button" class="short-button" onClick="del(<%=rows[i].getString("qcsid")%>)" value="删除"> 
    </td>
  </tr>
  <%
}
%>
</table>
</body>
</html>

⌨️ 快捷键说明

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