<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="mmres://user_interface_reference.css" rel="stylesheet" type="text/css">
<title>CFCALENDAR</title>
</head>
<body bgcolor="#FFFFFF" text="#000000">
   <div id="説明">
   <table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
      <tr> 
         <td valign="top" class="name">CFCALENDAR</td>
         <td valign="top" nowrap class="compatibility">&nbsp;</td>
      </tr>
      <tr>
         <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
      </tr>


    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">説明</span>
<p>
Macromedia Flash 形式のインタラクティブなカレンダーを HTML フォームまたは Flash フォームに配置します。XML 形式フォームではサポートされていません。ユーザーは、このカレンダーを使って、送信の日付をフォーム変数として選択することができます。
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">カテゴリ</span>
<p>
フォームタグ
</p>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="syntax"><span class="title">シンタックス</span><pre>&lt;cfcalendar
name = &quot;name of calendar&quot;
height = &quot;height&quot;
width = &quot;width&quot;
selectedDate = &quot;date&quot;
startRange = &quot;first disabled date&quot;
endRange = &quot;last disabled date&quot;
disabled = &quot;true&quot;、&quot;false&quot;、または属性値なし
mask = &quot;character pattern&quot;
dayNames = &quot;days-of-the-week labels&quot;
monthNames = &quot;month labels&quot;
visible = &quot;Yes&quot;、&quot;No&quot;
enabled = &quot;Yes&quot;、&quot;No&quot;
tooltip = &quot;Tip text&quot;
onChange = &quot;actionscript to invoke&quot;&gt;
</pre>    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">関連項目</span>
<p>
cfform、cfgrid、cfinput、cfselect、cfslider、cftextarea、cftree、『ColdFusion MX 開発ガイド』の第29章の「Macromedia Flash 形式のフォームの作成」 の「Flash フォームのスタイルの概要」
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">ヒストリ</span>
<p>
ColdFusion&#160;MX&#160;7: タグが追加されました。
</p>

<p>

</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">使用方法</span>
<p>
cfcalendar タグは、カレンダーの月を表示します。そこには、月、年、その月の日を示すグリッド、および曜日を示す見出しが含まれています。カレンダーには次に進む矢印ボタンと前に戻る矢印ボタンがあるので、これらのボタンを使用して表示される月と年を変更することができます。
</p>

<p>
selectedDate 属性の値を使用する場合、その日付は緑で強調表示され、初期表示される月と年が決まります。表示される月と年を変更しても、その選択した日付は変わりません。ユーザーは、カレンダー上の別の日付をクリックすることにより、選択した日付を変更できます。onChange 属性では、ユーザーが日付を選択したときに実行される ActionScript イベントハンドラ関数を指定することができます。
</p>

<p>
現在の日付は反転表示で示されます。つまり、数字は白、背景は黒で表示されます。ただし、選択した日付が別の月や年のものである場合、次に進む矢印ボタンや前に戻る矢印ボタンをクリックしてその月や年に進まない限り、現在の日付は表示されません。
</p>

<p>
mask 属性では、アプリケーションに返される選択した日付の形式を指定することができます。
</p>

<p>
キーボードを使用して、cfcalendar コントロールにアクセスし、コントロールから日付を選択することができます。 
</p>
<ul>

<li>上向き、下向き、左向き、および右向きの矢印キーを使用すると、選択した日付を変更することができます。 </li>

<li>Home キーと End キーを使用すると、月の開始日と終了日にそれぞれ進むことができます。</li>

<li>Page Up キーと Page Down キーを使用すると、前月と翌月にそれぞれ進むことができます。 </li>
</ul>
<table>
  <tr valign="top">
    <td width="30"><strong>メモ: </strong></td>
    <td>cfcalendar タグは、XML 形式のフォームではサポートされていません。 </td>
  </tr>
</table>    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">例</span>
<p>
この例では、Flash haloBlue スキンによる 200 ピクセル x 150 ピクセルのカレンダーを作成します。省略された月名および 2 文字の曜日名が表示されます。selectedDate 属性での指定に基づき、今日の日付が初期表示されます。[保存] ボタンをクリックすると、フォームは現在のページに送信され、送信された情報が表示されます。
</p>

