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

📄 createnewlogin.jsp

📁 国外的一套开源CRM
💻 JSP
字号:

<%@ taglib uri="ofbizTags" prefix="ofbiz" %>

<%@ page import="java.util.*" %>
<%@ page import="org.ofbiz.base.util.*, org.ofbiz.content.webapp.pseudotag.*" %>
<%@ page import="org.ofbiz.entity.*" %>
<jsp:useBean id="security" type="org.ofbiz.security.Security" scope="request" />

<%if(security.hasEntityPermission("PARTYMGR", "_VIEW", session)) {%>

<%
    String partyId = request.getParameter("party_id");
    if (partyId == null) partyId = request.getParameter("partyId");
    if (partyId == null) partyId = (String) request.getAttribute("partyId");

    boolean tryEntity = true;
    if(request.getAttribute("_ERROR_MESSAGE_") != null) tryEntity = false;
    pageContext.setAttribute("tryEntity", new Boolean(tryEntity));

    String donePage = request.getParameter("DONE_PAGE");
    if(donePage == null || donePage.length() <= 0) donePage="viewprofile?partyId=" + partyId;
%>

  <p class="head1">Create UserLogin</p>

    &nbsp;<a href="<ofbiz:url>/authview/<%=donePage%></ofbiz:url>" class="buttontext">[Go&nbsp;Back]</a>
    &nbsp;<a href="javascript:document.createloginform.submit()" class="buttontext">[Save]</a>

  <form method="post" action="<ofbiz:url>/createuserlogin/<%=donePage%></ofbiz:url>" name="createloginform">
  <input type="hidden" name="partyId" value="<%=partyId%>">
  <table width="90%" border="0" cellpadding="2" cellspacing="0">
    <tr>
      <td width="26%" align=right><div class="tabletext">UserLogin ID</div></td>
      <td width="74%">
        <input type="text" name="userLoginId" class="inputBox" size="20">
      *</td>
    <tr>
      <td width="26%" align=right><div class="tabletext">New Password</div></td>
      <td width="74%">
        <input type="password" name="currentPassword" class="inputBox" size="20" maxlength="20">
      *</td>
    </tr>
    <tr>
      <td width="26%" align=right><div class="tabletext">New Password Verify</div></td>
      <td width="74%">
        <input type="password" name="currentPasswordVerify" class="inputBox" size="20" maxlength="20">
      *</td>
    </tr>
    <tr>
      <td width="26%" align=right><div class="tabletext">Password Hint</div></td>
      <td width="74%">
        <input type="text" size="40" maxlength="100" class="inputBox" <ofbiz:inputvalue field="passwordHint" entityAttr="userLogin" tryEntityAttr="tryEntity" fullattrs="true"/>>
      </td>
    </tr>
  </table>
  </form>

    &nbsp;<a href="<ofbiz:url>/authview/<%=donePage%></ofbiz:url>" class="buttontext">[Go&nbsp;Back]</a>
    &nbsp;<a href="javascript:document.createloginform.submit()" class="buttontext">[Save]</a>
<%}else{%>
  <h3>You do not have permission to view this page. ("PARTYMGR_VIEW" or "PARTYMGR_ADMIN" needed)</h3>
<%}%>

⌨️ 快捷键说明

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