<%--
    Document   :ShgActivities
    Created on : Apr 20, 2016, 3:16:34 PM
    Author     :
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="DataEntryBean.ShgActivitiesBean"%>
<% try {
%>
<html>
    <head>
        <title>SHG Activities</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
        <link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css?pacs=<%=((new java.util.Date()).getTime())%>" />
        <link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
        <link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
        <link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
        <script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
        <script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
        <script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
    </head>
    <body onload="noBack()">
        <script type="text/javascript">
            function noBack()
            {
                window.history.forward();
            }
            function numbersonly(e){
                    var unicode=e.charCode? e.charCode : e.keyCode
                    if (unicode!=8){ //if the key isn't the backspace key (which we should allow)
                            if (unicode<48||unicode>57) //if not a number
                                    return false ;//disable key press
                    }
                // if (value && value>9999999999) { return false }
            }
            function submitform(shgactivitiesform)
            {
                if (checkCreateDiv(shgactivitiesform))
                {
                    document.forms[0].handle_id.value = "Create";                    
                    document.forms[0].action = '/PacsApplication/ShgActivitiesServlet';                                       
                    document.forms[0].submit();
                }

            }
            function lettersOnly(e) {

                    
                var unicode=e.charCode? e.charCode : e.keyCode
                 if ((unicode!=8)&&(unicode!=32)){
                    if (unicode > 31 && (unicode < 65 || unicode > 90) &&
                        (unicode < 97 || unicode > 122)) {

                        return false;
                    }}
                return true;
            }
            function checkCreateDiv(shgactivitiesform)
            { if (shgactivitiesform.shgcode.value == "")
                {
                    alert("SHG code should be filled.");
                    shgactivitiesform.shgcode.focus();
                    return false;
                }
                if (shgactivitiesform.presidentname.value == "")
                {
                    alert("President name should be filled.");
                    shgactivitiesform.presidentname.focus();
                    return false;
                }
                if (shgactivitiesform.presidentoccupation.value == "")
                {
                    alert("President occupation should be filled.");
                    shgactivitiesform.presidentoccupation.focus();
                    return false;
                }
                if (shgactivitiesform.presidentmobile.value == "")
                {
                    alert("President mobile should be filled.");
                    shgactivitiesform.presidentmobile.focus();
                    return false;
                }
                if (shgactivitiesform.secretaryname.value == "")
                {
                    alert("Secretary name should be filled.");
                    shgactivitiesform.secretaryname.focus();
                    return false;
                }
                if (shgactivitiesform.secretaryoccupation.value == "")
                {
                    alert("Secretary occupation should be filled.");
                    shgactivitiesform.secretaryoccupation.focus();
                    return false;
                }
                if (shgactivitiesform.secretarymobile.value == "")
                {
                    alert("Secretary mobile should be filled.");
                    shgactivitiesform.secretarymobile.focus();
                    return false;
                }
                if (shgactivitiesform.treasurername.value == "")
                {
                    alert("Treasurer name should be filled.");
                    shgactivitiesform.treasurername.focus();
                    return false;
                }
                if (shgactivitiesform.treasureroccupation.value == "")
                {
                    alert("Treasurer occupation should be filled.");
                    shgactivitiesform.treasureroccupation.focus();
                    return false;
                }
                if (shgactivitiesform.treasurermobile.value == "")
                {
                    alert("Treasurer mobile should be filled.");
                    shgactivitiesform.treasurermobile.focus();
                    return false;
                }
                if (shgactivitiesform.treasurermobile.value != "")
                {
                    if (shgactivitiesform.treasurermobile.value.length != 10) {
                        alert("Mobile Number Details must contain 10 digit.");
                        shgactivitiesform.treasurermobile.focus();
                        return false;
                    }
                }
                if (shgactivitiesform.secretarymobile.value != "")
                {
                    if (shgactivitiesform.secretarymobile.value.length != 10) {
                        alert("Mobile Number Details must contain 10 digit.");
                        shgactivitiesform.secretarymobile.focus();
                        return false;
                    }
                }
                if (shgactivitiesform.presidentmobile.value != "")
                {
                    if (shgactivitiesform.presidentmobile.value.length != 10) {
                        alert("Mobile Number Details must contain 10 digit.");
                        shgactivitiesform.presidentmobile.focus();
                        return false;
                    }
                }
                
                document.forms[0].submit();
                return true;
            }

            function updateform(shgactivitiesform)
            {
                if (checkUpdateDiv(shgactivitiesform))
                {
                    document.forms[0].handle_id.value = "Update";
                    document.forms[0].action = '/PacsApplication/ShgActivitiesServlet';
                    shgactivitiesform.submit();

                }
            }
            function checkUpdateDiv(shgactivitiesform)
            {

                if (shgactivitiesform.shgcodeAmend.value == "")
                {
                    alert("SHG code should be filled.");
                    shgactivitiesform.shgcodeAmend.focus();
                    return false;
                }
                if (shgactivitiesform.presidentnameAmend.value == "")
                {
                    alert("President name should be filled.");
                    shgactivitiesform.presidentnameAmend.focus();
                    return false;
                }
                if (shgactivitiesform.presidentoccupationAmend.value == "")
                {
                    alert("President occupation should be filled.");
                    shgactivitiesform.presidentoccupationAmend.focus();
                    return false;
                }
                if (shgactivitiesform.presidentmobileAmend.value == "")
                {
                    alert("President mobile should be filled.");
                    shgactivitiesform.presidentmobileAmend.focus();
                    return false;
                }
                if (shgactivitiesform.secretarynameAmend.value == "")
                {
                    alert("Secretary name should be filled.");
                    shgactivitiesform.secretarynameAmend.focus();
                    return false;
                }
                if (shgactivitiesform.secretaryoccupationAmend.value == "")
                {
                    alert("Secretary occupation should be filled.");
                    shgactivitiesform.secretaryoccupationAmend.focus();
                    return false;
                }
                if (shgactivitiesform.secretarymobileAmend.value == "")
                {
                    alert("Secretary mobile should be filled.");
                    shgactivitiesform.secretarymobileAmend.focus();
                    return false;
                }
                if (shgactivitiesform.treasurernameAmend.value == "")
                {
                    alert("Treasurer name should be filled.");
                    shgactivitiesform.treasurernameAmend.focus();
                    return false;
                }
                if (shgactivitiesform.treasureroccupationAmend.value == "")
                {
                    alert("Treasurer occupation should be filled.");
                    shgactivitiesform.treasureroccupationAmend.focus();
                    return false;
                }
                if (shgactivitiesform.treasurermobileAmend.value == "")
                {
                    alert("Treasurer mobile should be filled.");
                    shgactivitiesform.treasurermobileAmend.focus();
                    return false;
                }
                if (shgactivitiesform.treasurermobileAmend.value != "")
                {
                    if (shgactivitiesform.treasurermobileAmend.value.length != 10) {
                        alert("Mobile Number Details must contain 10 digit.");
                        shgactivitiesform.treasurermobileAmend.focus();
                        return false;
                    }
                }
                if (shgactivitiesform.secretarymobileAmend.value != "")
                {
                    if (shgactivitiesform.secretarymobileAmend.value.length != 10) {
                        alert("Mobile Number Details must contain 10 digit.");
                        shgactivitiesform.secretarymobileAmend.focus();
                        return false;
                    }
                }
                if (shgactivitiesform.presidentmobileAmend.value != "")
                {
                    if (shgactivitiesform.presidentmobileAmend.value.length != 10) {
                        alert("Mobile Number Details must contain 10 digit.");
                        shgactivitiesform.presidentmobileAmend.focus();
                        return false;
                    }
                }
              
                document.forms[0].submit();
                return true;
            }

            function checkop()
            {
                if (document.getElementById("checkOption").value == "create")
                {
                    document.getElementById('create').style.display = 'block';
                    document.getElementById('amend').style.display = 'none';
                    document.getElementById('amend2').style.display = 'none';


                }
                if (document.getElementById("checkOption").value == "amend")
                {
                    document.getElementById('create').style.display = 'none';
                    document.getElementById('amend').style.display = 'block';
                    document.getElementById('amend2').style.display = 'none';
                }
               
            }

            function searchShg(width, height, shgSearch) {

                if (window.innerWidth) {
                    LeftPosition = (window.innerWidth - width) / 2;
                    TopPosition = ((window.innerHeight - height) / 2) - 20;
                }
                else {
                    LeftPosition = (parseInt(window.screen.width) - width) / 2;
                    TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
                }
                attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
                    height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
                    TopPosition + '';
                var screenName = "ShgActivities.jsp";
                var lovKey = "shgDetails"
                popWin = open('/PacsApplication/CommonSearchInformationShgLOV.jsp?shgSearch=' + shgSearch + '&screenName=' + screenName + '&lovKey=' + lovKey, 'shgDetails', attr);
                popWin.focus();

            }
            function searchShgcode(width, height, shgcodeSearch) {

                if (window.innerWidth) {
                    LeftPosition = (window.innerWidth - width) / 2;
                    TopPosition = ((window.innerHeight - height) / 2) - 20;
                }
                else {
                    LeftPosition = (parseInt(window.screen.width) - width) / 2;
                    TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
                }
                attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
                    height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
                    TopPosition + '';
                var screenName = "ShgActivities.jsp";
                var lovKey = "shgDetailscode"
                popWin = open('/PacsApplication/CommonSearchInformationShgLOV.jsp?shgcodeSearch=' + shgcodeSearch + '&screenName=' + screenName + '&lovKey=' + lovKey, 'shgDetailscode', attr);
                popWin.focus();

            }
            function getDetails(shgactivitiesform) {
                if (document.getElementById("shgSearch").value == "")
                {
                    alert("Shg Code field should be filled.");
                    shgactivitiesform.shgSearch.focus();
                    return false;
                }
                document.forms[0].handle_id.value = "Search";
                document.forms[0].action = '/PacsApplication/ShgActivitiesServlet';
                shgactivitiesform.submit();

            }
            function ShowParent()
            {
                document.forms[0].action = "${pageContext.request.contextPath}/Shg_JSP/ShgActivities.jsp";
                document.forms[0].submit();
            }

           $(document).ready(function(){
                $('#treasurermobile').bind("cut copy paste",function(e) {
                e.preventDefault();
                });
            });
            $(document).ready(function(){
                $('#secretarymobile').bind("cut copy paste",function(e) {
                e.preventDefault();
                });
            });
            $(document).ready(function(){
                $('#presidentmobile').bind("cut copy paste",function(e) {
                e.preventDefault();
                });
            });
            $(document).ready(function(){
                $('#treasurermobileAmend').bind("cut copy paste",function(e) {
                e.preventDefault();
                });
            });
            $(document).ready(function(){
                $('#secretarymobileAmend').bind("cut copy paste",function(e) {
                e.preventDefault();
                });
            });
            $(document).ready(function(){
                $('#presidentmobileAmend').bind("cut copy paste",function(e) {
                e.preventDefault();
                });
            });

            // to restrict back button
            history.pushState(null, null, location.href);
            window.addEventListener('popstate', function(event) {
                history.pushState(null, null, location.href);
            }); 
            
        </script>
        <%
             String error_msg = "";
             Object error = request.getAttribute("message");
             if (error != null) {
                 error_msg = error.toString();
             }
        %>
        <%
             Object oShgActivitiesBeanObj = request.getAttribute("ShgActivitiesBeanObj");
             ShgActivitiesBean oShgActivitiesBean = new ShgActivitiesBean();
             if (oShgActivitiesBeanObj != null) {
                 oShgActivitiesBean = (ShgActivitiesBean) request.getAttribute("ShgActivitiesBeanObj");

             }
        %>
        <%
             String displayFlag = "";
             Object display = request.getAttribute("displayFlag");
             if (display != null) {
                 displayFlag = display.toString();
             }
        %>
        <jsp:include page="MenuHead_SHG.jsp" flush="true" />
        <br>
        <%!
            String blankNull(String s) {
                return (s == null) ? "" : s;
            }
        %>


        <fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">

            <legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">SHG Activities</legend>
            <form name="shgactivitiesform" method="post" action="">

                <%if (!error_msg.equalsIgnoreCase("")) {%>
                <center><div class="info" id="errorMessage"><center><%= error_msg%></center></div></center>
                <% }%>

                <br>
                <br>
                <center><lable style=" font-family: Berlin Sans FB; font-weight:  normal;">Operation Selection:</lable>
                    <select id="checkOption" onchange="checkop()" name="checkOption" >
                        <option value="" disabled selected style="display:none;" >--Select--</option>
                        <option value="create" >Create</option>
                        <option value="amend" >Amend</option>
                    </select>
                </center>
                <div id="create" style="display:none;">
                    <table>
                        <tr></tr>
                        <tr></tr>
                        <tr></tr>
                        <tr></tr> <tr></tr>
                        <tr></tr><br><br>
                        <tr>
                            <td>SHG Code<font color="red" >*</font>:</td><td><input type="text" id="shgcode" name="shgcode" readonly style="text-align:right;" ></td>
                            <td> <input type="button" name="Search Code" value="Search" onclick="javascript:searchShgcode(500, 220, document.shgactivitiesform.shgcode.value)" > </td></tr>


                        <tr></tr>
                        <tr></tr>
                        <tr><td><hr></td></tr>
                        <tr></tr>
                        <tr></tr>
                        <tr>
                            <td><h3>President Details:</h3></td>
                        </tr>
                        <tr></tr>
                        <tr></tr>
                        <tr>
                            <td><lable>&nbsp&nbspName<font color="red" >*</font>:</td><td><input type="text" id="presidentname" onKeyPress="return lettersOnly( event)" name="presidentname"></lable></td>
                        </tr>
                        <tr></tr>
                        <tr></tr>
                        <tr>
                            <td>&nbsp&nbspOccupation<font color="red" >*</font>: </td><td><input type="text" id="presidentoccupation" onKeyPress="return lettersOnly( event)"  name="presidentoccupation"></td>
                        </tr>
                        <tr></tr>
                        <tr></tr>
                        <tr>
                            <td>&nbsp&nbspMobile<font color="red" >*</font>:</td><td><input type="text" id="presidentmobile" name="presidentmobile"  onKeyPress="return numbersonly( event)" maxlength="10" style="text-align:right;" ></td>
                        </tr>
                        <tr></tr>
                        <tr></tr>
                        <tr><td><hr></td></tr>
                        <tr></tr>
                        <tr></tr>
                        <tr>
                            <td><h3>Secretary Details:</h3></td>
                        </tr>
                        <tr></tr>
                        <tr></tr>
                        <tr>
                            <td>&nbsp&nbspName<font color="red" >*</font>:</td><td>
                                <input type="text" id="secretaryname" onKeyPress="return lettersOnly( event)"  name="secretaryname"></td>
                        </tr>
                        <tr></tr>
                        <tr></tr>
                        <tr>
                            <td>&nbsp&nbspOccupation<font color="red" >*</font>:</td><td><input type="text" onKeyPress="return lettersOnly( event)"  id="secretaryoccupation" name="secretaryoccupation"></td>
                        </tr>
                        <tr></tr>
                        <tr></tr>
                        <tr>
                            <td>&nbsp&nbspMobile<font color="red" >*</font>:</td><td><input type="text" id="secretarymobile" name="secretarymobile" maxlength="10" onKeyPress="return numbersonly( event)" style="text-align:right;" ></td>
                        </tr>
                        <tr></tr>
                        <tr></tr>
                        <tr><td><hr></td></tr>
                        <tr></tr>
                        <tr></tr>
                        <tr>
                            <td><h3>Treasurer Details:</h3></td>
                        </tr>
                        <tr></tr>
                        <tr></tr>
                        <tr>
                            <td>&nbsp&nbspName<font color="red" >*</font>:</td><td><input type="text"  onKeyPress="return lettersOnly( event)" id="treasurername" name="treasurername"></td>
                        </tr>
                        <tr></tr>
                        <tr></tr>
                        <tr>
                            <td>&nbsp&nbspOccupation<font color="red" >*</font>:</td><td><input type="text"  onKeyPress="return lettersOnly( event)" id="treasureroccupation" name="treasureroccupation"></td>
                        </tr>
                        <tr></tr>
                        <tr></tr>
                        <tr>
                            <td>&nbsp&nbspMobile<font color="red" >*</font>:</td><td><input type="text" id="treasurermobile" name="treasurermobile" maxlength="10" onKeyPress="return numbersonly( event)" style="text-align:right;" ></td>
                        </tr>
                        <tr></tr>
                        <tr></tr>
                        <tr><td><hr></td></tr>
                        <tr></tr>
                        <tr></tr>
                        <tr>
                            <td><h3>Other Details :</h3></td>
                        </tr>
                        <tr></tr>
                        <tr></tr>
                        <tr>
                            <td><b>&nbsp&nbspEconomic Activities Of Group :</b></td>
                        </tr>
                        <tr></tr>
                        <tr></tr>
                        <tr>
                            <td>&nbsp&nbsp&nbsp&nbspGroup Meeting :</td>                          <td>
                                <input type="radio" id="grpmeeting" name="grpmeeting"  value="Regular" checked>Regular
                                <input type="radio" id="grpmeeting" name="grpmeeting" value="Irregular" >Irregular
                                <input type="radio" id="grpmeeting" name="grpmeeting" value="Never">Never
                            </td>
                        </tr>
                        <tr></tr>
                        <tr></tr>
                        <tr>
                            <td>&nbsp&nbsp&nbsp&nbspCommittees's Resolution Book :</td>                          <td>
                                <input type="radio" id="resolution" name="resolution"  value="Yes" checked>Yes
                                <input type="radio" id="resolution" name="resolution" value="No" >No

                            </td>
                        </tr>
                        <tr></tr>
                        <tr></tr>

                        <tr>
                            <td>&nbsp&nbsp&nbsp&nbspCommittees's Loan Register :</td>                          <td>
                                <input type="radio" id="register" name="register"  value="Yes" checked>Yes
                                <input type="radio" id="registerno" name="register" value="No" >No

                            </td>
                        </tr>
                        <tr></tr>
                        <tr></tr>
                        <tr>
                            <td>&nbsp&nbsp&nbsp&nbspCommittees's Cash Book :</td>                          <td>
                                <input type="radio" id="cash" name="cash"  value="Yes" checked>Yes
                                <input type="radio" id="cash" name="cash" value="No" >No

                            </td>
                        </tr>
                        <tr></tr>
                        <tr></tr>
                        <tr>
                            <td>&nbsp&nbsp&nbsp&nbspCommittees's Savings Book :</td>                          <td>
                                <input type="radio" id="savings" name="savings"  value="Yes" checked >Yes
                                <input type="radio" id="savings" name="savings" value="No" >No

                            </td>
                        </tr>
                        <tr></tr>
                        <tr></tr>
                        <tr>
                            <td>&nbsp&nbsp&nbsp&nbspCommittees's Other Register/Book :</td>                          <td>
                                <input type="radio" id="other" name="other"  value="Yes" checked>Yes
                                <input type="radio" id="other" name="other" value="No" >No

                            </td>
                        </tr>

                        <tr><td><br></td></tr>
                        <tr><td><br></td></tr>
                        <tr><td><font color="red" >*</font>All fields are mandatory.</td></tr>

                    </table><br><br>

                    <center>
                        <input type="button" value="Submit" onclick="javascript:submitform(shgactivitiesform)">
                        <input type="button" value="Reset" name="reset" onclick="ShowParent();" />

                    </center>
                </div>
                <br><br>

                <div id="amend" style="display: none;">
                    <center>
                        <lable style=" font-family: Berlin Sans FB; font-weight:  normal;" >Enter SHG Code<font color="red" >*</font>: </lable>
                        <input type="text" name="shgSearch" readonly id="shgSearch" style="text-align:right;"/>
                        <input type="button"  value="Search" onclick="javascript:searchShg(220, 180, document.shgactivitiesform.shgSearch.value)" />
                        <input type="button"  value="Submit" onclick="javascript:getDetails(shgactivitiesform)" />
                    </center>
                    <br><br>
                </div>

                <%if (displayFlag.equalsIgnoreCase("Y")) {%>
                <div id="amend2" >

                    <table>
                        <tr></tr>
                        <tr></tr>
                        <tr></tr>
                        <tr></tr> <tr></tr>
                        <tr></tr><br><br>
                        <tr>
                            <td>SHG Code<font color="red" >*</font>:</td><td><input type="text" id="shgcodeAmend" name="shgcodeAmend" readonly value="<%=blankNull(oShgActivitiesBean.getShgcode())%>" style="text-align:right;" ></td>
                        </tr>
                        <tr></tr>
                        <tr></tr>
                        <tr><td><hr></td></tr>
                        <tr></tr>
                        <tr></tr>
                        <tr>
                            <td><h3>President Details :</h3></td>
                        </tr>
                        <tr></tr>
                        <tr></tr>
                        <tr>
                            <td><lable>&nbsp&nbspName<font color="red" >*</font>:</td><td><input type="text"  onKeyPress="return lettersOnly( event)" id="presidentnameAmend" name="presidentnameAmend" value="<%=blankNull(oShgActivitiesBean.getPresidentname())%>"></lable></td>
                        </tr>
                        <tr></tr>
                        <tr></tr>
                        <tr>
                            <td>&nbsp&nbspOccupation<font color="red" >*</font>:</td><td><input type="text" onKeyPress="return lettersOnly( event)"  id="presidentoccupationAmend" name="presidentoccupationAmend" value="<%=blankNull(oShgActivitiesBean.getPresidentoccupation())%>"></td>
                        </tr>
                        <tr></tr>
                        <tr></tr>
                        <tr>
                            <td>&nbsp&nbspMobile<font color="red" >*</font>:</td><td><input type="text" id="presidentmobileAmend" name="presidentmobileAmend" value="<%=blankNull(oShgActivitiesBean.getPresidentmobile())%>" onKeyPress="return numbersonly( event)" maxlength="10" style="text-align:right;" ></td>
                        </tr>
                        <tr></tr>
                        <tr></tr>
                        <tr><td><hr></td></tr>
                        <tr></tr>
                        <tr></tr>
                        <tr>
                            <td><h3>Secretary Details:</h3></td>
                        </tr>
                        <tr></tr>
                        <tr></tr>
                        <tr>
                            <td><lable>&nbsp&nbspName<font color="red" >*</font>:</td><td><input type="text" onKeyPress="return lettersOnly( event)"  id="secretarynameAmend" name="secretarynameAmend" value="<%=blankNull(oShgActivitiesBean.getSecretaryname())%>"></td>
                            </tr>
                            <tr></tr>
                            <tr></tr>
                            <tr>
                                <td>&nbsp&nbspOccupation<font color="red" >*</font>: </td><td><input type="text" onKeyPress="return lettersOnly( event)"  id="secretaryoccupationAmend" name="secretaryoccupationAmend" value="<%=blankNull(oShgActivitiesBean.getSecretaryoccupation())%>"></td>
                            </tr>
                            <tr></tr>
                            <tr></tr>
                            <tr>
                                <td>&nbsp&nbspMobile<font color="red" >*</font>:</td><td><input type="text" id="secretarymobileAmend" name="secretarymobileAmend" value="<%=blankNull(oShgActivitiesBean.getSecretarymobile())%>" onKeyPress="return numbersonly( event)" maxlength="10" style="text-align:right;" ></td>
                            </tr>
                            <tr></tr>
                            <tr></tr>
                            <tr><td><hr></td></tr>
                            <tr></tr>
                            <tr></tr>
                            <tr>
                                <td><h3>Treasurer Details:</h3></td>
                            </tr>
                            <tr></tr>
                            <tr></tr>
                            <tr>
                                <td><lable>&nbsp&nbspName<font color="red" >*</font>:</td><td><input type="text" onKeyPress="return lettersOnly( event)"  id="treasurernameAmend" name="treasurernameAmend" value="<%=blankNull(oShgActivitiesBean.getTreasurername())%>"></td>
                                </tr>
                                <tr></tr>
                                <tr></tr>
                                <tr>
                                    <td>&nbsp&nbspOccupation<font color="red" >*</font>:</td><td><input type="text"  onKeyPress="return lettersOnly( event)" id="treasureroccupationAmend" name="treasureroccupationAmend" value="<%=blankNull(oShgActivitiesBean.getTreasureroccupation())%>"></td>
                                </tr>
                                <tr></tr>
                                <tr></tr>
                                <tr>
                                    <td>&nbsp&nbspMobile<font color="red" >*</font>:</td><td><input type="text" id="treasurermobileAmend" name="treasurermobileAmend" value="<%=blankNull(oShgActivitiesBean.getTreasurermobile())%>" onKeyPress="return numbersonly( event)" maxlength="10" style="text-align:right;" ></td>
                                </tr>

                                <tr></tr>
                                <tr></tr>
                                <tr><td><hr></td></tr>
                                <tr></tr>
                                <tr></tr>
                                <tr>
                                    <td><h3>Other Details:</h3></td>
                                </tr>
                                <tr></tr>
                                <tr></tr>
                                <tr>
                                    <td><b>&nbsp&nbspEconomic Activities Of Group:</b></td>
                                </tr>
                                <tr></tr>
                                <tr></tr>
                                <tr>
                                    <td>&nbsp&nbsp&nbsp&nbspGroup Meeting:</td>                          <td>
                                        <input type="radio" id="grpmeetingAmend" name="grpmeetingAmend"  value="Regular" <%if (oShgActivitiesBean.getGrpmeeting().equalsIgnoreCase("Regular")) {%>  checked <%}%> >Regular
                                        <input type="radio" id="grpmeetingAmend" name="grpmeetingAmend" value="Irregular"  <%if (oShgActivitiesBean.getGrpmeeting().equalsIgnoreCase("Irregular")) {%>  checked <%}%> >Irregular
                                        <input type="radio" id="grpmeetingAmend" name="grpmeetingAmend" value="Never" <%if (oShgActivitiesBean.getGrpmeeting().equalsIgnoreCase("Never")) {%>  checked <%}%>>Never
                                    </td>
                                </tr>
                                <tr></tr>
                                <tr></tr>
                                <tr>
                                    <td>&nbsp&nbsp&nbsp&nbspCommittees's Resolution Book:</td>                          <td>
                                        <input type="radio" id="resolutionAmend" name="resolutionAmend"  value="Yes"  <%if (oShgActivitiesBean.getResolution().equalsIgnoreCase("Yes")) {%>  checked <%}%> >Yes
                                        <input type="radio" id="resolutionAmend" name="resolutionAmend" value="No"  <%if (oShgActivitiesBean.getResolution().equalsIgnoreCase("No")) {%>  checked <%}%> >No

                                    </td>
                                </tr>
                                <tr></tr>
                                <tr></tr>
                                <tr>
                                    <td>&nbsp&nbsp&nbsp&nbspCommittees's Loan Register:</td>                          <td>
                                        <input type="radio" id="registerAmend" name="registerAmend"  value="Yes" <%if (oShgActivitiesBean.getRegister().equalsIgnoreCase("Yes")) {%>  checked <%}%>  >Yes
                                        <input type="radio" id="registerAmend" name="registerAmend" value="No" <%if (oShgActivitiesBean.getRegister().equalsIgnoreCase("No")) {%>  checked <%}%>>No

                                    </td>
                                </tr>  <tr></tr>
                                <tr></tr>
                                <tr>
                                    <td>&nbsp&nbsp&nbsp&nbspCommittees's Cash Book:</td>                          <td>
                                        <input type="radio" id="cashAmend" name="cashAmend"  value="Yes" <%if (oShgActivitiesBean.getCash().equalsIgnoreCase("Yes")) {%>  checked <%}%>  >Yes
                                        <input type="radio" id="cashAmend" name="cashAmend" value="No"<%if (oShgActivitiesBean.getCash().equalsIgnoreCase("No")) {%>  checked <%}%> >No

                                    </td>
                                </tr> <tr></tr>
                                <tr></tr>
                                <tr>
                                    <td>&nbsp&nbsp&nbsp&nbspCommittees's Savings Book:</td>                          <td>
                                        <input type="radio" id="savingsAmend" name="savingsAmend"  value="Yes"  <%if (oShgActivitiesBean.getSavings().equalsIgnoreCase("Yes")) {%>  checked <%}%> >Yes
                                        <input type="radio" id="savingsAmend" name="savingsAmend" value="No" <%if (oShgActivitiesBean.getSavings().equalsIgnoreCase("No")) {%>  checked <%}%>>No

                                    </td>
                                </tr>  <tr></tr>
                                <tr></tr>
                                <tr>
                                    <td>&nbsp&nbsp&nbsp&nbspCommittees's Other Register/Book:</td>                          <td>
                                        <input type="radio" id="otherAmend" name="otherAmend"  value="Yes"  <%if (oShgActivitiesBean.getOther().equalsIgnoreCase("Yes")) {%>  checked <%}%> >Yes
                                        <input type="radio" id="otherAmend" name="otherAmend" value="No" <%if (oShgActivitiesBean.getOther().equalsIgnoreCase("No")) {%>  checked <%}%>>No

                                    </td>
                                </tr>

                                <tr><td><br></td></tr>
                                <tr><td><br></td></tr>
                                <tr><td><font color="red" >*</font>All fields are mandatory.</td></tr>

                                </table><br><br>

                                <br><br>
                                <input type="hidden" name="shg_id" value="<%=blankNull(oShgActivitiesBean.getShg_id())%>"/>
                                <center>
                                    <input type="button" value="Update" onclick="javascript:updateform(shgactivitiesform)">
                                    <input type="button" value="Reset" name="reset" onclick="ShowParent();" />
                                </center>

                                </div>
                                <% }%>
                                <input name="handle_id" id="handle_id" type="hidden" value="" />



                                </form>

                                </fieldset>

                                </body>
                                </html>
                                <% 	} catch (Exception e) {
                                               
                                            }
                                %>