<p>
この例には、3 つの dateField コントロールもあります。これらのコントロールを使用すると、カレンダーに表示される初期選択日付およびブロックアウトされる日付範囲を変更することができます。ブロックアウトされる日付範囲の初期値は、今日の日付の直前 4 日間です。
</p>
<table>
  <tr valign="top">
    <td width="30"><strong>メモ: </strong></td>
    <td>この例は、mm/dd/yyyy の日付形式を使用しないロケールで機能するように修正する必要があります。そのためには、DateFormat 関数の代わりに LSDateFormat 関数を使用し、ロケールに適したマスク (dd/mm/yyyy など) を使用します。</td>
  </tr>
</table><pre>&lt;!--- 選択した日付およびブロックアウトされる日付の初期値を設定します。---&gt; 
&lt;cfparam name=&quot;Form.startdate&quot; default=&quot;#dateformat(now()-5, &#39;mm/dd/yyyy&#39;)#&quot;&gt;
&lt;cfparam name=&quot;Form.enddate&quot; default=&quot;#dateformat(now()-1, &#39;mm/dd/yyyy&#39;)#&quot;&gt;
&lt;cfparam name=&quot;Form.selectdate&quot; default=&quot;#dateformat(now(), &#39;mm/dd/yyyy&#39;)#&quot;&gt;

&lt;!--- フォームが送信されたら、選択した日付を表示します。 ---&gt;
&lt;cfif isDefined(&quot;Form.submitit&quot;)&gt;
   &lt;cfoutput&gt;&lt;b&gt;#Form.selectedDate# を選択しました。&lt;/b&gt;&lt;br&gt;&lt;br&gt;&lt;/cfoutput&gt;
&lt;/cfif&gt;

&lt;b&gt;カレンダー上の日付を選択して [保存] をクリックしてください。&lt;/b&gt;&lt;br&gt;
&lt;br&gt;
&lt;cfform name=&quot;form1&quot; format=&quot;Flash&quot; skin=&quot;haloBlue&quot; width=&quot;375&quot; height=&quot;350&quot; &gt;
   &lt;cfcalendar name=&quot;selectedDate&quot; 
      selectedDate=&quot;#Form.selectdate#&quot;
      startRange=&quot;#Form.startdate#&quot;
      endRange=&quot;#Form.enddate#&quot; 
      mask=&quot;mmm dd, yyyy&quot; 
      dayNames=&quot;SU,MO,TU,WE,TH,FR,SA&quot;
      monthNames=&quot;JAN, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV, DEC&quot;
      style=&quot;rollOverColor:##FF0000&quot;
      width=&quot;200&quot; height=&quot;150&quot; &gt;
   &lt;cfinput type=&quot;dateField&quot; name=&quot;startdate&quot; label=&quot;Block out starts&quot;
      width=&quot;100&quot; value=&quot;#Form.startdate#&quot;&gt;
   &lt;cfinput type=&quot;dateField&quot; name=&quot;enddate&quot; label=&quot;Block out ends&quot; width=&quot;100&quot;
      value=&quot;#Form.enddate#&quot;&gt;
   &lt;cfinput type=&quot;dateField&quot; name=&quot;selectdate&quot; label=&quot;Initial date&quot; width=&quot;100&quot;
      value=&quot;#Form.selectdate#&quot; &gt;
   &lt;cfinput type=&quot;Submit&quot; name=&quot;submitit&quot; value=&quot;Save&quot; width=&quot;100&quot;&gt; 
&lt;/cfform&gt;
</pre>
         </td>
      </tr>
   </table>
   </div>
<div id="NAME">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">NAME</td>
  <td valign="top" nowrap class="compatibility">&nbsp;</td>
  </tr>
  <tr>
  <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
  </tr>

  <tr>
  <td valign="top" class="syntax">&nbsp;</td>
  <td valign="top" nowrap class="requirements">必須</td>
  </tr>
  <tr>
  <td colspan="2" class="clearseparation">&nbsp;</td>
  </tr>
  <tr>
  <td valign="top" colspan="2" class="description">



