\usepackage{calc}
\makeatletter
\providecommand{\@address}{\textbackslash{}address\{\}}
\providecommand{\@title}{\textbackslash{}title\{\}}
\providecommand{\@reporttype}{\textbackslash{}reporttype\{\}}
\providecommand{\@major}{\textbackslash{}major\{\}}
\providecommand{\@author}{\textbackslash{}author\{\}}
\providecommand{\@date}{\textbackslash{}date\{\}}
\providecommand{\@school}{\textbackslash{}school\{\}}
\providecommand{\@supervisor}{\textbackslash{}supervisor\{\}}
\providecommand{\@class}{\textbackslash{}class\{\}}
\newcommand{\school}[1]{\def\@school{#1}}
\newcommand{\address}[1]{\def\@address{#1}}
\newcommand{\reporttype}[1]{\def\@reporttype{#1}}
\newcommand{\major}[1]{\def\@major{#1}}
\newcommand{\supervisor}[1]{\def\@supervisor{#1}}
\newcommand{\class}[1]{\def\@class{#1}}
% extra field
\renewcommand{\maketitle}{%
\begin{titlepage}
\setlength{\parindent}{0pt}
\newgeometry{left=0pt,top=0pt,bottom=0pt,right=0pt}
\textbf{\fbox{%
    \begin{minipage}[c][0.5\pdfpageheight][r]{0.5cm}~\end{minipage}
    \begin{minipage}[c][0.5\pdfpageheight][c]{2cm}
    ~\vfill
    \rotatebox[origin=c]{-90}{%
        \parbox{0.9\pdfpageheight}{%
            \centering
            TÊN ĐỀ TÀI: \expandafter\MakeUppercase{\@title}%
        }%
    }
    \vfill~
    \end{minipage}
    \begin{minipage}[c][\pdfpageheight][c]{1cm}
    ~\vfill
    \rotatebox[origin=c]{-90}{%
        \expandafter\MakeUppercase{\@author}%
    }
    \vfill
    \rotatebox[origin=c]{-90}{%
        \expandafter\MakeUppercase{\@address--\@date}
    }
    \vfill~
    \end{minipage}
}} % \fbox
\begin{minipage}[c][\pdfpageheight-6.5cm][c]{\textwidth-3.5cm}

    \fontsize{13}{13}\selectfont
    \centering
    {\large
    \textbf{\MakeUppercase{Đại học bách khoa hà nội}}%
    
    \textbf{\expandafter\MakeUppercase{\@school}}%
    }

    \vspace{-0.5em}
    \foreach \i in {1,2,...,38} { \textbf{-}\hspace*{-1ex} }
    
    \vfill 
    \includegraphics[width=3cm]{fig/hust.png}
    
    \vfill
    {\Large\textbf{\expandafter\MakeUppercase{\@author}}}
    
    \vfill
    \parbox{0.8\textwidth}{%
        \centering
        \LARGE
        \textbf{\expandafter\MakeUppercase{\@title}}
    }
    
    \vfill
    {\Large\textbf{\expandafter\MakeUppercase{\@reporttype}}}
    
    \vspace{0.2cm}
    {\large\textbf{Chuyên ngành: \expandafter\MakeUppercase{\@major}}}
    
    \vfill
    
    {\large\textbf{\expandafter\MakeUppercase{\@address--\@date}}}
\end{minipage}%
\setlength{\parindent}{0.5in}%
\restoregeometry%
\end{titlepage}%
}

%%% 
%%% Bìa phụ
%%%

\newcommand{\makesubtitle}{%
\begin{titlepage}
\setlength{\parindent}{0pt}
\restoregeometry
\fontsize{13}{13}\selectfont
% \def\bs{2}
\centering
{\large
\textbf{\MakeUppercase{Đại học bách khoa hà nội}}%
}

{\large
\textbf{\expandafter\MakeUppercase{\@school}}%
}

\vspace{-0.5em}
\foreach \i in {1,2,...,38} { \textbf{-}\hspace*{-1ex} }

\vfill 
\includegraphics[width=3cm]{fig/hust.png}

\vfill
\parbox{0.8\textwidth}{%
    \centering
    \Large
    \textbf{\expandafter\MakeUppercase{\@title}}
}

\vfill

{\large
\textbf{\expandafter\MakeUppercase{\@reporttype}}%
}

\textbf{Chuyên ngành: \expandafter\MakeUppercase{\@major}}%

\vfill

\textbf{%
\begin{tabular}{ll}
	Giảng viên hướng dẫn: & \expandafter\MakeUppercase{\@supervisor}\\
    Sinh viên thực hiện: & {\expandafter\MakeUppercase{\@author}} \\
    Lớp: & \expandafter\MakeUppercase{\@class}
\end{tabular}
}
    
\vfill
{\textbf{\expandafter\MakeUppercase{\@address--\@date}}}
\setlength{\parindent}{0.5in}
\end{titlepage}%
}

\makeatother