TOP000_G.php
1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php
//*****************************************************************************
//*
//* プログラム名:インデックスページ
//* プログラムID:TOP000_G.php
//* 作成者 :
//*
//*****************************************************************************
header("Content-type: text/html; charset=EUC-JP");
include("include/session_start.inc");
include("include/SessionChk.inc");
include('include/smarty.conf');
include('include/date.inc');
include('./include/Get_GooGleCal.inc');
include('./include/XML_unserialize.php');
$strDBinc="include/dbcon.inc";
include($strDBinc);
//echo $PHP_SYAIN_CD;
//echo $st_date;
//$AryG_Data = Get_GooGleCalWeek($PHP_SYAIN_CD , $st_date , "1");
$strSQL="SELECT * FROM kojin_data_tbl WHERE seq=21 AND syain_cd='$PHP_SYAIN_CD'";
$objID = pg_exec($strSQL);
if($objID==false){
echo("SQL実行に失敗しました(SELECT)");
exit;
}
if (pg_numrows($objID) > 0){
$objIDData=pg_fetch_object($objID, 0);
$Google_URL=$objIDData->memo;
}else{
$Google_URL="";
}
$RetunData["syain_cd"] = "";
$RetunData["id"] = "";
$RetunData["key"] = "";
if ($Google_URL!=""){
$aryUrl = split("/",$Google_URL);
if (count($aryUrl)<8){
}else{
$RetunData["syain_cd"] = $PHP_SYAIN_CD;
$RetunData["id"] = $aryUrl[5];
$RetunData["key"] = str_replace("private-", "", $aryUrl[6]);
}
}
echo json_encode($RetunData);
//echo $AryG_Data;
//echo $kojin_sche;
//echo $kojin_sche;
?>