<p>カレンダーの名前です。</p>

  </td>
  </tr>
  </table>
</div>
<div id="HEIGHT">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">HEIGHT</td>
  <td valign="top" nowrap class="compatibility">&nbsp;</td>
  </tr>
  <tr>
  <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
  </tr>

  <tr>
  <td valign="top" class="syntax">&nbsp;</td>
  <td valign="top" nowrap class="requirements">オプション</td>
  </tr>
  <tr>
  <td colspan="2" class="clearseparation">&nbsp;</td>
  </tr>
  <tr>
  <td valign="top" colspan="2" class="description">

<strong>Default value:</strong> "Flash により決定"


<p>カレンダーの垂直方向の寸法はピクセル単位で指定します。</p>

  </td>
  </tr>
  </table>
</div>
<div id="WIDTH">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">WIDTH</td>
  <td valign="top" nowrap class="compatibility">&nbsp;</td>
  </tr>
  <tr>
  <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
  </tr>

  <tr>
  <td valign="top" class="syntax">&nbsp;</td>
  <td valign="top" nowrap class="requirements">オプション</td>
  </tr>
  <tr>
  <td colspan="2" class="clearseparation">&nbsp;</td>
  </tr>
  <tr>
  <td valign="top" colspan="2" class="description">

<strong>Default value:</strong> "Flash により決定"


<p>カレンダーの水平方向の寸法はピクセル単位で指定します。</p>

  </td>
  </tr>
  </table>
</div>
<div id="SELECTEDDATE">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">SELECTEDDATE</td>
  <td valign="top" nowrap class="compatibility">&nbsp;</td>
  </tr>
  <tr>
  <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
  </tr>

  <tr>
  <td valign="top" class="syntax">&nbsp;</td>
  <td valign="top" nowrap class="requirements">オプション</td>
  </tr>
  <tr>
  <td colspan="2" class="clearseparation">&nbsp;</td>
  </tr>
  <tr>
  <td valign="top" colspan="2" class="description">

<strong>Default value:</strong> "なし (Flash は現在の月を表示)"


<p>最初に選択した日付です。フォームスキンで指定された色で強調表示されます。現在のロケールに応じた mm/dd/yyyy または dd/mm/yyyy の形式でなければなりません。必要に応じて、setlocale タグを使用してロケールを設定します。</p>

  </td>
  </tr>
  </table>
</div>
<div id="STARTRANGE">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">STARTRANGE</td>
  <td valign="top" nowrap class="compatibility">&nbsp;</td>
  </tr>
  <tr>
  <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
  </tr>

  <tr>
  <td valign="top" class="syntax">&nbsp;</td>
  <td valign="top" nowrap class="requirements">オプション</td>
  </tr>
  <tr>
  <td colspan="2" class="clearseparation">&nbsp;</td>
  </tr>
  <tr>
  <td valign="top" colspan="2" class="description">



<p>無効な日付の範囲の開始日です。ユーザーは、この日付から endRange 属性で指定する日付までの中から日付を選択することはできません。</p>

  </td>
  </tr>
  </table>
</div>
<div id="ENDRANGE">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">ENDRANGE</td>
  <td valign="top" nowrap class="compatibility">&nbsp;</td>
  </tr>
  <tr>
  <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
  </tr>

  <tr>
  <td valign="top" class="syntax">&nbsp;</td>
  <td valign="top" nowrap class="requirements">オプション</td>
  </tr>
  <tr>
  <td colspan="2" class="clearseparation">&nbsp;</td>
  </tr>
  <tr>
  <td valign="top" colspan="2" class="description">



<p>無効な日付の範囲の終了日です。ユーザーは、startRange で指定する日付からこの日付までの中から日付を選択することはできません。</p>

  </td>
  </tr>
  </table>
