%%5A^5A9^5A9C15BA%%MST1110.tpl.php 13 KB
<?php /* Smarty version 2.6.26, created on 2017-06-01 23:10:59
         compiled from MST1110.tpl */ ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META name="GENERATOR" content="Microsoft FrontPage 4.0">
<META http-equiv="Content-Type" content="text/html; charset=EUC-JP">
<META http-equiv="Content-Style-Type" content="text/css">
<link href="./css/style.css" rel="stylesheet" type="text/css">
<TITLE>め〜るNiポン!</TITLE>
<script type="text/javascript" src="./include/input_chk.js" charset="EUC-JP"></script>
<script>
<?php echo '

function Disp_List(){
		if (confirm("入力内容は破棄してユーザー情報一覧画面に戻ります\\nよろしいですか?")){
				document.frm.action="./MST1100.php";
				document.frm.method="POST";
				document.frm.submit();
				return;
		}
}

function Data_Delete(){

		if (document.frm.Kanri_Flg.value == "1") {
			alert("管理者は削除できません\\n\\n管理者変更後に削除してください。");
			return false;
		}

		if (confirm("このユーザーを削除します\\nよろしいですか?")){
				document.frm.pMode.value    = "3";
				document.frm.action = "MST1111.php";
				document.frm.method = "POST";
				document.frm.submit();
		}
}

function Data_Touroku(pMode){
		if (hissu_chk("氏名(姓)",document.frm.sei_kj.value)==false) {
			document.frm.sei_kj.focus();
			return false;
		}
		if (kana_chk("フリガナ姓",document.frm.sei_kn.value)==false) {
			document.frm.sei_kn.focus();
			return false;
		}
		if (kana_chk("フリガナ名",document.frm.mei_kn.value)==false) {
			document.frm.mei_kn.focus();
			return false;
		}

		chkCnt = 0;
		if (document.frm.Group_Chk.length >= 2) {
				for (i=0; i< document.frm.Group_Chk.length;i++){
						if (document.frm.Group_Chk[i].checked) {
								chkCnt++;
						}
				}
				if (chkCnt==0) {
						alert("所属部門は1つ以上チェックしてください");
						return false;
				}
		}else{
				if (document.frm.Group_Chk.checked==false) {
						alert("所属部門は1つ以上チェックしてください");
						return false;
				}
		}

		if (mailadr_chk2(document.frm.email1.value)==false) {
				document.frm.email1.focus();
				return false;
		}

		if (document.frm.email2.value=="etc") {
				if (mailadr_chk(document.frm.email1.value,document.frm.email2_2.value)==false) {
						document.frm.email1.focus();
						return false;
				}
		}

		if (mailadr_chk(document.frm.pcemail1.value,document.frm.pcemail2.value)==false) {
				document.frm.pcemail1.focus();
				return false;
		}
		//if (yuubin_chk(document.frm.yubin_no1.value,document.frm.yubin_no2.value)==false) {
		//		document.frm.yubin_no1.focus();
		//		return false;
		//}
		//if (tel_chk("自宅電話番号",document.frm.telno1.value,document.frm.telno2.value,document.frm.telno3.value)==false) {
		//	document.frm.telno1.focus();
		//	return false;
		//}
		//if (tel_chk("携帯電話番号",document.frm.keitaiNo1.value,document.frm.keitaiNo2.value,document.frm.keitaiNo3.value)==false) {
		//	document.frm.keitaiNo1.focus();
		//	return false;
		//}
		if (script_chk("メモ",document.frm.biko.value)==false) {
			document.frm.biko.focus();
			return false;
		}

		if (document.frm.Kanri_Flg.value==1){
			if (document.frm.email1.value=="") {
				if (document.frm.pcemail1.value=="" && document.frm.pcemail2.value=="") {
						window.alert("管理者はメールアドレスの入力が必須です。");
						document.frm.pcemail1.focus();
						return false;
				}
			}
		}

		var strGroup = "";
		if (document.frm.Group_Chk.length >= 2) {
				for (i=0; i< document.frm.Group_Chk.length;i++){
						if (document.frm.Group_Chk[i].checked) {
								strGroup=strGroup+document.frm.Group_Chk[i].value+"/";
						}
				}
		}else{
				if (document.frm.Group_Chk.checked) {
						strGroup=strGroup+document.frm.Group_Chk.value+"/";
				}
		}

		if (confirm("このユーザーを登録します\\nよろしいですか?")){
				document.frm.Group_Data.value = strGroup;
				document.frm.pMode.value = pMode;
				document.frm.action = "MST1111.php";
				document.frm.method = "POST";
				document.frm.submit();
		}
}

