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

Changeset 10349 for OpenPNE3/trunk/apps


Ignore:
Timestamp:
Jan 24, 2009, 4:45:11 PM (14 years ago)
Author:
ebihara
Message:

#3472:added the opPartsOptionHolder class for storing parts options

Location:
OpenPNE3/trunk/apps/pc_frontend/templates
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/trunk/apps/pc_frontend/templates/_partsForm.php

    r10298 r10349  
    11<?php
    2 $options = array_merge(array(
    3   'button' => __('変更'),
    4   'url' => sprintf('%s/%s', $this->getModuleName(), $this->getActionName()),
    5 ), (array)$sf_data->getRaw('options'));
     2$options->setDefault('button', __('変更'));
     3$options->setDefault('url', sprintf('%s/%s', $this->getModuleName(), $this->getActionName()));
    64?>
    75
  • OpenPNE3/trunk/apps/pc_frontend/templates/_partsNineTable.php

    r10298 r10349  
    11<?php if (count($options['list'])): ?>
     2
    23<?php
    3 $options = array_merge(array(
    4   'row' => 3,
    5   'col' => 3,
    6   'type' => 'full',
    7 ), (array)$sf_data->getRaw('options'));
     4$options->setDefault('row', 3);
     5$options->setDefault('col', 3);
     6$options->setDefault('type', 'full');
    87?>
     8
    99<table>
    1010<?php $row = ceil(count($options['list']) / $options['row']) ?>
  • OpenPNE3/trunk/apps/pc_frontend/templates/_partsSearchResultList.php

    r10286 r10349  
    1 <?php $raw_options = $sf_data->getRaw('options'); ?>
    2 
    31<div class="pagerRelative"><p class="number"><?php echo pager_navigation($options['pager'], $options['link_to_page']); ?></p></div>
    42
    53<div class="block">
    64<?php foreach ($options['pager']->getResults() as $key => $result): ?>
     5<?php $list = $options->list->getRaw($key); ?>
    76<div class="ditem"><div class="item"><table><tbody><tr>
    87<td rowspan="<?php echo count($options['list'][$key]) + 1 ?>" class="photo">
     
    1211<th>
    1312<?php
    14 $keys = array_keys($raw_options['list'][$key]);
    15 echo array_shift($keys);
     13reset($list);
     14echo key($list);
    1615?>
    1716</th><td>
    18 <?php echo array_shift($raw_options['list'][$key]); ?>
     17<?php echo array_shift($list); ?>
    1918</td>
    2019</tr>
    21 <?php foreach ($raw_options['list'][$key] as $caption => $item) : ?>
     20<?php foreach ($list as $caption => $item) : ?>
    2221<tr>
    2322<th><?php echo $caption ?></th><td><?php echo $item ?></td>
Note: See TracChangeset for help on using the changeset viewer.