Показать сообщение отдельно
  #2 (permalink)  
Старый 26.09.2020, 09:01
Аспирант
Отправить личное сообщение для riaron Посмотреть профиль Найти все сообщения от riaron
 
Регистрация: 16.08.2020
Сообщений: 53

<html>
	<header>
	  <title>Smartphones</title>

	</header>
	<body>

		<table class="index top">
		<tr>
		  <td><a href='' style="color:green;margin-left:200px;border:1px solid black;padding:4px;" >Сортировать по: </a><a href="http://localhost:3000/set-cookie/price/" style="color:black;border:1px solid black;padding:4px;border-radius:3px;font-weight:bold;margin-left:5px"> По Цене</a><a href="http://localhost:3000/set-cookie/tsale/" style="color:white;border:1px solid black;background-color:blue;padding:4px;border-radius:3px;font-weight:bold;margin-left:5px"> По Размеру Скидки</a><a href="http://localhost:3000/set-cookie/popularity/" style="color:white;border:1px solid black;background-color:red;padding:4px;border-radius:3px;font-weight:bold;margin-left:5px"> По Популярности </a></td>
		</tr>
	  </table>
	  <table class="index">
		<tr>
		  <td style="width:200px;height:50px;"></td>
		  <td style="width:700px;height:50px;"></td>
		  <td style="width:150px;height:50px;"></td>
		  <td class="rightfacet" rowspan="<%=smartphopneList[0].len;%>" style="height:50px;">
			<table class="menu" style="width:350px">
			  <tr>
				<td><b>Цена</b></td>
				<td></td>
			  </tr>
			  <!-----><tr>
				<td>Мин.
					<%if(smartphopneList[0]['cprmin']){%>
				  			<input class="bradius" id="prmin" type="text" name="prmin" placeholder="" value="<%=smartphopneList[0]['cprmin']%>" onblur="jsprmin()"/>
						<%}else{%>
							<input class="bradius" id="prmin" type="text" name="prmin" placeholder="" value="<%=smartphopneList[0]['prmin']%>" onblur="jsprmin()"/>

						<%}%>
				</td>
				<td>Мин.
					<%if(smartphopneList[0]['cprmax']){%>
				  			<input class="bradius" id="prmin" type="text" name="prmin" placeholder="" value="<%=smartphopneList[0]['cprmax']%>" onblur="jsprmin()"/>
						<%}else{%>
							<input class="bradius" id="prmin" type="text" name="prmin" placeholder="" value="<%=smartphopneList[0]['prmax']%>" onblur="jsprmin()"/>

						<%}%>
				</td>>
			  </tr>
			  <tr>
				<td style="height:20px"></td>
				<td></td>
			  </tr>
			  <tr>
				<td>В продаже
					<%if(smartphopneList[0]['vprodaj']=='checked'){%>
				  		<input type="checkbox" id="vprodaj" onclick="vprodaj()" name="vpr" placeholder="" value="insele" checked/>
					<%}else{%>
						<input type="checkbox" id="vprodaj" onclick="vprodaj()" name="vpr" placeholder="" value="insele"/>
						<%}%>
				</td>
				<td></td>
			  </tr>
			  <tr>
				<td style="height:20px"></td>
				<td></td>
			  </tr>
			  <tr>
				<td>Со 
					<%if(smartphopneList[0]['soskidkoi']=='checked'){%>
					  <input type="checkbox" id='soskidkoi' onclick="soskidkoi()" name="ssale" placeholder="" value="widthsale" checked/>
					<%}else{%>
						<input type="checkbox" id='soskidkoi' onclick="soskidkoi()" name="ssale" placeholder="" value="widthsale"/>
					<%}%>
				</td>
				<td></td>
			  </tr>
			  <tr>
				<td style="height:20px"></td>
				<td></td>
			  </tr>
			  <tr>
				<td><b>Стоимость доставки</b></td>
				<td></td>
			  </tr>
			  <tr>
				<td style="height:20px"></td>
				<td></td>
			  </tr>
			  <tr>
				<td>Бесплатно
					<%if(smartphopneList[0]['dbesplat']=='checked'){%>
					  <input type="checkbox" id="dbesplat" onclick="dbesplat()" name="deliveryfree" placeholder="" value="widthsale" checked/>
					<%}else{%>
						<input type="checkbox" id="dbesplat" onclick="dbesplat()" name="deliveryfree" placeholder="" value="widthsale"/>
					<%}%>
				</td>
				<td></td>
			  </tr>
			  <tr>
				<td style="height:20px"></td>
				<td></td>
			  </tr>
			  <tr>
				<td><b>Скидки и акции</b></td>
				<td></td>
			  </tr>
			  <tr>
				<td style="height:20px"></td>
				<td></td>
			  </tr>

			  <tr>
				<td>Промоколды</td>
				<td>
					<%if(smartphopneList[0]['promokodi']=='checked'){%>
						<input type="checkbox" id="promokodi" onclick="promokodi()" name="deliveryfree" placeholder="" value="widthsale"checked/>
					<%}else{%>
						<input type="checkbox" id="promokodi" onclick="promokodi()" name="deliveryfree" placeholder="" value="widthsale"/>
					<%}%>
				</td>
			  </tr>
			  <tr>
				<td>Подарки за покупку</td>
				<td>
				<%if(smartphopneList[0]['presents']=='checked'){%>
				  <input type="checkbox" name="deliveryfree" id="presents" onclick="presents()" placeholder="" value="widthsale" checked/>
				<%}else{%>
					<input type="checkbox" name="deliveryfree" id="presents" onclick="presents()" placeholder="" value="widthsale"/>
				<%}%>
				</td>
			  </tr>
			  <tr>
				<td style="height:20px"></td>
				<td></td>
			  </tr>
			  <tr>
				<td><b>Состояни товара</b></td>
				<td></td>
			  </tr>
			  <tr>
				<td style="height:20px"></td>
				<td></td>
			  </tr>
			  <tr>
				<td>Новый</td>
				<td>
				<%if(smartphopneList[0]['newtov']=='checked'){%>
				  <input type="checkbox" id="newtov" onclick="newtov()" name="deliveryfree" placeholder="" value="widthsale" checked/>
				 <%}else{%>
					<input type="checkbox" id="newtov" onclick="newtov()" name="deliveryfree" placeholder="" value="widthsale"/>
				<%}%> 
				</td>
			  </tr>
			  <tr>
				<td>Уцененный</td>
				<td>
				<%if(smartphopneList[0]['uctov']=='checked'){%>
				  <input type="checkbox" id="uctov" onclick="uctocv()" name="deliveryfree" placeholder="" value="widthsale" checked/>
				  <%}else{%>
					<input type="checkbox" id="uctov" onclick="uctocv()" name="deliveryfree" placeholder="" value="widthsale"/>
				<%}%>

				</td>
			  </tr>

			  <tr>
				<td style="height:20px"></td>
				<td></td>
			  </tr>
			  <tr>
				<td><b>Гарантия производителя</b></td>
				<td>
				<%if(smartphopneList[0]['garantprod']=='checked'){%>
				  <input type="checkbox" id="garantprod" onclick="garantov()" name="deliveryfree" placeholder="" value="widthsale" checked/>
				<%}else{%>
					<input type="checkbox" id="garantprod" onclick="garantov()" name="deliveryfree" placeholder="" value="widthsale"/>
				<%}%>
				</td>
			  </tr>
			  <tr>
				<td style="height:20px"></td>
				<td></td>
			  </tr>
			  <tr>
				<td><b>Операционная система</b></td>
				<td></td>
			  </tr>
			  <tr>
				<td style="height:20px"></td>
				<td></td>
			  </tr>
			  <tr>
				<td>Windows</td>
				<td>
				<%if(smartphopneList[0]['oswin']=='checked'){%>
				  <input type="checkbox" id="oswin" onclick="oswin()" name="deliveryfree" placeholder="" value="widthsale" checked/>
				<%}else{%>
					<input type="checkbox" id="oswin" onclick="oswin()" name="deliveryfree" placeholder="" value="widthsale"/>
				<%%}>
				</td>
			  </tr>
			  <tr>
				<td>IOS</td>
				<td>
				<%if(smartphopneList[0]['osios']=='checked'){%>
				  <input type="checkbox" id="osios" onclick="osios()" name="deliveryfree" placeholder="" value="widthsale" checked/>
				<%}else{%>
					<input type="checkbox" id="osios" onclick="osios()" name="deliveryfree" placeholder="" value="widthsale" />
				<%}%>
				</td>
			  </tr>
			  <tr>
				<td>Android</td>
				<td>
				<%if(smartphopneList[0]['osandroid']=='checked'){%>
				  <input type="checkbox" id="osandroid" onclick="osandroid()" name="deliveryfree" placeholder="" value="widthsale" checked/>
				<%}else{%>
					<input type="checkbox" id="osandroid" onclick="osandroid()" name="deliveryfree" placeholder="" value="widthsale"/>
				<%}%>
				</td>
			  </tr>
			</table>
		  </td>
		  <% for(var i=0;i<smartphopneList.length;i++){ %>
			  <tr>
				<td class="leftitem" style="padding:10px;border-left:1px solid silver;border-top:1px solid silver;border-bottom:1px solid silver;">
					<img class="imgind" style="height:200px;width:200px"src="<%= smartphopneList[i]['photo'];%>">
					<p>
						Производитель: <%= smartphopneList[i]['prod'];%><br>
						Модель:  <%= smartphopneList[i]['name'];%><br>
						Цена: <%= smartphopneList[i]['price'];%><br>
						Цена со скидкой:  <%= smartphopneList[i]['tsale'];%>
					</p>
				</td>
				<td class="rightitem" style="border-top:1px solid silver;border-bottom:1px solid silver;">
					<%= smartphopneList[i]['description'];%>
				</td>
				<td style="text-align:center;border-right:1px solid silver;border-top:1px solid silver;border-bottom:1px solid silver;">
				  <p><a href="/somesmart/<%= smartphopneList[i]['id'];%>" style="color:white;background-color:orange;padding:4px;border-radius:3px;font-weight:bold;">Подробнее</a></p>
				  <p><a href="/basket/<%= smartphopneList[i]['id'];%>" style="color:white;background-color:green;padding:4px;border-radius:3px;font-weight:bold;">В Корзину</a></p>
				</td>
		  </tr> <%}%>
		</tr>
	  </table>
	</body>
  </html>
<script>
	
function jsprmin(){
    var a=document.getElementById("prmin").value;
    document.location.href = "http://localhost:3000/set-menu-cookie/prmin/"+a+"/";
}
function jsprmax(){
    var a=document.getElementById("prmax").value;
    document.location.href = "http://localhost:3000/set-menu-cookie/prmax/"+a+"/";
}
function vprodaj(){
	if (document.getElementById("vprodaj").checked) {
	 document.location.href = "http://localhost:3000/set-menu-cookie
Ответить с цитированием