ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 10562


Ignore:
Timestamp:
Jan 29, 2009, 8:32:42 PM (11 years ago)
Author:
nagasawa
Message:

#3316:fixed layout of the wordconfig page

Location:
OpenPNE3/branches/nagasawa_word
Files:
7 added
2 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/branches/nagasawa_word/apps/pc_backend/modules/word/actions/actions.class.php

    r10345 r10562  
    1616    $this->form = new WordConfigsForm(array(), array('word_configs' => $wordConfigs));
    1717
     18    $this->wordList = array();
     19    foreach ($wordConfigs as $wordConfig)
     20    {
     21      $this->wordList[strval($wordConfig->getWordTypeId())][] = $wordConfig;
     22    }
     23
    1824    if ($request->isMethod(sfRequest::POST))
    1925    {
  • OpenPNE3/branches/nagasawa_word/apps/pc_backend/modules/word/templates/indexSuccess.php

    r10345 r10562  
    44
    55<form action="" method="post">
     6<?php echo $form->renderHiddenFields() ?>
    67<table>
    7 <?php echo $form ?>
     8<?php foreach ($sf_data->getRaw('wordList') as $wordConfigs): ?>
     9<?php foreach ($wordConfigs as $key => $wordConfig): ?>
     10<?php $field = $form[$wordConfig->getName()] ?>
    811<tr>
    9 <td colspan="2"><input type="submit" value="<?php echo __('設定変更') ?>" /></td>
     12<?php if (!$key): ?>
     13<th rowspan="<?php echo count($wordConfigs) ?>"><?php echo $wordConfig->getWordType() ?></th>
     14<?php endif ?>
     15<th><?php echo $field->renderLabel() ?></th>
     16<td>
     17<span class="info"><?php echo $wordConfig->getDescription() ?></span>
     18<br />
     19<?php echo $field->renderError() ?>
     20<?php echo $field->render(array('value' => $wordConfig->getValue())) ?>
     21</td>
    1022</tr>
     23<?php endforeach ?>
     24<?php endforeach ?>
     25
     26<tr>
     27<td colspan="3"><input type="submit" value="<?php echo __('設定変更') ?>" /></td>
     28</tr>
     29
    1130</table>
     31
    1232</form>
Note: See TracChangeset for help on using the changeset viewer.