Share filelist hình ảnh có name taive

  • Thread starter Thread starter Myshare
  • Start date Start date
Myshare

Myshare

New Member
Demo H.


Dầu tiên tạo thư mục "hinhanh" và trong thư mục hinhanh tạo thư mục "tet" trong thư mục tet tạo thêm thư mục là data nữa.Quay lại thư mục "tet' tạo file index . rong file index pót code này
Code:
<center><xt:filelist sort_type="name" sort_dir="asc" per_page="10" folder="/hinhanh/tet/data" template="&lt;div class=&quot;table&quot;&gt;&lt;img src=&quot;.file_url.&quot; width=&quot;30%&quot;/ &gt;&lt;/div&gt;&lt;div class=&quot;list1&quot;&lt;p align=&quot;center&quot;&gt;&lt;a href='http://url wap bạn/hinhanh/tet/taive?name=.file_name_parsed.'&gt;[Tải về]&lt;/a&gt;&lt;/div&gt;"/></center>
Nhớ thay url vào nhá
Tiếp theo tạo file taive ngang vơi index của thư mục tet và post code này
Code:
<!--parser:xtscript-->get name
print  <img src="/hinhanh/tet/data/$name">
<!--/parser:xtscript-->
Có vậy thooithichs style thì chỉnh sưa thêm 1 chút ok

----------> Bổ sung bài viết lúc 03:11 PM <----------> Bài viết trước lúc 03:09 PM <----------

à quên cư thế là post ảnh vào thư mục data trong thư mục tet đó thôi
 

Facebook Comments

Similar threads

Admin
Replies
1
Views
1K
carot_ls
carot_ls
Admin
Replies
0
Views
3K
AdminAdmin is verified member.
Admin
Back
Top