%%% 
%%%       Mdanbox-label.sty Ver 1.0
%%%       Copyright (c) 2002 Manabu YAMADA, all rights reserved.
%%%       This style file is under BSD licenses.
%%% 
%%%       2007/08/02 村上 真也 itemsepの値を改変
\usepackage{array}

\setlength{\oddsidemargin}{-15.5mm}
\setlength{\textwidth}{18cm}

%
%  
%
\newcommand{\Mhosyouninn}[1]{\def\M@hosyou{#1}}
\newcommand{\Mroot}[1]{\def\M@root{#1}}

\Mhosyouninn{}
\Mroot{}


%
% 日付出力用マクロ
%
\newif\ifMtoday

\newcommand{\Mtoday}[3]{\def\year{#1}\def\month{#2}\def\day{#3}}

\newcommand{\M@today}{
\ifMtoday
 \ifnum \month<10 \def\M@mzero{0} \else \def\M@mzero{} \fi
 \ifnum \day<10   \def\M@dzero{0} \else \def\M@dzero{} \fi
\parbox{14mm}{\number\year}/%
\parbox{7mm}{\M@mzero\number\month}/%
\parbox{7mm}{\M@dzero\number\day}%
\else
\hspace{14mm}{}/%
\hspace{7mm}{}/%
\hspace{7mm}{}%
\fi
}


%
% \Mlabel : ダンボックス用定型ラベル出力コマンド
%
\newcommand{\Mlabel}[1]{

\begin{minipage}[t][7.5cm]{8.1cm}
\begin{tabular}{|m{2.5cm}|m{5.6cm}|}
  \hline
   \parbox[c][0.9cm][c]{2.5cm}{{\LARGE \hfil 日 付\hfil}} & 
   \parbox[c][0.9cm][c]{5.6cm}{{\LARGE\bf \hfil \M@today \hfil}} \\
  \hline
   \parbox[c][4.2cm][t]{2.5cm}{{\vspace{1mm}\LARGE \hfil 品 目\hfil}} & 
   \parbox[c][4.2cm][t]{5.6cm}{
     \if #1\empty 
     \else
      {\bf
        \hspace{-2em}
       \begin{itemize}
         \setlength{\itemsep}{-2pt}
         \setlength{\itemindent}{-10pt}
         \@for\M@i:=#1\do{ \item \M@i}
       \end{itemize}
      }
    \fi
} \\
  \hline
   \parbox[c][0.9cm][c]{2.5cm}{{\LARGE \hfil 保証人\hfil}} & 
   \parbox[c][0.9cm][c]{5.6cm}{{\LARGE\bf \hfil\M@hosyou\hfil}} \\
  \hline
   \parbox[c][0.9cm][c]{2.5cm}{{\LARGE \hfil 管理者\hfil}} & 
   \parbox[c][0.9cm][c]{5.6cm}{{\LARGE\bf \hfil\M@root\hfil}} \\
  \hline
\end{tabular}
\end{minipage}
}


\def\Mlist#1{\def\M@list{#1}}

\def\Mlistshow{%
 \@for\M@l:=\M@list\do{%
   \Mlabel{\M@l}%
 }%
}