function txt_change(){
	if(document.frm.email2.value=="etc"){
		 document.frm.email2_2.style.visibility="visible";
	}else{
		 document.frm.email2_2.style.visibility="hidden";
		 document.frm.email2_2.value="";
	}
}

'; ?>

</script>
</HEAD>
<BODY bgcolor="White" onload="txt_change()">
<FORM name="frm">
<!-- ヘッダー表示 -->
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'header.tpl', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<!-- メニュー表示 -->
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'menu.tpl', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<table width="100%" border="0">
	<tr>
		<th><B><font color=blue size=5>ユーザー情報登録</font></B></th>
	</tr>
</table>
<hr />
<TABLE border=0 width="100%">
	<TR>
		<TD align="center">
			<INPUT type="button" name="back" value="一覧に戻る" onClick="Disp_List();">
		</TD>
	</TR>
	<TR>
		<TD align="center">
			<B><FONT size="2" color=#FF0000></FONT><B><FONT size="2">は入力必須項目です(氏名は姓のみ必須)</FONT>
		</TD>
	</TR>
	<TR>
		<TD align="center">
			<TABLE border=1 bordercolor="#008080" width="544">
				<TR>
					<TD bgcolor="#FFCC99"><B><FONT size="2">氏名(漢字)</FONT></B><B><FONT size="2" color=#FF0000></B></FONT></TD>
					<TD><B><FONT size="2">&nbsp;</FONT></B><INPUT maxlength="50" size="50" type="text" name="sei_kj" Value="<?php echo $this->_tpl_vars['name_kj_sei']; ?>
"><br><B><FONT size="2">&nbsp;</FONT></B><INPUT maxlength="50" size="50" type="text" name="mei_kj" Value="<?php echo $this->_tpl_vars['name_kj_mei']; ?>
"></TD>
				</TR>
				<TR>
					<TD bgcolor="#FFCC99"><B><FONT size="2">氏名(フリガナ)</FONT></B></TD>
					<TD><B><FONT size="2">セイ&nbsp;</FONT></B><INPUT maxlength="100" size="50" type="text" name="sei_kn" Value="<?php echo $this->_tpl_vars['name_kn_sei']; ?>
"><br><B><FONT size="2">メイ&nbsp;</FONT></B><INPUT maxlength="100" size="50" type="text" name="mei_kn" Value="<?php echo $this->_tpl_vars['name_kn_mei']; ?>
"><B><FONT size="2">(全角カタカナ)</FONT></B></TD>
				</TR>
				<TR>
					<TD bgcolor="#FFCC99"><B><FONT size="2">性別</FONT></B><B><FONT size="2" color=#FF0000></B></FONT></TD>
					<TD>
						<input type="radio" value="t" name="sex" <?php echo $this->_tpl_vars['sex'][0]; ?>
><B><FONT size="2"></FONT></B> 
						<input type="radio" value="f" name="sex" <?php echo $this->_tpl_vars['sex'][1]; ?>
><B><FONT size="2"></FONT></B>
					</TD>
				</TR>
				<TR>
					<TD bgcolor="#FFCC99"><B><FONT size="2">グループ</FONT></B><B><FONT size="2" color=#FF0000></B></FONT></TD>
					<TD ALIGN="LEFT">
						<?php unset($this->_sections['idx']);
