Commit 93d7800b6de9e30f44497cb15efa40d6cf3f5b22

Authored by 山上
0 parents

移行前EグルPro管理

  1 +php_flag register_globals On
\ No newline at end of file
... ...
  1 +<?php
  2 +phpinfo();
  3 +?>
... ...
  1 +<?php
  2 +header("Content-type: text/html; charset=EUC-JP");
  3 +
  4 +//セッション開始
  5 +require_once("./include/session_start.inc");
  6 +
  7 +include("./include/dbcon_group.inc");
  8 +$strSQL = "select ";
  9 +$strSQL .= "mst_group.group_id,";
  10 +$strSQL .= "mst_group.group_pass,";
  11 +$strSQL .= "mst_group.db_name,";
  12 +$strSQL .= "mst_group.folder_name,";
  13 +$strSQL .= "mst_group.group_name,";
  14 +$strSQL .= "mst_group.mode_flg,";
  15 +$strSQL .= "mst_group.mobile_flg,";
  16 +$strSQL .= "max_count,";
  17 +$strSQL .= "max_size ,";
  18 +$strSQL .= "stop_flg ,";
  19 +$strSQL .= "cont_end_date ,";
  20 +$strSQL .= "cont_memo ";
  21 +$strSQL .= "from mst_group,maxuser_tbl ";
  22 +$strSQL .= "WHERE mst_group.folder_name=maxuser_tbl.group_id ";
  23 +$strSQL .= "AND mst_group.group_id='$key_name'";
  24 +$objRec = pg_exec($strSQL);
  25 +$objfetch = pg_fetch_object($objRec, 0);
  26 +$group_id = $objfetch->group_id;
  27 +$group_pass = $objfetch->group_pass;
  28 +$db_name = $objfetch->db_name;
  29 +$folder_name = $objfetch->folder_name;
  30 +$group_name = $objfetch->group_name;
  31 +$mode_flg = $objfetch->mode_flg;
  32 +$mobile_flg = $objfetch->mobile_flg;
  33 +$max_count = $objfetch->max_count;
  34 +$max_size = $objfetch->max_size;
  35 +$stop_flg = $objfetch->stop_flg;
  36 +$cont_end_date = $objfetch->cont_end_date;
  37 +$cont_memo = $objfetch->cont_memo;
  38 +
  39 +
  40 +
  41 +$strSQL = "select *";
  42 +$strSQL .= "from mst_keiyaku ";
  43 +$strSQL .= "WHERE group_id='$folder_name'";
  44 +$objRec = pg_exec($strSQL);
  45 +if (pg_numrows($objRec)>0){
  46 + $objfetch = pg_fetch_object($objRec, 0);
  47 + $keiyaku_date = $objfetch->keiyaku_date;
  48 + $keiyaku_plan = $objfetch->keiyaku_plan;
  49 + $pay_plan = $objfetch->pay_plan;
  50 + $keizoku_nm = $objfetch->keizoku_nm;
  51 + $pay_date = $objfetch->pay_date;
  52 +}
  53 +
  54 +?>
  55 +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  56 +<HTML>
  57 +<HEAD>
  58 +<meta http-equiv="Content-Type" content="text/html; charset=EUC-JP">
  59 +<meta http-equiv="Content-Style-Type" content="text/css">
  60 +<link rel="stylesheet" type="text/css" href="basefont.css">
  61 +<TITLE>E-グルPro 超管理画面</TITLE>
  62 +<script language="JavaScript" type="text/JavaScript">
  63 +<!--
  64 +function Touroku(intSts){
  65 + document.frm.intSts.value=intSts;
  66 + document.frm.action = "detail_reg.php";
  67 + document.frm.method = "POST";
  68 + document.frm.submit();
  69 +}
  70 +//-->
  71 +</script>
  72 +
  73 +</HEAD>
  74 +<body>
  75 +<form name="frm">
  76 +■管理情報
  77 +<br>
  78 +<table border="0">
  79 + <tr>
  80 + <td>グループID:</td>
  81 + <td><input type="text" name="group_id" value="<?php echo $group_id; ?>"></td>
  82 + </tr>
  83 + <tr>
  84 + <td>グループPW:</td>
  85 + <td><input type="text" name="group_pass" value="<?php echo $group_pass; ?>"></td>
  86 + </tr>
  87 + <tr>
  88 + <td>DB名:</td>
  89 + <td><input type="text" name="db_name" value="<?php echo $db_name; ?>"></td>
  90 + </tr>
  91 + <tr>
  92 + <td>フォルダ名:</td>
  93 + <td><input type="text" name="folder_name" value="<?php echo $folder_name; ?>"></td>
  94 + </tr>
  95 + <tr>
  96 + <td>グループ名:</td>
  97 + <td><input type="text" name="group_name" value="<?php echo $group_name; ?>"></td>
  98 + </tr>
  99 + <tr>
  100 + <td>モード:</td>
  101 + <td><input type="text" name="mode_flg" value="<?php echo $mode_flg; ?>">(0:有料版)</td>
  102 + </tr>
  103 + <tr>
  104 + <td>携帯利用可否:</td>
  105 + <td><input type="text" name="mobile_flg" value="<?php echo $mobile_flg; ?>">(1:利用しない,2:退会)</td>
  106 + </tr>
  107 + <tr>
  108 + <td>利用人数:</td>
  109 + <td><input type="text" name="max_count" value="<?php echo $max_count; ?>"></td>
  110 + </tr>
  111 + <tr>
  112 + <td>最大容量:</td>
  113 + <td><input type="text" name="max_size" value="<?php echo $max_size; ?>"> MB</td>
  114 + </tr>
  115 + <tr>
  116 + <td>利用停止フラグ:</td>
  117 + <td><input type="text" name="stop_flg" value="<?php echo $stop_flg; ?>"> (0:利用中、1:強制停止)</td>
  118 + </tr>
  119 + <tr>
  120 + <td>契約終了日:</td>
  121 + <td><input type="text" name="cont_end_date" value="<?php echo $cont_end_date; ?>"></td>
  122 + </tr>
  123 + <tr>
  124 + <td>メモ:</td>
  125 + <td><TEXTAREA name="cont_memo" rows=3 cols=20><?php echo $cont_memo; ?></TEXTAREA></td>
  126 + </tr>
  127 +</table>
  128 +<input type="button" value="登録実行!!" onclick="Touroku(1);">
  129 +<hr>
  130 +■契約情報
  131 +<br>
  132 +<table border="0">
  133 + <tr>
  134 + <td>契約日</td>
  135 + <td><input type="text" name="keiyaku_date" value="<?php echo $keiyaku_date; ?>"></td>
  136 + </tr>
  137 + <tr>
  138 + <td>契約プラン</td>
  139 + <td><input type="text" name="keiyaku_plan" value="<?php echo $keiyaku_plan; ?>">(0:フル、1:個別)</td>
  140 + </tr>
  141 + <tr>
  142 + <td>支払いプラン</td>
  143 + <td><input type="text" name="pay_plan" value="<?php echo $pay_plan; ?>">(0:半年払い、1:月払い)</td>
  144 + </tr>
  145 + <tr>
  146 + <td>更新回数</td>
  147 + <td><input type="text" name="keizoku_nm" value="<?php echo $keizoku_nm; ?>"></td>
  148 + </tr>
  149 + <tr>
  150 + <td>次回支払日</td>
  151 + <td><input type="text" name="pay_date" value="<?php echo $pay_date; ?>"></td>
  152 + </tr>
  153 +</table>
  154 +<input type="button" value="登録実行!!" onclick="Touroku(1);">
  155 +<hr>
  156 +■メニュー選択(オリジナル名で表示してます)
  157 +<br>
  158 +<table border="0">
  159 + <tr>
  160 + <td></td>
  161 + <td></td>
  162 + <td>削除</td>
  163 + </tr>
  164 +<?php
  165 +//メニューテンプレ取得
  166 +/*
  167 +if( !$pg_con=pg_connect("host=localhost dbname=org_e-gru_pro_master user=pgsqladmin password=pgsqladmin") ) {
  168 + print "Error : connect to localhost<br>";
  169 + exit;
  170 +}
  171 +$strSQL = "select main_menu_tbl.index_no as mainindex, main_menu_tbl.name, main_menu_tbl.org_name as mainname, main_menu_tbl.sub_menu_num, main_menu_tbl.disp_flg, ";
  172 +$strSQL .= "sub_menu_tbl.main_index, sub_menu_tbl.index_no as subindex, sub_menu_tbl.name, sub_menu_tbl.org_name as subname, sub_menu_tbl.url, sub_menu_tbl.img, sub_menu_tbl.disp_flg ";
  173 +$strSQL .= "from main_menu_tbl join sub_menu_tbl on sub_menu_tbl.main_index = main_menu_tbl.index_no ";
  174 +$strSQL .= "order by main_menu_tbl.index_no, sub_menu_tbl.index_no";
  175 +$objRec = pg_exec($strSQL);
  176 +for ($i=0; $i < pg_numrows($objRec); $i++){
  177 + $objfetch = pg_fetch_object($objRec, $i);
  178 +?>
  179 + <tr>
  180 + <td><?php echo $objfetch->mainname; ?></td>
  181 + <td><?php echo $objfetch->subname; ?></td>
  182 + <td><input type="checkbox" name="menu_del[]" value="<?php echo $objfetch->main_index; ?>/<?php echo $objfetch->subindex; ?>"></td>
  183 + </tr>
  184 +<?php
  185 +}
  186 +*/
  187 +?>
  188 +</table>
  189 +<input type="button" value="登録実行!!" onclick="Touroku(2);">
  190 +<input type="hidden" name="intSts" value="">
  191 +<input type="hidden" name="key_name" value="<?php echo $key_name;?>">
  192 +</form>
  193 +</body>
  194 +</HTML>
