SIM0950.tpl 6.25 KB
<html>
<head>
<meta http-equiv="content-type" content="text/html; cahrset=euc-jp">
<meta http-equiv="content-style-type" content="text/css">
<meta name="robots" content="noindex, nofollow">
{literal}
<script language="javascript">
<!--
function syain_chk(){
	if ( (document.frm.lstMember.selectedIndex == -1) || (document.frm.lstMember.value == "") ) {
		return false;
	}
}

var SFlg = false;					//サブミットフラグを定義
function DoubleSubmit(){			//ダブルサブミットチェック関数
	if (SFlg){						//ダブルサブミットの場合
		alert("応答中です");		//メッセージを出力
		return false;
	}
	SFlg = true;					//サブミットフラグを設定
	return true;					//戻り値を設定
}

function sinki(){
	if (DoubleSubmit()) {
		document.frm.mode.value="add";
		document.frm.action = "SIM0951.php";
		document.frm.method = "POST";
		document.frm.submit();
	}
}

function edit(){

var selno = 0;

	if (syain_chk() == false) {
		document.frm.lstMember.focus();
		return false;
	}
	if (DoubleSubmit()) {

		//seq取得
		document.frm.uSeq.value = document.frm.lstMember.value;

		//名前取得
		selno = document.frm.lstMember.options.selectedIndex;
		document.frm.uName.value = document.frm.lstMember.options[selno].text;

		document.frm.mode.value="edt";
		
		document.frm.action = "SIM0951.php";
		document.frm.method="POST";
		document.frm.submit();
	}
}

function del_chk(loginname){

var selno = 0;

	//ユーザの選択チェック
	if (syain_chk() == false) {
		document.frm.lstMember.focus();
		return false;
	}

	if (DoubleSubmit()) {

		//seq取得
		document.frm.uSeq.value = document.frm.lstMember.value;
	
		//名前取得
		selno = document.frm.lstMember.options.selectedIndex;
		document.frm.uName.value = document.frm.lstMember.options[selno].text;

		//自分の削除は不可
		if (document.frm.uName.value == loginname) {
			alert ("自分は削除できません");
			document.frm.lstMember.focus();
			return false;
		}

		//ユーザの削除確認
		if(confirm(document.frm.uName.value+'を削除します')){
			document.frm.mode.value="del";
			document.frm.action = "SIM0952.php";
			document.frm.method = "POST";
			document.frm.submit();
		}else{
			return false;
		}
	}

}

function up(){

var selno = 0;

	if (document.frm.lstMember.options.selectedIndex != 0){
		if (syain_chk() == false) {
			document.frm.lstMember.focus();
			return false;
		}
		if (DoubleSubmit()) {
			document.frm.uSeq.value = document.frm.lstMember.value;
	
			selno = document.frm.lstMember.options.selectedIndex;
			document.frm.uName.value = document.frm.lstMember.options[selno].text;
	
			document.frm.mode.value="up";
			document.frm.idx.value = eval(document.frm.idx.value) -1;

			document.frm.action = "SIM0952.php";
			document.frm.method = "POST";
			document.frm.submit();
		}
	}
}

function down(){

var selno = 0;

	if ( document.frm.lstMember.options.length-1
			> document.frm.lstMember.options.selectedIndex){
		if (syain_chk() == false) {
			document.frm.lstMember.focus();
			return false;
		}
		if (DoubleSubmit()) {
	
			document.frm.uSeq.value = document.frm.lstMember.value;
	
			selno = document.frm.lstMember.options.selectedIndex;
			document.frm.uName.value = document.frm.lstMember.options[selno].text;
	
			document.frm.mode.value = "down";
			document.frm.idx.value = eval(document.frm.idx.value) +1;

			document.frm.action = "SIM0952.php";
			document.frm.method = "POST";
			document.frm.submit();
		}
	}
}

function backmenu(){
	location.href = "SIM0100.php";
}

function getindex(){
	document.frm.idx.value = document.frm.lstMember.options.selectedIndex;
}
-->
</script>
{/literal}
<title>{$PHP_SYSNAME}</title>
<link rel="stylesheet" href="./templates/SIM.css" type="text/css" />
</head>

<body>
<form name="frm">
<div class="LoginBody">

	<div class="LoginHeader">
		<img src="./templates/img/logo.gif" alt="{$PHP_SYSNAME}" border="0">
	</div>
	<div class="MenuUserinfo">
		<span class="NameText">{$PHP_GROUP_NAME} / {$PHP_BUMON_NAME} / {$PHP_USER_NAME}</span>
		<span class="LinkText">
			<a href = "./help/HELP0950.html" target="_blank">ヘルプ</a> / 
			<a href = "SIM9999.php">ログアウト</a>
		</span>
	</div>
	<div class="ConfOutline">
		<div class="ConfTitle">
			メンバー設定画面
		</div>
		<div class="ConfMain">
		<!--{if $PHP_USER_ADMIN == 1 || $PHP_USER_ADMIN == 99}-->
			<!--{if $msg != ""}-->
			<table class="NoLineTab">
				<tr>
					<td class="SimRedBoldTd">
						{$msg}
					</td>
				</TR>
			</table>
			<!--{/if}-->
			<table class="NoLineTab">
				<tr>
					<td>
						 <input type="button" class="SimOkButton" onclick="sinki();" value="新規作成">
						   <input type="button" class="SimCancelButton" value="メニューへ" onclick="location.href='SIM0100.php'">
					</td>
				</TR>
			</table>
			<br>
			<table class="NoLineTab">
				<tr>
					<td>現在のご登録人数</td>
					<td align="center">
						{$iUserCnt}人
					</td>
				</TR>
			</table>
			<br>
			<table class="NoLineTab">
				<tr>
					<TD>
						<SELECT size="10" name="lstMember" onchange="getindex();">
							{$UserItem}
						</SELECT>
					</TD>
					<TD>
						<input type="button" class="SimCancelButton" onclick="up();" value="表示順位を上へ移動">
						<br><br><br><br>
						<input type="button" class="SimCancelButton" onclick="down();" value="表示順位を下へ移動">
					</TD>
				</tr>
			</table>
			<br>
			<table class="NoLineTab">
				<TR>
					<TD align="center">
						 <input type="button" class="SimOkButton" onclick="edit();" value=" 修正 ">  
						<input type="button" class="SimOkButton" onclick="del_chk('{$PHP_USER_NAME}');" value=" 削除 ">  
						<INPUT type="button" class="SimCancelButton" onclick="backmenu();" value=" 戻る " name="modoru">
					</TD>
				</TR>
			</table>
			<input type="hidden" name="mode" value="">
			<input type="hidden" name="uSeq" value="">
			<input type="hidden" name="uName" value="">
			<input type="hidden" name="idx" value="{$idx}">
		<!--{else}-->
			<a href="SIM0100.php"><span class="Normalfont">マスタ変更権限がありません</span></a>
		<!--{/if}-->
		</div>
	</div>
	<div class="MenuUserinfo">
		<span class="NameText"></span>
		<span class="LinkText">
			<a href = "{$DEFARR[1]}" target="_blank">ホームページへ</a>
		</span>
	</div>
	<div class="LoginFooter">
		<a href="{$DEFARR[3]}" target="_blank" title="メディアテック(株)ホームページへ">&#169; Copyright2006-2009 All rights reserved by  Mediatech. Co., Ltd.</a>
	</div>
</div>

</form>
</body>
</html>