الگو:تب رده: تفاوت میان نسخهها
جزبدون خلاصۀ ویرایش برچسب: ویرایش مبدأ ۲۰۱۷ |
جزبدون خلاصۀ ویرایش برچسب: ویرایش مبدأ ۲۰۱۷ |
||
| خط ۱: | خط ۱: | ||
<div | <noinclude> | ||
<div | الگوی تب | ||
<span | </noinclude> | ||
<span | <includeonly> | ||
<span | <div style="border:1px solid #ddd; border-radius:8px; overflow:hidden; margin:10px 0;"> | ||
<!-- تبها --> | |||
<div style="display:flex; background:#f8f9fa; border-bottom:1px solid #ddd;"> | |||
<span style="flex:1; text-align:center; padding:12px; background:#28a745; color:white; font-weight:bold; cursor:pointer;" onclick="this.parentNode.parentNode.children[1].children[0].style.display='block'; this.parentNode.parentNode.children[1].children[1].style.display='none'; this.parentNode.parentNode.children[1].children[2].style.display='none'; this.parentNode.parentNode.children[1].children[3].style.display='none'; this.style.background='#28a745'; this.style.color='white'; this.parentNode.children[1].style.background='#f8f9fa'; this.parentNode.children[1].style.color='#333'; this.parentNode.children[2].style.background='#f8f9fa'; this.parentNode.children[2].style.color='#333'; this.parentNode.children[3].style.background='#f8f9fa'; this.parentNode.children[3].style.color='#333';">{{{1}}}</span> | |||
<span style="flex:1; text-align:center; padding:12px; background:#f8f9fa; color:#333; cursor:pointer;" onclick="this.parentNode.parentNode.children[1].children[0].style.display='none'; this.parentNode.parentNode.children[1].children[1].style.display='block'; this.parentNode.parentNode.children[1].children[2].style.display='none'; this.parentNode.parentNode.children[1].children[3].style.display='none'; this.style.background='#28a745'; this.style.color='white'; this.parentNode.children[0].style.background='#f8f9fa'; this.parentNode.children[0].style.color='#333'; this.parentNode.children[2].style.background='#f8f9fa'; this.parentNode.children[2].style.color='#333'; this.parentNode.children[3].style.background='#f8f9fa'; this.parentNode.children[3].style.color='#333';">{{{2}}}</span> | |||
<span style="flex:1; text-align:center; padding:12px; background:#f8f9fa; color:#333; cursor:pointer;" onclick="this.parentNode.parentNode.children[1].children[0].style.display='none'; this.parentNode.parentNode.children[1].children[1].style.display='none'; this.parentNode.parentNode.children[1].children[2].style.display='block'; this.parentNode.parentNode.children[1].children[3].style.display='none'; this.style.background='#28a745'; this.style.color='white'; this.parentNode.children[0].style.background='#f8f9fa'; this.parentNode.children[0].style.color='#333'; this.parentNode.children[1].style.background='#f8f9fa'; this.parentNode.children[1].style.color='#333'; this.parentNode.children[3].style.background='#f8f9fa'; this.parentNode.children[3].style.color='#333';">{{{3}}}</span> | |||
<span style="flex:1; text-align:center; padding:12px; background:#f8f9fa; color:#333; cursor:pointer;" onclick="this.parentNode.parentNode.children[1].children[0].style.display='none'; this.parentNode.parentNode.children[1].children[1].style.display='none'; this.parentNode.parentNode.children[1].children[2].style.display='none'; this.parentNode.parentNode.children[1].children[3].style.display='block'; this.style.background='#28a745'; this.style.color='white'; this.parentNode.children[0].style.background='#f8f9fa'; this.parentNode.children[0].style.color='#333'; this.parentNode.children[1].style.background='#f8f9fa'; this.parentNode.children[1].style.color='#333'; this.parentNode.children[2].style.background='#f8f9fa'; this.parentNode.children[2].style.color='#333';">{{{4}}}</span> | |||
</div> | </div> | ||
<div | <!-- محتوا --> | ||
<div> | |||
<div style="padding:15px; display:block;"> | |||
<categorytree mode="all" hideroot="true">{{{1}}}</categorytree> | <categorytree mode="all" hideroot="true">{{{1}}}</categorytree> | ||
</div> | </div> | ||
<div style="padding:15px; display:none;"> | |||
<div | |||
<categorytree mode="all" hideroot="true">{{{2}}}</categorytree> | <categorytree mode="all" hideroot="true">{{{2}}}</categorytree> | ||
</div> | </div> | ||
<div style="padding:15px; display:none;"> | |||
<div | |||
<categorytree mode="all" hideroot="true">{{{3}}}</categorytree> | <categorytree mode="all" hideroot="true">{{{3}}}</categorytree> | ||
</div> | |||
<div style="padding:15px; display:none;"> | |||
<categorytree mode="all" hideroot="true">{{{4}}}</categorytree> | |||
</div> | |||
</div> | </div> | ||
</div> | </div> | ||
</includeonly> | |||
</ | |||
نسخهٔ ۲۹ سپتامبر ۲۰۲۵، ساعت ۱۵:۰۴
الگوی تب