main_menu_h.tpl 3.84 KB
<!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=shift_jis">
<META http-equiv="Content-Style-Type" content="text/css">
<link rel="stylesheet" type="text/css" href="./css/style.css">
<link rel="stylesheet" type="text/css" href="./css/{$color_css}" />
<TITLE>e-イベント管理メニュー</TITLE>
<SCRIPT LANGUAGE="JavaScript" type="text/javascript">
{literal}
<!--
function GmDisp(){
	document.cldr.action = "main_menu.php";
	document.cldr.method="POST";
	document.cldr.submit();
	return;
}

function reload(strDate){
	document.cldr.strMainDate.value=strDate;
	document.cldr.action = "main_menu.php";
	document.cldr.method="POST";
	document.cldr.submit();
	return;
}

function event_input(strDate){
	document.cldr.hiduke.value=strDate;
	document.cldr.action = "evententry.php";
	document.cldr.method="POST";
	document.cldr.submit();
	return;

}

function Move_Menu(pSts){
	document.cldr.syori.value = pSts;
	document.cldr.action = "adminimenu.php";
	document.cldr.method = "POST";
	document.cldr.submit();
	return;
}

function Move_layout(){
	document.cldr.action = "layout_make.php";
	document.cldr.method = "POST";
	document.cldr.submit();
	return;
}


function Move_LogOut(){
	document.cldr.action = "login.php";
	document.cldr.method="POST";
	document.cldr.submit();
	return;
}

var message = new Array();

//**************** ポップアップガイダンス ****************
var layW = 250; 	//ウインドウの幅:IE用

function Init() {
	scrX = document.body.clientWidth;
	scrY = document.body.clientHeight;
	lay = document.all("iL");
	lay.style.visibility = "hidden";
	Lflag = true;
}

function Mover(Disp_Cnt) {
	//alert(document.getElementById("HidMsg"+Disp_Cnt).value);
	if (Lflag) {
		//alert(document.getElementById("HidMsg"+Disp_Cnt).value);
		if (document.getElementById("HidMsg"+Disp_Cnt).value != "") {
			layW = Get_Width(document.getElementById("HidMsg"+Disp_Cnt).value);

			Select_visibility(0);
			lay.innerHTML = document.getElementById("HidMsg"+Disp_Cnt).value;
			lay.style.left = layX;
			lay.style.top = layY;
			lay.style.width = layW;
			layH = lay.style.height;
			lay.style.visibility = "visible";
		}
	}
}

function Get_Width(pMsg) {
  var retWidth = "";

  pMsg = pMsg.replace(/\r\n|\r|\n/g, "<br />")
  var chkArr = pMsg.split("<br />");
  var LenMax = 0;
  for (i = 0; i <= chkArr.length - 1; i++) {
    var ix_str, strcnt = 0;
    for (ix_str = 0; ix_str < chkArr[i].length; ix_str++) {
      if (escape(chkArr[i].charAt(ix_str)).length >= 4) strcnt += 2;
      else strcnt++;
    }
    if (LenMax < strcnt) {
      LenMax = strcnt;
    }
  }
  //alert(LenMax);
  if (LenMax <= 50) {
    retWidth = 250;
  } else {
    retWidth = (LenMax / 2) * 10;
  }

  return retWidth;
}

function Select_visibility(flg) {
  var MaxCount = document.cldr.getElementsByTagName("select").length;
  for (i = 0; i < MaxCount; i++) {
    if (flg == 0) {
      document.cldr.getElementsByTagName("select")[i].style.visibility = "hidden";
    } else {
      document.cldr.getElementsByTagName("select")[i].style.visibility = "";
    }
  }
}

var scrX, scrY;
var layX, layY, layH;
var lay;
var Lflag = false;

document.onmousemove = Mmove;

function Mout(n) {
  if (Lflag) {
    lay.style.visibility = "hidden";
    Select_visibility(1);
  }
}

function Mmove(e) {
  if (Lflag) {
    layX = 10 + window.event.clientX + document.body.scrollLeft + "px";
    layY = 10 + window.event.clientY + document.body.scrollTop + "px";
    if ((layX + layW) >= scrX) {
      layX = scrX - layW - 1;
      if (layX <= 1) {
        layX = 1;
      }
    }
    if ((layY + layH) >= scrY) {
      layY = scrY - layH - 1;
      if (layY <= 1) {
        layY = 1;
      }
    }
  }
}

//-->
{/literal}
</SCRIPT>
</HEAD>
<BODY onload="javascript:Init();">
<div align="center">
<FORM METHOD="POST" name="cldr">