OSDN Git Service

add: web base setting
authorSushi-k <epgrec@park.mda.or.jp>
Tue, 28 Jul 2009 03:44:20 +0000 (12:44 +0900)
committerSushi-k <epgrec@park.mda.or.jp>
Tue, 28 Jul 2009 03:44:20 +0000 (12:44 +0900)
envSetting.php [new file with mode: 0755]
postsettings.php [new file with mode: 0755]
systemSetting.php [new file with mode: 0755]

diff --git a/envSetting.php b/envSetting.php
new file mode 100755 (executable)
index 0000000..c0fe753
--- /dev/null
@@ -0,0 +1,16 @@
+<?php
+include_once("config.php");
+include_once(INSTALL_PATH."/Smarty/Smarty.class.php");
+include_once(INSTALL_PATH."/Settings.class.php");
+
+$settings = Settings::factory();
+$smarty = new Smarty();
+
+$smarty->assign( "settings", $settings );
+$smarty->assign( "install_path", INSTALL_PATH );
+$smarty->assign( "post_to", "postsettings.php" );
+$smarty->assign( "sitetitle", "環境設定設定" );
+$smarty->assign( "message", '<a href="index.php">設定せずに番組表に戻る</a>/<a href="systemSetting.php">システム設定へ</a>' );
+
+$smarty->display("envSetting.html");
+?>
\ No newline at end of file
diff --git a/postsettings.php b/postsettings.php
new file mode 100755 (executable)
index 0000000..5106531
--- /dev/null
@@ -0,0 +1,11 @@
+<?php
+include_once("config.php");
+include_once(INSTALL_PATH."/Settings.class.php");
+include_once(INSTALL_PATH."/reclib.php" );
+
+$settings = Settings::factory();
+$settings->post();
+$settings->save();
+
+jdialog("設定が保存されました", "index.php" );
+?>
\ No newline at end of file
diff --git a/systemSetting.php b/systemSetting.php
new file mode 100755 (executable)
index 0000000..0fd053e
--- /dev/null
@@ -0,0 +1,16 @@
+<?php
+include_once("config.php");
+include_once(INSTALL_PATH."/Smarty/Smarty.class.php");
+include_once(INSTALL_PATH."/Settings.class.php");
+
+$settings = Settings::factory();
+$smarty = new Smarty();
+
+$smarty->assign( "settings", $settings );
+$smarty->assign( "install_path", INSTALL_PATH );
+$smarty->assign( "post_to", "postsettings.php" );
+$smarty->assign( "sitetitle", "システム設定" );
+$smarty->assign( "message", '<a href="index.php">設定せずに番組表に戻る</a>' );
+
+$smarty->display("systemSetting.html");
+?>
\ No newline at end of file