\ No newline at end of file
... ...
  1 +<?php
  2 +
  3 +header("Content-type: text/html; charset=EUC-JP");
  4 +
  5 + switch ($intSts) {
  6 + case "1":
  7 +
  8 + include("./include/dbcon_group.inc");
  9 +
  10 + $strSQL ="UPDATE ";
  11 + $strSQL .=" mst_group ";
  12 + $strSQL .="SET ";
  13 + $strSQL .=" group_id = '$group_id' ,";
  14 + $strSQL .=" group_pass = '$group_pass' ,";
  15 + $strSQL .=" db_name = '$db_name' ,";
  16 + $strSQL .=" folder_name = '$folder_name' ,";
  17 + $strSQL .=" group_name = '$group_name' ,";
  18 + $strSQL .=" mode_flg = ".(int)$mode_flg." ,";
  19 + $strSQL .=" mobile_flg = ".(int)$mobile_flg." ,";
  20 + $strSQL .=" stop_flg =".(int)$_POST["stop_flg"]." ,";
  21 + $strSQL .=" cont_end_date = '".$_POST["cont_end_date"]."',";
  22 + $strSQL .=" cont_memo = '".$_POST["cont_memo"]."' ";
  23 + $strSQL .="WHERE ";
  24 + $strSQL .=" group_id='$key_name'";
  25 + echo $strSQL."<hr>";
  26 + $objRec = pg_exec($strSQL);
  27 + //exit;
  28 +
  29 + $strSQL="UPDATE maxuser_tbl SET ";
  30 + $strSQL.="max_count =".(int)$max_count.",";
  31 + $strSQL.="max_size =".(int)$max_size." ";
  32 + $strSQL.="WHERE group_id='$folder_name'";
  33 + echo $strSQL."<hr>";
  34 + $objRec = pg_exec($strSQL);
  35 +
  36 + //契約情報
  37 + $strSQL = "DELETE FROM mst_keiyaku WHERE group_id='".$folder_name."'";
  38 + $objRec = pg_exec($strSQL);
  39 + if($objRec==false){
  40 + echo("SQL実行に失敗しました(Delete)");
  41 + exit;
  42 + }
  43 + $strSQLIns = "Insert Into mst_keiyaku ";
  44 + $strSQLIns .= "(group_id,keiyaku_date,keiyaku_plan,pay_plan,keizoku_nm,pay_date)";
  45 + $strSQLIns .= " VALUES ";
  46 + $strSQLIns .= "('".$folder_name."',";
  47 + $strSQLIns .= "'".$keiyaku_date."',";
  48 + $strSQLIns .= "'".$keiyaku_plan."',";
  49 + $strSQLIns .= "'".$pay_plan."',";
  50 + $strSQLIns .= "'".$keizoku_nm."',";
  51 + $strSQLIns .= "'".$pay_date."')";
  52 + $objRecIns = pg_exec($strSQLIns);
  53 +
  54 + break;
  55 +
  56 + case "2":
  57 +
  58 + break;
  59 + }
  60 +
  61 + header("Location:list.php");
  62 +?>
... ...
  1 +<Files ~ "\.inc$">
  2 + deny from all
  3 +</Files>
... ...
  1 +<?php
  2 +//*****************************************************************************
  3 +//*
  4 +//* プログラム名:DataBase Connection
  5 +//* プログラムID:dbcon.inc
  6 +//* 機能 :PostgreSQLに接続する
  7 +//* 作成者 :K.Yoshimura
  8 +//*
  9 +//*****************************************************************************
  10 +include("session_start.inc");
  11 +
  12 + $hostname="localhost";
  13 +// $database="e-gru_pro_test";
  14 +// $database=$PHP_DB_NAME;
  15 +
  16 + //if( !$pg_con=pg_connect("host=$hostname port=5432 dbname=$database user=pgsqladmin password=pgsqladmin ") ) {
  17 + if( !$pg_con=pg_connect("host=$hostname dbname=$database user=pgsqladmin password=pgsqladmin") ) {
  18 +
  19 + print "Error : connect to ${hostname}<br>";
  20 + exit;
  21 + }
  22 +
  23 +?>
... ...
  1 +<?php
  2 +//*****************************************************************************
  3 +//*
  4 +//* プログラム名:DataBase Connection
  5 +//* プログラムID:dbcon.inc
  6 +//* 機能 :PostgreSQLに接続する
  7 +//* 作成者 :K.Yoshimura
  8 +//*
  9 +//*****************************************************************************
  10 +
  11 + $hostname="localhost";
  12 + $database="e-gruPro_admin";
  13 +
  14 + //if( !$pg_con=pg_connect("host=$hostname dbname=e-gruPro_admin user=nobody") ) {
  15 + if( !$pg_con=pg_connect("host=$hostname dbname=$database user=pgsqladmin password=pgsqladmin") ) {
  16 + print "Error : connect to ${hostname}<br>";
  17 + exit;
  18 + }
  19 +?>
... ...
  1 +<?php
  2 +//******************************************************************************
  3 +//* セッションスタート処理
  4 +//*
  5 +//* セッション変数
  6 +//*
  7 +//* これらのセッション変数を作成しておく
  8 +//******************************************************************************
  9 +
  10 +session_cache_limiter('private must-revalidate');
  11 +$cache_limiter = session_cache_limiter();
  12 +session_cache_expire (30);
  13 +$cache_expire = session_cache_expire();
  14 +
  15 +session_start();
  16 +
  17 +//セッションチェック
  18 +if($PHP_STS != "LOGIN"){
  19 + header("Location:mtc_login.php");
  20 + exit;
  21 +}
  22 +
  23 +?>
... ...
  1 +<?php
  2 +header("Content-type: text/html; charset=EUC-JP");
  3 +
  4 +//セッション開始
  5 +require_once("./include/session_start.inc");
  6 +
  7 +
  8 +
  9 +
  10 +?>
  11 +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  12 +<HTML>
  13 +<HEAD>
  14 +<meta http-equiv="Content-Type" content="text/html; charset=EUC-JP">
  15 +<meta http-equiv="Content-Style-Type" content="text/css">
  16 +<link rel="stylesheet" type="text/css" href="basefont.css">
  17 +<TITLE>E-グルPro 超管理画面</TITLE>
  18 +</HEAD>
  19 +<body>
  20 +<form name="frm" method="post" action="kanri_reg.php">
  21 +■管理情報
  22 +<br>
  23 +<table border="0">
  24 + <tr>
  25 + <td>グループID:</td>
  26 + <td><input type="text" name="group_id"></td>
  27 + </tr>
  28 + <tr>
  29 + <td>グループPW:</td>
  30 + <td><input type="text" name="group_pass"></td>
  31 + </tr>
  32 + <tr>
  33 + <td>DB名:</td>
  34 + <td><input type="text" name="db_name"></td>
  35 + </tr>
  36 + <tr>
  37 + <td>フォルダ名:</td>
  38 + <td><input type="text" name="folder_name"></td>
  39 + </tr>
  40 + <tr>
  41 + <td>グループ名:</td>
  42 + <td><input type="text" name="group_name"></td>
  43 + </tr>
  44 + <tr>
  45 + <td>モード:</td>
  46 + <td><input type="text" name="mode_flg">(0:有料版)</td>
  47 + </tr>
  48 + <tr>
  49 + <td>携帯利用可否:</td>
  50 + <td><input type="text" name="mobile_flg">(1:利用しない)</td>
  51 + </tr>
  52 + <tr>
  53 + <td>利用人数:</td>
  54 + <td><input type="text" name="max_count"></td>
  55 + </tr>
  56 + <tr>
  57 + <td>最大容量:</td>
  58 + <td><input type="text" name="max_size"> MB</td>
  59 + </tr>
  60 +</table>
  61 +■契約情報
  62 +<br>
  63 +<table border="0">
  64 + <tr>
  65 + <td>契約日</td>
  66 + <td><input type="text" name="keiyaku_date" value="<?php echo $keiyaku_date; ?>"></td>
  67 + </tr>
  68 + <tr>
  69 + <td>契約プラン</td>
  70 + <td><input type="text" name="keiyaku_plan" value="<?php echo $keiyaku_plan; ?>">(0:フル、1:個別)</td>
  71 + </tr>
  72 + <tr>
  73 + <td>支払いプラン</td>
  74 + <td><input type="text" name="pay_plan" value="<?php echo $pay_plan; ?>">(0:半年払い、1:月払い)</td>
  75 + </tr>
  76 + <tr>
  77 + <td>更新回数</td>
  78 + <td><input type="text" name="keizoku_nm" value="<?php echo $keizoku_nm; ?>"></td>
  79 + </tr>
  80 + <tr>
  81 + <td>次回支払日</td>
  82 + <td><input type="text" name="pay_date" value="<?php echo $pay_date; ?>"></td>
  83 + </tr>
  84 +</table>
  85 +<input type="submit" value="登録実行!!">
  86 +</form>
  87 +</body>
  88 +</HTML>
