Mercurial > epgrec.yaz
changeset 42:68de7a0e44cd
add: web base setting
author | Sushi-k <epgrec@park.mda.or.jp> |
---|---|
date | Tue, 28 Jul 2009 12:44:20 +0900 |
parents | c50bbb4f8623 |
children | 4def2b564161 |
files | envSetting.php postsettings.php systemSetting.php |
diffstat | 3 files changed, 43 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/envSetting.php Tue Jul 28 12:44:20 2009 +0900 @@ -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
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/postsettings.php Tue Jul 28 12:44:20 2009 +0900 @@ -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
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/systemSetting.php Tue Jul 28 12:44:20 2009 +0900 @@ -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