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

Changeset 10206 for OpenPNE3/trunk/apps


Ignore:
Timestamp:
Jan 18, 2009, 8:58:40 PM (14 years ago)
Author:
kiwa
Message:

#3354: Added template parts for mobile

Location:
OpenPNE3/trunk/apps/mobile_frontend/templates
Files:
2 added
2 copied

Legend:

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

    r10202 r10206  
    1 <?php include_customizes($id, 'before') ?>
    2 <div id="<?php echo $id ?>" class="dparts box"><div class="parts">
     1<?php include_customizes($id, 'headTop') ?>
     2<?php if (isset($option['title'])) : ?>
     3<table id="<?php echo $id ?>" width="100%">
     4<tr><td bgcolor="#7ddadf">
     5<font color="#000000"><?php echo $option['title'] ?></font><br>
     6</td></tr>
     7<?php else : ?>
     8<tr><td bgcolor="#ffffff">
     9<hr color="#b3ceef">
     10</td></tr>
     11</table>
     12<?php endif; ?>
     13<?php include_customizes($id, 'headBottom') ?>
    314
    4 <?php if ($title) : ?>
    5 <div class="partsHeading">
    6 <?php include_customizes($id, 'headTop') ?>
    7 <h3><?php echo $title ?></h3>
    8 <?php include_customizes($id, 'headBottom') ?>
    9 </div>
    10 <?php endif; ?>
    11 
    12 <div class="block">
    13 <?php if (empty($option['form'])) : ?>
    14 <div class="body">
    15 <?php include_customizes($id, 'bodyTop') ?>
    16 <?php echo $sf_data->getRaw('body') ?>
    17 <?php include_customizes($id, 'bodyBottom') ?>
    18 </div>
    19 <?php endif; ?>
    20 
    21 <?php if (isset($option['form'])) : ?>
    2215<?php $option_raw = $sf_data->getRaw('option') ?>
    2316<form action="<?php echo url_for($option_raw['url']) ?>" method="post"<?php if (!empty($option['isMultipart'])) : ?> enctype="multipart/form-data"<?php endif; ?>>
    2417<?php include_customizes($id, 'formTop') ?>
    25 <table>
    2618<?php if ($option['form']  instanceof sfOutputEscaperArrayDecorator) : ?>
    2719<?php foreach ($option['form'] as $form) : ?>
     
    3224<?php endif; ?>
    3325<?php include_customizes($id, 'lastRaw') ?>
    34 </table>
    35 <?php if (!empty($option['moreInfo'])) : ?>
    36 <div class="block moreInfo">
    37 <ul class="moreInfo">
    38 <?php foreach ($option['moreInfo'] as $key => $value) : ?>
    39 <li><?php echo $option['moreInfo']->getRaw($key); ?></li>
    40 <?php endforeach; ?>
    41 </ul>
    42 </div>
     26
     27<?php if (!empty($option['align'])) : ?>
     28<div align="<?php echo $option['align'] ?>">
     29<?php else : ?>
     30<div>
    4331<?php endif; ?>
    44 <div class="operation">
    45 <ul class="moreInfo button">
    46 <li>
    4732<input class="input_submit" type="submit" value="<?php echo $option['button'] ?>" />
    48 </li>
    49 </ul>
    5033</div>
    5134<?php include_customizes($id, 'formBottom') ?>
    5235</form>
    53 <?php endif; ?>
    54 
    55 </div>
    56 
    57 </div></div>
    58 <?php include_customizes($id, 'after') ?>
  • OpenPNE3/trunk/apps/mobile_frontend/templates/_partsList.php

    r10202 r10206  
    1 <?php include_customizes($id, 'before') ?>
    21<table id="<?php echo $id ?>" width="100%">
    3 <?php if (isset($options['title'])) : ?>
     2<?php if (isset($option['title'])) : ?>
    43<tr><td bgcolor="#7ddadf">
    5 <font color="#000000"><?php echo $options['title'] ?></font><br>
     4<font color="#000000"><?php echo $option['title'] ?></font><br>
    65</td></tr>
    76<?php else : ?>
     
    1110<?php endif; ?>
    1211
    13 <?php foreach ($list as $key => $value) : ?>
     12<?php foreach ($contents as $key => $value) : ?>
    1413<tr><td bgcolor="<?php echo cycle_vars($id, '#e0eaef,#ffffff') ?>">
    15 <?php echo $list->getRaw($key); ?><br>
     14<?php echo $contents->getRaw($key); ?><br>
    1615</td></tr>
    17 <?php if (!empty($options['border'])) : ?>
     16<?php if (!empty($option['border'])) : ?>
    1817<tr><td bgcolor="#ffffff">
    1918<hr color="#b3ceef">
     
    2221<?php endforeach; ?>
    2322
    24 <?php if (isset($options['moreInfo'])) : ?>
     23<?php if (isset($option['moreInfo'])) : ?>
    2524<tr><td align="right">
    26 <?php foreach ($options['moreInfo'] as $key => $value) : ?>
    27 <?php echo $options['moreInfo']->getRaw($key); ?><br>
     25<?php foreach ($option['moreInfo'] as $key => $value) : ?>
     26<?php echo $option['moreInfo']->getRaw($key); ?><br>
    2827<?php endforeach; ?>
    2928</td></tr>
     
    3231</table>
    3332<br>
    34 <?php include_customizes($id, 'after') ?>
Note: See TracChangeset for help on using the changeset viewer.