From: Cake Date: Mon, 25 Jan 2010 15:56:30 +0000 (+0900) Subject: Profilesの表示デザイン変更 X-Git-Tag: version-alpha~192^2~44 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=d9e471b324053f025aaeb1b81668656c5a25c061;p=trpgtools-onweb%2Fcake-frame.git Profilesの表示デザイン変更 --- diff --git a/app/controllers/app_controller.php b/app/controllers/app_controller.php index 24c3173..4356372 100644 --- a/app/controllers/app_controller.php +++ b/app/controllers/app_controller.php @@ -42,8 +42,6 @@ class AppController extends Controller 'Token' ); - var $onReady = ''; - /* ACL */ // 追加アクション用 crudMap var $actionMapPlus = array(); diff --git a/app/views/helpers/select.php b/app/views/helpers/select.php index 1a7cf11..1d5288a 100644 --- a/app/views/helpers/select.php +++ b/app/views/helpers/select.php @@ -28,6 +28,8 @@ class SelectHelper extends Helper { ); var $i18n_profile_types = array(); + var $profile_type = array(); + /** * public_flagの設定をview表示形式に変換 * @@ -238,5 +240,26 @@ class SelectHelper extends Helper { echo $this->Form->input('profile_type', $option); } + + /* Profile種類を判断 */ + function set_profile_type4view($profile) + { + $this->profile_type = array( + 'is_select' => false, + 'is_table' => false, + 'is_multi' => false, + ); + + if ($profile['profile_type'] == 'select' || $profile['profile_type'] == 'm-select') { + $this->profile_type['is_select'] = true; + } + if ($profile['profile_type'] == 'm-table') { + $this->profile_type['is_table'] = true; + } + if ($profile['profile_type'] == 'm-select' || $profile['profile_type'] == 'm-table') { + $this->profile_type['is_multi'] = true; + } + } + } diff --git a/app/views/systems/admin_view.ctp b/app/views/systems/admin_view.ctp index 24565b2..14ecc9e 100644 --- a/app/views/systems/admin_view.ctp +++ b/app/views/systems/admin_view.ctp @@ -1,41 +1,60 @@
-

-
- > - > -
- - link('system imagefile', $system['System']['url'], array('target'=>'_blank'), false, false); ?> - - '; ?> - - - > - > - - link($system['System']['url'], $system['System']['url'], array('target'=>'_blank'), false, false); ?> - -   - - - > - > - - - - - - - > - > - get_i18n_public_flag($system['System']['public_flag'], $public_flags) ?> - - > - > - -   - -
+

+ + + + + + + + + + + + + + + + + + + + + +
+ + + + link('system imagefile', $system['System']['url'], array('target'=>'_blank'), false, false); ?> + + '; ?> + +
+ + + + link($system['System']['url'], $system['System']['url'], array('target'=>'_blank'), false, false); ?> + +   + +
+ + + get_i18n_public_flag($system['System']['public_flag'], $public_flags) ?> + + + + + + + + +
+ + + +   +