<?php /* Smarty version Smarty-3.1.7, created on 2014-10-30 16:16:52
         compiled from "application/modules/admin/views/collaborator/listview.php" */ ?>
<?php /*%%SmartyHeaderCode:691235965451c611936948-25061103%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '8b2d10c353cfdb015a96e339ea08ab72495dbf35' => 
    array (
      0 => 'application/modules/admin/views/collaborator/listview.php',
      1 => 1414660609,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '691235965451c611936948-25061103',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.7',
  'unifunc' => 'content_5451c61194a0f',
  'variables' => 
  array (
    'itemsoptions' => 0,
    'option' => 0,
    'perpage' => 0,
    'keyword' => 0,
    'collaborators' => 0,
    'collaborator' => 0,
    'paging' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5451c61194a0f')) {function content_5451c61194a0f($_smarty_tpl) {?><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="#">Quản lý tài khoản</a>
        </li>
        <li>
            <a href="#">Người dùng</a>
        </li>
        <li class="active">Cộng tác viên</li>
    </ul><!-- .breadcrumb -->

    <div id="nav-search" class="nav-search">
        <form class="form-search">
            <span class="input-icon">
                <input type="text" autocomplete="off" id="nav-search-input" class="nav-search-input" placeholder="Tìm kiếm ...">
                <i class="icon-search nav-search-icon"></i>
            </span>
        </form>
    </div><!-- #nav-search -->
</div>
<div class="page-content">
    <div class="page-header">
        <h1>
            Cộng tác viên
            <small>
                <i class="icon-double-angle-right"></i>
                thống kê tài khoản
            </small>
        </h1>
    </div><!-- /.page-header -->

    <div class="row">
        <div class="col-xs-12">
            <!-- PAGE CONTENT BEGINS -->
            <div style="padding-bottom:4px" class="table-header">
                Thống kê tài khoản

                <button href="#addUser" data-toggle="modal" class="btn btn-success pull-right">
                    <i class="icon-plus"></i>
                    Thêm cộng tác viên
                </button>

            </div>

            <div class="table-responsive">
                <div role="grid" class="dataTables_wrapper" id="sample-table-2_wrapper">
                    <form onsubmit="return false;" id="collaborator" >
                    <div class="row">
                        <div class="col-sm-6">
                            <div id="sample-table-2_length" class="dataTables_length"><label>Hiện thị 
                                    <select onchange="filter();" name="items" size="1" aria-controls="sample-table-2">                                      
                                        <?php  $_smarty_tpl->tpl_vars['option'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['option']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['itemsoptions']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['option']->key => $_smarty_tpl->tpl_vars['option']->value){
$_smarty_tpl->tpl_vars['option']->_loop = true;
?>
                                        <option <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['option']->value;?>
<?php $_tmp1=ob_get_clean();?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['perpage']->value;?>
<?php $_tmp2=ob_get_clean();?><?php if (($_tmp1==$_tmp2)){?> selected<?php }?> value="<?php echo $_smarty_tpl->tpl_vars['option']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['option']->value;?>
</option>
                                        <?php } ?>
                                    </select> bản ghi</label>
                            
                            </div>
                        </div>
                        
                        <div class="col-sm-6">
                            <div class="dataTables_filter" id="sample-table-2_filter">
                                <label>Tìm kiếm: 
                                    <input type="text" name="keyword" id="keyword" value='<?php echo $_smarty_tpl->tpl_vars['keyword']->value;?>
' aria-controls="sample-table-2"></label>
                            </div>
                        </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 role="row">
                                <th class="center sorting_disabled" role="columnheader" rowspan="1" colspan="1" style="width: 44px;" aria-label="">
                                    <label>
                                        <input type="checkbox" class="ace">
                                        <span class="lbl"></span>
                                    </label>
                                </th>
                                <th class="sorting" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 176px;" aria-label="Số điện thoại: activate to sort column ascending">Số điện thoại</th>
                                <th class="sorting" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 183px;" aria-label="Họ tên: activate to sort column ascending">Họ tên</th>
                                <th class="hidden-480 sorting" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 122px;" aria-label="Tiền: activate to sort column ascending">Tiền</th>
                                <th class="sorting" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 209px;" aria-label="Ngày đăng ký: activate to sort column ascending">
                                    <i class="icon-time bigger-110 hidden-480"></i>
                                    Ngày đăng ký
                                </th>
                                <th class="hidden-480 sorting" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 158px;" aria-label="Trạng thái: activate to sort column ascending">Trạng thái</th><th class="sorting_disabled" role="columnheader" rowspan="1" colspan="1" style="width: 133px;" aria-label=""></th></tr>
                        </thead>


                        <tbody role="alert" aria-live="polite" aria-relevant="all">
                            <?php  $_smarty_tpl->tpl_vars['collaborator'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['collaborator']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['collaborators']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['collaborator']->key => $_smarty_tpl->tpl_vars['collaborator']->value){
$_smarty_tpl->tpl_vars['collaborator']->_loop = true;
?>
                            <tr class="odd">
                                <td class="center  sorting_1">
                                    <label>
                                        <input type="checkbox" class="ace">
                                        <span class="lbl"></span>
                                    </label>
                                </td>

                                <td class=" ">
                                    <a href="#"><?php echo $_smarty_tpl->tpl_vars['collaborator']->value['cellphone'];?>
</a>
                                </td>
                                <td class=" "><?php echo $_smarty_tpl->tpl_vars['collaborator']->value['full_name'];?>
</td>
                                <td class="hidden-480 ">3,330 VND</td>
                                <td class=" "><?php echo $_smarty_tpl->tpl_vars['collaborator']->value['created_time'];?>
</td>

                                <td class="hidden-480 ">
                                    <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['collaborator']->value['activated'];?>
<?php $_tmp3=ob_get_clean();?><?php if (($_tmp3)==1){?>
                                    <span class="label label-sm label-success">Kích hoạt</span>
                                    <?php }?>
                                    <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['collaborator']->value['activated'];?>
<?php $_tmp4=ob_get_clean();?><?php if (($_tmp4)==0){?>
                                    <span class="label label-sm label-default">Chưa kích hoạt</span>
                                    <?php }?>
                                </td>

                                <td class=" ">
                                    <div class="visible-md visible-lg hidden-sm hidden-xs action-buttons">
                                        <a href="#" class="blue">
                                            <i class="icon-zoom-in bigger-130"></i>
                                        </a>

                                        <a href="#" class="green">
                                            <i class="icon-pencil bigger-130"></i>
                                        </a>

                                        <a href="#" class="red">
                                            <i class="icon-trash bigger-130"></i>
                                        </a>
                                    </div>

                                    <div class="visible-xs visible-sm hidden-md hidden-lg">
                                        <div class="inline position-relative">
                                            <button data-toggle="dropdown" class="btn btn-minier btn-yellow dropdown-toggle">
                                                <i class="icon-caret-down icon-only bigger-120"></i>
                                            </button>

                                            <ul class="dropdown-menu dropdown-only-icon dropdown-yellow pull-right dropdown-caret dropdown-close">
                                                <li>
                                                    <a title="" data-rel="tooltip" class="tooltip-info" href="#" data-original-title="View">
                                                        <span class="blue">
                                                            <i class="icon-zoom-in bigger-120"></i>
                                                        </span>
                                                    </a>
                                                </li>

                                                <li>
                                                    <a title="" data-rel="tooltip" class="tooltip-success" href="#" data-original-title="Edit">
                                                        <span class="green">
                                                            <i class="icon-edit bigger-120"></i>
                                                        </span>
                                                    </a>
                                                </li>

                                                <li>
                                                    <a title="" data-rel="tooltip" class="tooltip-error" href="#" data-original-title="Delete">
                                                        <span class="red">
                                                            <i class="icon-trash bigger-120"></i>
                                                        </span>
                                                    </a>
                                                </li>
                                            </ul>
                                        </div>
                                    </div>
                                </td>
                            </tr>
                            <?php } ?>


                            
                        
                        
                        
                        
                        </tbody></table><div class="row"><div class="col-sm-6"><div class="dataTables_info" id="sample-table-2_info">Hiển thị 1 đến 2 của 2 bản ghi</div></div>
                            <div class="col-sm-6">
                                <div class="dataTables_paginate paging_bootstrap">
                                    <ul class="pagination">
                                        <?php echo $_smarty_tpl->tpl_vars['paging']->value;?>

                                    </ul>
                                </div>
                            </div>
                        </div>
                    
                </div>
            </div>

            <div id="addUser" class="modal fade in" tabindex="-1">
                <div class="modal-dialog">
                    <div class="modal-content">
                        <div class="modal-header no-padding">
                            <div class="table-header">
                                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                                    <span class="white">×</span>
                                </button>
                                Thêm cộng tác viên
                            </div>
                        </div>

                        <div class="modal-body">
                            <form class="form-horizontal" role="form">
                                <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right" for="form-field-1"> Tài khoản </label>

                                    <div class="col-sm-9">
                                        <span class="input-icon">
                                            <input type="text" id="form-field-1" placeholder="Tài khoản">
                                            <i class="icon-user blue"></i>
                                        </span>
                                    </div>
                                    <div class="help-block"> </div>
                                </div>

                                <div class="space-4"></div>

                                <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right" for="form-field-2"> Mật khẩu </label>

                                    <div class="col-sm-9">
                                        <span class="input-icon">
                                            <input type="password" id="form-field-2" placeholder="Mật khẩu">
                                            <i class="icon-lock blue"></i>
                                        </span>
                                    </div>
                                    <div class="help-block"> </div>
                                </div>

                                <div class="space-4"></div>

                                <div class="clearfix form-actions">
                                    <div class="col-md-offset-3 col-md-9">
                                        <button class="btn btn-info" type="button">
                                            <i class="icon-ok bigger-110"></i>
                                            Hoàn tất
                                        </button>

                                        &nbsp; &nbsp; &nbsp;
                                        <button class="btn" type="reset">
                                            <i class="icon-undo bigger-110"></i>
                                            Xóa hết
                                        </button>
                                    </div>
                                </div>

                            </form></div>

                    </div>
                </div><!-- /.modal-content -->
            </div><!-- /.modal-dialog -->
        </div>

        <!-- PAGE CONTENT ENDS -->
    </div><!-- /.col -->
</div>
<script type="text/javascript">
            window.onload = function ()
{
init_page();
}


</script><?php }} ?>