\ No newline at end of file
... ...
  1 +<?php
  2 +header("Content-type: text/html; charset=EUC-JP");
  3 +
  4 +//セッション開始
  5 +include("./include/session_start.inc");
  6 +
  7 +//重複チェック
  8 +include("./include/dbcon_group.inc");
  9 +$strSQL = "select * from mst_group where db_name = '".$db_name."' or group_id = '".$group_id."' or folder_name = '".$folder_name."'";
  10 +$objRec = pg_exec($strSQL);
  11 +if(pg_numrows($objRec) > 0){
  12 + echo "グループID、フォルダ名、DB名のどれかが既に使われています";
  13 + exit;
  14 +}
  15 +
  16 +//管理テーブル
  17 +include("./include/dbcon_group.inc");
  18 +//ひっす
  19 +$strSQL = "insert into mst_group ";
  20 +$strSQL .= "(group_id, group_pass, db_name, folder_name, group_name, mode_flg, mobile_flg) ";
  21 +$strSQL .= "values('".$group_id."', '".$group_pass."', '".$db_name."', '".$folder_name."', '".$group_name."', ".$mode_flg.", ".$mobile_flg.") ";
  22 +$objRec = pg_exec($strSQL);
  23 +//まっくす
  24 +$strSQL = "insert into maxuser_tbl ";
  25 +$strSQL .= "(group_id, max_count, max_size) ";
  26 +$strSQL .= "values('".$folder_name."', ".$max_count.", ".$max_size.") ";
  27 +$objRec = pg_exec($strSQL);
  28 +
  29 +$strSQLIns = "Insert Into mst_keiyaku ";
  30 +$strSQLIns .= "(group_id,keiyaku_date,keiyaku_plan,pay_plan,keizoku_nm,pay_date)";
  31 +$strSQLIns .= " VALUES ";
  32 +$strSQLIns .= "('".$folder_name."',";
  33 +$strSQLIns .= "'".$keiyaku_date."',";
  34 +$strSQLIns .= "'".$keiyaku_plan."',";
  35 +$strSQLIns .= "'".$pay_plan."',";
  36 +$strSQLIns .= "'".$keizoku_nm."',";
  37 +$strSQLIns .= "'".$pay_date."')";
  38 +$objRecIns = pg_exec($strSQLIns);
  39 +
  40 +header("Location:main.php");
  41 +
  42 +?>
... ...
  1 +<?php
  2 +header("Content-type: text/html; charset=EUC-JP");
  3 +
  4 +//セッション開始
  5 +require_once("./include/session_start.inc");
  6 +
  7 +include("./include/dbcon_group.inc");
  8 +$strSQL = "SELECT";
  9 +$strSQL .= " mst_group.group_id, mst_group.group_pass, mst_group.db_name, mst_group.folder_name, mst_group.group_name, mst_group.mode_flg, mst_group.mobile_flg, ";
  10 +$strSQL .= " mst_group.stop_flg ,";
  11 +$strSQL .= " mst_group.cont_memo ,";
  12 +$strSQL .= " mst_group.cont_end_date,";
  13 +$strSQL .= " maxuser_tbl.max_count, maxuser_tbl.max_size ";
  14 +$strSQL .= "from mst_group ";
  15 +$strSQL .= "join maxuser_tbl on maxuser_tbl.group_id = mst_group.folder_name ";
  16 +$strSQL .= "order by ";
  17 +$strSQL .= " mst_group.stop_flg ASC , ";
  18 +$strSQL .= " (mst_group.cont_end_date is null) DESC, ";
  19 +$strSQL .= " mst_group.group_id ASC ";
  20 +$objRec = pg_exec($strSQL);
  21 +?>
  22 +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  23 +<HTML>
  24 +<HEAD>
  25 +<meta http-equiv="Content-Type" content="text/html; charset=EUC-JP">
  26 +<meta http-equiv="Content-Style-Type" content="text/css">
  27 +<link rel="stylesheet" type="text/css" href="basefont.css">
  28 +<TITLE>E-グルPro 超管理画面</TITLE>
  29 +<script language="javascript">
  30 +function move(prm){
  31 + document.frm.key_name.value=prm;
  32 + document.frm.action = "detail.php";
  33 + document.frm.method="POST"
  34 + document.frm.submit();
  35 +}
  36 +
  37 +function go_index(id,password){
  38 + document.frm.GroupID.value=id;
  39 + document.frm.GroupPW.value=password;
  40 + document.frm.action = "../e-gruPro/adm_index.php";
  41 + document.frm.target="_blank";
  42 + document.frm.method="POST";
  43 + document.frm.submit();
  44 +}
  45 +</script>
  46 +</HEAD>
  47 +<body>
  48 +<form name="frm" method="post">
  49 +<table border="1">
  50 +<?php
  51 +//MTC・OES・デモ・テストデータのID
  52 +$strTestID = "/media-tek/oes/demo/convart_test/araya_hoge/m-yanagibashi/";
  53 +//合計カウンタ(全データ)
  54 +$intUserTotal = 0;
  55 +$intSizeTotal = 0;
  56 +//合計カウンタ(特殊データ)
  57 +$intUserTotalTest = 0;
  58 +$intSizeTotalTest = 0;
  59 +$intTestNum = 0;
  60 +for ($i=0; $i < pg_numrows($objRec); $i++){
  61 + $objfetch = pg_fetch_object($objRec, $i);
  62 + if ($i % 10 == 0){
  63 +?>
  64 + <tr>
  65 + <td bgcolor="#FFA500">No.</td>
  66 + <td bgcolor="#FFA500">グループ名</td>
  67 + <td bgcolor="#FFA500">グループID</td>
  68 + <td bgcolor="#FFA500">グループPW</td>
  69 + <td bgcolor="#FFA500">フォルダ名</td>
  70 + <td bgcolor="#FFA500">DB名</td>
  71 + <td bgcolor="#FFA500">最大人数</td>
  72 + <td bgcolor="#FFA500">最大容量</td>
  73 + <td bgcolor="#FFA500">強制停止日</td>
  74 + </tr>
  75 +<?php
  76 + }
  77 + //背景色
  78 + if ($objfetch->stop_flg==1){
  79 + $strCOLOR="#FF0000";
  80 + }else if (strstr($objfetch->group_id,"停止")!=false){
  81 + $strCOLOR="#A9A9A9";
  82 + }else if (strstr($objfetch->group_id,"退会")!=false){
  83 + $strCOLOR="#A9A9A9";
  84 + }else if (strpos($strTestID, "/".$objfetch->group_id."/") === false){
  85 + //通常グループ
  86 + $strCOLOR="#FFFFFF";
  87 + }else{
  88 + //特殊グループ
  89 + $strCOLOR="#A9A9A9";
  90 + $intUserTotalTest += $objfetch->max_count;
  91 + $intSizeTotalTest += $objfetch->max_size;
  92 + $intTestNum++;
  93 + }
  94 +?>
  95 + <tr bgcolor="<?php echo $strCOLOR; ?>">
  96 + <td><?php echo $i+1; ?></td>
  97 + <td>
  98 + <a href="javascript:move('<?php echo $objfetch->group_id; ?>');"><?php echo $objfetch->group_name; ?></a>
  99 + <input name="button" type = "button" onclick="go_index('<?php echo $objfetch->group_id ?>','<?php echo $objfetch->group_pass; ?>')" value="Go">
  100 + </td>
  101 + <td><?php echo $objfetch->group_id; ?></td>
  102 + <td><?php echo $objfetch->group_pass; ?></td>
  103 + <td><?php echo $objfetch->folder_name; ?></td>
  104 + <td><?php echo $objfetch->db_name; ?></td>
  105 + <td><?php echo $objfetch->max_count; ?></td>
  106 + <td><?php echo $objfetch->max_size; ?></td>
  107 + <td><?php echo $objfetch->cont_end_date; ?>&nbsp;</td>
  108 + </tr>
  109 +<?php
  110 + $intUserTotal += $objfetch->max_count;
  111 + $intSizeTotal += $objfetch->max_size;
  112 +}
  113 +?>
  114 +</table>
  115 +<hr>
  116 +※※ 総計 ※※※※※※※※※※<br>
  117 +登録団体合計:<?php echo pg_numrows($objRec); ?> 団体<br>
  118 +最大人数合計:<?php echo $intUserTotal; ?> 人<br>
  119 +最大容量合計:<?php echo $intSizeTotal; ?> MB<br><br>
  120 +※※ 特殊除外 ※※※※※※※※<br>
  121 +登録団体合計:<?php echo pg_numrows($objRec) - $intTestNum; ?> 団体<br>
  122 +最大人数合計:<?php echo $intUserTotal - $intUserTotalTest; ?> 人<br>
  123 +最大容量合計:<?php echo $intSizeTotal - $intSizeTotalTest; ?> MB<br><br>
  124 +※※ 特殊 ※※※※※※※※※※<br>
  125 +登録団体合計:<?php echo $intTestNum; ?> 団体<br>
  126 +最大人数合計:<?php echo $intUserTotalTest; ?> 人<br>
  127 +最大容量合計:<?php echo $intSizeTotalTest; ?> MB<br><br>
  128 +<hr>
  129 +<input type="hidden" name="GroupID" value="">
  130 +<input type="hidden" name="GroupPW" value="">
  131 +<input type="hidden" name="key_name" value="">
  132 +</form>
  133 +</body>
  134 +</HTML>
