pictcode / app / View / Programs / index.ctp @ 22fd3a57
履歴 | 表示 | アノテート | ダウンロード (1.994 KB)
1 | b3a58ce1 | hasse | <main role="main"> |
---|---|---|---|
2 | <article class="admin"> |
||
3 | <h2> |
||
4 | <img src="/img/img_h1_admin01.png" alt="お問い合わせ - 送信完了"> |
||
5 | </h2> |
||
6 | <p>ほぞんした PictCodeの プログラムを へんしゅうしたり さくじょしたり、コピーしたりできるよ!</p> |
||
7 | <p>下のいちらんから せんたくして へんしゅうしよう!</p> |
||
8 | <?php foreach ($programs as $program): ?> |
||
9 | <section class="save_data" id="sortable"> |
||
10 | <a name="#save_data01"> |
||
11 | <img src="/img/img_save_sample02.png" alt="タイトル"> |
||
12 | <h3><?php echo h($program['Program']['title']); ?> </h3> |
||
13 | <p><?php echo h($program['Program']['description']); ?> </p> |
||
14 | </a> |
||
15 | <ul class="actions"> |
||
16 | <li><?php echo $this->Form->postLink(__('さくじょ'), array('action' => 'delete', $program['Program']['id']), array('confirm' => __('Are you sure you want to delete # %s?', $program['Program']['id']))); ?></li> |
||
17 | <li><?php echo $this->Html->link(__('View'), array('action' => 'view', $program['Program']['id'])); ?></li> |
||
18 | <li><?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $program['Program']['id'])); ?></li> |
||
19 | </ul> |
||
20 | </section> |
||
21 | <?php endforeach; ?> |
||
22 | 22fd3a57 | hasse | <?php var_dump($countprograms); ?> |
23 | b3a58ce1 | hasse | <?php |
24 | if($countprograms < 9){ |
||
25 | for($i=0 ; $i<(10-$countprograms) ; $i++){ |
||
26 | 22fd3a57 | hasse | echo '<section class="blank_data"> |
27 | <a name="#save_data10"> |
||
28 | <img src="/img/img_save_sample02.png" alt="タイトル"> |
||
29 | b3a58ce1 | hasse | </a> |
30 | 22fd3a57 | hasse | <span class="blank"><a href="">あたらしく作る</a></span> |
31 | b3a58ce1 | hasse | </section>'; |
32 | } |
||
33 | } |
||
34 | ?> |
||
35 | |||
36 | <div class="actions"> |
||
37 | <h3><?php echo __('Actions'); ?></h3> |
||
38 | <ul> |
||
39 | <li><?php echo $this->Html->link(__('New Program'), array('action' => 'add')); ?></li> |
||
40 | <li><?php echo $this->Html->link(__('List Users'), array('controller' => 'users', 'action' => 'index')); ?> </li> |
||
41 | <li><?php echo $this->Html->link(__('New User'), array('controller' => 'users', 'action' => 'add')); ?> </li> |
||
42 | </ul> |
||
43 | </div> |
||
44 | </article> |
||
45 | </main> |