</div>
<div id="DISABLED">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">DISABLED</td>
  <td valign="top" nowrap class="compatibility">&nbsp;</td>
  </tr>
  <tr>
  <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
  </tr>

  <tr>
  <td valign="top" class="syntax">&nbsp;</td>
  <td valign="top" nowrap class="requirements">オプション</td>
  </tr>
  <tr>
  <td colspan="2" class="clearseparation">&nbsp;</td>
  </tr>
  <tr>
  <td valign="top" colspan="2" class="description">

<strong>Default value:</strong> "not disabled"


<p>すべてのユーザー入力を無効にし、コントロールを読み取り専用にします。入力を無効にするには、属性を省略して disabled を指定するか、disabled=&quot;Yes&quot; (または ColdFusion で使用する true などの正のブール値) を指定します。入力を有効にするには、属性を省略するか、disabled=&quot;No&quot; (または ColdFusion で使用する false などの負のブール値) を指定します。</p>

  </td>
  </tr>
  </table>
</div>
<div id="MASK">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">MASK</td>
  <td valign="top" nowrap class="compatibility">&nbsp;</td>
  </tr>
  <tr>
  <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
  </tr>

  <tr>
  <td valign="top" class="syntax">&nbsp;</td>
  <td valign="top" nowrap class="requirements">オプション</td>
  </tr>
  <tr>
  <td colspan="2" class="clearseparation">&nbsp;</td>
  </tr>
  <tr>
  <td valign="top" colspan="2" class="description">

<strong>Default value:</strong> "MM/DD/YYYY"


<p>送信される日付の形式を指定するパターンです。マスク文字は次のとおりです。</p><ul>

<li>D は日です。0 ～ 2 個のマスク文字を使用できます。</li>

<li>M は月です。0 ～ 4 個のマスク文字を使用できます。</li>

<li>Y は年です。0、2、または 4 個の文字を使用できます。</li>

<li>E は曜日です。0 ～ 4 個の文字を使用できます。</li>

<li>その他の文字は、指定の場所に文字を挿入します。</li>
</ul>

<p>マスクの詳細については、cfinput リファレンスページの「入力データのマスキング」を参照してください。</p>

  </td>
  </tr>
  </table>
</div>
<div id="FIRSTDAYOFWEEK">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">FIRSTDAYOFWEEK</td>
  <td valign="top" nowrap class="compatibility">&nbsp;</td>
  </tr>
  <tr>
  <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
  </tr>

  <tr>
  <td valign="top" class="syntax">&nbsp;</td>
  <td valign="top" nowrap class="requirements">オプション</td>
  </tr>
  <tr>
  <td colspan="2" class="clearseparation">&nbsp;</td>
  </tr>
  <tr>
  <td valign="top" colspan="2" class="description">

<strong>Default value:</strong> "0"


<p>カレンダーでその週の最初の曜日を指定する 0 ～ 6 の範囲の整数です。0 は日曜日、6 は土曜日を示します。</p>

  </td>
  </tr>
  </table>
</div>
<div id="DAYNAMES">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">DAYNAMES</td>
  <td valign="top" nowrap class="compatibility">&nbsp;</td>
  </tr>
  <tr>
  <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
  </tr>

  <tr>
  <td valign="top" class="syntax">&nbsp;</td>
  <td valign="top" nowrap class="requirements">オプション</td>
  </tr>
  <tr>
  <td colspan="2" class="clearseparation">&nbsp;</td>
  </tr>
  <tr>
  <td valign="top" colspan="2" class="description">

<strong>Default value:</strong> "S、M、T、W、Th、F、S"


<p>カレンダーに表示される曜日名を設定するカンマ区切りのリストです。日曜日 (Sunday) が先頭で、残りの曜日が通常どおりにその後に続きます。</p>

  </td>
  </tr>
  </table>
</div>
<div id="MONTHNAMES">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">MONTHNAMES</td>
  <td valign="top" nowrap class="compatibility">&nbsp;</td>
  </tr>
  <tr>
  <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
  </tr>

  <tr>
  <td valign="top" class="syntax">&nbsp;</td>
  <td valign="top" nowrap class="requirements">オプション</td>
  </tr>
  <tr>
  <td colspan="2" class="clearseparation">&nbsp;</td>
  </tr>
  <tr>
  <td valign="top" colspan="2" class="description">

