Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7266 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/delete-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
						#end
72
        				<option value="$circle.getId()">$circle.getName()</option>
73
					#end
74
        		</select>
75
			<input type="submit" class='submitButton' value="GO"></input>
76
		</form>
77
 
78
	#if($action.getMessage() != "")
79
		<div style="width:600px;font-size: 16px;color: red;text-align: center;border: 1px solid red;margin: 5px;padding: 5px;">
80
    		$action.getMessage()
81
    	</div>
82
	#end
83
 
84
	#if($action.getFrcs().size() > 0)
85
		<h3>Available FRC</h3>
86
		<form action="/rch/delete-frc!destroy">
87
			<input type="hidden" name="circle" value="$circleId">
88
    		<table width="750px">
89
                <thead>
90
                  <tr>
91
					<th>SELECT</th>
92
                    <th>Circle</th>
93
        			<th>Operator</th>
94
                    <th>Denomination</th>
95
        			<th>Discount</th>
96
                  </tr>
97
                </thead>
98
                <tbody>
99
        		#foreach ( $frc in $action.getFrcs() )
100
        		  <tr>
101
					<td><input type="checkbox" name="frcIdToDelete" value="$frc.getId()"></input></td>
102
                    <td>$circleName</td>
103
        			<td>$action.getOperatorsMap().get($frc.getOperatorId())</td>
104
        			<td>$frc.getDenomination()</td>
105
        			<td>$frc.getMaxDiscount()</td>
106
                  </tr>
107
        		#end
108
                </tbody>
109
			</table>
110
			<input type="submit" value="DELETE" class="submitButton" style="background-color:red;width:125px;margin-top:25px;"></input>
111
		</form>
112
	#end
113
    </div>
114
 
115
</body>
116
 
117
</html>