2010.1.1
暫定的に記述。適宜更新していく。
//smarty読み込み require_once './smarty/Smarty.class.php';
//初期設定ファイルdefine読み込み
require_once './config.php';//ログイン用にセッションスタート
<?php session_start(); ?>//switch文で、モードに応じた処理を実行
switch ($_REQUEST['mode']) {
case 'setup':
setup(); //それぞれの関数へ
break;
case 'edit':
edit(); //それぞれの関数へ
break;
}//それぞれのファンクション
function setup(){
//TODO:ここにそれぞれの処理を書く//処理後、テンプレートを読み込む $smarty -> display("setup.tpl");
}
function edit(){
//TODO:ここにそれぞれの処理を書く//処理後、テンプレートを読み込む $smarty -> display("edit.tpl");
}
当サイトはAmazonアソシエイト・プログラムの参加者です。