$this->_sections['idx']['name'] = 'idx';
$this->_sections['idx']['loop'] = is_array($_loop=$this->_tpl_vars['Group_Data']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['idx']['show'] = true;
$this->_sections['idx']['max'] = $this->_sections['idx']['loop'];
$this->_sections['idx']['step'] = 1;
$this->_sections['idx']['start'] = $this->_sections['idx']['step'] > 0 ? 0 : $this->_sections['idx']['loop']-1;
if ($this->_sections['idx']['show']) {
    $this->_sections['idx']['total'] = $this->_sections['idx']['loop'];
    if ($this->_sections['idx']['total'] == 0)
        $this->_sections['idx']['show'] = false;
} else
    $this->_sections['idx']['total'] = 0;
if ($this->_sections['idx']['show']):

            for ($this->_sections['idx']['index'] = $this->_sections['idx']['start'], $this->_sections['idx']['iteration'] = 1;
                 $this->_sections['idx']['iteration'] <= $this->_sections['idx']['total'];
                 $this->_sections['idx']['index'] += $this->_sections['idx']['step'], $this->_sections['idx']['iteration']++):
$this->_sections['idx']['rownum'] = $this->_sections['idx']['iteration'];
$this->_sections['idx']['index_prev'] = $this->_sections['idx']['index'] - $this->_sections['idx']['step'];
$this->_sections['idx']['index_next'] = $this->_sections['idx']['index'] + $this->_sections['idx']['step'];
$this->_sections['idx']['first']      = ($this->_sections['idx']['iteration'] == 1);
$this->_sections['idx']['last']       = ($this->_sections['idx']['iteration'] == $this->_sections['idx']['total']);
?>
								<input type="checkbox" name="Group_Chk" value="<?php echo $this->_tpl_vars['Group_Data'][$this->_sections['idx']['index']][0]; ?>
" <?php echo $this->_tpl_vars['Group_Data'][$this->_sections['idx']['index']][2]; ?>
><FONT size=2><?php echo $this->_tpl_vars['Group_Data'][$this->_sections['idx']['index']][1]; ?>
</FONT><BR>
						<?php endfor; endif; ?>
					</TD>
				</TR>
				<tr bgcolor="#ffffff">
					<td valign="top" bgcolor="#FFCC99" rowspan="5"><B><FONT size="2">住 所</FONT></B></TD>
					<td><input type="text" maxlength="7" size="10" value="<?php echo $this->_tpl_vars['yubin_no']; ?>
" name="yubin_no"></td>
				</tr>
				<tr bgcolor="#ffffff">
					<td><select name="address1"><?php echo $this->_tpl_vars['Pref_Data']; ?>
</select></td>
				</tr>
				<tr bgcolor="#ffffff">
					<td><input maxlength="10" size="23" value="<?php echo $this->_tpl_vars['addr_city']; ?>
" name="address2"><B><FONT size="2">(市区郡)</FONT></B></TD>
				</tr>
				<tr bgcolor="#ffffff">
					<td><input maxlength="20" size="46" value="<?php echo $this->_tpl_vars['addr_banti']; ?>
" name="address3"><B><FONT size="2">(町名、番地)</FONT></B></TD>
				</tr>
				<tr bgcolor="#ffffff">
					<td><input maxlength="20" size="46" value="<?php echo $this->_tpl_vars['addr_apart']; ?>
" name="address4"><B><FONT size="2">(マンション・アパート名)</FONT></B></TD>
				</tr>
				<tr bgcolor="#ffffff">
					<td bgcolor="#FFCC99"><B><FONT size="2">自宅電話番号</FONT></B></td>
					<td><input maxlength="12" size="20" value="<?php echo $this->_tpl_vars['tel_no']; ?>
" name="tel_no"></td>
				</tr>
				<tr bgcolor="#ffffff">
					<td bgcolor="#FFCC99"><B><FONT size="2">携帯電話番号</FONT></B></TD>
					<td><input maxlength="13" size="20" value="<?php echo $this->_tpl_vars['keitai_no']; ?>
" name="keitai_no"></td>
				</tr>
				<tr bgcolor="#ffffff">
					<td bgcolor="#FFCC99"><B><FONT size="2">メモ</FONT></B></TD>
					<td><TEXTAREA name=biko rows=5 cols=50 ><?php echo $this->_tpl_vars['biko']; ?>
</TEXTAREA></td>
				</tr>
				<tr bgcolor="#ffffff">
					<td bgcolor="#FFCC99"><B><FONT size="2">会社名</FONT></B></TD>
					<td><input maxlength="50" size="51" value="<?php echo $this->_tpl_vars['syamei']; ?>
" name="syamei"></TD>
				</tr>
				<tr bgcolor="#ffffff">
					<td bgcolor="#FFCC99"><B><FONT size="2">携帯メールアドレス</FONT></B></TD>
					<td>
						<input maxlength="50" size="27" value="<?php echo $this->_tpl_vars['mb_mail'][0]; ?>
" name="email1">@
						<select name="email2" onChange="txt_change();"><?php echo $this->_tpl_vars['Domain_Data']; ?>
</select>
						<input maxlength="50" size="15" value="<?php echo $this->_tpl_vars['mb_mail'][1]; ?>
" name="email2_2">
					</td>
				</tr>
				<tr bgcolor="#ffffff">
					<td bgcolor="#FFCC99"><B><FONT size="2">PCメールアドレス</FONT></B></TD>
					<td><input maxlength="50" size="27" value="<?php echo $this->_tpl_vars['pc_mail'][0]; ?>
" name="pcemail1">@<input maxlength="45" size="27" value="<?php echo $this->_tpl_vars['pc_mail'][1]; ?>
" name="pcemail2"></td>
				</tr>
			</TABLE>
			<TABLE border="0" width="544">
				<TR>
					<TD width="544">
						<FONT size="2" color=#FF0000><B>※携帯電話で「ドメイン指定受信機能」、「なりすましメール拒否機能」等を<BR> 設定している場合、メールはブロックされてしまう場合があります。<BR>
						 管理者のメールアドレスは、携帯電話側で受信可能ドメインとして指定して<BR> おくようにしてください。</B>
						</FONT>
					</TD>
				</TR>
			</TABLE>
			<TABLE border="0">
				<TR><TD colspan="2"></TD></TR>
				<?php if ($this->_tpl_vars['syain_cd'] == ""): ?>
						<TR>
							<TD width="360"><FONT size="2"><B>情報を登録する場合はこのボタンを押してください→</B></FONT></TD>
							<TD align="center"><INPUT type="button" name="btnSinki" onclick="return Data_Touroku('1');" value=" 登 録 " ></TD>
						</TR>
				<?php else: ?>
						<TR>
							<TD width="360"><FONT size="2"><B>情報を更新する場合はこのボタンを押してください→</B></FONT></TD>
							<TD align="center"><INPUT type="button" name="btnUpdate" onclick="return Data_Touroku('2');" value=" 更 新 " ></TD>
						</TR>
						<TR>
							<TD width="360"><FONT size="2"><B>情報を削除する場合はこのボタンを押してください→</B></FONT></TD>
							<TD align="center"><INPUT type="button" name="btnDelete" onClick="Data_Delete();" value=" 削 除 "></TD>
						</TR>
				<?php endif; ?>
			</TABLE>
		<TD>
	<TR>
</TABLE>
<input type="hidden" name="pMode" value="">
<INPUT TYPE="hidden" NAME="syain_cd" VALUE="<?php echo $this->_tpl_vars['syain_cd']; ?>
">
<input type="hidden" name="Group_Data" value="">
<input type="hidden" name="Kanri_Flg" value="<?php echo $this->_tpl_vars['Kanri_Flg']; ?>
">
<!-- フッター表示 -->
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'footer.tpl', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
</FORM>
</BODY>
</HTML>