Subversion Repositories SmartDukaan

Rev

Rev 3096 | Rev 3151 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3096 Rev 3106
Line 14... Line 14...
14
    </head>
14
    </head>
15
    <body>
15
    <body>
16
        <!-- main-->
16
        <!-- main-->
17
        <div id="topbar">
17
        <div id="topbar">
18
            <div id="topbar-left">
18
            <div id="topbar-left">
19
            <h2 >Saholic CRM</h2>
19
            <h2 class="home-page">Saholic CRM</h2>
20
                <form method="post" action="">
20
                <form method="post" action="">
21
                    <label>
21
                    <label>
22
                        <span>Customer Id(Email):</span>
22
                        <span>Customer Id(Email):</span>
23
                    </label>
23
                    </label>
24
                    <input type="text" name="email" id="email" />
24
                    <input type="text" name="email" id="email" />&nbsp;&nbsp;&nbsp;&nbsp;
25
                    <label>
25
                    <label>
26
                        <span>Mobile No:</span>
26
                        <span>Mobile No:</span>
27
                    </label>
27
                    </label>
28
                    <input type="text" size="10" name="mobileNumber" id="mobileNumber"/>
28
                    <input type="text" size="10" name="mobileNumber" id="mobileNumber"/>&nbsp;&nbsp;&nbsp;&nbsp;
29
                    <label>
29
                    <label>
30
                        <span>Order Id:</span>
30
                        <span>Order Id:</span>
31
                    </label>
31
                    </label>
32
                    <input type="text" name="orderId" size="5" id="orderId"/>
32
                    <input type="text" name="orderId" size="5" id="orderId"/>&nbsp;&nbsp;&nbsp;&nbsp;
33
                    <label>
33
                    <label>
34
                        <span>Ticket Id:</span>
34
                        <span>Ticket Id:</span>
35
                    </label>
35
                    </label>
36
                    <input type="text" name="ticketId" size="4" id="ticketId"/>
36
                    <input type="text" name="ticketId" size="4" id="ticketId"/>&nbsp;&nbsp;
37
                    <input type="submit" name="submit" id="submit" value="Submit"/>
37
                    <input type="submit" name="submit" id="submit" value="Submit"/>
38
                </form>
38
                </form>
39
            </div>
39
            </div>
40
            <div id="topbar-right">
40
            <div id="topbar-right">
41
                <label >Welcome $action.getAgentName()</label>
41
                <label >Welcome $action.getAgentName()</label>
Line 50... Line 50...
50
            </div>
50
            </div>
51
        </div>
51
        </div>
52
        <div id="middle">
52
        <div id="middle">
53
            <!-- sidebar-->
53
            <!-- sidebar-->
54
            <div id="sidebar">
54
            <div id="sidebar">
-
 
55
                #set($user = $user)
55
                <span>User:
56
                <span>User:
56
                    <a alt="Show User Details" title="Show User Details" href="#" userId="$action.getUser().getUserId()" class="show-user-details">
57
                    <a alt="Show User Details" title="Show User Details" href="#" userId="$user.getUserId()" class="show-user-details">
57
                        $action.getUser().getName()
58
                        $user.getName()
58
                    </a>
59
                    </a>
59
                </span>
60
                </span>
60
                <br/>
61
                <br/>
61
                <span>Email: $action.getUser().getEmail()</span>
62
                <span>Email: $user.getEmail()</span>
-
 
63
                <br/>
-
 
64
                <span>Mobile No: $user.getMobileNumber()</span>
62
                <br/>
65
                <br/>
63
                <span>Last Login: <br/>
66
                <span>Last Login: <br/>
64
                    $action.getLastLogin()
67
                    $action.getLastLogin()
65
                </span>
68
                </span>
66
                <br/>
69
                <br/>
67
                <br/>
70
                <br/>
68
                <span>Orders:
71
                <span>Orders:
69
                    <a alt="Show Orders" title="Show orders" href="#" userId="$action.getUser().getUserId()" class="show-orders">
72
                    <a alt="Show Orders" title="Show orders" href="#" userId="$user.getUserId()" class="show-orders">
70
                        $action.getOrderCount()
73
                        $action.getOrderCount()
71
                    </a>
74
                    </a>
72
                </span>
75
                </span>
73
                <br/>
76
                <br/>
74
                <span>Completed Orders: $action.getCompletedOrderCount()</span>
77
                <span>Completed Orders: $action.getCompletedOrderCount()</span>
Line 77... Line 80...
77
                <br/>
80
                <br/>
78
                <span>Failed Orders: $action.getFailedOrderCount()</span>
81
                <span>Failed Orders: $action.getFailedOrderCount()</span>
