Index: pro-violet-viettel/sourcecode/application/modules/admin/views/reportpackage/index.php
===================================================================
--- pro-violet-viettel/sourcecode/application/modules/admin/views/reportpackage/index.php	(revision 702)
+++ pro-violet-viettel/sourcecode/application/modules/admin/views/reportpackage/index.php	(revision 702)
@@ -0,0 +1,101 @@
+<?php
+$base_url = base_url();
+$this->load->view('layout/admin/header', array('base_url' => $base_url));
+$this->load->view('layout/admin/sidebar', array('base_url' => $base_url, 'method' => $this->router->method, 'class' => $this->router->class));
+?>
+<script type="text/javascript">
+
+
+
+    function filter()
+    {
+        $.ajax({
+            url: '<?php echo base_url(); ?>admin/reportpackage/getProvince',
+            type: "POST",
+            data: $("#province").serialize(),
+            success: function (data, textStatus, jqXHR)
+            {
+                // $result = jQuery.parseJSON(data);
+                $("#content").html(data);
+            },
+            error: function (jqXHR, textStatus, errorThrown)
+            {
+                $(".ajaxloading").hide();
+            }
+        });
+    }
+
+
+</script>
+<style type="text/css" media="screen">
+    .widget-header-flat {
+        background: #307ecc;
+        color: #fff
+    }
+    .widget-toolbar>[data-action="collapse"], .header-color-dark>.widget-toolbar>[data-action="collapse"] {
+        color: #fff
+    }
+    .widget-header, .widget-content {
+        width: auto
+    }
+    .widget-body .table thead:first-child tr {
+        background: #EDECEC;
+        color: #707070;
+        font-weight: normal;
+    }
+</style>
+
+<div class="main-content" >
+    <div id="breadcrumbs" class="breadcrumbs">
+
+        <ul class="breadcrumb">
+            <li>
+                <i class="icon-home home-icon"></i>
+                <a href="#">Trang chá»§</a>
+            </li>
+
+            <li>
+                <a href="#">BÃ¡o cÃ¡o</a>
+            </li>
+
+        </ul><!-- .breadcrumb -->
+
+        <div id="nav-search" class="nav-search">
+
+        </div><!-- #nav-search -->
+    </div>
+
+
+
+
+    <div class="page-content">
+
+        <div class="page-header">
+            <h1>
+                BÃ¡o cÃ¡o
+                <small>
+                    <i class="icon-double-angle-right"></i>
+                    Thá»ng kÃª
+                </small>
+            </h1>
+        </div><!-- /.page-header -->
+
+
+        <div class="row" id="content">    
+            <?php echo $content; ?>
+        </div>
+    </div>
+</div><!-- /.main-content -->
+</div><!-- /.main-container-inner -->
+
+<a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
+    <i class="icon-double-angle-up icon-only bigger-110"></i>
+</a>
+</div><!-- /.main-container -->
+
+
+
+</div><!-- /.modal-dialog -->
+<?php
+$this->load->view('layout/admin/footer', array('base_url' => $base_url, 'adminjs' => array('assets/js/admin/report.js')));
+?>    
Index: pro-violet-viettel/sourcecode/application/modules/admin/views/reportpackage/province.php
===================================================================
--- pro-violet-viettel/sourcecode/application/modules/admin/views/reportpackage/province.php	(revision 702)
+++ pro-violet-viettel/sourcecode/application/modules/admin/views/reportpackage/province.php	(revision 702)
@@ -0,0 +1,86 @@
+
+
+<div class="page-content">
+
+    <div class="row">
+        <div class="col-xs-12">
+            <!-- PAGE CONTENT BEGINS -->
+            <div style="padding-bottom:4px" class="table-header">
+                BÃ¡o cÃ¡o doanh thu theo tá»nh / thÃ nh phá»
+            </div>
+            <!-- PAGE CONTENT BEGINS -->
+            <div class="table-responsive">
+                <div role="grid" class="dataTables_wrapper" id="sample-table-2_wrapper">
+                    <form autocomplete="off" onsubmit="return false;" id="province" >
+                        <div class="row">
+                            <div class="col-sm-6">
+                                <div class="" style="display: inline-block"><label>ThÃ¡ng
+
+                                        <select aria-controls="sample-table-2" size="1" name="month" onchange="filter();">                                      
+                                            <?php for ($i=1;$i<=12;$i++) { ?>
+                                            <option value="<?php echo $i;?>" <?php if($month==$i) { ?> selected <?php }?>><?php echo $i;?></option>
+                                            <?php }?>
+                                        </select>
+                                </div>
+                                <div class=""  style="display: inline-block"><label>NÄm
+
+                                        <select aria-controls="sample-table-2" size="1" name="year" onchange="filter();">                                      
+                                            <?php for ($i=2014;$i<=date("Y");$i++) { ?>
+                                            <option value="<?php echo $i;?>" <?php if($year==$i) { ?> selected <?php }?>><?php echo $i;?></option>
+                                            <?php }?>
+                                        </select>
+                                </div>
+                            </div>
+
+                            <div class="col-sm-6">
+
+                            </div>
+                        </div>
+                          </form>
+                    <table class="table table-striped table-bordered table-hover dataTable" id="sample-table-2" aria-describedby="sample-table-2_info">
+                        <thead>
+                            <tr>
+                                <th class="center sorting_disabled" role="columnheader" rowspan="1" colspan="1" style="width: 44px;" aria-label="">
+                                    Thá»© tá»±
+                                </th>
+                                <th class="">Tá»nh/TP</th>
+                                <?php foreach ($packages as $package) {?>
+                                <th class=""><?php echo $package['p_name']; ?></th>
+                                <th class="">Tá» lá» %</th>
+                                <?php }?>
+                                <th>Tá»ng TB</th>
+                            </tr>
+                        </thead>
+
+                        <tbody role="alert" aria-live="polite" aria-relevant="all">
+                            <?php
+                            foreach ($provinces as $province) {
+                                ?>
+                                <tr class="odd">
+
+
+                                    <td class=" ">
+                                        <?php echo $province['stt']; ?>
+                                    </td>
+                                    <td class=" "><?php echo $province['province']; ?></td>
+                                    <?php foreach ($province['packages'] as $package) { ?>
+                                    <td><?php echo $package['total']?></td>
+                                    <td><?php echo $package['percent']?></td>
+                                    <?php } ?>
+                                    <td class=" "><?php echo $province['total']?></td>
+
+                                </tr>
+                            <?php } ?>
+                        </tbody>
+                    </table>
+                    <div class="row"><div class="col-sm-6">
+
+                        </div>
+                    </div>
+                </div><!-- /.table-responsive -->
+
+                <!-- PAGE CONTENT ENDS -->
+            </div><!-- /.col -->
+        </div><!-- /.row -->
+    </div><!-- /.page-content -->
+
Index: pro-violet-viettel/sourcecode/application/modules/admin/views/reportprovince/index.php
===================================================================
--- pro-violet-viettel/sourcecode/application/modules/admin/views/reportprovince/index.php	(revision 702)
+++ pro-violet-viettel/sourcecode/application/modules/admin/views/reportprovince/index.php	(revision 702)
@@ -0,0 +1,101 @@
+<?php
+$base_url = base_url();
+$this->load->view('layout/admin/header', array('base_url' => $base_url));
+$this->load->view('layout/admin/sidebar', array('base_url' => $base_url, 'method' => $this->router->method, 'class' => $this->router->class));
+?>
+<script type="text/javascript">
+
+
+
+    function filter()
+    {
+        $.ajax({
+            url: '<?php echo base_url(); ?>admin/reportprovince/getProvince',
+            type: "POST",
+            data: $("#province").serialize(),
+            success: function (data, textStatus, jqXHR)
+            {
+                // $result = jQuery.parseJSON(data);
+                $("#content").html(data);
+            },
+            error: function (jqXHR, textStatus, errorThrown)
+            {
+                $(".ajaxloading").hide();
+            }
+        });
+    }
+
+
+</script>
+<style type="text/css" media="screen">
+    .widget-header-flat {
+        background: #307ecc;
+        color: #fff
+    }
+    .widget-toolbar>[data-action="collapse"], .header-color-dark>.widget-toolbar>[data-action="collapse"] {
+        color: #fff
+    }
+    .widget-header, .widget-content {
+        width: auto
+    }
+    .widget-body .table thead:first-child tr {
+        background: #EDECEC;
+        color: #707070;
+        font-weight: normal;
+    }
+</style>
+
+<div class="main-content" >
+    <div id="breadcrumbs" class="breadcrumbs">
+
+        <ul class="breadcrumb">
+            <li>
+                <i class="icon-home home-icon"></i>
+                <a href="#">Trang chá»§</a>
+            </li>
+
+            <li>
+                <a href="#">BÃ¡o cÃ¡o</a>
+            </li>
+
+        </ul><!-- .breadcrumb -->
+
+        <div id="nav-search" class="nav-search">
+
+        </div><!-- #nav-search -->
+    </div>
+
+
+
+
+    <div class="page-content">
+
+        <div class="page-header">
+            <h1>
+                BÃ¡o cÃ¡o
+                <small>
+                    <i class="icon-double-angle-right"></i>
+                    Thá»ng kÃª
+                </small>
+            </h1>
+        </div><!-- /.page-header -->
+
+
+        <div class="row" id="content">    
+            <?php echo $content; ?>
+        </div>
+    </div>
+</div><!-- /.main-content -->
+</div><!-- /.main-container-inner -->
+
+<a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
+    <i class="icon-double-angle-up icon-only bigger-110"></i>
+</a>
+</div><!-- /.main-container -->
+
+
+
+</div><!-- /.modal-dialog -->
+<?php
+$this->load->view('layout/admin/footer', array('base_url' => $base_url, 'adminjs' => array('assets/js/admin/report.js')));
+?>    
Index: pro-violet-viettel/sourcecode/application/modules/admin/views/reportprovince/province.php
===================================================================
--- pro-violet-viettel/sourcecode/application/modules/admin/views/reportprovince/province.php	(revision 702)
+++ pro-violet-viettel/sourcecode/application/modules/admin/views/reportprovince/province.php	(revision 702)
@@ -0,0 +1,89 @@
+
+
+<div class="page-content">
+
+    <div class="row">
+        <div class="col-xs-12">
+            <!-- PAGE CONTENT BEGINS -->
+            <div style="padding-bottom:4px" class="table-header">
+                BÃ¡o cÃ¡o doanh thu theo tá»nh / thÃ nh phá»
+            </div>
+            <!-- PAGE CONTENT BEGINS -->
+            <div class="table-responsive">
+                <div role="grid" class="dataTables_wrapper" id="sample-table-2_wrapper">
+                    <form autocomplete="off" onsubmit="return false;" id="province" >
+                        <div class="row">
+                            <div class="col-sm-6">
+                                <div class="" style="display: inline-block"><label>ThÃ¡ng
+
+                                        <select aria-controls="sample-table-2" size="1" name="month" onchange="filter();">                                      
+                                            <?php for ($i=1;$i<=12;$i++) { ?>
+                                            <option value="<?php echo $i;?>" <?php if($month==$i) { ?> selected <?php }?>><?php echo $i;?></option>
+                                            <?php }?>
+                                        </select>
+                                </div>
+                                <div class=""  style="display: inline-block"><label>NÄm
+
+                                        <select aria-controls="sample-table-2" size="1" name="year" onchange="filter();">                                      
+                                            <?php for ($i=2014;$i<=date("Y");$i++) { ?>
+                                            <option value="<?php echo $i;?>" <?php if($year==$i) { ?> selected <?php }?>><?php echo $i;?></option>
+                                            <?php }?>
+                                        </select>
+                                </div>
+                            </div>
+
+                            <div class="col-sm-6">
+
+                            </div>
+                        </div>
+                          </form>
+                    <table class="table table-striped table-bordered table-hover dataTable" id="sample-table-2" aria-describedby="sample-table-2_info">
+                        <thead>
+                            <tr>
+                                <th class="center sorting_disabled" role="columnheader" rowspan="1" colspan="1" style="width: 44px;" aria-label="">
+                                    Thá»© tá»±
+                                </th>
+                                <th class="">Tá»nh/TP</th>
+                                <th>TB ngÃ y</th>
+                                <th>LÅ©y káº¿ TB thÃ¡ng</th>
+                                <th>Tá»ng TB NÄm</th>
+                                <th>DT ngÃ y</th>
+                                <th>LÅ©y káº¿ DT thÃ¡ng</th>
+                                <th>Tá»ng DT nÄm</th>
+                            </tr>
+                        </thead>
+
+                        <tbody role="alert" aria-live="polite" aria-relevant="all">
+                            <?php
+                            foreach ($provinces as $province) {
+                                ?>
+                                <tr class="odd">
+
+
+                                    <td class=" ">
+                                        <?php echo $province['stt']; ?>
+                                    </td>
+                                    <td class=" "><?php echo $province['province']; ?></td>
+
+                                    <td class="hidden-480 "><?php echo $province['tbng']; ?></td>
+                                    <td class="hidden-480 "><?php echo $province['tbt']; ?></td>
+                                    <td class=" "><?php echo $province['tbn']; ?></td>
+                                    <td class=" "><?php echo $province['dtng']; ?></td>
+                                    <td class=" "><?php echo $province['dtt']; ?></td>
+                                    <td class=" "><?php echo $province['dtn']; ?></td>
+
+                                </tr>
+                            <?php } ?>
+                        </tbody>
+                    </table>
+                    <div class="row"><div class="col-sm-6">
+
+                        </div>
+                    </div>
+                </div><!-- /.table-responsive -->
+
+                <!-- PAGE CONTENT ENDS -->
+            </div><!-- /.col -->
+        </div><!-- /.row -->
+    </div><!-- /.page-content -->
+
