LIN002.php 2.79 KB
<?php 
//*****************************************************************************
//* 
//* プログラム名:リンク集カテゴリ入力画面(新規・修正併用)
//* プログラムID:LIN002.php
//* 機能        :リンク集カテゴリを入力する
//* 作成者      :K.Yoshimura
//* 
//*****************************************************************************

header("Content-type: text/html; charset=EUC-JP");
include("include/session_start.inc");
include("include/SessionChk.inc");
$strDBinc="include/dbcon.inc";
include($strDBinc);


?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=EUC-JP">
<META http-equiv="Content-Style-Type" content="text/css">
<link rel="stylesheet" type="text/css" href="basefont.css">
<TITLE>e-グル リンク集</TITLE>
<?php 
include("include/input_chk.inc");
include("include/LIN002.inc");
?>

</HEAD>
<BODY>
<?php 
	//**** メニュー ****//
	include("include/menu.inc");

?>
<form name="e_gru">
<?php 
if ($seq_mst != ""){

	$strSQL="Select category_name From mst_link " .
						"Where seq=$seq_mst ";

		//echo("strSQL[" . $strSQL . "]<BR>");	

	$objRecSet = pg_exec($strSQL);

	if($objRecSet==false){
			echo("SQL実行に失敗しました(SELECT)");
			exit;
	}

	$objData = pg_fetch_object($objRecSet,0);

	$category_name=$objData->category_name;


}


?>
<br>

<br>
<span class="Chufont"></span><span class="Normalfont">は入力必須項目です</span>
<table width="402" border="0" cellspacing="1" cellpadding="1" class="mainColor">
	<tr><td>
	<table cellspacing="1" cellpadding="1" width="400" border="0">
		<TR bgcolor="#ffffff">
			<TD class="toneDown"><span class="Normalfont">カテゴリ名</span><span class="Chufont"></span></TD>
			<TD><input type="text" maxLength="20" size="50" value="<?php echo $category_name?>" name="category_name"></TD>
		</TR>
	</table>
	</td></tr>
</table>
<?php 
if ($seq_mst != ""){
?>
	<table width="402" border="0" cellspacing="0" cellpadding="0">
		<TR>
		<TD height="40" width="402" align="center"><INPUT type="button"  onclick="return chk();" value=" 修 正 " name="set"><INPUT type="button"  onclick="return linkmst_del();" value=" 削 除 " name="set"><input type="button" value=" 戻 る " name="meetrtn" onClick="location.href='LIN001.php';"></TD>
		</TR>
	</table>
	<INPUT TYPE="hidden" NAME="seq_mst" VALUE="<?php  echo $seq_mst ?>">
<?php 
}else{
?>
	<table width="402" border="0" cellspacing="0" cellpadding="0">
		<TR>
		<TD height="40" width="402" align="center"><INPUT type="button"  onclick="return chk();" value=" 登 録 " name="set"><input type="button" value=" 戻 る " name="meetrtn" onClick=onClick="location.href='LIN001.php';"></TD>
		</TR>
	</table>
<?php 
}
?>


<BR>
<HR width="100%">
<?php 
//コピーライト
include("include/copyright.inc");
?>
<INPUT TYPE="hidden" NAME="kind_flg" VALUE="1">
</form>
</BODY>
</HTML>