\ No newline at end of file
... ...
  1 +<?php
  2 +header("Content-type: text/html; charset=EUC-JP");
  3 +
  4 +//セッション開始
  5 +require_once("./include/session_start.inc");
  6 +
  7 +include("./include/dbcon_group.inc");
  8 +$strSQL = "select mst_group.group_id, mst_group.group_pass, mst_group.db_name, mst_group.folder_name, mst_group.group_name, mst_group.mode_flg, mst_group.mobile_flg, ";
  9 +$strSQL .= " maxuser_tbl.max_count, maxuser_tbl.max_size ";
  10 +$strSQL .= "from mst_group ";
  11 +$strSQL .= "join maxuser_tbl on maxuser_tbl.group_id = mst_group.folder_name ";
  12 +$strSQL .= "order by mst_group.group_id";
  13 +$objRec = pg_exec($strSQL);
  14 +?>
  15 +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  16 +<HTML>
  17 +<HEAD>
  18 +<meta http-equiv="Content-Type" content="text/html; charset=EUC-JP">
  19 +<meta http-equiv="Content-Style-Type" content="text/css">
  20 +<link rel="stylesheet" type="text/css" href="basefont.css">
  21 +<TITLE>E-グルPro 超管理画面</TITLE>
  22 +<script language="javascript">
  23 +function move(prm){
  24 + document.frm.key_name.value=prm;
  25 + document.frm.action = "detail.php";
  26 + document.frm.method="POST"
  27 + document.frm.submit();
  28 +}
  29 +
  30 +function go_index(id,password){
  31 + document.frm.GroupID.value=id;
  32 + document.frm.GroupPW.value=password;
  33 + document.frm.action = "../e-gruPro/adm_index.php";
  34 + document.frm.target="_blank";
  35 + document.frm.method="POST";
  36 + document.frm.submit();
  37 +}
  38 +</script>
  39 +</HEAD>
  40 +<body>
  41 +<form name="frm" method="post">
  42 +<table border="1">
  43 +<?php
  44 +//MTC・OES・デモ・テストデータのID
  45 +$strTestID = "/media-tek/oes/demo/convart_test/araya_hoge/m-yanagibashi/";
  46 +//合計カウンタ(全データ)
  47 +$intUserTotal = 0;
  48 +$intSizeTotal = 0;
  49 +//合計カウンタ(特殊データ)
  50 +$intUserTotalTest = 0;
  51 +$intSizeTotalTest = 0;
  52 +$intTestNum = 0;
  53 +for ($i=0; $i < pg_numrows($objRec); $i++){
  54 + $objfetch = pg_fetch_object($objRec, $i);
  55 + //背景色
  56 + if (strpos($strTestID, "/".$objfetch->group_id."/") === false){
  57 + //通常グループ
  58 +
  59 + }else{
  60 + //特殊グループ
  61 + $intUserTotalTest += $objfetch->max_count;
  62 + $intSizeTotalTest += $objfetch->max_size;
  63 + $intTestNum++;
  64 + }
  65 +
  66 + $group_name[$i] = $objfetch->group_name;
  67 + $group_id[$i] = $objfetch->group_id;
  68 + $group_pass[$i] = $objfetch->group_pass;
  69 + $folder_name[$i] = $objfetch->folder_name;
  70 + $db_name[$i] = $objfetch->db_name;
  71 + $max_count[$i] = $objfetch->max_count;
  72 + $max_size[$i] = $objfetch->max_size;
  73 +
  74 + $intUserTotal += $objfetch->max_count;
  75 + $intSizeTotal += $objfetch->max_size;
  76 +}
  77 +
  78 +
  79 +$intMLTOTAL = 0;
  80 +for ($i=0; $i < count($group_id); $i++){
  81 + if ($i % 10 == 0){
  82 +?>
  83 + <tr>
  84 + <td bgcolor="ff0000">No.</td>
  85 + <td bgcolor="ff0000">グループ名</td>
  86 + <td bgcolor="ff0000">グループID</td>
  87 + <td bgcolor="ff0000">グループPW</td>
  88 + <td bgcolor="ff0000">フォルダ名</td>
  89 + <td bgcolor="ff0000">DB名</td>
  90 + <td bgcolor="ff0000">最大人数</td>
  91 + <td bgcolor="ff0000">最大容量</td>
  92 + <td bgcolor="ff0000">W.M.利用者数</td>
  93 + </tr>
  94 +<?php
  95 + }
  96 +
  97 + if( !$pg_con=pg_connect("host=$hostname port=5432 dbname=".$db_name[$i]." user=pgsqladmin password=pgsqladmin ") ) {
  98 + print "Error : connect to ${hostname}<br>";
  99 + exit;
  100 + }
  101 + $strSQLM = "select * from mail_tbl";
  102 + $objRecM = pg_exec($strSQLM);
  103 +
  104 +
  105 + //背景色
  106 + if (strpos($strTestID, "/".$group_id[$i]."/") === false){
  107 + //通常グループ
  108 + $strCOLOR="#FFFFFF";
  109 + $intMLTOTAL += pg_numrows($objRecM);
  110 + }else{
  111 + //特殊グループ
  112 + $strCOLOR="#A9A9A9";
  113 + }
  114 +
  115 +?>
  116 + <tr bgcolor="<?php echo $strCOLOR; ?>">
  117 + <td><?php echo $i+1; ?></td>
  118 + <td>
  119 + <?php echo $group_name[$i]; ?>
  120 + </td>
  121 + <td><?php echo $group_id[$i]; ?></td>
  122 + <td><?php echo $group_pass[$i]; ?></td>
  123 + <td><?php echo $folder_name[$i]; ?></td>
  124 + <td><?php echo $db_name[$i]; ?></td>
  125 + <td><?php echo $max_count[$i]; ?></td>
  126 + <td><?php echo $max_size[$i]; ?></td>
  127 + <td><?php echo pg_numrows($objRecM); ?></td>
  128 + </tr>
  129 +<?php
  130 +}
  131 +
  132 +?>
  133 +</table>
  134 +<hr>
  135 +※※ 総計 ※※※※※※※※※※<br>
  136 +登録団体合計:<?php echo count($group_id); ?> 団体<br>
  137 +最大人数合計:<?php echo $intUserTotal; ?> 人<br>
  138 +最大容量合計:<?php echo $intSizeTotal; ?> MB<br><br>
  139 +※※ 特殊除外 ※※※※※※※※<br>
  140 +登録団体合計:<?php echo count($group_id) - $intTestNum; ?> 団体<br>
  141 +最大人数合計:<?php echo $intUserTotal - $intUserTotalTest; ?> 人<br>
  142 +最大容量合計:<?php echo $intSizeTotal - $intSizeTotalTest; ?> MB<br><br>
  143 +<font color="#FF0000"><b>メール利用ユーザ数合計:<?php echo $intMLTOTAL; ?> 人</b></font><br><br>
  144 +
  145 +※※ 特殊 ※※※※※※※※※※<br>
  146 +登録団体合計:<?php echo $intTestNum; ?> 団体<br>
  147 +最大人数合計:<?php echo $intUserTotalTest; ?> 人<br>
  148 +最大容量合計:<?php echo $intSizeTotalTest; ?> MB<br><br>
  149 +<hr>
  150 +<input type="hidden" name="GroupID" value="">
  151 +<input type="hidden" name="GroupPW" value="">
  152 +<input type="hidden" name="key_name" value="">
  153 +</form>
  154 +</body>
  155 +</HTML>
\ No newline at end of file
... ...
  1 +<?php
  2 +header("Content-type: text/html; charset=EUC-JP");
  3 +
  4 +if($Passwd != "egruadmin7135"){
  5 + header("Location:mtc_login.php");
  6 + exit;
  7 +}
  8 +
  9 +$PHP_STS = "LOGIN";
  10 +session_register("PHP_STS");
  11 +
  12 +//¥»¥Ã¥·¥ç¥ó³«»Ï
  13 +require_once("./include/session_start.inc");
  14 +
  15 +header("Location:main.php");
  16 +?>
\ No newline at end of file
... ...
  1 +<?php
  2 +//セッション開始
  3 +require_once("./include/session_start.inc");
  4 +
  5 +?>
  6 +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  7 +<HTML>
  8 +<HEAD>
  9 +<meta http-equiv="Content-Type" content="text/html; charset=EUC-JP">
  10 +<meta http-equiv="Content-Style-Type" content="text/css">
  11 +<link rel="stylesheet" type="text/css" href="basefont.css">
  12 +<TITLE>E-グルPro 超管理画面</TITLE>
  13 +</HEAD>
  14 +<body>
  15 +<a href="new_edit.php">◇データ編集(新規登録作業後)</a>
  16 +<br>
  17 +<br>
  18 +<a href="move_edit.php">◇データ編集(移行登録作業後)</a>
  19 +<br>
  20 +<br>
  21 +<a href="kanri_edit.php">◇データ編集(管理DB作成のみ)</a>
  22 +<br>
  23 +<br>
  24 +<a href="list.php">◇登録グループ一覧</a>
  25 +<br>
  26 +<br>
  27 +<a href="pack.php">◇パックけんさくん</a>
  28 +
  29 +<hr>
  30 +<br>
  31 +<br>
  32 +<a href="list_mail.php">◇登録グループ一覧(WEBメール設定ユーザ数付)</a>
  33 +<br>
  34 +<br>
  35 +
  36 +</body>
  37 +</HTML>
