Subversion Repositories SmartDukaan

Rev

Rev 7370 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
7370 anupam.sin 1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
<html xmlns="http://www.w3.org/1999/xhtml">
3
 
4
<head>
5
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
6
    <link rel="stylesheet" href="css/rechargewebapp_18042013.css" type="text/css" />
7
	<style>
8
		.searchStore {
9
			height: 23px;
10
            border: 1px solid #999999;
11
            padding: 2px 5px 2px 10px;
12
            font-size: 16px;
13
            color: #777777;
14
            box-shadow: 1px -1px 10px -1px #999999 inset;
15
			width:100px
16
		}
17
 
18
		.submitButton {
19
			height: 25px;
20
            width: 50px;
21
            font-weight: bold;
22
            font-size: 15px;
23
            background-color: #2789c1;
24
            border: 1px solid blue;
25
            border-radius: 2px;
26
            color: white;
27
		}
28
 
29
		table, td, th
30
		{
31
			border:1px solid #2789C1;
32
			border-collapse:collapse;
33
			border-spacing:0;
34
		}
35
		th
36
		{
37
			background-color:#2789C1;
38
			color:white;
39
			text-align:center;
40
			padding:5px;
41
		}
42
		td
43
        {
44
			text-align:center;
45
			padding:5px;
46
        }
47
	</style>
48
</head>
49
 
50
#set($circles = $action.getCircles())
51
 
52
<body style="margin: 0;">
53
    <div style="line-height:37px;height:37px;background-color:#333;color:white;border-bottom: 5px solid white;">
54
    	<span style="margin-left:20px;font-weight:bold;font-size:15px">SAHOLIC RECHARGE ADMIN CONSOLE </span>
55
    	<span style="margin-left:120px;"><a style="color:white;" href="/rch/admin">Home</a></span>
56
    	<span style="margin-left:50px;"><a style="color:white;" href="/rch/admin!doLogout">Logout</a></span>
57
    </div>
58
 
59
    <div id="main" style="width:800px;margin: 5px 0 0 50px;">
60
		<form style="margin:25px;" action="/rch/add-frc" method="post">
61
			<span>
62
        		Select a circle  
63
			</span>
64
    		<select style="height: 25px;border: 1px solid #2789C1;font-size: 15px;" name="circle">
65
    			<option value="0">Choose circle</option>
66
    			#foreach($circle in $circles)
67
					#if($circle.getId() == $action.getCircle())
68
						#set($circleName = $circle.getName())
69
						#set($circleId = $circle.getId())
70
						<option value="$circle.getId()" selected="true">$circle.getName()</option>
71
					#else
72
						<option value="$circle.getId()">$circle.getName()</option>
73
					#end
74
				#end
75
    		</select>
76
			<span>
77
        		Select Operator  
78
			</span>
79
    		<select style="height: 25px;border: 1px solid #2789C1;font-size: 15px;" name="operatorId">
80
    			<option value="0">Choose operator</option>
81
    			#foreach($opId in $operatorsMap.keySet())
82
					#if($opId == $action.getOperatorId())
83
						<option value="$opId" selected="true">$operatorsMap.get($opId)</option>
84
					#else
85
						<option value="$opId">$operatorsMap.get($opId)</option>
86
					#end
87
				#end
88
    		</select>
89
			<input type="submit" class='submitButton' value="GO"></input>
90
		</form>
91
 
92
	#if($action.getMessage() != "")
93
		<div style="width:600px;font-size: 16px;color: red;text-align: center;border: 1px solid red;margin: 5px;padding: 5px;">
94
    		$action.getMessage()
95
    	</div>
96
	#end
97
 
98
	#if($action.getFrcs().size() > 0)
99
		<h3>Available FRC</h3>
100
		<table width="750px">
101
            <thead>
102
              <tr>
103
                <th>Circle</th>
104
    			<th>Operator</th>
105
                <th>Denomination</th>
106
    			<th>Discount</th>
107
              </tr>
108
            </thead>
109
            <tbody>
110
    		#foreach ( $frc in $action.getFrcs() )
111
    		  <tr>
112
                <td>$circleName</td>
113
    			<td>$action.getOperatorsMap().get($frc.getOperatorId())</td>
114
    			<td>$frc.getDenomination()</td>
115
    			<td>$frc.getMaxDiscount()</td>
116
              </tr>
117
    		#end
118
            </tbody>
119
		</table>
120
	#end
7375 anupam.sin 121
	<form action="/rch/add-frc!add" method="post">
122
		<input type="hidden" name="circle" value="$circleId"></input>
123
		<input type="hidden" name="operatorId" value="$operatorId"></input>
124
		Denomination : <input type="text" name="denomination" style="height: 20px;border: 1px solid #AAAAAA;border-radius: 5px;width: 100px;padding: 3px 5px;font-size: 15px;color: #777777;"></input>
125
		Discount : <input type="text" name='maxDiscount' style="height: 20px;border: 1px solid #AAAAAA;border-radius: 5px;width: 100px;padding: 3px 5px;font-size: 15px;color: #777777;"></input>
126
		<input type="submit" value="ADD" class="submitButton" style="background-color:red;width:125px;margin:25px 0px 25px 100px;"></input>
127
	</form>
128
 
7370 anupam.sin 129
    </div>
130
 
131
</body>
132
 
133
</html>