template.excelHead.ftl Maven / Gradle / Ivy
大学教学管理信息系统
[#import "/template/table.ftl" as table]
[#import "/template/htm.ftl" as htm]
[#import "/template/message.ftl" as msg]
[#global language="zh"]
[#macro i18nName(entity)][#if locale.language?index_of("en")!=-1][#if entity.enName?if_exists?trim==""]${entity.name?if_exists}[#else]${entity.enName?if_exists}[/#if][#else][#if entity.name?if_exists?trim!=""]${entity.name?if_exists}[#else]${entity.enName?if_exists}[/#if][/#if][/#macro]
[#macro localAttrName(entityName)][#if language?index_of("en")!=-1]#{entityName}.enName[#else]${entityName}.name[/#if][/#macro]
[#macro yesOrNoOptions(selected)]
[/#macro]
[#macro eraseComma(nameSeq)][#if (nameSeq?length>2)]${nameSeq[1..nameSeq?length-2]}[#else]${nameSeq}[/#if][/#macro]
[#macro getBeanListNames(beanList)][#list beanList as bean]${bean.name}[#if bean_has_next] [/#if][/#list][/#macro]
[#macro getTeacherNames(teachers)][@getBeanListNames teachers/][/#macro]
[#function sort_byI18nName entityList]
[#return sort_byI18nNameWith(entityList,"")]
[/#function]
[#function sort_byI18nNameWith entityList nestedAttr]
[#local name="name"]
[#if nestedAttr!=""]
[#local name=[nestedAttr,name]/]
[/#if]
[#return entityList?sort_by(name)]
[/#function]
[#macro getMessage][#assign error][@s.text name=errors/][/#assign] [/#macro]
[#macro searchParams][/#macro]
© 2015 - 2025 Weber Informatics LLC | Privacy Policy