... ...
  1 +<?php
  2 +header("Content-type: text/html; charset=EUC-JP");
  3 +
  4 +//セッション開始
  5 +require_once("./include/session_start.inc");
  6 +
  7 +
  8 +
  9 +
  10 +?>
  11 +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  12 +<HTML>
  13 +<HEAD>
  14 +<meta http-equiv="Content-Type" content="text/html; charset=EUC-JP">
  15 +<meta http-equiv="Content-Style-Type" content="text/css">
  16 +<link rel="stylesheet" type="text/css" href="basefont.css">
  17 +<TITLE>E-グルPro 超管理画面</TITLE>
  18 +</HEAD>
  19 +<body>
  20 +<form name="frm" method="post" action="move_reg.php">
  21 +■管理情報
  22 +<br>
  23 +<table border="0">
  24 + <tr>
  25 + <td>グループID:</td>
  26 + <td><input type="text" name="group_id"></td>
  27 + </tr>
  28 + <tr>
  29 + <td>グループPW:</td>
  30 + <td><input type="text" name="group_pass"></td>
  31 + </tr>
  32 + <tr>
  33 + <td>DB名:</td>
  34 + <td><input type="text" name="db_name"></td>
  35 + </tr>
  36 + <tr>
  37 + <td>フォルダ名:</td>
  38 + <td><input type="text" name="folder_name"></td>
  39 + </tr>
  40 + <tr>
  41 + <td>グループ名:</td>
  42 + <td><input type="text" name="group_name"></td>
  43 + </tr>
  44 + <tr>
  45 + <td>モード:</td>
  46 + <td><input type="text" name="mode_flg">(0:有料版)</td>
  47 + </tr>
  48 + <tr>
  49 + <td>携帯利用可否:</td>
  50 + <td><input type="text" name="mobile_flg">(1:利用しない)</td>
  51 + </tr>
  52 + <tr>
  53 + <td>利用人数:</td>
  54 + <td><input type="text" name="max_count"></td>
  55 + </tr>
  56 + <tr>
  57 + <td>最大容量:</td>
  58 + <td><input type="text" name="max_size"> MB</td>
  59 + </tr>
  60 +</table>
  61 +<hr>
  62 +■契約情報
  63 +<br>
  64 +<table border="0">
  65 + <tr>
  66 + <td>契約日</td>
  67 + <td><input type="text" name="keiyaku_date" value=""></td>
  68 + </tr>
  69 + <tr>
  70 + <td>契約プラン</td>
  71 + <td><input type="text" name="keiyaku_plan" value="">(0:フル、1:個別)</td>
  72 + </tr>
  73 + <tr>
  74 + <td>支払いプラン</td>
  75 + <td><input type="text" name="pay_plan" value="">(0:半年払い、1:月払い)</td>
  76 + </tr>
  77 + <tr>
  78 + <td>更新回数</td>
  79 + <td><input type="text" name="keizoku_nm" value=""></td>
  80 + </tr>
  81 + <tr>
  82 + <td>次回支払日</td>
  83 + <td><input type="text" name="pay_date" value="<?php echo $pay_date; ?>"></td>
  84 + </tr>
  85 +</table>
  86 +<hr>
  87 +■メニュー選択(オリジナル名で表示してます)
  88 +<br>
  89 +<table border="0">
  90 + <tr>
  91 + <td></td>
  92 + <td></td>
  93 + <td>削除</td>
  94 + </tr>
  95 +<?php
  96 +//メニューテンプレ取得
  97 +if( !$pg_con=pg_connect("host=localhost dbname=org_e-gru_pro_master user=pgsqladmin password=pgsqladmin") ) {
  98 + print "Error : connect to localhost<br>";
  99 + exit;
  100 +}
  101 +
  102 +$strSQL = "select main_menu_tbl.index_no as mainindex, main_menu_tbl.name, main_menu_tbl.org_name as mainname, main_menu_tbl.sub_menu_num, main_menu_tbl.disp_flg, ";
  103 +$strSQL .= "sub_menu_tbl.main_index, sub_menu_tbl.index_no as subindex, sub_menu_tbl.name, sub_menu_tbl.org_name as subname, sub_menu_tbl.url, sub_menu_tbl.img, sub_menu_tbl.disp_flg ";
  104 +$strSQL .= "from main_menu_tbl join sub_menu_tbl on sub_menu_tbl.main_index = main_menu_tbl.index_no ";
  105 +$strSQL .= "order by main_menu_tbl.index_no, sub_menu_tbl.index_no";
  106 +$objRec = pg_exec($strSQL);
  107 +for ($i=0; $i < pg_numrows($objRec); $i++){
  108 + $objfetch = pg_fetch_object($objRec, $i);
  109 +?>
  110 + <tr>
  111 + <td><?php echo $objfetch->mainname; ?></td>
  112 + <td><?php echo $objfetch->subname; ?></td>
  113 + <td><input type="checkbox" name="menu_del[]" value="<?php echo $objfetch->main_index; ?>/<?php echo $objfetch->subindex; ?>"></td>
  114 + </tr>
  115 +<?php
  116 +}
  117 +?>
  118 +</table>
  119 +<input type="submit" value="登録実行!!">
  120 +</form>
  121 +</body>
  122 +</HTML>
\ No newline at end of file
... ...
  1 +<?php
  2 +header("Content-type: text/html; charset=EUC-JP");
  3 +
  4 +//セッション開始
  5 +include("./include/session_start.inc");
  6 +
  7 +//重複チェック
  8 +include("./include/dbcon_group.inc");
  9 +$strSQL = "select * from mst_group where db_name = '".$db_name."' or group_id = '".$group_id."' or folder_name = '".$folder_name."'";
  10 +$objRec = pg_exec($strSQL);
  11 +if(pg_numrows($objRec) > 0){
  12 + echo "グループID、フォルダ名、DB名のどれかが既に使われています";
  13 + exit;
  14 +}
  15 +
  16 +//ユーザDB更新
  17 +$database = $db_name;
  18 +include("./include/dbcon.inc");
  19 +
  20 +//メニュー再生成
  21 +if(count($menu_del) > 0){
  22 + //まずけす
  23 + for($i=0;$i<count($menu_del);$i++){
  24 + $arr = split("/", $menu_del[$i]);
  25 + $strSQL = "delete from sub_menu_tbl where main_index = ".$arr[0]." and index_no = ".$arr[1];
  26 + $objRec = pg_exec($strSQL);
  27 + }
  28 + //サブメニューインデックス再生成
  29 + for($i=1;$i<=5;$i++){
  30 + $strSQL = "select index_no from sub_menu_tbl where main_index = ".$i." order by index_no";
  31 + $objRec = pg_exec($strSQL);
  32 + $MainNum[$i] = pg_numrows($objRec);
  33 + $indexArr = array();
  34 + if($MainNum[$i] > 0){
  35 + for($j=0;$j<=$MainNum[$i];$j++){
  36 + $objfetch = pg_fetch_object($objRec, $j);
  37 + $indexArr[$j] = $objfetch->index_no;
  38 + }
  39 + }
  40 + if($MainNum[$i] > 0){
  41 + for($j=0;$j<=count($indexArr);$j++){
  42 + $strSQL = "update sub_menu_tbl set index_no = ".($j+1)." where main_index = ".$i." and index_no = ".$indexArr[$j];
  43 + $objRec = pg_exec($strSQL);
  44 + }
  45 + }
  46 + //ついでにメインの個数変更
  47 + $strSQL = "update main_menu_tbl set sub_menu_num = ".$MainNum[$i]." where index_no = ".$i;
  48 + $objRec = pg_exec($strSQL);
  49 + }
  50 +
  51 +}
  52 +
  53 +//管理テーブル
  54 +include("./include/dbcon_group.inc");
  55 +//ひっす
  56 +$strSQL = "insert into mst_group ";
  57 +$strSQL .= "(group_id, group_pass, db_name, folder_name, group_name, mode_flg, mobile_flg) ";
  58 +$strSQL .= "values('".$group_id."', '".$group_pass."', '".$db_name."', '".$folder_name."', '".$group_name."', ".$mode_flg.", ".$mobile_flg.") ";
  59 +$objRec = pg_exec($strSQL);
  60 +//まっくす
  61 +$strSQL = "insert into maxuser_tbl ";
  62 +$strSQL .= "(group_id, max_count, max_size) ";
  63 +$strSQL .= "values('".$folder_name."', ".$max_count.", ".$max_size.") ";
  64 +$objRec = pg_exec($strSQL);
  65 +
  66 +$strSQLIns = "Insert Into mst_keiyaku ";
  67 +$strSQLIns .= "(group_id,keiyaku_date,keiyaku_plan,pay_plan,keizoku_nm,pay_date)";
  68 +$strSQLIns .= " VALUES ";
  69 +$strSQLIns .= "('".$folder_name."',";
  70 +$strSQLIns .= "'".$keiyaku_date."',";
  71 +$strSQLIns .= "'".$keiyaku_plan."',";
  72 +$strSQLIns .= "'".$pay_plan."',";
  73 +$strSQLIns .= "'".$keizoku_nm."',";
  74 +$strSQLIns .= "'".$pay_date."')";
  75 +$objRecIns = pg_exec($strSQLIns);
  76 +
  77 +?>
  78 +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  79 +<HTML>
  80 +<HEAD>
  81 +<meta http-equiv="Content-Type" content="text/html; charset=EUC-JP">
  82 +<meta http-equiv="Content-Style-Type" content="text/css">
  83 +<link rel="stylesheet" type="text/css" href="basefont.css">
  84 +<TITLE>E-グルPro 超管理画面</TITLE>
  85 +</HEAD>
  86 +<body>
  87 +<form name="frm" method="post" action="move_reg2.php">
  88 +■管理者社員選択
  89 +<br><br>
  90 +<select name="syain">姓名(PW)
  91 +<?php
  92 +//社員取得
  93 +include("./include/dbcon.inc");
  94 +$strSQL = "select syain_cd, password, name_kj_sei, name_kj_mei from syain_tbl where del_flg = true order by disp_rank";
  95 +$objRec = pg_exec($strSQL);
  96 +for($i=0;$i<pg_numrows($objRec);$i++){
  97 + $objfetch = pg_fetch_object($objRec, $i);
  98 +?>
  99 +<option value="<?php echo $objfetch->syain_cd; ?>"><?php echo $objfetch->name_kj_sei.$objfetch->name_kj_mei."(".$objfetch->password.")"; ?></option>
  100 +<?php
  101 +}
  102 +?>
  103 +</select>
  104 +<br>
  105 +<br>
  106 +<input type="hidden" name="db_name" value="<?php echo $db_name; ?>">
  107 +<input type="submit" value="登録実行!!">
  108 +</form>
