check
This commit is contained in:
@@ -1,30 +0,0 @@
|
||||
% stash css=>["home/cal/cal.css/"];
|
||||
<section class="title"> <p>Próximos eventos</p></section>
|
||||
<section class="cal">
|
||||
% foreach (@$b) {
|
||||
<section class="month flex"> <div class="spacer"></div>
|
||||
<p class="month">
|
||||
<%= $_->{text} %>
|
||||
</p>
|
||||
<div class="spacer"></div>
|
||||
</section>
|
||||
% foreach my $d( @{ $r->{$_->{id}} } ) {
|
||||
<a class="cal" href="event/<%= $d->{eeid} %> ">
|
||||
<section class="event flex">
|
||||
<article class="data">
|
||||
<p class="city"> <%= $d->{ciudad} %></p>
|
||||
<p class="date"> <%= $d->{fecha} %></p>
|
||||
<p class="place"> <%= $d->{lugar} %></p>
|
||||
<p class="dir"> <%= $d->{dir} %></p>
|
||||
<p class="name"> <%= $d->{nombre} %></p>
|
||||
</article>
|
||||
<article class="image">
|
||||
<img class="small" src= "home/cal/img/<%= $d->{imagen_chica} %>">
|
||||
<article class="more"> ... </article>
|
||||
</article>
|
||||
</section>
|
||||
</a>
|
||||
%} }
|
||||
</section>
|
||||
|
||||
|
||||
@@ -1,40 +0,0 @@
|
||||
% stash css=> ["/home/event/event.css"];
|
||||
<section class="event">
|
||||
<section class="eimage">
|
||||
</section>
|
||||
<section class="place">
|
||||
<p class="cname"><%= $cname %></p>
|
||||
<p class="place"><%= $place %></p>
|
||||
</section>
|
||||
<section class="description flex">
|
||||
<article class="info">
|
||||
<p class = " pbig name"><%= $pname %></p>
|
||||
<p class = " pbig date"><%= $date %></p>
|
||||
<p class = "dir"><%= $paddr %></p>
|
||||
<p class = "obs"><%= $pobs %></p>
|
||||
<p class = "city"><%= $city %></p>
|
||||
<p class = " pmed price"><%= $cost %></p>
|
||||
<p class="promo"><%= $promo %></p>
|
||||
</article>
|
||||
<article class="specs">
|
||||
<p id="subt">Temario</p>
|
||||
<%== $csubjects %>
|
||||
<p id="subt">El evento incluye</p>
|
||||
<%== $cservices %>
|
||||
</article>
|
||||
</section>
|
||||
<section class="map">
|
||||
<p class="arrive"> Cómo llegar </p>
|
||||
% my $s=$pname." ".$paddr." ".$city;
|
||||
% $s=~s/\#/No /;
|
||||
<iframe src="https://maps.google.com/maps?key=AIzaSyAxptfJqWNZj4_P-Atp9cqo-4AeRT3WdPk&q=<%= $s %>,&t=&z=14&ie=UTF8&iwloc=&output=embed">
|
||||
</iframe> </section>
|
||||
<section class="description flex">
|
||||
<article class="info">
|
||||
</article>
|
||||
<article class="info">
|
||||
</article>
|
||||
|
||||
</section>
|
||||
|
||||
</section>
|
||||
@@ -1,22 +0,0 @@
|
||||
% stash css=>["/home/store/shop.css"];
|
||||
<section class="shop">
|
||||
<article class="heading"> <p class="heading">TIENDA VIRTUAL</p> </article>
|
||||
% for (@$r){
|
||||
<a href="/storep/<%= $_->{id} %>">
|
||||
<article class="shop flex">
|
||||
<div class="simage" > <img src=<%= "$controller/$action/img/$_->{imagen} "%> ></div>
|
||||
<div class="description">
|
||||
<p class="title"> <%= $_->{objeto} %> </p>
|
||||
<p class="description"> <%= $_->{nombre} %> </p>
|
||||
% if ( $_->{precio} != -1){
|
||||
<p class="price"> $<%= $_->{precio} %> pesos </p>
|
||||
%}
|
||||
<p class="options"> <%= $_->{subnombre} %> </p>
|
||||
<p class="promo"> <%= $_->{promocion} %> </p>
|
||||
</div>
|
||||
</article>
|
||||
</a>
|
||||
<article class="separator"></article>
|
||||
%}
|
||||
</section>
|
||||
|
||||
@@ -1,60 +0,0 @@
|
||||
<!--<head>-->
|
||||
<!--<meta name="viewport" content="width=device-width, initial-scale=1">-->
|
||||
<!--<meta http-equiv="X-UA-Compatible" content="IE=edge" />-->
|
||||
<!--</head>-->
|
||||
%stash css=>["/home/storep/storep.css"];
|
||||
<section class="item"> <section class="transp flex">
|
||||
<article class=iimage>
|
||||
<img class="small" src= "/home/store/img/<%= $imagen %>">
|
||||
</article>
|
||||
<article class=iinfo>
|
||||
<p class="txt"><%= $subnombre %></p>
|
||||
<p class="txt"><%= $descripcion %></p>
|
||||
<p class="promo"><%= $promocion %></p>
|
||||
<p class="precio">Precio:$<%= $precio %> pesos</p>
|
||||
<p class="existencia">
|
||||
<% if ($existencia > 10) { =%> <p class="eok"></p> <% } =%>
|
||||
<% elsif ($existencia >= 1) { =%> <p class="elow">¡Nos quedan pocos!</p> <% } =%>
|
||||
<% elsif ($existencia == 0) { =%> <p class="eldep">¡Agotado!</p> <% } =%>
|
||||
<div class=ppl>
|
||||
<div id="paypal-button-container"></div>
|
||||
</div>
|
||||
</article>
|
||||
</section> </section>
|
||||
<section class="ibottom">
|
||||
<p class="nombre"><%= $objeto %></p>
|
||||
<p class="tit"><%= $nombre %></p>
|
||||
</section>
|
||||
<section class="bdat"> </section>
|
||||
|
||||
|
||||
<script src="https://www.paypal.com/sdk/js?client-id=AQdZ1JJL-GNBgGTI3W6cXChmj6MnZsInRGlWeHw1kbGiE_49eTtZ2fPvEq9ersU2y6O5WpxccdsyAQw7¤cy=MXN"></script>
|
||||
<script>
|
||||
paypal.Buttons({
|
||||
// Set up the transaction
|
||||
createOrder: function(data, actions) {
|
||||
return actions.order.create({
|
||||
purchase_units: [{
|
||||
amount: {
|
||||
value: '0.18'
|
||||
}
|
||||
}]
|
||||
}); },
|
||||
onApprove: function(data, actions) {
|
||||
return actions.order.capture().then(function(details) {
|
||||
return fetch('/tst', {
|
||||
method: 'post',
|
||||
headers: {
|
||||
'content-type': 'application/json'
|
||||
},
|
||||
body: JSON.stringify({
|
||||
orderID: data.orderID
|
||||
})
|
||||
})
|
||||
// .then(response=>response.json())
|
||||
// .then(data => {alert(data)})
|
||||
});
|
||||
}
|
||||
}).render('#paypal-button-container');
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user