Skip to content
Snippets Groups Projects
Commit ca8d8dc1 authored by Azka Hanif Imtiyaz's avatar Azka Hanif Imtiyaz
Browse files

Chat window can now be opened or closed (limited to one)

parent 0d960a9b
No related merge requests found
...@@ -311,7 +311,7 @@ ...@@ -311,7 +311,7 @@
out.print("<p>No product to be sold.</p>"); out.print("<p>No product to be sold.</p>");
} else { } else {
for (int i = 0; i < result.size(); i++) { for (int i = 0; i < result.size(); i++) {
out.print("<div ng-click=\"setReceiver('"+result.get(i).getUsername()+"')\"><p><b>" + result.get(i).getUsername() + "</b><br/>"); out.print("<a href=\"\"><div ng-click=\"setReceiver('"+result.get(i).getUsername()+"')\"><p><b>" + result.get(i).getUsername() + "</a></b><br/>");
out.print("added this on " + result.get(i).getDate().getDate() + "</p></div>"); out.print("added this on " + result.get(i).getDate().getDate() + "</p></div>");
out.print("<hr/>"); out.print("<hr/>");
out.print("<table>"); out.print("<table>");
...@@ -363,7 +363,7 @@ ...@@ -363,7 +363,7 @@
out.print("<p>Nothing matches your search.</p>"); out.print("<p>Nothing matches your search.</p>");
} else { } else {
for (int i = 0; i < result.size(); i++) { for (int i = 0; i < result.size(); i++) {
out.print("<div ng-click=\"setReceiver('"+result.get(i).getUsername()+"')\"><b>" + result.get(i).getUsername() + "</b></div><br/>"); out.print("<a href=\"\"><div ng-click=\"setReceiver('"+result.get(i).getUsername()+"')\"><b>" + result.get(i).getUsername() + "</a></b></div><br/>");
out.print("added this on " + result.get(i).getDate().getDate() + "</p></div>"); out.print("added this on " + result.get(i).getDate().getDate() + "</p></div>");
out.print("<hr/>"); out.print("<hr/>");
out.print("<table>"); out.print("<table>");
...@@ -402,7 +402,7 @@ ...@@ -402,7 +402,7 @@
<div class="popup-box chat-popup" id="1" ng-show="isReceiverSet()" style="right: 0px; display: block;"> <div class="popup-box chat-popup" id="1" ng-show="isReceiverSet()" style="right: 0px; display: block;">
<div class="popup-head"> <div class="popup-head">
<div class="popup-head-left">{{receiver}}</div> <div class="popup-head-left">{{receiver}}</div>
<div class="popup-head-right"><a href="">&#10005;</a></div> <div class="popup-head-right" ng-click="setReceiver('')"><a href="">&#10005;</a></div>
<div style="clear: both"></div> <div style="clear: both"></div>
</div> </div>
<div class="popup-messages">Tes</div> <div class="popup-messages">Tes</div>
......
...@@ -311,7 +311,7 @@ ...@@ -311,7 +311,7 @@
out.print("<p>No product to be sold.</p>"); out.print("<p>No product to be sold.</p>");
} else { } else {
for (int i = 0; i < result.size(); i++) { for (int i = 0; i < result.size(); i++) {
out.print("<div ng-click=\"setReceiver('"+result.get(i).getUsername()+"')\"><p><b>" + result.get(i).getUsername() + "</b><br/>"); out.print("<a href=\"\"><div ng-click=\"setReceiver('"+result.get(i).getUsername()+"')\"><p><b>" + result.get(i).getUsername() + "</a></b><br/>");
out.print("added this on " + result.get(i).getDate().getDate() + "</p></div>"); out.print("added this on " + result.get(i).getDate().getDate() + "</p></div>");
out.print("<hr/>"); out.print("<hr/>");
out.print("<table>"); out.print("<table>");
...@@ -363,7 +363,7 @@ ...@@ -363,7 +363,7 @@
out.print("<p>Nothing matches your search.</p>"); out.print("<p>Nothing matches your search.</p>");
} else { } else {
for (int i = 0; i < result.size(); i++) { for (int i = 0; i < result.size(); i++) {
out.print("<div ng-click=\"setReceiver('"+result.get(i).getUsername()+"')\"><b>" + result.get(i).getUsername() + "</b></div><br/>"); out.print("<a href=\"\"><div ng-click=\"setReceiver('"+result.get(i).getUsername()+"')\"><b>" + result.get(i).getUsername() + "</a></b></div><br/>");
out.print("added this on " + result.get(i).getDate().getDate() + "</p></div>"); out.print("added this on " + result.get(i).getDate().getDate() + "</p></div>");
out.print("<hr/>"); out.print("<hr/>");
out.print("<table>"); out.print("<table>");
...@@ -402,7 +402,7 @@ ...@@ -402,7 +402,7 @@
<div class="popup-box chat-popup" id="1" ng-show="isReceiverSet()" style="right: 0px; display: block;"> <div class="popup-box chat-popup" id="1" ng-show="isReceiverSet()" style="right: 0px; display: block;">
<div class="popup-head"> <div class="popup-head">
<div class="popup-head-left">{{receiver}}</div> <div class="popup-head-left">{{receiver}}</div>
<div class="popup-head-right"><a href="">&#10005;</a></div> <div class="popup-head-right" ng-click="setReceiver('')"><a href="">&#10005;</a></div>
<div style="clear: both"></div> <div style="clear: both"></div>
</div> </div>
<div class="popup-messages">Tes</div> <div class="popup-messages">Tes</div>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment