Create Top Rental Page
1
2
3
4
5
6
7
#\controllers\toprental.py
import config, re, json
from bottle import template, route, request, redirect
 
@route('/toprental')
def getTopRental():
  return template('toprental', data=config.kargs)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!--\views\toprental.tpl-->
 
%include("./partials/header.tpl")
 
<div class="main" id="main">
  <div class="content" id="content">
    <div class="top-widget">
    <span>TOP RENTAL</span>
    </div>
     
    <div id="table-customer"></div>
    <div id="table-bicycle"></div>
     
  </div><!--content-->
 
</div><!--main-->
 
%include("./partials/footer")

GitHub: https://github.com/Sokhavuth/Rental-Bicycle-App
Heroku: https://khmerweb-rba.herokuapp.com/