\ No newline at end of file
... ...
  1 +<?php
  2 +header("Content-type: text/html; charset=EUC-JP");
  3 +
  4 +//セッション開始
  5 +include("./include/session_start.inc");
  6 +
  7 +//ユーザDB更新
  8 +$database = $db_name;
  9 +include("./include/dbcon.inc");
  10 +$strSQL = "update mst_kanri set syain_cd = '".$syain."' where syain_cd = '1'";
  11 +$objRec = pg_exec($strSQL);
  12 +
  13 +header("Location:main.php");
  14 +?>
... ...
  1 +<?php
  2 +// セッション破棄
  3 +session_start();
  4 +$_SESSION = array();
  5 +session_destroy();
  6 +
  7 +header("Content-type: text/html; charset=EUC-JP");
  8 +?>
  9 +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  10 +<HTML>
  11 +<HEAD>
  12 +<meta http-equiv="Content-Type" content="text/html; charset=EUC-JP">
  13 +<meta http-equiv="Content-Style-Type" content="text/css">
  14 +<link rel="stylesheet" type="text/css" href="basefont.css">
  15 +<TITLE>E-グルPro 超管理画面</TITLE>
  16 +</HEAD>
  17 +<body>
  18 +<center>
  19 +<form action="loginchk_mtc.php" method="POST">
  20 +<TABLE border="0" height="475">
  21 + <TR>
  22 + <TD width="585" valign="top">
  23 + <div align="center">
  24 + <TABLE border="0">
  25 + <TR>
  26 + <TD align="center" colspan=2 height="20">メディアテック管理者用ログイン</TD>
  27 + </TR>
  28 + <TR>
  29 + <TD height="20">パスワード</TD>
  30 + <TD height="20"><INPUT type="password" size="15" name="Passwd"></TD>
  31 + </TR>
  32 + <TR>
  33 + <TD height="20"> </TD>
  34 + <TD height="20"><INPUT type="submit" value="ログイン"></TD>
  35 + </TR>
  36 + <TR>
  37 + <TD colspan=2 height="30"></TD>
  38 + </TR>
  39 + </TABLE>
  40 + </div>
  41 + </TD>
  42 + </TR>
  43 +</TABLE>
  44 +</form>
  45 +</center>
  46 +</body>
  47 +</HTML>
\ No newline at end of file
... ...
  1 +<?php
  2 +header("Content-type: text/html; charset=EUC-JP");
  3 +
  4 +//セッション開始
  5 +require_once("./include/session_start.inc");
  6 +
  7 +?>
  8 +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  9 +<HTML>
  10 +<HEAD>
  11 +<meta http-equiv="Content-Type" content="text/html; charset=EUC-JP">
  12 +<meta http-equiv="Content-Style-Type" content="text/css">
  13 +<link rel="stylesheet" type="text/css" href="basefont.css">
  14 +<TITLE>E-グルPro 超管理画面</TITLE>
  15 +</HEAD>
  16 +<body>
  17 +<form name="frm" method="post" action="new_reg.php">
  18 +■管理情報
  19 +<br>
  20 +<table border="0">
  21 + <tr>
  22 + <td>グループID:</td>
  23 + <td><input type="text" name="group_id"></td>
  24 + </tr>
  25 + <tr>
  26 + <td>グループPW:</td>
  27 + <td><input type="text" name="group_pass"></td>
  28 + </tr>
  29 + <tr>
  30 + <td>DB名:</td>
  31 + <td><input type="text" name="db_name"></td>
  32 + </tr>
  33 + <tr>
  34 + <td>フォルダ名:</td>
  35 + <td><input type="text" name="folder_name"></td>
  36 + </tr>
  37 + <tr>
  38 + <td>グループ名:</td>
  39 + <td><input type="text" name="group_name"></td>
  40 + </tr>
  41 + <tr>
  42 + <td>モード:</td>
  43 + <td><input type="text" name="mode_flg">(0:有料版)</td>
  44 + </tr>
  45 + <tr>
  46 + <td>携帯利用可否:</td>
  47 + <td><input type="text" name="mobile_flg">(1:利用しない)</td>
  48 + </tr>
  49 + <tr>
  50 + <td>利用人数:</td>
  51 + <td><input type="text" name="max_count"></td>
  52 + </tr>
  53 + <tr>
  54 + <td>最大容量:</td>
  55 + <td><input type="text" name="max_size"> MB</td>
  56 + </tr>
  57 +</table>
  58 +<hr>
  59 +■契約情報
  60 +<br>
  61 +<table border="0">
  62 + <tr>
  63 + <td>契約日</td>
  64 + <td><input type="text" name="keiyaku_date" value=""></td>
  65 + </tr>
  66 + <tr>
  67 + <td>契約プラン</td>
  68 + <td><input type="text" name="keiyaku_plan" value="">(0:フル、1:個別)</td>
  69 + </tr>
  70 + <tr>
  71 + <td>支払いプラン</td>
  72 + <td><input type="text" name="pay_plan" value="">(0:半年払い、1:月払い)</td>
  73 + </tr>
  74 + <tr>
  75 + <td>更新回数</td>
  76 + <td><input type="text" name="keizoku_nm" value=""></td>
  77 + </tr>
  78 + <tr>
  79 + <td>次回支払日</td>
  80 + <td><input type="text" name="pay_date" value="<?php echo $pay_date; ?>"></td>
  81 + </tr>
  82 +</table>
  83 +<hr>
  84 +■社員設定(初期管理者)
  85 +<br>
  86 +<table border="0">
  87 + <tr>
  88 + <td>社員PW:</td>
  89 + <td><input type="text" name="password"></td>
  90 + </tr>
  91 + <tr>
  92 + <td>社員姓(漢字):</td>
  93 + <td><input type="text" name="name_kj_sei"></td>
  94 + </tr>
  95 + <tr>
  96 + <td>社員名(漢字):</td>
  97 + <td><input type="text" name="name_kj_mei"></td>
  98 + </tr>
  99 + <tr>
  100 + <td>社員性別:</td>
  101 + <td><input type="text" name="sex">(1:男 0:女)</td>
  102 + </tr>
  103 +</table>
  104 +<hr>
  105 +■メニュー選択(オリジナル名で表示してます)
  106 +<br>
  107 +<table border="0">
  108 + <tr>
  109 + <td></td>
  110 + <td></td>
  111 + <td>削除</td>
  112 + </tr>
  113 +<?php
  114 +//メニューテンプレ取得
  115 +if( !$pg_con=pg_connect("host=localhost dbname=org_e-gru_pro_master user=pgsqladmin password=pgsqladmin") ) {
  116 + print "Error : connect to localhost<br>";
  117 + exit;
  118 +}
  119 +
  120 +$strSQL = "select main_menu_tbl.index_no as mainindex, main_menu_tbl.name, main_menu_tbl.org_name as mainname, main_menu_tbl.sub_menu_num, main_menu_tbl.disp_flg, ";
  121 +$strSQL .= "sub_menu_tbl.main_index, sub_menu_tbl.index_no as subindex, sub_menu_tbl.name, sub_menu_tbl.org_name as subname, sub_menu_tbl.url, sub_menu_tbl.img, sub_menu_tbl.disp_flg ";
  122 +$strSQL .= "from main_menu_tbl join sub_menu_tbl on sub_menu_tbl.main_index = main_menu_tbl.index_no ";
  123 +$strSQL .= "order by main_menu_tbl.index_no, sub_menu_tbl.index_no";
  124 +$objRec = pg_exec($strSQL);
  125 +for ($i=0; $i < pg_numrows($objRec); $i++){
  126 + $objfetch = pg_fetch_object($objRec, $i);
  127 +?>
  128 + <tr>
  129 + <td><?php echo $objfetch->mainname; ?></td>
  130 + <td><?php echo $objfetch->subname; ?></td>
  131 + <td><input type="checkbox" name="menu_del[]" value="<?php echo $objfetch->main_index; ?>/<?php echo $objfetch->subindex; ?>"></td>
  132 + </tr>
  133 +<?php
  134 +}
  135 +?>
  136 +</table>
  137 +<input type="submit" value="登録実行!!">
  138 +</form>
  139 +</body>
  140 +</HTML>
