Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 23

<%@ Page Language="C#" MasterPageFile="~/CrebasMaster.

master" AutoEventWireup="t
rue"
CodeFile="SearchResult.aspx.cs" Inherits="SearchResult" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPre
fix="asp" %>
<asp:Content ID="content1" ContentPlaceHolderID="head" runat="Server">
<title itemprop="name" id="title_page" runat="server"></title>
<meta id="metaDescription" runat="server" name="Description" />
<meta id="keywordcontent" runat="server" name="Keywords" />
<link href="<%=Constants.WEB_ROOT%>/Css/PopupStyle.css" rel="stylesheet" typ
e="text/css" />
<link href="<%=Constants.WEB_ROOT%>/Css/SearchResult.css" rel="stylesheet" t
ype="text/css" />
<script type="text/javascript" src="<%=Constants.WEB_ROOT%>/js/jquery-1.6.1.
min.js"></script>
<script type="text/javascript" src="<%=Constants.WEB_ROOT%>/js/ttip/script.j
s"></script>
<script type="text/javascript" language="javascript" src="<%= Constants.WEB_
ROOT %>/javascript/tooltipscript.js"></script>
<script type="text/javascript" src="<%=Constants.WEB_ROOT%>/js/jquery-1.4.2.
js"></script>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.
js"></script>
<script type="text/javascript" src="<%=Constants.WEB_ROOT%>js/jquery.flexise
l.js"></script>
<style>
.tableClass td
{
border: 1px solid black;
text-align: center;
}
</style>
<script>
///// function for norecord found popup to up
function fun_dvNoDatapopup(msg) {
document.getElementById('overlay').className = 'overlay';
document.getElementById('msg_container').innerHTML = msg;
$('#overlay').fadeIn('fast', function () {
$('#dvNoDatapopup').css('display', 'block');
$('#dvNoDatapopup').animate({ 'left': '50%', 'margin-left': '-25
0px' }, 100);
});
}
function closeDialog(prospectElementID) {
$(function ($) {
$(document).ready(function () {
$('#' + prospectElementID).css('position', 'absolute');
$('#' + prospectElementID).css('display', 'none');
$('#' + prospectElementID).css('position', 'fixed');
$('#' + prospectElementID).css('left', '100%');
$('#overlay').fadeOut('fast');
});
});
return false;

}
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Ser
ver">
<asp:Button ID="btnGoPostBack" runat="server" Visible="false" />
<input type="hidden" id="hfLoginId" runat="server" />
<input type="hidden" id="hdnPid" runat="server" />
<input type="hidden" id="hdHomeRedirect" runat="server" />
<input type="hidden" id="hdnEmailId" runat="server" />
<input type="hidden" id="cmdargs" runat="server" />
<asp:UpdateProgress ID="UpdateProgress2" runat="server" DynamicLayout="true"
>
<ProgressTemplate>
<div class="overlay">
</div>
<div class="updateProgress_all_page01">
<img src="<%=Constants.WEB_ROOT%>/Images/ajax-loader1.gif" />
</div>
</ProgressTemplate>
</asp:UpdateProgress>
<div class="index_img_main" id="divResult" runat="server">
<div id="index_img_main">
<div class="index_bg_main">
<div id="index_bg_main" class="index_bg_main_ad">
<div class="main1">
<div id="main_menu_top">
<%-- <div class="bradcrum_up01" itemscope itemtype=
"http://data-vocabulary.org/Breadcrumb">
<asp:SiteMapPath ID="SitePath" runat="server">
</asp:SiteMapPath>
</div>--%>
<div class="search_up01">
<div id="search">
Item List
<h1 itemscope itemtype="http://schema.org/Re
staurant">
<asp:Label ID="lbl_title" runat="server"
></asp:Label>
</h1>
</div>
</div>
<div class="head_page_hight">
<div class="search_text_heading_banner4">
<div id="searchmenudv" class="complete_searc
h_area">
<table width="980px" border="0" cellpadd
ing="0" cellspacing="0">
<tr>
<td class="search_text_heading_t
ext_main tdwidthcss" itemscope>
<span class="div_content6" i
temprop="Date">Brand</span>
</td>
<td class="search_text_heading_t
ext_main tdwidthcss" itemscope>
<span class="div_content6" i
temprop="Category">Herb/Generic</span>
</td>

<td class="search_text_heading_t
ext_main tdwidthcss" itemscope>
<span class="div_content6" i
temprop="Food Type">Health Area/Ailment</span>
</td>
<td class="search_text_heading_t
ext_main tdwidthcss012" itemscope>
Keywords
</td>
<td class="search_text_heading_t
ext_main tdwidthcss012">
<span class="div_content6" i
temprop="Sort By">Sort By</span>
</td>
<td>
</td>
</tr>
<tr>
<td class="search_text_heading_t
ext_main">
<asp:DropDownList ID="ddlBra
nds" runat="server" CssClass="Dropdown_main Dropdown_sub_width_SearchResult">
<asp:ListItem Text="" Va
lue="P">
</asp:ListItem>
</asp:DropDownList>
</td>
<td class="search_text_heading_t
ext_main">
<asp:UpdatePanel runat="serv
er" ID="UpdatePanel5" UpdateMode="Conditional">
<Triggers>
<asp:AsyncPostBackTr
igger ControlID="ddlBrands" />
</Triggers>
<ContentTemplate>
<asp:DropDownList ID
="ddlHerb" runat="server" AutoPostBack="True" CssClass="Dropdown_main Dropdown_
sub_width_SearchResult">
<asp:ListItem Te
xt="" Value="P"></asp:ListItem>
</asp:DropDownList>
</ContentTemplate>
</asp:UpdatePanel>
</td>
<td class="search_text_heading_t
ext_main">
<asp:UpdatePanel runat="serv
er" ID="upSubType" UpdateMode="Conditional">
<Triggers>
<asp:AsyncPostBackTr
igger ControlID="ddlBrands" />
</Triggers>
<ContentTemplate>
<asp:DropDownList ID
="ddlAreaAilment" runat="server" CssClass="Dropdown_main Dropdown_sub_width_Sea
rchResult">
</asp:DropDownList>
</ContentTemplate>
</asp:UpdatePanel>

</td>
<td class="search_text_heading_t
ext_main">
<asp:TextBox ID="txtKeywords
" runat="server" MaxLength="100" CssClass="textBox_main textBox_sub_width_small"
>
</asp:TextBox>
</td>
<td class="search_text_heading_t
ext_main">
<asp:DropDownList runat="ser
ver" ID="ddlsSortBy" Width="77px" CssClass="Dropdown_main Dropdown_sub_width_Se
archResult">
<asp:ListItem Text="--se
lect--" Value="Z" Selected="True">
</asp:ListItem>
<asp:ListItem Text="Avai
lability" Value="A">
</asp:ListItem>
<asp:ListItem Text="Aver
age Price" Value="C">
</asp:ListItem>
<asp:ListItem Text="Prom
otion" Value="P">
</asp:ListItem>
<asp:ListItem Text="Rati
ng" Value="R">
</asp:ListItem>
<%-- <asp:ListItem Text=
"Restaurant Name" Value="N">
</asp:ListItem>--%>
</asp:DropDownList>
</td>
<td>
<asp:Button runat="server" I
D="btnsSerach" CssClass="button_g_search" Text="Search" />
<asp:UpdatePanel runat="serv
er" ID="UpdatePanel34" UpdateMode="Always">
<ContentTemplate>
<asp:LinkButton runa
t="server" ID="btnbasket" AutoPostBack="True" CssClass="button_g_cart"
OnClick="btnbask
et_Click">
<i class="fa fashopping-cart fa-lg"></i>Cart<label runat="server" id="lblbasketcount">(0)</labe
l></asp:LinkButton>
<asp:HiddenField ID=
"Hdnitemcount" runat="server" />
<asp:HiddenField ID=
"hdntotalbasketinfo" runat="server" />
</ContentTemplate>
</asp:UpdatePanel>
</td>
</tr>
</table>
</div>
<div>
<div style="float: left; margin-left: 39
2px;">
</div>

<div style="float: right; margin-right:


154px;">
<%--<asp:RegularExpressionValidator
ID="RegularExpresr1" runat="server" ValidationExpression="^[\S]*$"
CssClass="ErrorMsg" ControlToValidate="txtsKeyword" ErrorMessage="Space not allo
wed."></asp:RegularExpressionValidator>--%>
</div>
</div>
<div class="search_text_heading_hed">
<%--main contain--%>
<div style="margin-left: 40px; margin-to
p: 30px">
<asp:UpdatePanel ID="UpdatePanel9" r
unat="server">
<ContentTemplate>
<div runat="server" id="divp
agingtop" style="background-color: #999999; border-radius: 10px 10px 0px 0px;
height: 23px; margin-lef
t: 4px; width: 933px; padding-top: 5px; color: White;
display: none;">
<div style="float: left;
margin-left: 10px;">
<asp:Label ID="lblPa
geInfo2" runat="server"></asp:Label>
</div>
<%-<div style="flo
at: right; margin-right: 20px">
<table id="tblListPa
gePanel2" style="margin-left: 10px" runat="server" cellpadding="0"
border="0">
<tr>
<td align="r
ight">
<asp:Lin
kButton ID="lbtnFirst2" runat="server" CausesValidation="false" OnClick="lbtnFir
st_Click">First</asp:LinkButton>
&nbsp;
</td>
<td align="r
ight">
<asp:Lin
kButton ID="lbtnPrevious2" runat="server" CausesValidation="false" OnClick="lbtn
Previous_Click">Previous</asp:LinkButton>&nbsp;&nbsp;
</td>
<td align="c
enter" valign="middle">
<asp:Dat
aList ID="dlPaging2" runat="server" RepeatDirection="Horizontal" OnItemCommand="
dlPaging2_ItemCommand"
OnIt
emDataBound="dlPaging2_ItemDataBound">
<Ite
mTemplate>
<asp:LinkButton ID="lnkbtnPaging2" runat="server" CommandArgument='<%# Eval("Pag
eIndex") %>'
CommandName="Paging" Text='<%# Eval("PageText") %>'></asp:LinkButton>&nbsp;
</It
emTemplate>

</asp:Da
taList>
</td>
<td align="l
eft">
&nbsp;&n
bsp;<asp:LinkButton ID="lbtnNext2" runat="server" CausesValidation="false"
OnCl
ick="lbtnNext_Click">Next</asp:LinkButton>
</td>
<td align="l
eft">
&nbsp;
<asp:Lin
kButton ID="lbtnLast2" runat="server" CausesValidation="false" OnClick="lbtnLast
_Click">Last</asp:LinkButton>
</td>
</tr>
</table>
</div>--%>
</div>
<asp:DataList ID="dtListSear
ch" runat="server" OnItemDataBound="dtListSearch_ItemDataBound"
RepeatColumns="2" Repeat
Direction="Horizontal">
<ItemTemplate>
<div class="div_cont
ent">
<table align="ce
nter" border="0" cellpadding="0" cellspacing="0" style="width: 400px;">
<tbody>
<tr>
<td
style="width: 200px;" rowspan="4">
<asp:Image ID="itemlogo" CssClass="u54_img" runat="server" />
</td
>
<td>
<asp:Label ID="itemname" CssClass="div_content1" runat="server"> <%# Eval("item_
name")%></asp:Label>
<asp:HiddenField runat="server" ID="hdnitemsk" Value='<%# Eval("item_sk")%>' />
</td
>
</tr>
<tr>
<td>
<span class="div_content2">Ayurveda Name: </span><span class="div_content2">
<%# Eval("generic_name")%>
</span>
</td
>
</tr>
<tr>
<td>

<div class="dvsearch01">
<span class="div_content2">Scientefic Name:</span> <span>
<%# Eval("[generic_name_scientefic]")%>
</span>
</div>
</td
>
</tr>
<tr>
<td
rowspan="3">
<div id="u60_rtf">
<p style="text-align: left;">
<span class="div_content2">Helpful In: </span>
</p>
<asp:Label runat="server" ID="lblusefulin" CssClass='usefulin_css'><%#Eval("
category") %> </asp:Label>
<ul id="usefulinlist" runat="server" class="usefulul_css">
</ul>
</div>
</td
>
</tr>
<tr>
<td>
<span class="div_content5">Price:</span> $<asp:Label ID="mainprice" CssClass="di
v_content5"
runat="server"> <%# Eval("price")%></asp:Label>
</td
>
</tr>
<tr>
<td>
<span class="div_content4">Special Price for 2nd Item:&nbsp;$ </span>
<asp:Label ID="secondprice" CssClass="div_content4" runat="server">
<%# Eval("second_item_price").ToString()!= "" ? Eval("second_item_price") : Eval
("price")%>
</asp:Label>
</td
>
</tr>
<tr>

<td>
<span class="div_content2">Qty</span>
<asp:TextBox ID="txtqty" runat="server" Text="1" CssClass="u65 txtboxcss"></asp:
TextBox>
<a id="btnaddtocart" runat="server" onclick="bindvaluetocart(this);" style="curs
or: pointer;"
class="button_g_cart1">Add to cart</a> <span id="spindv" runat="server" styl
e="display: none;">
<i class="fa fa-spinner green fa-2x fa-spin"></i></span>
</td
>
<td>
<span class="div_content3">Read More</span>
</td
>
</tr>
</tbody>
<input type=
"hidden" value='$<%# Eval("item_sk")%>' runat="server">
</table>
</div>
</ItemTemplate>
</asp:DataList>
<div style="text-align: cent
er; font-size: 14px; font-family: Verdana;">
<asp:Label runat="server
" ID="lblErrorMsg" CssClass="hmMessage_searchresult"></asp:Label></div>
<div id="divpaging" runat="s
erver" class="paginatiion_search_page">
<div class="gray_link">
<div runat="server"
id="divpagingbottom" style="height: 26px; width: 105%; color: red;">
<div style="floa
t: left; margin-left: 10px; display: none;">
<%-<asp
:Label ID="lblPageInfo" runat="server"></asp:Label>
--%>
</div>
<div style="floa
t: left; width: 100%;">
<table style
="width: 95%;" id="tblListPagePanel" runat="server" cellpadding="0"
border="
0">
<tr>
<td
align="right" style="color: #ffffff; border-radius: 4px 4px 4px 4px; font-weight
: bolder;
background-color: Orange;">
<asp:LinkButton ID="lbtnFirst" ForeColor="#ffffff" CssClass="paging_search_next"
runat="server" CausesValidation="false" OnClick="lbtnFirst_Click"> </asp:Lin

kButton>
&nbsp;
</td
>
<td
align="right" style="color: #ffffff; border-radius: 4px 4px 4px 4px; font-weight
: bolder;
background-color: Orange;">
<asp:LinkButton ForeColor="#ffffff" CssClass="paging_search_next" ID="lbtnPrevio
us"
runat="server" CausesValidation="false" OnClick="lbtnPrevious_Click">
LinkButton>&nbsp;&nbsp;

</asp:
</td

>
<td
align="center" style="width: 90%;" valign="middle">
<asp:Label ID="lblPageInfo" runat="server" Style="font-weight: bold;"></asp:Labe
l>
<%-- commented by narendra09-07-2013
<asp:DataList ID="dlPaging" runat="server" RepeatDirection="Horizontal" OnItemCo
mmand="dlPaging_ItemCommand"
OnItemDataBound="dlPaging_ItemDataBound">
<ItemTemplate>
<div class="pagingDL">
<asp:LinkButton CssClass="" ID="lnkbtnPaging" runat="server" CommandArgument='<%
# Eval("PageIndex") %>'
CommandName="Paging" BorderColor="Gray" Text='<%# Eval("PageText") %>'></asp:Lin
kButton>
</div>
</ItemTemplate>
</asp:DataList>--%>
</td
>
<td
align="left" style="color: #ffffff; border-radius: 4px 4px 4px 4px; font-weight:
bolder;
background-color: orange;">
&nbsp;&nbsp;<asp:LinkButton ID="lbtnNext" CssClass="paging_search_next" runat="s
erver"
ForeColor="#ffffff" CausesValidation="false" OnClick="lbtnNext_Click">
:LinkButton>

</asp
</td

>
<td
align="left" style="color: #ffffff; border-radius: 4px 4px 4px 4px; font-weight:
bolder;
background-color: orange;">
&nbsp;

<asp:LinkButton ID="lbtnLast" CssClass="paging_search_next" ForeColor="#ffffff"


runat="server"
CausesValidation="false" OnClick="lbtnLast_Click"> </asp:LinkButton>
</td
>
</tr>
</table>
</div>
</div>
<ul id="flexiselDemo
3">
<li><img
<li><img
<li><img
<li><img

src="<%=Constants.WEB_ROOT%>/Images/131.jpg"
src="<%=Constants.WEB_ROOT%>/Images/131.jpg"
src="<%=Constants.WEB_ROOT%>/Images/131.jpg"
src="<%=Constants.WEB_ROOT%>/Images/131.jpg"

/></li>
/></li>
/></li>
/></li>

</ul>
</div>
</div>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger Co
ntrolID="btnsSerach" EventName="Click" />
</Triggers>
</asp:UpdatePanel>
</div>
</div>
<%--End main contain--%>
</div>
</div>
<div>
<asp:Button ID="btnReferdlstslidershow" runat="s
erver" OnClick="btnReferdlstslidershow_Click"
Style="display: none;" />
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="overlay_2">
</div>
<%-- popup for cart --%>
<div id="dvcartpopup" class="box_cart">
<div style="position: absolute; float: left;">
<div style="float: left;" class="pop_box_cart_Header">
<span id="Label133"></span>Cart&nbsp;Details</div>
<a onclick="closeOffersDialog('dvcartpopup');" class="email_boxclose
"></a>
</div>
<div style="border: 2px solid; overflow-y: scroll; height: 80%; width: 9
7%; margin: auto;
margin-top: 50px;">
<asp:UpdatePanel runat="server" ID="UpdatePanel156">
<ContentTemplate>
<asp:GridView ID="bckgriedview" runat="server" AutoGenerateC
olumns="false" DataKeyNames="itemsk"

CellPadding="4" ForeColor="#333333" GridLines="None" Sho


wFooter="True" CssClass="tableClass">
<RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
<Columns>
<%-<asp:BoundField DataField="ID" HeaderText="I
D" InsertVisible="False" ReadOnly="True"
SortExpression="ID" />
<asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" />--%>
<asp:TemplateField HeaderText="Item Name">
<ItemTemplate>
<asp:Label ID="itemname" runat="server" CssC
lass="basketitenamecss"> <%# Eval("itemname")%></asp:Label>
<asp:Label ID="itemsk" CssClass="basketitesk
css" runat="server"> <%# Eval("itemsk")%></asp:Label>
</ItemTemplate>
<FooterTemplate>
<table class="footertable" style="width: 100
%;">
<tr class="footertabletr">
<td>
<asp:Label ID="lblTransactionCha
rges" runat="server" Text="Shipping Charges(10%)"></asp:Label><br />
</td>
</tr>
<tr>
<td>
<b>
<asp:Label ID="lblTotal" run
at="server" Text="Total"></asp:Label>
</b>
</td>
</tr>
</table>
</FooterTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Qty(1st item)">
<ItemTemplate>
<asp:Label ID="Qty_1st_item" runat="server">
<%# Eval("txtqty")%></asp:Label>
</ItemTemplate>
<FooterTemplate>
</FooterTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Unit Price">
<ItemTemplate>
$<asp:Label ID="Unit_Price" runat="server">
<%# Eval("mainprice")%></asp:Label>
</ItemTemplate>
<FooterTemplate>
</FooterTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Qty(2nd item)">
<ItemTemplate>
<asp:TextBox ID="txtQty_2nd_item" runat="ser
ver" Width="25" CssClass="txtqty2nditm txtboxcss"
Text='<%# Eval("sec_item_txtqty")%>' Dis
abled></asp:TextBox>
<%-- <asp:Label ID="Qty_2nd_item" runat="s
erver"> <%# Eval("sec_item_txtqty")%></asp:Label>--%>
</ItemTemplate>

<FooterTemplate>
</FooterTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Unit Price(2nd item o
nwards)">
<ItemTemplate>
$
<asp:Label ID="Unit_Price_2nd_item" runat="s
erver"> <%# Eval("secondprice")%></asp:Label>
</ItemTemplate>
<FooterTemplate>
</FooterTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Total Price(1st item)
">
<ItemTemplate>
$
<asp:Label ID="Total_Price_1st_item" runat="
server"> <%# Eval("txtqty")%></asp:Label>
</ItemTemplate>
<FooterTemplate>
</FooterTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Total Price(2nd item)
">
<ItemTemplate>
$
<asp:Label ID="Total_Price_2nd_item" runat="
server"> <%# Eval("txtqty")%></asp:Label>
</ItemTemplate>
<FooterTemplate>
</FooterTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Total Price">
<ItemTemplate>
$
<asp:Label ID="Total_Price" runat="server" C
ssClass="totalcss"> <%# Eval("txtqty")%></asp:Label>
</ItemTemplate>
<FooterTemplate>
<table class="footertable">
<tr class="footertabletr">
<td>
$
<label id="ShippingChargeamt">
0.0</label>
</td>
</tr>
<tr>
<td>
$
<label id="granttotalamt">
0.0</label>
</td>
</tr>
</table>
</FooterTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Remove">
<ItemTemplate>

<asp:LinkButton ID="btnDelete" CausesValidat


ion="false" runat="server" OnClientClick="return removeitemrow(this);">
<i class="fa fa-trash red"></i>
</asp:LinkButton>
</ItemTemplate>
<FooterTemplate>
</FooterTemplate>
</asp:TemplateField>
</Columns>
<FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeCo
lor="White" />
<PagerStyle BackColor="#284775" ForeColor="White" Horizo
ntalAlign="Center" />
<EmptyDataTemplate>
<span class="norecordcss">No Record Found </span>
</EmptyDataTemplate>
<SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" F
oreColor="#333333" />
<HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeCo
lor="White" />
<EditRowStyle BackColor="#999999" />
<AlternatingRowStyle BackColor="White" ForeColor="#28477
5" />
</asp:GridView>
</ContentTemplate>
</asp:UpdatePanel>
</div>
<asp:UpdatePanel runat="server" ID="UpdatePanel1">
<ContentTemplate>
<a id="LnkBtnUpdateOrder" class="button_LnkBtnUpdateOrder" oncli
ck="return updateorder(this);">
Update Order</a>
<asp:LinkButton runat="server" ID="Lnkbtncontshp" AutoPostBack="
True" CssClass="button_Lnkbtncontshp"
Text="Continue Shopping" OnClientClick="closeOffersDialog('d
vcartpopup');"></asp:LinkButton>
<asp:LinkButton runat="server" ID="LnkBtcheckout" AutoPostBack="
True" CssClass="button_LnkBtcheckout"
Text="Checkout"></asp:LinkButton>
</ContentTemplate>
</asp:UpdatePanel>
</div>
<%-- popup for cart --%>
<div id="divReviewpopup" class="box_Review_popup_searchpage">
<asp:UpdatePanel ID="updtReview" runat="server">
<Triggers>
<asp:AsyncPostBackTrigger ControlID="lbtnFirstR" EventName="Clic
k" />
<asp:AsyncPostBackTrigger ControlID="lbtnPreviousR" EventName="C
lick" />
<asp:AsyncPostBackTrigger ControlID="lnkbtnPagingR" EventName="C
lick" />
<asp:AsyncPostBackTrigger ControlID="lbtnNextR" EventName="Click
" />
<asp:AsyncPostBackTrigger ControlID="lbtnLastR" EventName="Click
" />
</Triggers>
<ContentTemplate>
<div class="popHeader" style="width: 99.2%">
<asp:Label ID="lblProvider" runat="server"></asp:Label>&nbsp

;&nbsp;Reviews <a class="boxclose"


onclick="closeReviewDialog('divReviewpopup');" style="po
sition: inherit;"></a>
</div>
<div class="head_page_hight_review_popup">
<div class="search_text_heading_search_popp">
<asp:Repeater runat="server" ID="rptReview" OnItemDataBo
und="rptReview_OnItemDataBound">
<ItemTemplate>
<div class="reviews_box">
<div class="customer_name_review_my_past_rev
iew">
<%#Eval("CustomerName")%>
</div>
<div class="star_for_review">
<asp:HiddenField runat="server" ID="Hidd
enField1" Value='<%#Eval("review_rating") %>' />
<div class="ratingdiv">
<asp:UpdatePanel ID="UpdatePanel6" r
unat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:Rating ID="Rating1" run
at="server" Enabled="true" CurrentRating='<%#Convert.ToString(Eval("review_ratin
g"))=="" ? 0:Convert.ToInt32(Eval("review_rating") )%>'
MaxRating="5" StarCssCla
ss="ratingStar" WaitingStarCssClass="savedRatingStar"
Visible='<%#Eval("review
_rating") != DBNull.Value ? true:false%>' FilledStarCssClass="filledRatingStar"
EmptyStarCssClass="empty
RatingStar" ReadOnly="true">
</asp:Rating>
<%-- <asp:ImageButton CssCla
ss="cursorDefault" ID="imgNorated1" runat="server" ImageUrl="~/img/no_comments_p
opup.png"
Visible='<%#Eval("review_rating") != DBNull.Value ? false:true%>' />--%>
</ContentTemplate>
</asp:UpdatePanel>
</div>
<div class="reviewed_on_date">
Reviewed on
<%#DataBinder.Eval(Container.DataIte
m,"review_datetime","{0:dd-MMM-yyyy}")%></div>
<div class="review_search_area_">
<%#Eval("review_text") %>
<div id="dvSubcontant" style="displa
y: none" runat="server" class="contenttt">
<br />
<%#Eval("sub_comment")%>
</div>
</div>
<div class="more_review_page">
<div class="layer1" style="padding-b
ottom: 5px;">
<asp:LinkButton ID="linkmore" ru
nat="server" Text='<%#Eval("more")%>'></asp:LinkButton>
</p>
</div>
</div>
</div>
</div>

</ItemTemplate>
</asp:Repeater>
<%--Code for Review paging--%>
<asp:UpdatePanel ID="updPaging" runat="server">
<ContentTemplate>
<div class="pagination_best riight" style="margi
n-right: 45px;">
<div class="gray_link">
<div runat="server" id="divpagingbottomR
" style="height: 23px; margin-left: 4px;
width: 470px; padding-top: 5px; colo
r: White;">
<div style="float: left; margin-left
: 10px; display: none;">
<asp:Label ID="lblPageInfoR" run
at="server"></asp:Label>
</div>
<div style="float: left; margin-left
: 60px;">
<table style="margin-left: 10px;
width: 100%;" id="tblListPagePanelR" runat="server"
cellpadding="0" border="0">
<tr>
<td align="right">
<asp:LinkButton ID="
lbtnFirstR" runat="server" CausesValidation="false" OnClick="lbtnFirst_ClickR">F
irst</asp:LinkButton>
&nbsp;
</td>
<td align="right">
<asp:LinkButton ID="
lbtnPreviousR" runat="server" CausesValidation="false" OnClick="lbtnPrevious_Cli
ckR">Previous</asp:LinkButton>&nbsp;&nbsp;
</td>
<td align="center" valig
n="middle">
<%-- <asp:DataList
ID="dlPagingR" runat="server" RepeatDirection="Horizontal" OnItemCommand="dlPagi
ng_ItemCommandR"
OnItemDataBound="dlPaging_ItemDataBoundR">
<ItemTemplate>
<asp:LinkButton ID="lnkbtnPagingR" runat="server" CommandArgument='<%# Eval("Pag
eIndex") %>'
CommandName="Paging" BorderColor="Gray" Text='<%# Eval("PageText") %>'></asp:Lin
kButton>&nbsp;
</ItemTemplate>
</asp:DataList>--%>
<asp:LinkButton ID="
lnkbtnPagingR" runat="server" Enabled="false" BorderColor="Gray"></asp:LinkButto
n>
</td>
<td align="left">
&nbsp;&nbsp;<asp:Lin
kButton ID="lbtnNextR" runat="server" CausesValidation="false"
OnClick="lbtnNex
t_ClickR">Next</asp:LinkButton>
</td>
<td align="left">
&nbsp;
<asp:LinkButton ID="

lbtnLastR" runat="server" CausesValidation="false" OnClick="lbtnLast_ClickR">Las


t</asp:LinkButton>
</td>
</tr>
</table>
</div>
</div>
</div>
</div>
</ContentTemplate>
</asp:UpdatePanel>
<div id="msgViewNot" runat="server" class="hmMessage_nor
eview">
</div>
</div>
</div>
</ContentTemplate>
</asp:UpdatePanel>
</div>
<%-- <div id="wrapper_1">--%>
<div id="overlay_1">
</div>
<div id="wrapper">
<div id="overlay">
</div>
</div>
<div id="dvNoDatapopup" class="noRecordFound">
<%-- <div class="welcome_signup_page">--%>
<div style="width: 23px; height: 23px; float: right;">
<a class="boxcanceel" onclick="closeDialog('dvNoDatapopup'); return
false;" style="left: -18px;
top: -5px;"></a>
</div>
<div class="noData_popup">
<div class="noData_content_popup">
<div id="msg_container" class="new_css_for_logn">
</div>
<div class="noData_dvbutten">
<a id="new_pass_navi_btn" onclick="return closeDialog('dvNoD
atapopup');" class="button_1"
tabindex="21">Continue Shopping</a>
</div>
</div>
</div>
</div>
<script type="text/javascript">
function closeDialog(prospectElementID) {
// cleardata();
$(function ($) {
$(document).ready(function () {
$('#' + prospectElementID).css('position', 'absolute');
$('#' + prospectElementID).css('display', 'none');
// $('#' + prospectElementID).animate({ 'left': '-100%' }, 1
200, function() {
$('#' + prospectElementID).css('position', 'fixed');
$('#' + prospectElementID).css('left', '100%');
$('#overlay').fadeOut('fast');
});
// });
});

</script>
<script type="text/javascript">

function closeOffersDialog(prospectElementID) {
$(function ($) {
$(document).ready(function () {
$('#' + prospectElementID).css('position', 'absolute');
$('#' + prospectElementID).css('display', 'none');
// $('#' + prospectElementID).animate({ 'left': '-100%' }, 5
00, function() {
$('#' + prospectElementID).css('position', 'fixed');
// $('#' + prospectElementID).css('left', '100%');
$('#overlay_2').fadeOut('fast');
});
// });
});
// cleardata();
}

//
//
//
//
//

function bindusfulin() {
$(".usefulin_css").each(function () {
var text = this.innerHTML;
var arraytext = text.split(',')
var ul_id = this.id.replace('lblusefulin', 'usefulinli

//
//
//
//
//

$("#" + ul_id).empty();
var body_ = document.getElementById(ul_id);
for (var i = 0; i < arraytext.length; i++) {
var li = document.createElement('li');
var li_text = document.createTextNode(arraytext[i]

st')

);
//
//
//
//

li.appendChild(li_text);
body_.appendChild(li);
}
});

//

//
//

$(document).ready(function () {
$(".usefulin_css").each(function () {

//
//
//

var text = this.innerHTML;


var arraytext = text.split(',')
var ul_id = this.id.replace('lblusefulin', 'usefulinli

//

$("#" + ul_id).empty();

st')

//
//
//
//

var body_ = document.getElementById(ul_id);


for (var i = 0; i < arraytext.length; i++) {
var li = document.createElement('li');
var li_text = document.createTextNode(arraytext[i]

);
//
//
//
//
//

li.appendChild(li_text);
body_.appendChild(li);
}
});
});

// function to create basket for the user


function bindvaluetocart(i) {
var id = i.id;
var old_quantity = 0;
var index = null;
id = id.replace("btnaddtocart", ''); // remove btn id
var itemname = id + 'itemname';
var hdnitemsk = id + 'hdnitemsk';
var mainprice = id + 'mainprice';
var txtqty = id + 'txtqty';
var secondprice = id + 'secondprice'; spindv
var spindv = id + 'spindv';
$("#" + spindv).addClass("dispalyelement");
var pre_item = [];
var array = [];
var count = 0;
if (window.localStorage.getItem('basket') != null) {
var preitem = window.localStorage.getItem('basket');
pre_item = JSON.parse(preitem);
// pre_item = pre_item;
count = pre_item.length;
} else {
}

var hdnitemval = $("#" + hdnitemsk).val();


if (count != 0) {
for (var i = count - 1; i >= 0; i--) {
var arreitem = pre_item[i]["itemsk"];
if (hdnitemval == arreitem) {
old_quantity = pre_item[i]["sec_item_txtqty"];
index = i;
// pre_item.pop(i);
}
}
}
// new row in the array

var array2 = {};


array2["itemsk"] = $("#" + hdnitemsk).val();
array2["itemname"] = $.trim($("#" + itemname).text());
array2["mainprice"] = parseFloat($.trim($("#" + mainprice).text()));
array2["secondprice"] = parseFloat($.trim($("#" + secondprice).text(
)));
var totalnew_quantity = $.trim($("#" + txtqty).val());
var second_quantity = 0;
if (totalnew_quantity > 0) {
if (index != null) // for second time case
second_quantity = parseInt(totalnew_quantity) + parseInt(old
_quantity);
else if (totalnew_quantity > 0) // for first time case
second_quantity = parseInt(totalnew_quantity) - 1;
}
array2["txtqty"] = 1;
array2["sec_item_txtqty"] = second_quantity;
if (index == null)
pre_item.push(array2);
else
pre_item[index] = (array2);
count = pre_item.length;
$("#<%=lblbasketcount.ClientID %>").text("(" + count + ")");
$("#<%=Hdnitemcount.ClientID %>").val(count);
pre_item_json = JSON.stringify(pre_item);
window.localStorage.setItem('basket', pre_item_json);
$("#<%=hdntotalbasketinfo.ClientID %>").val(pre_item_json);
setTimeout(function () { $("#" + spindv).removeClass("dispalyelement
") }, 300);
}
$(document).ready(function () {
$('.txtboxcss').keyup(function () {
var numbers = $(this).val();
$(this).val(numbers.replace(/\D/, ''));
});
if (window.localStorage.getItem('basket') != null) {
var preitem = window.localStorage.getItem('basket');
pre_item = JSON.parse(preitem);
// pre_item = pre_item;
count = pre_item.length;
$("#<%=lblbasketcount.ClientID %>").text("(" + count + ")"); $("
#<%=Hdnitemcount.ClientID %>").val(count);
pre_item_json = JSON.stringify(pre_item);
$("#<%=hdntotalbasketinfo.ClientID %>").val(pre_item_json);
}
txtnoonly();
});
function txtnoonly() {
// for textbox contains only no

$('.txtboxcss').keyup(function () {
var numbers = $(this).val();
$(this).val(numbers.replace(/\D/, ''));
});
}
function removeitemrow(row) {
var id = row.id;
id = id.replace('btnDelete', '');
var itemskid = id + 'itemsk';
var itemsk = $("#" + itemskid).text();
var pre_item = [];
var array = [];
var count = 0;
if (window.localStorage.getItem('basket') != null) {
var preitem = window.localStorage.getItem('basket');
pre_item = JSON.parse(preitem);
// pre_item = pre_item;
count = pre_item.length;
if (count != 0) {
for (var i = count - 1; i >= 0; i--) {
var arreitem = pre_item[i]["itemsk"];
if (itemsk == arreitem) {
// pre_item.pop(i);
pre_item.splice(i, 1);
count = pre_item.length;
$("#<%=lblbasketcount.ClientID %>").text("(" + count
+ ")"); $("#<%=Hdnitemcount.ClientID %>").val(count);
pre_item_json = JSON.stringify(pre_item);
window.localStorage.setItem('basket', pre_item_json)
;
$("#<%=hdntotalbasketinfo.ClientID %>").val(pre_item
_json);
}
}
}
}
//remove row after update localstorage
$("#" + row.id).closest('tr').remove();
setTimeout(calculationbasket(), 100);
return false;
// event.stopImmediatePropagation();
}
function updateorder(btn) {
var id = btn.id; if ($("#" + id).text() != "Save Order") {
$("#" + id).text("Save Order");
$(".txtqty2nditm").removeAttr("disabled");
} else {
$("#" + id).text("Update Order");
$(".txtqty2nditm").attr("disabled", true);
///// update localstorage
if (window.localStorage.getItem('basket') != null) {
var preitem = window.localStorage.getItem('basket');

pre_item = JSON.parse(preitem);
// pre_item = pre_item;
count = pre_item.length;
if (count != 0) {
for (var i = count - 1; i >= 0; i--) {
var arreitem = pre_item[i]["itemsk"];
$(".basketiteskcss").each(function () {
itemsk = this.id;
var id = itemsk.replace('itemsk', '');
newqtyid = id + 'txtQty_2nd_item';
if ($("#" + itemsk).text() == arreitem) {
pre_item[i]["sec_item_txtqty"] = parseInt($(
"#" + newqtyid).val());
}
});
}
pre_item_json = JSON.stringify(pre_item);
window.localStorage.setItem('basket', pre_item_json);
$("#<%=hdntotalbasketinfo.ClientID %>").val(pre_item_jso
n);
}
}
setTimeout(calculationbasket(), 100);
}
}

function OpendvcartPopup() {
document.getElementById('overlay_2').className = 'overlay';
$('#overlay_2').fadeIn('fast', function () {
$('#dvcartpopup').css('display', 'block');
$('#dvcartpopup').animate({ 'left': '16%;' }, 1000);
});
setTimeout(calculationbasket(), 100);
txtnoonly();
}

function calculationbasket() {
$(".basketitenamecss").each(function () {
var id = this.id;
id = id.replace('itemname', '');
var Qty_1st_item = id + 'Qty_1st_item';
var Unit_Price = id + 'Unit_Price';
var Qty_2nd_item = id + 'txtQty_2nd_item';
var Unit_Price_2nd_item = id + 'Unit_Price_2nd_item';
var Total_Price_1st_item = id + 'Total_Price_1st_item';
var Total_Price_2nd_item = id + 'Total_Price_2nd_item';
var Total_Price = id + 'Total_Price';
// total for 1st item
var Total_Price_1st_item_val = (parseFloat($("#" + Qty_1st_item)
.text())) * (parseFloat($("#" + Unit_Price).text()))
$("#" + Total_Price_1st_item).text(parseFloat(Total_Price_1st_it

em_val));
// total for 2nd item
var Total_Price_2nd_item_val = (parseFloat($("#" + Qty_2nd_item)
.val())) * (parseFloat($("#" + Unit_Price_2nd_item).text()))
$("#" + Total_Price_2nd_item).text(parseFloat(Total_Price_2nd_it
em_val));
// total for both item
var Total_Price_val = (parseFloat(Total_Price_1st_item_val)) + (
parseFloat(Total_Price_2nd_item_val))
$("#" + Total_Price).text(parseFloat(Total_Price_val));
});
// calculate total
var totalamt = 0;
$(".totalcss").each(function () {
totalamt += parseFloat(this.innerHTML);
});
// calculate shipping charg
var shippingamt = 0;
if (totalamt > 0) {
shippingamt = (parseFloat(totalamt) * 10) / 100;
}
$("#ShippingChargeamt").text(shippingamt);
//calculateGrant total
var granttotalamt = 0;
granttotalamt = parseFloat(totalamt) + parseFloat(shippingamt);
$("#granttotalamt").text(granttotalamt);
}
</script>
<script type="text/javascript">
$(window).load(function () {
$("#flexiselDemo3").flexisel({
visibleItems: 5,
animationSpeed: 1000,
autoPlay: true,
autoPlaySpeed: 3000,
pauseOnHover: true,
enableResponsiveBreakpoints: true,
responsiveBreakpoints: {
portrait: {
changePoint: 480,
visibleItems: 1
},
landscape: {
changePoint: 640,
visibleItems: 2
},
tablet: {
changePoint: 768,
visibleItems: 3
}
}
});

});

</script>
</asp:Content>

You might also like