Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
21090 kshitij.so 1
#set($searchResult = $action.getSearchResults())
2
#if($action.getCustomH3())
3
	<h2>$action.getCustomH3()</h2>
4
#end
5
<style>
6
	td {
7
		text-align:center;
8
	}
9
	th {
10
		text-align:center;
11
	}
12
</style>
13
<div class="table-responsive">          
14
  <table class="table">
15
    <thead>
16
      <tr>
17
        <th>Associate Id</th>
18
        <th>Name</th>
19
        <th>Phone</th>
20
        <th>EmailId</th>
21
        <th>Code</th>
22
        <th>Level</th>
23
		<th>Activated</th>
24
		<th>Add L3</th>
25
      </tr>
26
    </thead>
27
    <tbody>
28
	#if($searchResult.size() > 0)
29
		#foreach($result in $searchResult)
30
          <tr>
31
            <td class="edit-user" userId="$result.getId()"><a href="javascript:void(0)" >$result.getId()</a></td>
32
            <td>$result.getName()</td>
33
    		<td>$result.getPhone()</td>
34
            <td>$result.getEmailId()</td>
35
            <td>$result.getCode()</td>
36
            <td>$result.getLevel()</td>
37
    		#if($result.isActivated())
38
    			<td><span class="glyphicon glyphicon-ok"></span></td>
39
    		#else
40
    			<td><span class="glyphicon glyphicon-remove"></span></td>
41
			#end
42
			#if($result.getLevel() == 'L2' && $result.isActivated())
43
				<td class="add-l3-user" referrerEmail="$result.getEmailId()"><a href="javascript:void(0)" >Add L3 User</a></td>
44
			#else
45
				<td></td>
46
			#end
47
          </tr>
48
		#end
49
	#else
50
		<tr><td colspan="7" style="text-align:center;font-weight:bold;">No Data Found</td></tr>
51
	#end
52
    </tbody>
53
  </table>
54
</div>