\ No newline at end of file
... ...
  1 +<?php
  2 +header("Content-type: text/html; charset=EUC-JP");
  3 +
  4 +//セッション開始
  5 +include("./include/session_start.inc");
  6 +
  7 +//重複チェック
  8 +include("./include/dbcon_group.inc");
  9 +$strSQL = "select * from mst_group where db_name = '".$db_name."' or group_id = '".$group_id."' or folder_name = '".$folder_name."'";
  10 +$objRec = pg_exec($strSQL);
  11 +if(pg_numrows($objRec) > 0){
  12 + echo "グループID、フォルダ名、DB名のどれかが既に使われています";
  13 + exit;
  14 +}
  15 +
  16 +//ユーザDB更新
  17 +$database = $db_name;
  18 +include("./include/dbcon.inc");
  19 +
  20 +//社員テーブル
  21 +if($sex == 1){
  22 + $blnSex = "true";
  23 +}else{
  24 + $blnSex = "false";
  25 +}
  26 +$strSQL = "insert into syain_tbl ";
  27 +$strSQL .= "(syain_cd, password, name_kj_sei, name_kj_mei, sex, birthday, del_flg, disp_rank) ";
  28 +$strSQL .= "values('1', '".$password."', '".$name_kj_sei."', '".$name_kj_mei."', ".$blnSex.", '', true, 1) ";
  29 +$objRec = pg_exec($strSQL);
  30 +
  31 +//会社テーブル
  32 +$strSQL = "insert into mst_company ";
  33 +$strSQL .= "(company_name, sihonkin) ";
  34 +$strSQL .= "values('".$group_name."', 0) ";
  35 +$objRec = pg_exec($strSQL);
  36 +
  37 +
  38 +//メニュー再生成
  39 +if(count($menu_del) > 0){
  40 + //まずけす
  41 + for($i=0;$i<count($menu_del);$i++){
  42 + $arr = split("/", $menu_del[$i]);
  43 + $strSQL = "delete from sub_menu_tbl where main_index = ".$arr[0]." and index_no = ".$arr[1];
  44 + $objRec = pg_exec($strSQL);
  45 + }
  46 + //サブメニューインデックス再生成
  47 + for($i=1;$i<=5;$i++){
  48 + $strSQL = "select index_no from sub_menu_tbl where main_index = ".$i." order by index_no";
  49 + $objRec = pg_exec($strSQL);
  50 + $MainNum[$i] = pg_numrows($objRec);
  51 + $indexArr = array();
  52 + if($MainNum[$i] > 0){
  53 + for($j=0;$j<=$MainNum[$i];$j++){
  54 + $objfetch = pg_fetch_object($objRec, $j);
  55 + $indexArr[$j] = $objfetch->index_no;
  56 + }
  57 + }
  58 + if($MainNum[$i] > 0){
  59 + for($j=0;$j<=count($indexArr);$j++){
  60 + $strSQL = "update sub_menu_tbl set index_no = ".($j+1)." where main_index = ".$i." and index_no = ".$indexArr[$j];
  61 + $objRec = pg_exec($strSQL);
  62 + }
  63 + }
  64 + //ついでにメインの個数変更
  65 + $strSQL = "update main_menu_tbl set sub_menu_num = ".$MainNum[$i]." where index_no = ".$i;
  66 + $objRec = pg_exec($strSQL);
  67 + }
  68 +
  69 +}
  70 +
  71 +//管理テーブル
  72 +include("./include/dbcon_group.inc");
  73 +//ひっす
  74 +$strSQL = "insert into mst_group ";
  75 +$strSQL .= "(group_id, group_pass, db_name, folder_name, group_name, mode_flg, mobile_flg) ";
  76 +$strSQL .= "values('".$group_id."', '".$group_pass."', '".$db_name."', '".$folder_name."', '".$group_name."', ".$mode_flg.", ".$mobile_flg.") ";
  77 +$objRec = pg_exec($strSQL);
  78 +//まっくす
  79 +$strSQL = "insert into maxuser_tbl ";
  80 +$strSQL .= "(group_id, max_count, max_size) ";
  81 +$strSQL .= "values('".$folder_name."', ".$max_count.", ".$max_size.") ";
  82 +$objRec = pg_exec($strSQL);
  83 +
  84 +$strSQLIns = "Insert Into mst_keiyaku ";
  85 +$strSQLIns .= "(group_id,keiyaku_date,keiyaku_plan,pay_plan,keizoku_nm,pay_date)";
  86 +$strSQLIns .= " VALUES ";
  87 +$strSQLIns .= "('".$folder_name."',";
  88 +$strSQLIns .= "'".$keiyaku_date."',";
  89 +$strSQLIns .= "'".$keiyaku_plan."',";
  90 +$strSQLIns .= "'".$pay_plan."',";
  91 +$strSQLIns .= "'".$keizoku_nm."',";
  92 +$strSQLIns .= "'".$pay_date."')";
  93 +$objRecIns = pg_exec($strSQLIns);
  94 +
  95 +header("Location:main.php");
  96 +?>
