<?php ////////////////////////////////////////////////////////////////////////////////////// // 更新履歴 // 要件ID 更新日 更新者 概要 // nm00237 2011/05/19 kyo メディア一括登録 ////////////////////////////////////////////////////////////////////////////////////// require_once '../../conf/config.php'; require_once 'AlladinCore_v3.php'; $core = new AlladinCore(); $smarty =& $core->getSmarty(); $smarty->display($core->getTmplName());
<?php ////////////////////////////////////////////////////////////////////////////////////// // 更新履歴 // 要件ID 更新日 更新者 概要 // nm00188 2010/03/15 kyo 月次レポートクライアント表示 ////////////////////////////////////////////////////////////////////////////////////// require_once '../../../conf/config.php'; require_once 'AlladinCore.php'; //↓↓===========nm00188 2010/03/15 start=================================== // admin認証は不要 //$core = new AlladinCore(); $core = new AlladinCore(false); //↑↑===========nm00188 2010/03/15 end===================================== // コントローラ取得 $ctrl =& $core->getController(); // 実行 $ctrl->execute();
<?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取得 $core = new AlladinCore(); // モデル取得 $m =& $core->getModel(); // メディア名補完処理準備:指定された案件IDをCookie保存 if (isset($_GET['anken_id']) == true) { setcookie("anken_id", $_GET['anken_id']); exit; } // メディア名補完処理:案件ID・クエリが取得できなければ、exit if (isset($_COOKIE['anken_id']) == true && isset($_GET['q']) == true) { $ankenId = $_COOKIE['anken_id']; $queryString = $_GET['q']; } else { exit; } // 案件情報取得 $anken = $m->Search_MediaCompanyList_getAnkenData($ankenId); // 検索 $data =& $m->Search_MediaCompanyList_getMediaCompanyList($anken); foreach ($data as $datakey => $list) { foreach ($list as $listkey => $mediaCompanyName) { if (strstr(strtolower($mediaCompanyName), $queryString) !== false) { echo "{$mediaCompanyName}\n"; } } }
<?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(false); // コントローラ取得 $key = $_REQUEST['aid']; $ctrl =& $core->getControllerWithAnkenId($key); // 実行 $ctrl->execute();
<?php ////////////////////////////////////////////////////// // 更新履歴 // 要件ID 更新日 更新者 修正概要 // nm90020 2009/09/17 林 A社向け_レポート改修概要 // /////////////////////////////////////////////////////// require_once '../../../conf/config.php'; require_once 'AlladinCore.php'; $core = new AlladinCore(false); // ログインチェック $core->checkLogin(array('admin', 'client')); // モデル取得 $m =& $core->getModel(); // smarty取得 $smarty =& $core->getSmarty(); // フォーム初期化 $init = $m->Result_ClientSearchUserIndex_initFormData(); $smarty->assign($init); // ログインクライアントID if ($core->getLoginKind() == 'client') { $clientId = $core->getLoginId(); } // 検索条件 $like = array(); if (isset($_POST['search']) == true) { $like['anken_id'] = $_POST['anken_id']; $like['pv_date_from'] = $_POST['pv_date_from']; $like['pv_date_to'] = $_POST['pv_date_to']; $like['action_date_from'] = $_POST['action_date_from'];
<?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'; $core = new AlladinCore(false); $smarty =& $core->getSmarty(); // アクション処理 if (isset($_POST['login']) == true) { // ログインユーザーのIPアドレス取得 $ip = $_SERVER['REMOTE_ADDR']; // モデル取得 $m =& $core->getModel(); // id pass 判定 $loginId = $_POST['id']; $loginPass = $_POST['password']; $m->Login_login($loginId, $loginPass, $ip); if ($m->IsLoginOk() == true) { // logに出力 $name = $core->getLoginName(); $kind = $core->getLoginKind(); $ip = $core->getLoginIp(); $log =& $core->getLogger(); $log->info("login ({$kind}){$name}:{$ip}"); // ページ遷移 if ($kind == 'listing') { $core->movePage(FULLURL_ADMIN . 'listing/index.php'); } else { $core->movePage(FULLURL_ADMIN . 'index.php'); } } else { // ログイン失敗
<?php require_once '../../conf/config.php'; require_once 'AlladinCore.php'; $core = new AlladinCore(); $smarty =& $core->getSmarty(); // モデル取得 $m =& $core->getModel(); $ankenId = $_GET['aid']; $mediaId = $_GET['mid']; if (empty($ankenId) == false && empty($mediaId) == false) { // 基本情報取得 $data =& $m->Send_getAnkenAndMediaData($ankenId, $mediaId); $smarty->assign($data); $smarty->assign('media_id', $mediaId); // キャンペーンコード $code = $data['campaign_code']; // 提携メディアID $teikeiMediaId = $m->Send_getTeikeiMediaId($code, $ankenId, $mediaId); $send = $_POST['send']; $url = $_POST['url']; $formActionUrl = $_SERVER['SCRIPT_NAME'] . "?aid={$ankenId}&mid={$mediaId}"; // 確認 if (isset($send) && isset($url)) { // DB更新 $usr = $core->getLoginLoginId(); // check $m->Send_checkMediaAnkenTable($code, $teikeiMediaId); $m->Send_MediaTest_update($code, $teikeiMediaId, $url, $usr); // 再読み込み $core->movePage($formActionUrl);
<?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 require_once '../../conf/config.php'; require_once 'AlladinCore.php'; $core = new AlladinCore(); $smarty =& $core->getSmarty(); // モデル取得 $m =& $core->getModel('media/edit_model'); // フォーム初期化 $m->initFormData(); if (isset($_GET['mid']) == true) { /******************************** * 確認画面を表示 * 1.メディアIDを取得 * 2.変更前後のDataObjectをそれぞれ取得 * 3.差分を取得 * 4.表示 ********************************/ // メディアIDを取得 $mediaId = intval(trim($_GET['mid'])); // セッションから変更前データ取得 $name = "old_media_{$mediaId}"; $old =& $core->getSession($name); // セッションから変更後データ取得 $name = "new_media_{$mediaId}"; $new =& $core->getSession($name); if ($old == null || $new == null) { /////////////////////////////////////// // セッションから取得できません。 /////////////////////////////////////// $e = new DataObjectNotFoundException('セッションからデータを取得できません。');
<?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);
<?php require_once '../../../conf/config.php'; require_once 'AlladinCore.php'; $core = new AlladinCore(); // コントローラ取得 $key = $_GET['aid']; $ctrl =& $core->getController($key); // 実行 $ctrl->execute();