You can use Liferay UI tags liferay-ui: panel-container and liferay-ui: panel.
For example, a code that you can reference
Liferay-portal-Src-6,2,0-ce-GA1 \ portal web \ DOCROOT \ HTML \ portlet \ control_panel_m method \ View.jsp
Edition:
<liferay-ui:panel-container accordian="true" extended="true">
<liferay-ui:panel title="1">
content 1
</liferay-ui:panel>
<liferay-ui:panel title="2">
content 2
</liferay-ui:panel>
</liferay-ui:panel-container>
source
share