<?php require_once '../../conf/config.php'; require_once 'AlladinCore.php'; $core = new AlladinCore(); $smarty =& $core->getSmarty(); // モデル取得 $m =& $core->getModel('client/edit_model'); // フォーム初期化 $m->initFormData(); if (isset($_GET['back'])) { // 確認画面からの戻り $o =& $core->getSession('new_client'); if ($o != null) { // 確認画面表示 $m->setFormInputData($o); } } else { if (isset($_POST['submit'])) { // 入力確認 $o =& $m->getObject($_POST); // check $check =& $o->getChecker(); $check->checkAll(); if ($check->getErrorCount() == 0) { // ログインIDチェック $loginId = $o->getField('login_id')->getValue(); $count = $m->getCountLoginId($loginId); if ($count == 0) { // セッション保存 $core->setSession('new_client', $o);
<?php require_once '../../conf/config.php'; require_once 'AlladinCore.php'; $core = new AlladinCore(); // ログインチェック $core->checkLogin(array('admin', 'media')); $smarty =& $core->getSmarty(); // モデル取得 $m =& $core->getModel(); $smarty->display($core->getTmplName());
<?php require_once '../../conf/config.php'; require_once 'AlladinCore.php'; $core = new AlladinCore(); $smarty =& $core->getSmarty(); // モデル取得 $m =& $core->getModel('media/edit_model'); // セッションから取得 $o =& $core->getSession('new_media'); // フォーム初期化 $m->initFormData(); try { if ($o != null) { // DB保存 $m->insert($o); $m->setFormTextData($o); $core->setSession('new_media', null); } else { // セッションから取得できません。 $e = new DataObjectNotFoundException('セッションからデータを取得できません。'); $e->display($smarty); } } catch (AlladinException $e) { $e->display($smarty); } // テンプレート設定 $smarty->assign('action', 'new'); $smarty->assign('step', 'end'); $smarty->assign($m->getFormData()); $smarty->display($core->getTmplName('media/detail'));
<?php ////////////////////////////////////////////////////////////////////////////////////// // 更新履歴 // 要件ID 更新日 更新者 概要 // nm00142 2009/06/10 kyo メディア事業:新規サイト構築 // ////////////////////////////////////////////////////////////////////////////////////// require_once '../../conf/config.php'; require_once 'AlladinCore.php'; $core = new AlladinCore(); $smarty =& $core->getSmarty(); // モデル取得 $m =& $core->getModel('system/site_edit_model'); // フォーム初期化 $init = $m->initFormData(); $smarty->assign($init); // 確認画面表示 if (isset($_GET['back'])) { // 確認画面からの戻り $o =& $core->getSession('new_site'); if ($o != null) { // 確認画面表示 $m->setFormInputData($o); } // 登録確認 } else { if (isset($_POST['submit'])) { // 入力確認 $o =& $m->getObject($_POST); // check
<?php require_once '../../conf/config.php'; require_once 'AlladinCore.php'; try { $core = new AlladinCore(); $smarty =& $core->getSmarty(); // モデル取得 $m =& $core->getModel('article/banner_model'); //--------------------- // GETパラメータ //--------------------- // anken_id(必須) $ankenId = trim($_GET['aid']); if (empty($ankenId) == true) { throw new RequestParamsException('anken id'); } // order_id(必須) $orderId = intval(trim($_GET['no'])); if (empty($orderId) == true) { throw new RequestParamsException('order id'); } //--------------------- // 処理 //--------------------- // メディア企業ID取得 $mediaCompanyId = null; if ($core->getLoginKind() == 'media') { // 所属メディアかどうかをチェック $mediaCompanyId = $core->getLoginId(); $anken =& $m->Article_getAnkenData($ankenId);