<strong>Default value:</strong> "January、February、March、April、May、June、July、August、September、October、November、December"


<p>カレンダーの最上部に表示される月名のカンマ区切りのリストです。</p>

  </td>
  </tr>
  </table>
</div>
<div id="STYLE">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">STYLE</td>
  <td valign="top" nowrap class="compatibility">&nbsp;</td>
  </tr>
  <tr>
  <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
  </tr>

  <tr>
  <td valign="top" class="syntax">&nbsp;</td>
  <td valign="top" nowrap class="requirements">オプション</td>
  </tr>
  <tr>
  <td colspan="2" class="clearseparation">&nbsp;</td>
  </tr>
  <tr>
  <td valign="top" colspan="2" class="description">



<p>Flash ActionScript のスタイルまたはカレンダーに適用するスタイルです。詳細については、『ColdFusion MX 開発ガイド』の第29章の「Flash フォームのスタイルとスキンの設定」 を参照してください。</p>

  </td>
  </tr>
  </table>
</div>
<div id="ENABLED">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">ENABLED</td>
  <td valign="top" nowrap class="compatibility">&nbsp;</td>
  </tr>
  <tr>
  <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
  </tr>

  <tr>
  <td valign="top" class="syntax">&nbsp;</td>
  <td valign="top" nowrap class="requirements">オプション</td>
  </tr>
  <tr>
  <td colspan="2" class="clearseparation">&nbsp;</td>
  </tr>
  <tr>
  <td valign="top" colspan="2" class="description">

<strong>Default value:</strong> "Yes"


<p>Flash の場合のみ : コントロールを有効にするかどうかを指定するブール値です。無効なコントロールはライトグレーで表示されます。disabled 属性の反対です。</p>

  </td>
  </tr>
  </table>
</div>
<div id="VISIBLE">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">VISIBLE</td>
  <td valign="top" nowrap class="compatibility">&nbsp;</td>
  </tr>
  <tr>
  <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
  </tr>

  <tr>
  <td valign="top" class="syntax">&nbsp;</td>
  <td valign="top" nowrap class="requirements">オプション</td>
  </tr>
  <tr>
  <td colspan="2" class="clearseparation">&nbsp;</td>
  </tr>
  <tr>
  <td valign="top" colspan="2" class="description">

<strong>Default value:</strong> "Yes"


<p>Flash の場合のみ : コントロールを表示するかどうかを指定するブール値です。表示されないコントロールが使用するスペースは空白です。</p>

  </td>
  </tr>
  </table>
</div>
<div id="TOOLTIP">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">TOOLTIP</td>
  <td valign="top" nowrap class="compatibility">&nbsp;</td>
  </tr>
  <tr>
  <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
  </tr>

  <tr>
  <td valign="top" class="syntax">&nbsp;</td>
  <td valign="top" nowrap class="requirements">オプション</td>
  </tr>
  <tr>
  <td colspan="2" class="clearseparation">&nbsp;</td>
  </tr>
  <tr>
  <td valign="top" colspan="2" class="description">



<p>Flash の場合のみ : マウスポインタをコントロールの上に置いたときに表示されるテキストです。</p>

  </td>
  </tr>
  </table>
</div>
<div id="ONCHANGE">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">ONCHANGE</td>
  <td valign="top" nowrap class="compatibility">&nbsp;</td>
  </tr>
  <tr>
  <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
  </tr>

  <tr>
  <td valign="top" class="syntax">&nbsp;</td>
  <td valign="top" nowrap class="requirements">オプション</td>
  </tr>
  <tr>
  <td colspan="2" class="clearseparation">&nbsp;</td>
  </tr>
  <tr>
  <td valign="top" colspan="2" class="description">



<p>ユーザーが日付を選択したときに実行される ActionScript です。</p>

  </td>
  </tr>
  </table>
</div>

  </body>
</html>
