Subversion Repositories SmartDukaan

Rev

Rev 6374 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<head>
        <title>Saholic Service Availability Dashboard</title>
        <script language="javascript" src="$action.getServletContextPath()/js/jquery-1.4.2.js" type="text/javascript"></script>
</head>
<body>
        <div id="login" align="center">
        <p>
                Welcome to Saholic Service Availability Dashboard.<br/>
                Please select the Operator and Circle.
        </p>
        <label>Operator:</label>
        <select name="operatorId" id="operatorId">
                #set( $operators = $action.getOperators())
                #foreach($operatorId in $operators.keySet())
                <option value="$operatorId" selected="$operatorId">$operators.get($operatorId)</option>
                #end
        </select>
        <br/>
                <label>Circle:</label>
        <select name="circleId" id="circleId">
                #set( $circles = $action.getCircles())
                        <option value="0" selected="0">All Circles</option>
                #foreach($circleId in $circles.keySet())
                <option value="$circleId" selected="$circleId">$circles.get($circleId)</option>
                #end
        </select>
                <br/>
                <label>Service Available?:</label>
                <select name="isAvailable" id="isAvailable">
                        <option value="false">Not Available</option>
            <option value="true">Available</option>
                </select>
                <br/>
                <br/>
        <button value="Go">Go</button>
        </div>
        <br>
        <br>
        <br>
        <br>
        <br>
        <br>
        <br>
        <hr>
        <br>
        <br>
        
        <div id="infopane">
        </div>
        <script type="text/javascript" src="/Support/js/jquery-1.4.2.js"></script>
        <script type="text/javascript" src="/Support/js/courier-details.js"></script>
        <script>
                $('button').click(function(e){
                        e.preventDefault();
                        window.location.href = "$request.getContextPath()/recharge-availability/" + $("#operatorId option:selected").val() + "?isAvailable=" + $("#isAvailable option:selected").val() +  "&circleId=" + $("#circleId option:selected").val(); 
                });
        </script>
</body>