79
                <br/>
82
                <br/>
80
                <br/>
83
                <br/>
81
                <span>Cart : 
84
                <span>Cart : 
82
                    <a alt="Show Cart" title="Show Cart" href="#" userId="$action.getUser().getUserId()" cartId="$action.getUser().getActiveCartId()" class="show-cart">
85
                    <a alt="Show Cart" title="Show Cart" href="#" userId="$user.getUserId()" cartId="$user.getActiveCartId()" class="show-cart">
83
                        $action.getCartItems()
86
                        $action.getCartItems()
84
                    </a> $action.getCouponCode()
87
                    </a> $action.getCouponCode()
85
                </span>
88
                </span>
86
                <br/>
89
                <br/>
87
                <br/>
90
                <br/>
88
                <span>Ticket History:
91
                <span>Ticket History:
89
                    <a alt="Show Tickets" title="Show tickets" href="#" userId="$action.getUser().getUserId()" class="show-tickets">
92
                    <a alt="Show Tickets" title="Show tickets" href="#" userId="$user.getUserId()" class="show-tickets">
90
                        $action.getTicketCount()
93
                        $action.getTicketCount()
91
                    </a>
94
                    </a>
92
                </span>
95
                </span>
93
                <br/>
96
                <br/>
94
                <span>Open tickets: $action.getOpenTicketCount()</span>
97
                <span>Open tickets: $action.getOpenTicketCount()</span>
95
                <br/>
98
                <br/>
96
                <span>Closed tickets: $action.getClosedTicketCount()</span>
99
                <span>Closed tickets: $action.getClosedTicketCount()</span>
97
                <br/>
100
                <br/>
98
                <a class="create-ticket" userId="$action.getUser().getUserId()" href="#">
101
                <a class="create-ticket" userId="$user.getUserId()" href="#">
99
                    Create new Ticket
102
                    Create new Ticket
100
                </a>
103
                </a>
101
                <br />
104
                <br />
102
                <br />
105
                <br />
-
 
106
                <span >Activity:
103
                <a alt="Activity" title="Activity" href="#" userId="$action.getUser().getUserId()" class="show-activity">
107
                <a alt="Activity" title="Activity" href="#" userId="$user.getUserId()" class="show-activity">
104
                    Activity
108
                    $action.getActivityCount()
105
                </a>
109
                </a>
-
 
110
                </span>
106
                <br />
111
                <br />
107
                <a href="#" class="create-activity" userId="$action.getUser().getUserId()">
112
                <a href="#" class="create-activity" userId="$user.getUserId()">
108
                    Create new Activity
113
                    Create new Activity
109
                </a>
114
                </a>
110
                <br />
115
                <br />
111
                <span>User Communications:
116
                <span>User Communications:
112
                    #if ($action.getUserCommunicationCount() > 0)
117
                    #if ($action.getUserCommunicationCount() > 0)
113
                    <a alt="Show User Communications" title="Show User Communications" href="#" userId="$action.getUser().getUserId()" class="show-user-communication">
118
                    <a alt="Show User Communications" title="Show User Communications" href="#" userId="$user.getUserId()" class="show-user-communication">
114
                        $action.getUserCommunicationCount()
119
                        $action.getUserCommunicationCount()
115
                    </a>
120
                    </a>
116
                    #else
121
                    #else
117
                        $action.getUserCommunicationCount()
122
                        $action.getUserCommunicationCount()
118
                    #end
123
                    #end
Line 125... Line 130...
125
        <div id="footer">
130
        <div id="footer">
126
        </div>
131
        </div>
127
        <script type="text/javascript" charset="utf-8">
132
        <script type="text/javascript" charset="utf-8">
128
            $(function(){
133
            $(function(){
129
                #if($action.getOrderId() != 0)
134
                #if($action.getOrderId() != 0)
130
                    loadOrderPane('infopane', $action.getUser().getUserId(), $action.getOrderId());
135
                    loadOrderPane('infopane', $user.getUserId(), $action.getOrderId());
131
                #elseif($action.getTicketId() && !$action.getTicketId().isEmpty())
136
                #elseif($action.getTicketId() && !$action.getTicketId().isEmpty())
132
                    loadTicketPane('infopane', $action.getUser().getUserId(), $action.getTicketId());
137
                    loadTicketPane('infopane', $user.getUserId(), $action.getTicketId());
133
                #else
138
                #else
134
                    loadUserPane('infopane', $action.getUser().getUserId());
139
                    loadUserPane('infopane', $user.getUserId());
135
                #end
140
                #end
136
            });
141
            });
137
        </script>
142
        </script>
138
    </body>
143
    </body>
139
</html>
144
</html>