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

source: OpenPNE3/trunk/apps/pc_backend/modules/navi/templates/indexSuccess.php @ 10123

Last change on this file since 10123 was 10123, checked in by ebihara, 14 years ago

#3401:added ability to configure the navi menus for the mobile_frontend application

File size: 1.4 KB
Line 
1<?php slot('submenu') ?>
2<?php include_partial('design/submenu'); ?>
3<?php end_slot() ?>
4
5<?php use_helper('Javascript'); ?>
6
7<h2>ナビ設定</h2>
8
9<?php foreach ($list as $type => $navi) : ?>
10<h3><?php echo $type ?></h3>
11
12<table id="type_<?php echo str_replace(' ', '_', $type) ?>">
13<tr>
14<th>URL</th>
15<th>項目名(ja_JP)</th>
16<th colspan="2">操作</th>
17</tr>
18<?php foreach ($navi as $form) : ?>
19<tbody id="type_<?php echo str_replace(' ', '_', $type) ?>_<?php echo $form->getObject()->getId() ?>"<?php if (!$form->isNew()) : ?> class="sortable"<?php endif; ?>>
20<tr>
21<td><form action="<?php echo url_for('navi/edit?app='.$app) ?>" method="post">
22<?php echo $form->renderHiddenFields() ?>
23<?php echo $form['uri']->render() ?></td>
24<td><?php echo $form['ja_JP']['caption']->render() ?><?php echo $form['type']->render(array('value' => $type)) ?></td>
25<?php if ($form->isNew()) : ?>
26<td colspan="2"><input type="submit" value="追加" /></form></td>
27<?php else : ?>
28<td><?php echo $form['id']->render() ?>
29<input type="submit" value="編集" /></form></td>
30<td><form action="<?php echo url_for('navi/delete?id=' . $form->getObject()->getId()) ?>" method="post" /><input type="submit" value="削除" /></form></td>
31<?php endif; ?>
32</tr>
33</tbody>
34<?php endforeach; ?>
35</table>
36
37<?php echo sortable_element('type_'.str_replace(' ', '_', $type), array(
38  'tag'  => 'tbody',
39  'only' => 'sortable',
40  'url' => 'navi/sort'
41)) ?>
42
43<?php endforeach; ?>
Note: See TracBrowser for help on using the repository browser.