... ...
  1 +<?php
  2 +header("Content-type: text/html; charset=EUC-JP");
  3 +
  4 +//セッション開始
  5 +require_once("./include/session_start.inc");
  6 +
  7 +include("./include/dbcon_group.inc");
  8 +$strSQL = "select mst_group.group_id, mst_group.group_pass, mst_group.db_name, mst_group.folder_name, mst_group.group_name, mst_group.mode_flg, mst_group.mobile_flg, ";
  9 +$strSQL .= " maxuser_tbl.max_count, maxuser_tbl.max_size ";
  10 +$strSQL .= "from mst_group ";
  11 +$strSQL .= "join maxuser_tbl on maxuser_tbl.group_id = mst_group.folder_name ";
  12 +$strSQL .= "order by mst_group.group_id";
  13 +$objRec = pg_exec($strSQL);
  14 +
  15 +$strData = "";
  16 +for ($intI =0; $intI < pg_numrows($objRec); $intI++){
  17 + $objData = pg_fetch_object($objRec, $intI);
  18 + $strData[$intI][0] = $objData->group_name;
  19 + $strData[$intI][1] = $objData->db_name;
  20 + $strData[$intI][2] = $objData->mobile_flg;
  21 + $strData[$intI][3] = $objData->max_size;
  22 + $strData[$intI][4] = $objData->group_id;
  23 +}
  24 +
  25 +?>
  26 +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  27 +<HTML>
  28 +<HEAD>
  29 +<meta http-equiv="Content-Type" content="text/html; charset=EUC-JP">
  30 +<meta http-equiv="Content-Style-Type" content="text/css">
  31 +<link rel="stylesheet" type="text/css" href="basefont.css">
  32 +<TITLE>E-グルPro 超管理画面</TITLE>
  33 +</HEAD>
  34 +<body>
  35 +<form name="frm" method="post">
  36 +<table border="1">
  37 +<tr>
  38 + <td>団体名</td>
  39 + <td>ID</td>
  40 + <td>パック</td>
  41 + <td>DB名</td>
  42 + <td>容量</td>
  43 + <td>電子会議</td>
  44 + <td>営業報告</td>
  45 + <td>業務報告</td>
  46 + <td>掲示板</td>
  47 + <td>電子決裁</td>
  48 + <td>電話連絡</td>
  49 + <td>アドレス帳</td>
  50 + <td>施設予約</td>
  51 + <td>当番担当</td>
  52 + <td>リンク集</td>
  53 + <td>タイムカード</td>
  54 + <td>回覧板</td>
  55 + <td>PRO管理</td>
  56 + <td>Webメール</td>
  57 + <td>携帯機能</td>
  58 + <td>マイ・データ</td>
  59 + <td colspan="2">アンケート</td>
  60 + <td>Google</td>
  61 + <td>ICal</td>
  62 +</tr>
  63 +<?php
  64 +for ($intI =0; $intI < count($strData); $intI++){
  65 + if( !$pg_con=pg_connect("host=$hostname dbname=".$strData[$intI][1]." user=pgsqladmin password=pgsqladmin") ) {
  66 + print "Error : connect to ${hostname}<br>";
  67 + exit;
  68 + }
  69 +
  70 + //*** スケジュール***
  71 + $PHP_TITLE_ID[0] = "&nbsp;";
  72 + $PHP_TITLE_ID[1] = "&nbsp;";
  73 + $PHP_TITLE_ID[2] = "&nbsp;";
  74 + $PHP_TITLE_ID[3] = "&nbsp;";
  75 + $PHP_TITLE_ID[4] = "&nbsp;";
  76 + $PHP_TITLE_ID[5] = "&nbsp;";
  77 + $PHP_TITLE_ID[6] = "&nbsp;";
  78 + $PHP_TITLE_ID[7] = "&nbsp;";
  79 + $PHP_TITLE_ID[8] = "&nbsp;";
  80 + $PHP_TITLE_ID[9] = "&nbsp;";
  81 + $PHP_TITLE_ID[10] = "&nbsp;";
  82 + $PHP_TITLE_ID[11] = "&nbsp;";
  83 + $PHP_TITLE_ID[12] = "&nbsp;";
  84 + $PHP_TITLE_ID[13] = "&nbsp;";
  85 + $PHP_TITLE_ID[14] = "&nbsp;";
  86 + $PHP_TITLE_ID[15] = "&nbsp;";
  87 + $PHP_TITLE_ID[16] = "&nbsp;";
  88 + $PHP_TITLE_ID[17] = "&nbsp;";
  89 + $PHP_TITLE_ID[18] = "&nbsp;";
  90 + $PHP_TITLE_ID[19] = "&nbsp;";
  91 + $PHP_TITLE_ID[30] = "&nbsp;";
  92 + $PHP_TITLE_ID[31] = "&nbsp;";
  93 +
  94 + $PHP_TITLE_ID[21] = "&nbsp;";
  95 + $PHP_TITLE_ID[22] = "&nbsp;";
  96 +
  97 + //*** 施設予約***
  98 + $strMenuSQL = "SELECT name FROM sub_menu_TBL WHERE url = 'RES001.php'";
  99 + $rsRecset = pg_exec($strMenuSQL);
  100 + if (pg_numrows($rsRecset)>0){
  101 + $PHP_TITLE_ID[2]='●';
  102 + }
  103 +
  104 + //*** 当番担当者***
  105 + $strMenuSQL = "SELECT name FROM sub_menu_TBL WHERE url = 'DUT001.php'";
  106 + $rsRecset = pg_exec($strMenuSQL);
  107 + if (pg_numrows($rsRecset)>0){
  108 + $PHP_TITLE_ID[3]='●';
  109 + }
  110 +
  111 + //*** 営業報告・指示***
  112 + $strMenuSQL = "SELECT name FROM sub_menu_TBL WHERE url = 'RPT001.php'";
  113 + $rsRecset = pg_exec($strMenuSQL);
  114 + if (pg_numrows($rsRecset)>0){
  115 + $PHP_TITLE_ID[4]='●';
  116 + }
  117 +
  118 + //*** 業務報告・指示***
  119 + $strMenuSQL = "SELECT name FROM sub_menu_TBL WHERE url = 'MET001.php'";
  120 + $rsRecset = pg_exec($strMenuSQL);
  121 + if (pg_numrows($rsRecset)>0){
  122 + $PHP_TITLE_ID[5]='●';
  123 + }
  124 +
  125 + //*** 電話連絡***
  126 + $strMenuSQL = "SELECT name FROM sub_menu_TBL WHERE url = 'TEL001.php'";
  127 + $rsRecset = pg_exec($strMenuSQL);
  128 + if (pg_numrows($rsRecset)>0){
  129 + $PHP_TITLE_ID[6]='●';
  130 + }
  131 +
  132 + //*** 回覧板***
  133 + $strMenuSQL = "SELECT name FROM sub_menu_TBL WHERE url = 'CIR001.php'";
  134 + $rsRecset = pg_exec($strMenuSQL);
  135 + if (pg_numrows($rsRecset)>0){
  136 + $PHP_TITLE_ID[7]='●';
  137 + }
  138 +
  139 + //*** 掲示板***
  140 + $strMenuSQL = "SELECT name FROM sub_menu_TBL WHERE url = 'BBS001.php'";
  141 + $rsRecset = pg_exec($strMenuSQL);
  142 + if (pg_numrows($rsRecset)>0){
  143 + $PHP_TITLE_ID[8]='●';
  144 + }
  145 +
  146 + //*** 電子会議***
  147 + $strMenuSQL = "SELECT name FROM sub_menu_TBL WHERE url = 'MET010.php'";
  148 + $rsRecset = pg_exec($strMenuSQL);
  149 + if (pg_numrows($rsRecset)>0){
  150 + $PHP_TITLE_ID[9]='●';
  151 + }
  152 +
  153 + //*** 電子決裁***
  154 + $strMenuSQL = "SELECT name FROM sub_menu_TBL WHERE url = 'FLO001.php'";
  155 + $rsRecset = pg_exec($strMenuSQL);
  156 + if (pg_numrows($rsRecset)>0){
  157 + $PHP_TITLE_ID[10]='●';
  158 + }
  159 +
  160 + //*** マイ・データ***
  161 + $strMenuSQL = "SELECT name FROM sub_menu_TBL WHERE url = 'MDT001.php'";
  162 + $rsRecset = pg_exec($strMenuSQL);
  163 + if (pg_numrows($rsRecset)>0){
  164 + $PHP_TITLE_ID[11]='●';
  165 + }
  166 +
  167 + //*** webメール***
  168 + $strMenuSQL = "SELECT name FROM sub_menu_TBL WHERE url = 'MIL001.php'";
  169 + $rsRecset = pg_exec($strMenuSQL);
  170 + if (pg_numrows($rsRecset)>0){
  171 + $PHP_TITLE_ID[13]='●';
  172 + }
  173 +
  174 + //*** アドレス情報***
  175 + $strMenuSQL = "SELECT name FROM sub_menu_TBL WHERE url = 'ADR001.php'";
  176 + $rsRecset = pg_exec($strMenuSQL);
  177 + if (pg_numrows($rsRecset)>0){
  178 + $PHP_TITLE_ID[14]='●';
  179 + }
  180 +
  181 + //*** リンク集***
  182 + $strMenuSQL = "SELECT name FROM sub_menu_TBL WHERE url = 'LIN001.php'";
  183 + $rsRecset = pg_exec($strMenuSQL);
  184 + if (pg_numrows($rsRecset)>0){
  185 + $PHP_TITLE_ID[15]='●';
  186 + }
  187 +
  188 + //*** プロジェクト管理***
  189 + $strMenuSQL = "SELECT name FROM sub_menu_TBL WHERE url = 'PRJ000.php'";
  190 + $rsRecset = pg_exec($strMenuSQL);
  191 + if (pg_numrows($rsRecset)>0){
  192 + $PHP_TITLE_ID[17]='●';
  193 + }
  194 +
  195 + //*** タイムカード ***
  196 + $strMenuSQL = "SELECT name FROM sub_menu_TBL WHERE url = 'TIM001.php'";
  197 + $rsRecset = pg_exec($strMenuSQL);
  198 + if (pg_numrows($rsRecset)>0){
  199 + $PHP_TITLE_ID[19]='●';
  200 + }
  201 +
  202 + //*** アンケート ***
  203 + $strMenuSQL = "SELECT name FROM sub_menu_TBL WHERE url = 'MNP010.php'";
  204 + $rsRecset = pg_exec($strMenuSQL);
  205 + if (pg_numrows($rsRecset)>0){
  206 + $PHP_TITLE_ID[30]='●';
  207 + }
  208 +
  209 + //*** アンケート配信数 ***
  210 + $strMenuSQL = "SELECT * FROM mnp_kihon_tbl";
  211 + $rsRecset = pg_exec($strMenuSQL);
  212 + $PHP_TITLE_ID[31]=pg_numrows($rsRecset);
  213 +
  214 + //*** Google ***
  215 + $strMenuSQL = "SELECT * FROM kojin_data_tbl WHERE seq = 21";
  216 + $rsRecset = pg_exec($strMenuSQL);
  217 + $PHP_TITLE_ID[21]=pg_numrows($rsRecset);
  218 +
  219 + //*** ICal ***
  220 + $strMenuSQL = "SELECT * FROM kojin_data_tbl WHERE seq = 24";
  221 + $rsRecset = pg_exec($strMenuSQL);
  222 + $PHP_TITLE_ID[22]=pg_numrows($rsRecset);
  223 +
  224 + echo "<tr>";
  225 + echo "<td>".$strData[$intI][0]."</td>";
  226 + echo "<td align=center>".$strData[$intI][4]."</td>";
  227 + if (($PHP_TITLE_ID[9]!="&nbsp;") && ($PHP_TITLE_ID[4]!="&nbsp;") && ($PHP_TITLE_ID[5]!="&nbsp;") && ($PHP_TITLE_ID[8]!="&nbsp;") &&
  228 + ($PHP_TITLE_ID[10]!="&nbsp;") && ($PHP_TITLE_ID[6]!="&nbsp;") && ($PHP_TITLE_ID[14]!="&nbsp;") && ($PHP_TITLE_ID[2]!="&nbsp;") &&
  229 + ($PHP_TITLE_ID[3]!="&nbsp;") && ($PHP_TITLE_ID[15]!="&nbsp;") && ($PHP_TITLE_ID[19]!="&nbsp;") && ($PHP_TITLE_ID[7]!="&nbsp;") &&
  230 + ($PHP_TITLE_ID[17]!="&nbsp;") && ($PHP_TITLE_ID[30]!="&nbsp;") && ($PHP_TITLE_ID[13]!="&nbsp;") && ($strData[$intI][2]!="1")){
  231 + echo "<td align=center>フル</td>";
  232 + }else{
  233 + echo "<td align=center>機能限定</td>";
  234 + }
  235 + echo "<td align=center>".$strData[$intI][1]."</td>";
  236 + echo "<td align=center>".$strData[$intI][3]."</td>";
  237 + echo "<td align=center>".$PHP_TITLE_ID[9]."</td>";
  238 + echo "<td align=center>".$PHP_TITLE_ID[4]."</td>";
  239 + echo "<td align=center>".$PHP_TITLE_ID[5]."</td>";
  240 + echo "<td align=center>".$PHP_TITLE_ID[8]."</td>";
  241 + echo "<td align=center>".$PHP_TITLE_ID[10]."</td>";
  242 + echo "<td align=center>".$PHP_TITLE_ID[6]."</td>";
  243 + echo "<td align=center>".$PHP_TITLE_ID[14]."</td>";
  244 + echo "<td align=center>".$PHP_TITLE_ID[2]."</td>";
  245 + echo "<td align=center>".$PHP_TITLE_ID[3]."</td>";
  246 + echo "<td align=center>".$PHP_TITLE_ID[15]."</td>";
  247 + echo "<td align=center>".$PHP_TITLE_ID[19]."</td>";
  248 + echo "<td align=center>".$PHP_TITLE_ID[7]."</td>";
  249 + echo "<td align=center>".$PHP_TITLE_ID[17]."</td>";
  250 + echo "<td align=center>".$PHP_TITLE_ID[13]."</td>";
  251 + if ($strData[$intI][2]=="1"){
  252 + echo "<td>&nbsp;</td>";
  253 + }else{
  254 + echo "<td>●</td>";
  255 + }
  256 + echo "<td>".$PHP_TITLE_ID[11]."</td>";
  257 +
  258 + echo "<td align=center>".$PHP_TITLE_ID[30]."</td>";
  259 + if ($PHP_TITLE_ID[31]!="0"){
  260 + echo "<td align=center bgcolor=#00ffff>".$PHP_TITLE_ID[31]."</td>";
  261 + }else{
  262 + echo "<td align=center >".$PHP_TITLE_ID[31]."</td>";
  263 + }
  264 +
  265 + if ($PHP_TITLE_ID[21]!="0"){
  266 + echo "<td align=center bgcolor=#00ffff>".$PHP_TITLE_ID[21]."</td>";
  267 + }else{
  268 + echo "<td align=center >".$PHP_TITLE_ID[21]."</td>";
  269 + }
  270 + if ($PHP_TITLE_ID[22]!="0"){
  271 + echo "<td align=center bgcolor=#00ffff>".$PHP_TITLE_ID[22]."</td>";
  272 + }else{
  273 + echo "<td align=center >".$PHP_TITLE_ID[22]."</td>";
  274 + }
  275 + echo "</tr>";
  276 +}
  277 +?>
  278 +</table>
  279 +<hr>
  280 +<hr>
  281 +</form>
  282 +</body>
  283 +</HTML>
\ No newline at end of file
... ...
Please register or login to post a comment