TWIG
<div class="showlike"><div style="color:#009688"> <table style="width:100%;"><tr><td style="width:65px">[photo]</td> <td style="width:auto"><i class="fa fa-user"></i> <b><a href="user_info.php?uid=[user_id]"><span style="color:#ff0000">[nick]</span></a></b> <br /><i class="fa fa-rocket"></i> {%if user.uid=='24558064'%}<div style="float:right"><span class="prefix prefixRed">CEO </span> </div> {%elseif lv==127%}<div style="float:right"><span class="prefix prefixRed">Founder</span> </div>{%elseif lv==126%}<div style="float:right"><span class="prefix prefixGreen">SModer</span> </div>{%elseif lv==125%}Mod Forum{%elseif lv==124%}Mod Library{%elseif lv<=119 and lv>=100%}<div style="float:right"><span class="prefix prefixBlue">Moder</span> </div>{%else%}{%endif%}</b> <br /> <i class="fa fa-map-marker"></i> Việt Nam </td></tr> </table></div>{%if uid != api.user_id%} <script>function textAreaAdjust(o) { o.style.height = "1px"; o.style.height = (38+o.scrollHeight)+"px"; } function ssend(ug){ var sbox=prompt('Lời nhắn!','');if(sbox) ajx('POST','pm.php?id=new&to='+ug,'msg='+sbox,'','','',setTimeout("show_alert('success','Gửi tin nhắn thành công');",100));} function ajx(method, url, txt, inner, e, es, loading, obj, loaded) { var xmlHttp = null; try { xmlHttp = new XMLHttpRequest() } catch (e) { try { xmlHttp = new ActiveXObject("Microsoft.XMLHTTP") } catch (e) { try { xmlHttp = new ActiveXObject("Msxml2.XMLHTTP") } catch (e) { return false } } }; xmlHttp.open(method, url, true); xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); xmlHttp.setRequestHeader("Content-length", txt.length); xmlHttp.onreadystatechange = function () { if (xmlHttp.readyState == 2) { $('id', loading).style.display = "none"; loaded }; if (xmlHttp.readyState == 4) { xmlDoc = xmlHttp.responseText; inner.innerHTML = xmlDoc; inner.innerHTML = $(e, es).innerHTML; obj } }; xmlHttp.send(txt) }; function show_alert(a,b){ $('#alert').remove() $('body').append('<div id="alert" class="alert alert-'+a+'" style="position:fixed;top:50px;">'+b+'</div>'); var aw=$('#alert').width(); $('#alert').css('left', '-'+(aw+50)+'px').show().animate({'left':'20px'},500).delay(1000).fadeOut(2000) };</script><a href="#sms" onclick="ssend({{uid}})"><button type="button" class="topic cat_blue" style="padding:5px;"><i class="fa fa-whatsapp"></i> Chat</button></a>{%endif%} <a href="?uid=[user_id]&ref=info"><button type="button" class="topic cat_green" style="padding:5px;"><i class="fa fa-info-circle"></i> Thông tin</button></a> <a href="?uid=[user_id]&ref=album"><button type="button" class="topic cat_red" style="padding:5px"><i class="fa fa-picture-o"></i> Album ảnh</button></a> </div> {% if api.r.get("ref") == "album" %} <link rel="stylesheet" href="/files/979047/fancybox.css" type="text/css"><script type="text/javascript" src="http://vietkey.wap.mu/files/1049880/fancybox.js"></script> <div class="title">Album ảnh của [nick]</div>{%if api.u.get(api.r.get('uid')).profilephotoid!=''%} <div class="m6 p8"> <div id="album_uim">Không có ảnh nào</div> </div> <div class="title">Bình luận (<span id="cmt"> <img src="http://vietkey.wap.mu/files/1049880/loading[1].gif">0</span>) </div> <div class="left"> <form id="form"> <input type="text" placeholder="Chat comment" id="postText" class="form-control"> <button name="submit" type="submit" id="submit"> Viết </button> </form> </div> <div id="load" class="hide"><div class="rmenu">Đang đăng lên trang chủ <img src="http://vietkey.wap.mu/files/1049880/loading[1].gif"></div></div> <div class="left"> <div id="idchat"><div class="rmenu">Đang tải dữ liệu <img src="http://vietkey.wap.mu/files/1049880/loading[1].gif"></div></div> <div id="list_txt">Không có bình luận nào?</div> </div>{%else%} <div class="m6 p8">Không có ảnh</div>{%endif%}<script type="text/javascript"> $(document).ready(function(){ $.ajax({type:"GET",url:'/galery.php?id=view_foto&uid={{api.r.get("uid")}}&img=info',success:function(img){ galery_img=$(img).find('.galery-img').html(); $('#album_uim').html(galery_img); $('#album_uim a').attr({'class':'img-pre','title':'[nick]','data-fancybox-group':'thumb','onclick':'return false'}); }}); $('#idchat').delay(1000).fadeOut(); album('10000'); function album(a){ $.ajax({type:"GET",url:'/galery.php?id=comments&uid={{api.r.get("uid")}}',success:function(cmt){ galery_cmt=$(cmt).find('.left').html(); $('#list_txt').html(galery_cmt); }}); var cmt=$('#cmt').load('/galery.php?id=view_foto&uid={{api.r.get("uid")}} #cmt').text(); $('#cmt').text(cmt); $('#idchat').delay(1000).fadeOut(); $('#form').submit(function(){ var text=$('#postText').val(); var submit=$('#submit'); submit.html('<img src="http://vietkey.wap.mu/files/1049880/loading[1].gif" width="20" height="15">'); $.post('/galery.php?id=comments_write&uid={{api.r.get("uid")}}',{msg: text},function (chat,data){ if(data=='success'){submit.html('<img src="http://modjohn.com/images/allow.png"> Gửi');$('#postText').val('');var cmt=$('#cmt').load('/galery.php?id=view_foto&uid={{api.r.get("uid")}} #cmt').text();var cmt=(cmt*1)+1;$('#cmt').text(cmt);$('#list_txt').load('/galery.php?id=comments&uid={{api.r.get("uid")}} .left');}; }); return false; }); setTimeout(function(){album('10000')},10000)}; $(".fancybox").fancybox({ beforeShow: function () { $("body").css({'overflow-y': 'hidden'}) }, afterClose: function () { $("body").css({'overflow-y': 'visible'}) } }); $(".img-pre").fancybox({ 'type': 'image', openEffect: 'elastic', openSpeed: 150, closeEffect: 'elastic', closeSpeed: 150, beforeShow: function () { $("body").css({'overflow-y': 'hidden'}) }, afterClose: function () { $("body").css({'overflow-y': 'visible'}) }, closeClick: true, helpers: { title: { type: 'over' } } }); function post(a){ $.post('main.php?id=ch_topic_h&uid=203842',{text: 'đã bình luận ảnh của [b]{{api.u.get(api.r.get("uid")).nick}}[/b]: '+a}); }; }); </script> {% endif %} {% if api.r.get("ref") == "info" %} {%set now="now"|date("U")%} {%set this=api.u.get(api.user_id).loged%} {%set show=now-this|date("U")%} {%if show<60%} {%set time="Vừa xong"%} {%elseif show>=60 and show<3600%} {%set time="Cách đây "~(show/60)|split('.')[0]~" phút "~(show-(show/60)|split('.')[0]*60)~" giây"%} {%elseif show>=3600 and show<3600*24%} {%set time="Cách đây "~(show/60/60)|split('.')[0]~" giờ "~((show-((show/60/60)|split('.')[0]*3600))/60)|split('.')[0]~" phút trước"%} {%else%} {%if (show/60/60/24)|split('.')[0]==1%} {%set time="Hôm qua, lúc "~this|date("H:i")%} {%else%} {%set time="Cách đây "~(show/60/60/24)|split('.')[0]~" ngày"%} {%endif%} {%endif%} <div class="user_info"> <div class="phdr-tool pink">Thông tin cá nhân</div> <div class="menu"><i class="fa fa-star"></i> <span>Cấp độ</span>[level]</div> <div class="menu"><i class="fa fa-heart"></i> <span>Tài khoản</span>[plus] xu</div> <div class="menu"><i class="fa fa-clock-o"></i> <span>Thời gian trực tuyến</span>[loged] phút</div> <div class="menu"><i class="fa fa-user"></i> <span>Tên thật</span>{% set user=api.u.get(api.r.get("uid")) %} {{(user.name ? user.name : user.nick)|raw}}</div> <div class="menu"><i class="fa fa-map-marker"></i> <span>Đang ở</span>Chưa cập nhật</div> <div class="menu"><i class="fa fa-gift"></i> <span>Tuổi</span>{% if api.u.get(api.r.get("uid")).age %} [age] Tuổi{%else%} Chưa cập nhật {%endif%} </div> <div class="menu"><i class="fa fa-calendar"></i> <span>Ngày sinh</span>{% if api.u.get(api.r.get("uid")).age %} [birthday] {%else%} Chưa cập nhật {%endif%} </div> <div class="phdr-tool teal">Thông tin khác</div> <div class="menu"><i class="fa fa-check"></i> <span>Ngày gia nhập</span>[reg_time]</div> <div class="menu"><i class="fa fa-power-off"></i> <span>Lần đăng nhập cuối</span>[last_login] <small style="color:#999">{{time}}</small> </div> <div class="menu"><i class="fa fa-globe"></i> <span>Trình duyệt</span>[browser]</div> {%if api.user_id == '24457564'%}<div class="tb"><i class="fa fa-times"></i> <span>IP</span> [ip]</div>{%endif%} <div class="phdr-tool blue">Trên diễn đàn</div> <div class="menu"><i class="fa fa-envelope-o"></i> <span>Tổng tin nhắn</span>[pm_msg]</div> <div class="menu"><i class="fa fa-comments"></i> <span>Bình luận</span>[frm_posts]</div> <div class="menu"><i class="fa fa-trophy"></i> <span>Chủ đề</span>[frm_topics] </div> </div> {% endif %} {% if api.r.get('ref') == 'character' %}<div class="title">nhân vật của [nick]</div><div class="m6 p8"><script type="text/javascript">npm = [pm_msg]*2;nfp = [frm_posts]*5;nft = [frm_topics]*10;all = npm+nfp+nft;if(all >= 0 && all <= 5){level=1;capbac="Vỡ lòng";}else if(all >= 6 && all <= 20){level=2;capbac="Vỡ lòng";}else if(all >= 21 && all <= 45){level=3;capbac="Tập sự";}else if(all >= 46 && all <= 80){level=4;capbac="Nâng cao";}else if(all >= 81 && all <= 125){level=5;capbac="Đường phố";}else if(all >= 126 && all <= 180){level=6;capbac="Nghiệp dư";}else if(all >= 181 && all <= 245){level=7;capbac="Huấn luyện";}else if(all >= 246 && all <= 320){level=8;capbac="Chuyên nghiệp";}else if(all >= 321 && all <= 405){level=9;capbac="Đẳng cấp";}else if(all >= 406 && all <= 500){level=10;capbac="Ưu tú";}else if(all >= 501 && all <= 605){level=11;capbac="Bậc thầy";}else if(all >= 606 && all <= 720){level=12;capbac="Siêu sao";}else if(all >= 721 && all <= 845){level=13;capbac="Huyền thoại";}else if(all >= 846 && all <= 980){level=14;capbac="Vũ thần";}else if(all >= 981 && all <= 1125){level=15;capbac="Tinh Anh";}else if(all >= 1126 && all <= 1280){level=16;capbac="Xuất chúng";}else if(all >= 1281 && all <= 1445){level=17;capbac="Đỉnh cao";}else if(all >= 1446 && all <= 1620){level=18;capbac="Vĩ đại";}else if(all >= 1621 && all <= 1805){level=19;capbac="Thiên tài";}else if(all >= 1806 && all <= 2000){level=20;capbac="Siêu cấp";}else if(all >= 2001 && all <= 2205){level=21;capbac="Kiếm Thánh";}else if(all >= 2206 && all <= 2420){level=22;capbac="Kiếm Thánh";}else if(all >= 2421 && all <= 2645){level=23;capbac="Kiếm Thánh";}else if(all >= 2646 && all <= 2880){level=24;capbac="Kiếm Thánh";}else if(all >= 2881 && all <= 3125){level=25;capbac="Kiếm Thánh";}else if(all >= 3126 && all <= 3380){level=26;capbac="Kiếm Thánh";}else if(all >= 3381 && all <= 3645){level=27;capbac="Kiếm Thánh";}else if(all >= 3646 && all <= 3920){level=28;capbac="Kiếm Thánh";}else if(all >= 3921 && all <= 4205){level=29;capbac="Kiếm Thánh";}else if(all >= 4206 && all <= 4500){level=30;capbac="Kiếm Thánh";}else if(all >= 4501 && all <= 4805){level=31;capbac="Kiếm Thánh";}else if(all >= 4806 && all <= 5120){level=32;capbac="Kiếm Thánh";}else if(all >= 5121 && all <= 5445){level=33;capbac="Kiếm Thánh";}else if(all >= 5446 && all <= 5780){level=34;capbac="Kiếm Thánh";}else if(all >= 5781 && all <= 6125){level=35;capbac="Kiếm Thánh";}else if(all >= 6126 && all <= 6480){level=36;capbac="Kiếm Thánh";}else if(all >= 6481 && all <= 6845){level=37;capbac="Kiếm Thánh";}else if(all >= 6846 && all <= 7220){level=38;capbac="Kiếm Thánh";}else if(all >= 7221 && all <= 7605){level=39;capbac="Kiếm Thánh";}else if(all >= 7606 && all <= 8000){level=40;capbac="Kiếm Thánh";}else if(all >= 8001 && all <= 8405){level=41;capbac="Kiếm Thánh";}else if(all >= 8406 && all <= 8820){level=42;capbac="Kiếm Thánh";}else if(all >= 8821 && all <= 9245){level=43;capbac="Kiếm Thánh";}else if(all >= 9246 && all <= 9680){level=44;capbac="Kiếm Thánh";}else if(all >= 9681 && all <= 10125){level=45;capbac="Kiếm Thánh";}else if(all >= 10126 && all <= 10580){level=46;capbac="Kiếm Thánh";}else if(all >= 10581 && all <= 11045){level=47;capbac="Kiếm Thánh";}else if(all >= 11046 && all <= 11520){level=48;capbac="Kiếm Thánh";}else if(all >= 11521 && all <= 12005){level=49;capbac="Kiếm Thánh";}else if(all >= 12006){level=50;capbac="Kiếm Thánh";};document.write('<img src="/files/154586/'+level+'.gif"/><br/><span class="lt2"/><b>Cấp bậc</b>: <b style="color:#060;text-shadow:0 0 5px #090;-o-text-shadow:0 0 5px #090;-moz-text-shadow:0 0 5px #090">'+capbac+'</b><br/><span style="font-size:10px; color:DodgerBlue"><b>Level: '+level+'</b></span>');</script><br> <script type="text/javascript">exp = [loged];all = exp;if(all >= 0 && all <= 499){exp="0";}else if(all >= 500 && all <= 999){exp="2";}else if(all >= 1000 && all <= 1999){exp="4";}else if(all >= 2000 && all <= 2999){exp="6";}else if(all >= 3000 && all <= 3999){exp="8";}else if(all >= 4000 && all <= 4999){exp="10";}else if(all >= 5000 && all <= 5999){exp="12";}else if(all >= 6000 && all <= 6999){exp="14";}else if(all >= 7000 && all <= 7999){exp="16";}else if(all >= 8000 && all <= 8999){exp="18";}else if(all >= 9000 && all <= 9999){exp="20";}else if(all >= 10000 && all <= 10999){exp="22";}else if(all >= 11000 && all <= 11999){exp="24";}else if(all >= 12000 && all <= 12999){exp="26";}else if(all >= 13000 && all <= 13999){exp="28";}else if(all >= 14000 && all <= 14999){exp="30";}else if(all >= 15000 && all <= 15999){exp="32";}else if(all >= 16000 && all <= 16999){exp="34";}else if(all >= 17000 && all <= 17999){exp="36";}else if(all >= 18000 && all <= 18999){exp="38";}else if(all >= 19000 && all <= 19999){exp="40";}else if(all >= 20000 && all <= 20999){exp="42";}else if(all >= 21000 && all <= 21999){exp="44";}else if(all >= 22000 && all <= 22999){exp="46";}else if(all >= 23000 && all <= 23999){exp="48";}else if(all >= 24000 && all <= 24999){exp="50";}else if(all >= 25000 && all <= 25999){exp="52";}else if(all >= 26000 && all <= 26999){exp="54";}else if(all >= 27000 && all <= 27999){exp="56";}else if(all >= 28000 && all <= 28999){exp="58";}else if(all >= 29000 && all <= 29999){exp="60";}else if(all >= 30000 && all <= 30999){exp="62";}else if(all >= 31000 && all <= 31999){exp="64";}else if(all >= 32000 && all <= 32999){exp="66";}else if(all >= 33000 && all <= 33999){exp="68";}else if(all >= 34000 && all <= 34999){exp="70";}else if(all >= 35000 && all <= 35999){exp="72";}else if(all >= 36000 && all <= 36999){exp="74";}else if(all >= 37000 && all <= 37999){exp="76";}else if(all >= 38000 && all <= 38999){exp="78";}else if(all >= 39000 && all <= 39999){exp="80";}else if(all >= 40000 && all <= 40999){exp="82";}else if(all >= 41000 && all <= 41999){exp="84";}else if(all >= 42000 && all <= 45999){exp="86";}else if(all >= 46000 && all <= 49999){exp="88";}else if(all >= 50000 && all <= 59999){exp="90";}else if(all >= 60000 && all <= 69999){exp="92";}else if(all >= 70000 && all <= 79999){exp="94";}else if(all >= 80000 && all <= 89999){exp="96";}else if(all >= 90000 && all <= 99999){exp="98";}else if(all >= 100000){exp="100"};document.write('<span style="font-size:10px; color:DarkCyan"><b>Kinh Nghiệm: '+exp+'%</b> </span> <br/> <div class="exp"> <div class="fl level_border level_left"></div> <div class="fl level_exp"> <img src="/files/1025588/level_exp.gif" style="width:'+exp+'%;"/> <img src="/files/1025588/exp_growing.gif"/></div> <div class="fl level_border level_right"></div> </div>');</script> </div> {% endif %} {% if api.r.get('ref') == 'admin' %} <div class="title">Chức năng quản trị</div><div class="m6 p8"><a href="/user_info.php?uid=[user_id]&ref=ban">Ban thành viên</a><br/><a href="/user_info.php?uid=[user_id]&ref=unreg">Người dùng chưa đăng ký</a><br/><a href="/user_info.php?uid=[user_id]&ref=ch_lvl">Thay đổi cấp độ</a><br/><a href="/user_info.php?uid=[user_id]&ref=ch_plus">Thay đổi điểm thưởng</a> </div> {% elseif api.r.get('ref') == 'ban' %}<form action="admin.php?id=ban&[ses]&uid=[user_id]" method="post" ><div class="center">Số phút ban:<br/><input name="bantime" maxlength="4"/><br/>Lý do:<br/><input name="reason" maxlength="40"/><br/><br/><input type="submit" value="Ban thành viên"/></div></form> {% elseif api.r.get('ref') == 'ch_plus' %}<form action="admin.php?id=ch_plus&[ses]&uid=[user_id]" method="post" ><div class="center">Số điểm:<br/><input name="plus" maxlength="4"/><br/>Thao tác:<br/><select name="act"><option value="+">Tăng điểm thưởng</option><option value="-">Giảm điểm thưởng</option></select><br/>Lý do:<br/><input name="reason" maxlength="40"/><br/><input type="submit" value="Thay đổi điểm thưởng"/></div></form> {% elseif api.r.get('ref') == 'unreg' %}<form action="admin.php?id=unreg&[ses]&uid=[user_id]" method="post" ><div class="center">Lý do:<br/><input name="reason" maxlength="40"/><br/><input style="width:auto;" type="checkbox" name="content" value="1">Xóa hết tất cả nội dung được tạo bởi thành viên này (chỉ sử dụng khi bạn muốn xóa spammer)<br><input type="submit" value="Người dùng chưa đăng ký"/></div></form> {% elseif api.r.get('ref') == 'ch_lvl' %}<form action="admin.php?id=ch_lvl&[ses]&uid=[user_id]" method="post" ><div class="center">Cấp độ mới:<br/><input name="lvl" maxlength="2"/><br/>Lý do:<br/><input name="reason" maxlength="40"/><br/><input type="submit" value="Thay đổi cấp độ"/></div></form> {% endif %} <script>$(document).ready(function(){ $("#thongke").load('/main.php?f=3480871 .loadra'); }) </script> {%set banip=_self.env.getGlobals()['banip']%} {% if api.user_id and banip[api.user_id][0]==1 %} <div class="phdr">Lỗi truy cập</div> <div class="menu">Tài khoản của bạn tạm thời đang bị khóa</div> <div class="menu">Lí do: {{banip[api.user_id][1]}}</div> <div class="menu">Mọi thắc mắc vui lòng gửi về email <b>[email protected]</b> hoặc facebook <b><a href="http://fb.me/david.hung.94695">Lehung</a></b> để được giải đáp</div> {% endif %}
Phần gửi Tin nhắn Và chức vụ
![[OFF]](/assets/images/off.gif)