<?php include_once( "../../../spider.inc.php" ); ?>
{module:system.package.LoadList}
{module:system.package.install.Session}

	{foreach:system.package.install.install_object_hash packageObject}
	{if:packageObject->getPackageId()=='member'}{set:targetPackageObject packageObject}{/if}
	{/foreach}
	
	{if:is_object(targetPackageObject)}
	{set:definitionHash targetPackageObject->'definitionHash'}
	<h1>{write:targetPackageObject->getPackageViewName()}パッケージ</h1>
	{if:targetPackageObject->isInstall()}
	<input type="hidden" name="MEMBER_INIT_OPTION" value="{write:definitionHash['MEMBER_INIT_OPTION']}" />
	{else}
	<table style="width:95%;margin:0 auto;">
	<tbody>
	<tr>
		<th style="width:16em;">初期化オプション</th>
		<td>
			<select name="MEMBER_INIT_OPTION">
			<option value="1"{if:'1'==definitionHash['MEMBER_INIT_OPTION']} selected{/if}>既存テーブルを利用</option>
			<option value="2"{if:'2'==definitionHash['MEMBER_INIT_OPTION']} selected{/if}>テーブルがなければ作成</option>
			<option value="3"{if:'3'==definitionHash['MEMBER_INIT_OPTION']} selected{/if}>テーブルを削除して作成</option>
			</select>
		</td>
	</tr>
	</tbody>
	</table>
	<br />
	{/if}
	
	<h2>会員登録設定</h2>
	<table style="width:95%;margin:0 auto;">
	<tbody>
	<tr>
		<th style="width:16em;">会員公募</th>
		<td>
			<select name="MEMBER_PERMIT_REGIST_BY_USER">
				<option value="false">しない</option>
				<option value="true"{if:'true'==definitionHash['MEMBER_PERMIT_REGIST_BY_USER']} selected{/if}>する</option>
			</select>
		</td>
	</tr>
	<tr>
		<th style="width:16em;">会員初期ポイント</th>
		<td>
			<input type="text" name="MEMBER_INITIAL_POINT" size="10" value="{write:definitionHash['MEMBER_INITIAL_POINT']}" />Pt.
		</td>
	</tr>
	</tbody>
	</table>
	
	<h2>会員登録項目</h2>
	<table style="width:95%;margin:0 auto;">
	<tbody>
	<tr>
		<th style="width:10em;border-style:solid;border-width:1px;">項目名</th>
		<th style="width:1em;border-style:solid;border-width:1px;">登</th>
		<th style="width:1em;border-style:solid;border-width:1px;">必</th>
	</tr>
	<tr>
		<td style="width:10em;border-style:solid;border-width:1px;">姓名</td>
		<td style="width:1em;border-style:solid;border-width:1px;"><input type="checkbox" name="MEMBER_REGIST_ITEM[]" value="name"{if:in_array('name',definitionHash['MEMBER_REGIST_ITEM'])} checked{/if} /></td>
		<td style="width:1em;border-style:solid;border-width:1px;"><input type="checkbox" name="MEMBER_REQUIRE_ITEM[]" value="name"{if:in_array('name',definitionHash['MEMBER_REQUIRE_ITEM'])} checked{/if} /></td>
	</tr>
	<tr>
		<td style="width:10em;border-style:solid;border-width:1px;">姓名フリガナ</td>
		<td style="width:1em;border-style:solid;border-width:1px;"><input type="checkbox" name="MEMBER_REGIST_ITEM[]" value="name_kana"{if:in_array('name_kana',definitionHash['MEMBER_REGIST_ITEM'])} checked{/if} /></td>
		<td style="width:1em;border-style:solid;border-width:1px;"><input type="checkbox" name="MEMBER_REQUIRE_ITEM[]" value="name_kana"{if:in_array('name_kana',definitionHash['MEMBER_REQUIRE_ITEM'])} checked{/if} /></td>
	</tr>
	<tr>
		<td style="width:10em;border-style:solid;border-width:1px;">国名</td>
		<td style="width:1em;border-style:solid;border-width:1px;"><input type="checkbox" name="MEMBER_REGIST_ITEM[]" value="country_name"{if:in_array('country_name',definitionHash['MEMBER_REGIST_ITEM'])} checked{/if} /></td>
		<td style="width:1em;border-style:solid;border-width:1px;"><input type="checkbox" name="MEMBER_REQUIRE_ITEM[]" value="country_name"{if:in_array('country_name',definitionHash['MEMBER_REQUIRE_ITEM'])} checked{/if} /></td>
	</tr>
	<tr>
		<td style="width:10em;border-style:solid;border-width:1px;">都道府県</td>
		<td style="width:1em;border-style:solid;border-width:1px;"><input type="checkbox" name="MEMBER_REGIST_ITEM[]" value="prefecture"{if:in_array('prefecture',definitionHash['MEMBER_REGIST_ITEM'])} checked{/if} /></td>
		<td style="width:1em;border-style:solid;border-width:1px;"><input type="checkbox" name="MEMBER_REQUIRE_ITEM[]" value="prefecture"{if:in_array('prefecture',definitionHash['MEMBER_REQUIRE_ITEM'])} checked{/if} /></td>
	</tr>
	<tr>
		<td style="width:10em;border-style:solid;border-width:1px;">郵便番号</td>
		<td style="width:1em;border-style:solid;border-width:1px;"><input type="checkbox" name="MEMBER_REGIST_ITEM[]" value="zip_code"{if:in_array('zip_code',definitionHash['MEMBER_REGIST_ITEM'])} checked{/if} /></td>
		<td style="width:1em;border-style:solid;border-width:1px;"><input type="checkbox" name="MEMBER_REQUIRE_ITEM[]" value="zip_code"{if:in_array('zip_code',definitionHash['MEMBER_REQUIRE_ITEM'])} checked{/if} /></td>
	</tr>
	<tr>
		<td style="width:10em;border-style:solid;border-width:1px;">住所</td>
		<td style="width:1em;border-style:solid;border-width:1px;"><input type="checkbox" name="MEMBER_REGIST_ITEM[]" value="address"{if:in_array('address',definitionHash['MEMBER_REGIST_ITEM'])} checked{/if} /></td>
		<td style="width:1em;border-style:solid;border-width:1px;"><input type="checkbox" name="MEMBER_REQUIRE_ITEM[]" value="address"{if:in_array('address',definitionHash['MEMBER_REQUIRE_ITEM'])} checked{/if} /></td>
	</tr>
	<tr>
		<td style="width:10em;border-style:solid;border-width:1px;">電話番号</td>
		<td style="width:1em;border-style:solid;border-width:1px;"><input type="checkbox" name="MEMBER_REGIST_ITEM[]" value="telephone"{if:in_array('telephone',definitionHash['MEMBER_REGIST_ITEM'])} checked{/if} /></td>
		<td style="width:1em;border-style:solid;border-width:1px;"><input type="checkbox" name="MEMBER_REQUIRE_ITEM[]" value="telephone"{if:in_array('telephone',definitionHash['MEMBER_REQUIRE_ITEM'])} checked{/if} /></td>
	</tr>
	<tr>
		<td style="width:10em;border-style:solid;border-width:1px;">FAX番号</td>
		<td style="width:1em;border-style:solid;border-width:1px;"><input type="checkbox" name="MEMBER_REGIST_ITEM[]" value="faximili"{if:in_array('faximili',definitionHash['MEMBER_REGIST_ITEM'])} checked{/if} /></td>
		<td style="width:1em;border-style:solid;border-width:1px;"><input type="checkbox" name="MEMBER_REQUIRE_ITEM[]" value="faximili"{if:in_array('faximili',definitionHash['MEMBER_REQUIRE_ITEM'])} checked{/if} /></td>
	</tr>
	<tr>
		<td style="width:10em;border-style:solid;border-width:1px;">携帯電話番号</td>
		<td style="width:1em;border-style:solid;border-width:1px;"><input type="checkbox" name="MEMBER_REGIST_ITEM[]" value="mobile"{if:in_array('mobile',definitionHash['MEMBER_REGIST_ITEM'])} checked{/if} /></td>
		<td style="width:1em;border-style:solid;border-width:1px;"><input type="checkbox" name="MEMBER_REQUIRE_ITEM[]" value="mobile"{if:in_array('mobile',definitionHash['MEMBER_REQUIRE_ITEM'])} checked{/if} /></td>
	</tr>
	<tr>
		<td style="width:10em;border-style:solid;border-width:1px;">ホームページ</td>
		<td style="width:1em;border-style:solid;border-width:1px;"><input type="checkbox" name="MEMBER_REGIST_ITEM[]" value="url"{if:in_array('url',definitionHash['MEMBER_REGIST_ITEM'])} checked{/if} /></td>
		<td style="width:1em;border-style:solid;border-width:1px;"><input type="checkbox" name="MEMBER_REQUIRE_ITEM[]" value="url"{if:in_array('url',definitionHash['MEMBER_REQUIRE_ITEM'])} checked{/if} /></td>
	</tr>
	<tr>
		<td style="width:10em;border-style:solid;border-width:1px;">性別</td>
		<td style="width:1em;border-style:solid;border-width:1px;"><input type="checkbox" name="MEMBER_REGIST_ITEM[]" value="sex"{if:in_array('sex',definitionHash['MEMBER_REGIST_ITEM'])} checked{/if} /></td>
		<td style="width:1em;border-style:solid;border-width:1px;"><input type="checkbox" name="MEMBER_REQUIRE_ITEM[]" value="sex"{if:in_array('sex',definitionHash['MEMBER_REQUIRE_ITEM'])} checked{/if} /></td>
	</tr>
	<tr>
		<td style="width:10em;border-style:solid;border-width:1px;">生年</td>
		<td style="width:1em;border-style:solid;border-width:1px;"><input type="checkbox" name="MEMBER_REGIST_ITEM[]" value="birth_year"{if:in_array('birth_year',definitionHash['MEMBER_REGIST_ITEM'])} checked{/if} /></td>
		<td style="width:1em;border-style:solid;border-width:1px;"><input type="checkbox" name="MEMBER_REQUIRE_ITEM[]" value="birth_year"{if:in_array('birth_year',definitionHash['MEMBER_REQUIRE_ITEM'])} checked{/if} /></td>
	</tr>
	<tr>
		<td style="width:10em;border-style:solid;border-width:1px;">生月</td>
		<td style="width:1em;border-style:solid;border-width:1px;"><input type="checkbox" name="MEMBER_REGIST_ITEM[]" value="birth_month"{if:in_array('birth_month',definitionHash['MEMBER_REGIST_ITEM'])} checked{/if} /></td>
		<td style="width:1em;border-style:solid;border-width:1px;"><input type="checkbox" name="MEMBER_REQUIRE_ITEM[]" value="birth_month"{if:in_array('birth_month',definitionHash['MEMBER_REQUIRE_ITEM'])} checked{/if} /></td>
	</tr>
	<tr>
		<td style="width:10em;border-style:solid;border-width:1px;">生日</td>
		<td style="width:1em;border-style:solid;border-width:1px;"><input type="checkbox" name="MEMBER_REGIST_ITEM[]" value="birth_day"{if:in_array('birth_day',definitionHash['MEMBER_REGIST_ITEM'])} checked{/if} /></td>
		<td style="width:1em;border-style:solid;border-width:1px;"><input type="checkbox" name="MEMBER_REQUIRE_ITEM[]" value="birth_day"{if:in_array('birth_day',definitionHash['MEMBER_REQUIRE_ITEM'])} checked{/if} /></td>
	</tr>
	<tr>
		<td style="width:10em;border-style:solid;border-width:1px;">血液型</td>
		<td style="width:1em;border-style:solid;border-width:1px;"><input type="checkbox" name="MEMBER_REGIST_ITEM[]" value="blood_type"{if:in_array('blood_type',definitionHash['MEMBER_REGIST_ITEM'])} checked{/if} /></td>
		<td style="width:1em;border-style:solid;border-width:1px;"><input type="checkbox" name="MEMBER_REQUIRE_ITEM[]" value="blood_type"{if:in_array('blood_type',definitionHash['MEMBER_REQUIRE_ITEM'])} checked{/if} /></td>
	</tr>
	<tr>
		<td style="width:10em;border-style:solid;border-width:1px;">身長</td>
		<td style="width:1em;border-style:solid;border-width:1px;"><input type="checkbox" name="MEMBER_REGIST_ITEM[]" value="height"{if:in_array('height',definitionHash['MEMBER_REGIST_ITEM'])} checked{/if} /></td>
		<td style="width:1em;border-style:solid;border-width:1px;"><input type="checkbox" name="MEMBER_REQUIRE_ITEM[]" value="height"{if:in_array('height',definitionHash['MEMBER_REQUIRE_ITEM'])} checked{/if} /></td>
	</tr>
	<tr>
		<td style="width:10em;border-style:solid;border-width:1px;">体重</td>
		<td style="width:1em;border-style:solid;border-width:1px;"><input type="checkbox" name="MEMBER_REGIST_ITEM[]" value="weight"{if:in_array('weight',definitionHash['MEMBER_REGIST_ITEM'])} checked{/if} /></td>
		<td style="width:1em;border-style:solid;border-width:1px;"><input type="checkbox" name="MEMBER_REQUIRE_ITEM[]" value="weight"{if:in_array('weight',definitionHash['MEMBER_REQUIRE_ITEM'])} checked{/if} /></td>
	</tr>
	<tr>
		<td style="width:10em;border-style:solid;border-width:1px;">バスト/ウエスト/ヒップ</td>
		<td style="width:1em;border-style:solid;border-width:1px;"><input type="checkbox" name="MEMBER_REGIST_ITEM[]" value="bwh"{if:in_array('bwh',definitionHash['MEMBER_REGIST_ITEM'])} checked{/if} /></td>
		<td style="width:1em;border-style:solid;border-width:1px;"><input type="checkbox" name="MEMBER_REQUIRE_ITEM[]" value="bwh"{if:in_array('bwh',definitionHash['MEMBER_REQUIRE_ITEM'])} checked{/if} /></td>
	</tr>
	<tr>
		<td style="width:10em;border-style:solid;border-width:1px;">会社名</td>
		<td style="width:1em;border-style:solid;border-width:1px;"><input type="checkbox" name="MEMBER_REGIST_ITEM[]" value="company_name"{if:in_array('company_name',definitionHash['MEMBER_REGIST_ITEM'])} checked{/if} /></td>
		<td style="width:1em;border-style:solid;border-width:1px;"><input type="checkbox" name="MEMBER_REQUIRE_ITEM[]" value="company_name"{if:in_array('company_name',definitionHash['MEMBER_REQUIRE_ITEM'])} checked{/if} /></td>
	</tr>
	<tr>
		<td style="width:10em;border-style:solid;border-width:1px;">部署名</td>
		<td style="width:1em;border-style:solid;border-width:1px;"><input type="checkbox" name="MEMBER_REGIST_ITEM[]" value="section_name"{if:in_array('section_name',definitionHash['MEMBER_REGIST_ITEM'])} checked{/if} /></td>
		<td style="width:1em;border-style:solid;border-width:1px;"><input type="checkbox" name="MEMBER_REQUIRE_ITEM[]" value="section_name"{if:in_array('section_name',definitionHash['MEMBER_REQUIRE_ITEM'])} checked{/if} /></td>
	</tr>
	<tr>
		<td style="width:10em;border-style:solid;border-width:1px;">都道府県２</td>
		<td style="width:1em;border-style:solid;border-width:1px;"><input type="checkbox" name="MEMBER_REGIST_ITEM[]" value="prefecture2"{if:in_array('prefecture2',definitionHash['MEMBER_REGIST_ITEM'])} checked{/if} /></td>
		<td style="width:1em;border-style:solid;border-width:1px;"><input type="checkbox" name="MEMBER_REQUIRE_ITEM[]" value="prefecture2"{if:in_array('prefecture2',definitionHash['MEMBER_REQUIRE_ITEM'])} checked{/if} /></td>
	</tr>
	<tr>
		<td style="width:10em;border-style:solid;border-width:1px;">郵便番号２</td>
		<td style="width:1em;border-style:solid;border-width:1px;"><input type="checkbox" name="MEMBER_REGIST_ITEM[]" value="zip_code2"{if:in_array('zip_code2',definitionHash['MEMBER_REGIST_ITEM'])} checked{/if} /></td>
		<td style="width:1em;border-style:solid;border-width:1px;"><input type="checkbox" name="MEMBER_REQUIRE_ITEM[]" value="zip_code2"{if:in_array('zip_code2',definitionHash['MEMBER_REQUIRE_ITEM'])} checked{/if} /></td>
	</tr>
	<tr>
		<td style="width:10em;border-style:solid;border-width:1px;">住所２</td>
		<td style="width:1em;border-style:solid;border-width:1px;"><input type="checkbox" name="MEMBER_REGIST_ITEM[]" value="address2"{if:in_array('address2',definitionHash['MEMBER_REGIST_ITEM'])} checked{/if} /></td>
		<td style="width:1em;border-style:solid;border-width:1px;"><input type="checkbox" name="MEMBER_REQUIRE_ITEM[]" value="address2"{if:in_array('address2',definitionHash['MEMBER_REQUIRE_ITEM'])} checked{/if} /></td>
	</tr>
	<tr>
		<td style="width:10em;border-style:solid;border-width:1px;">電話番号２</td>
		<td style="width:1em;border-style:solid;border-width:1px;"><input type="checkbox" name="MEMBER_REGIST_ITEM[]" value="telephone2"{if:in_array('telephone2',definitionHash['MEMBER_REGIST_ITEM'])} checked{/if} /></td>
		<td style="width:1em;border-style:solid;border-width:1px;"><input type="checkbox" name="MEMBER_REQUIRE_ITEM[]" value="telephone2"{if:in_array('telephone2',definitionHash['MEMBER_REQUIRE_ITEM'])} checked{/if} /></td>
	</tr>
	<tr>
		<td style="width:10em;border-style:solid;border-width:1px;">FAX番号２</td>
		<td style="width:1em;border-style:solid;border-width:1px;"><input type="checkbox" name="MEMBER_REGIST_ITEM[]" value="faximili2"{if:in_array('faximili2',definitionHash['MEMBER_REGIST_ITEM'])} checked{/if} /></td>
		<td style="width:1em;border-style:solid;border-width:1px;"><input type="checkbox" name="MEMBER_REQUIRE_ITEM[]" value="faximili2"{if:in_array('faximili2',definitionHash['MEMBER_REQUIRE_ITEM'])} checked{/if} /></td>
	</tr>
	</tbody>
	</table>
	
	<br />
	<h2>メールマガジン配信用設定</h2>
	<p>
		メールマガジンを大量に配信する方向けにシステム設定と異なる配信サーバーを指定できます。<br />
		必要ない方やわからない方はシステム設定と同じにしてください。
	</p>
	<table style="width:95%;margin:0 auto;">
	<tbody>
	<tr>
		<th style="width:16em;" nowrap>メール速度 <span class="required">※</span></th>
		<td>
			パソコン向け配信 ： 一回の送信で<input type="text" size="5" name="MEMBER_MAIL_SEND_COUNT_DEFAULT" value="{write:definitionHash['MEMBER_MAIL_SEND_COUNT_DEFAULT']}" />通<br />
			携帯電話向け配信 ： 一回の送信で<input type="text" size="5" name="MEMBER_MAIL_SEND_COUNT_MOBILE" value="{write:definitionHash['MEMBER_MAIL_SEND_COUNT_MOBILE']}" />通<br />
		</td>
	</tr>
	<tr>
		<th style="width:16em;" nowrap>メール送信方法 <span class="required">※</span></th>
		<td>
			<select name="MEMBER_MAIL_SEND_METHOD" onchange="systemPackageMailOptionLoad('member','package-member-mail-option-panel',this);">
				<option value="">未選択</option>
				<option value="sendmail"{if:'sendmail'==definitionHash['MEMBER_MAIL_SEND_METHOD']} selected{/if}>sendmailコマンド</option>
				<option value="phpmail"{if:'phpmail'==definitionHash['MEMBER_MAIL_SEND_METHOD']} selected{/if}>PHP mail関数</option>
				<option value="smtp"{if:'smtp'==definitionHash['MEMBER_MAIL_SEND_METHOD']} selected{/if}>SMTP接続</option>
			</select>
		</td>
	</tr>
	</tbody>
	</table>
	<div id="package-member-mail-option-panel"></div>
	<img src="/<?php echo SYSTEM_DIR_NAME_ADMIN_PANEL; ?>/images/transparent.gif" onload="systemPackageMailOptionLoad('member','package-member-mail-option-panel',document.mform.MEMBER_MAIL_SEND_METHOD);" />

	<br />
	<h2>システム受信メール処理</h2>
	<p>
		メール処理スクリプトの設定が可能な方は携帯電話からの空メール登録に対応できます。<br />
		インストールフォルダの以下のスクリプトをメール受信時に起動するように設定して本項目を設定してください。<br />
		spider/lib/member/scripts/join.cmd.phpが空メール受信処理用<br />
		spider/lib/member/scripts/return.cmd.phpがリターンメール受信処理用<br />
		わからない方やご利用になれない方はそのままで結構です。
	</p>
	<table style="width:95%;margin:0 auto;">
	<tbody>
	<tr>
		<th style="width:16em;">受信メール処理ドメイン名</th>
		<td>
			<input type="text" name="MEMBER_MAIL_DOMAIN" size="40" value="{write:definitionHash['MEMBER_MAIL_DOMAIN']}" />
		</td>
	</tr>
	<tr>
		<th style="width:16em;">登録空メールプレフィックス</th>
		<td>
			<input type="text" name="MEMBER_REGIST_MAIL_PREFIX" size="10" value="{write:definitionHash['MEMBER_REGIST_MAIL_PREFIX']}" />
		</td>
	</tr>
	<tr>
		<th style="width:16em;">リターンメールプレフィックス</th>
		<td>
			<input type="text" name="MEMBER_RETURN_MAIL_PREFIX" size="10" value="{write:definitionHash['MEMBER_RETURN_MAIL_PREFIX']}" />
		</td>
	</tr>
	<tr>
		<th style="width:16em;">会員登録フォームURL</th>
		<td>
			<input type="text" size="80" name="MEMBER_REGIST_MAIL_URL" value="{write:definitionHash['MEMBER_REGIST_MAIL_URL']}" />
		</td>
	</tr>
	<tr>
		<th style="width:16em;">登録情報変更フォームURL</th>
		<td>
			<input type="text" size="80" name="MEMBER_MODIFY_MAIL_URL" value="{write:definitionHash['MEMBER_MODIFY_MAIL_URL']}" />
		</td>
	</tr>
	</tbody>
	</table>
	{else}
	<p>操作が正しくありません</p>
	{/if}