Esempio n. 1
0
File: index.js Progetto: ebgik/pandn
 page.getPage(4,function(err,result){
   if (err) next(new Error('problem BD'));
   else
     if (result=='none') next();
     else
       price.getPrice(function(err_price, result_price){
         if (!err_price)
         res.render('order',{
           id : 4,
           title : result.title,
           text : result.text,
           meta_k : result.keywords,
           meta_d : result.description,
           price : result_price,
           type : type
         });
       })
 });
Esempio n. 2
0
File: index.js Progetto: ebgik/pandn
 page.getPage(5,function(err,result){
   if (err) next(new Error('problem BD'));
   else
     if (result=='none') next();
     else
       price.getPrice(function(err_price, result_price){
         if (!err_price)
           stock.getStocks(function(err_stock,result_stock){
             if (!err_stock)
               res.render('service',{
                 id : 5,
                 title : result.title,
                 text : result.text,
                 meta_k : result.keywords,
                 meta_d : result.description,
                 price : result_price,
                 stock : result_stock
               });
           })
       })
 });