ispman/ispman-web/cgi-bin/tmpl/resellers add_edit.tmpl, 1.4, 1.4.4.1

Pedro Algarvio <[email protected]>
Newsgroups gmane.comp.isp.ispman.cvs
Message-ID <[email protected]>
Update of /cvsroot/ispman/ispman/ispman-web/cgi-bin/tmpl/resellers
In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv14538/ispman-web/cgi-bin/tmpl/resellers

Modified Files:
      Tag: dev_1_3-cyrus_virtdomain
	add_edit.tmpl 
Log Message:
Branch is now "aparently" updated to HEAD, though debuging is needed.


Index: add_edit.tmpl
===================================================================
RCS file: /cvsroot/ispman/ispman/ispman-web/cgi-bin/tmpl/resellers/add_edit.tmpl,v
retrieving revision 1.4
retrieving revision 1.4.4.1
diff -u -d -r1.4 -r1.4.4.1
--- add_edit.tmpl	1 Jul 2004 17:23:51 -0000	1.4
+++ add_edit.tmpl	11 Sep 2006 23:31:26 -0000	1.4.4.1
@@ -1,6 +1,21 @@
-<form method="post" name="form">
-<br>
+<script type="text/javascript">
+  function validateForm(form) {
+      if ((form.uid.value=="") || 
+          (form.userPassword.value=="") ||
+	  (form.sn.value=="") ||
+	  (form.ispmanResellerName.value=="") ||
+	  (form.cn.value==""))
+      {
+          alert("Required data is missing!");
+            return false;
+      } else {
+            return true;
+      }
+  }
+</script>
 
+<form method="post" name="form" onsubmit="return validateForm(this)">
+<br>
 
 <table border="0" cellpadding="4" cellspacing="1" width="100%" bgcolor="white">
 <td>
@@ -9,11 +24,11 @@
         <table border="0" cellpadding="4" cellspacing="1" width="100%" bgcolor="white">
         <tr>
                 <td  bgColor=#999999 class=head4><a href="javascript:void(0)" title="<perl>_("Name that the Reseller will use for authentification")</perl>"><perl>_("Username")</perl></a></td>
-                <td bgColor=#dcdcdc><input CLASS="formtext" type=text name=uid value="<perl>$ispman->{'reseller'}{'uid'}</perl>"></td>
+                <td bgColor=#dcdcdc><input CLASS="formtext" type=text name=uid value="<perl>$ispman->{'reseller'}{'uid'}</perl>">*</td>
         </tr>
         <tr>
                 <td  bgColor=#999999 class=head4><perl>_("Password")</perl></td>
-                <td bgColor=#dcdcdc><input CLASS="formtext" type=text name=userPassword value="<perl>$ispman->{'reseller'}{'userPassword'}</perl>"></td>
+                <td bgColor=#dcdcdc><input CLASS="formtext" type=text name=userPassword value="<perl>$ispman->{'reseller'}{'userPassword'}</perl>">*</td>
         </tr>
         <tr>
                 <td  bgColor=#999999 class=head4><perl>_("First Name")</perl></td>
@@ -21,16 +36,20 @@
         </tr>
         <tr>
                 <td bgColor=#999999 class=head4><perl>_("Last Name")</perl></td>
-                <td bgColor=#dcdcdc><input CLASS="formtext" type=text name=sn value="<perl>$ispman->{'reseller'}{'sn'}</perl>"></td>
+                <td bgColor=#dcdcdc><input CLASS="formtext" type=text name=sn value="<perl>$ispman->{'reseller'}{'sn'}</perl>">*</td>
         </tr>
         <tr>        
                 <td bgColor=#999999 class=head4><perl>_("Reseller Name")</perl></td>
-                <td bgColor=#dcdcdc><input CLASS="formtext" type=text name=ispmanResellerName  value="<perl>$ispman->{'reseller'}{'ispmanResellerName'}</perl>"></td>
+                <td bgColor=#dcdcdc><input CLASS="formtext" type=text name=ispmanResellerName  value="<perl>$ispman->{'reseller'}{'ispmanResellerName'}</perl>">*</td>
         </tr>
         <tr>
                 <td bgColor=#999999 class=head4><perl>_("Display Name")</perl></td>
-                <td bgColor=#dcdcdc><input CLASS="formtext" type=text name=cn  value="<perl>$ispman->{'client'}{'cn'}</perl>"></td>
+                <td bgColor=#dcdcdc><input CLASS="formtext" type=text name=cn  value="<perl>$ispman->{'reseller'}{'cn'}</perl>">*</td>
         </tr>
+        <tr>
+                <td colspan=2 bgColor=#dcdcdc>(*) required</td>
+        </tr>
+
         </table>
 
 </td>


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.