pictcode / app / View / Programs / index.ctp @ 9d2f0219
履歴 | 表示 | アノテート | ダウンロード (2.921 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 | 1a69c38c | shiwa | |
9 | <!-- Saved Area --> |
||
10 | |||
11 | b3a58ce1 | hasse | <?php foreach ($programs as $program): ?> |
12 | <section class="save_data" id="sortable"> |
||
13 | <a name="#save_data01"> |
||
14 | <img src="/img/img_save_sample02.png" alt="タイトル"> |
||
15 | <h3><?php echo h($program['Program']['title']); ?> </h3> |
||
16 | <p><?php echo h($program['Program']['description']); ?> </p> |
||
17 | </a> |
||
18 | <ul class="actions"> |
||
19 | <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> |
||
20 | <li><?php echo $this->Html->link(__('View'), array('action' => 'view', $program['Program']['id'])); ?></li> |
||
21 | <li><?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $program['Program']['id'])); ?></li> |
||
22 | </ul> |
||
23 | </section> |
||
24 | <?php endforeach; ?> |
||
25 | d90070cd | shiwa | <<<<<<< HEAD |
26 | 1a69c38c | shiwa | |
27 | <!-- Blank Area --> |
||
28 | |||
29 | b3a58ce1 | hasse | <?php |
30 | if($countprograms < 9){ |
||
31 | for($i=0 ; $i<(10-$countprograms) ; $i++){ |
||
32 | 1a69c38c | shiwa | echo ' |
33 | <section class="data"> |
||
34 | <section class="blank_data"> |
||
35 | <a name="#save_data10"> |
||
36 | <img src="/img/img_save_blank.png" alt="タイトル"> |
||
37 | </a> |
||
38 | <span class="blank"><a href="">あたらしく作る</a></span> |
||
39 | </section> |
||
40 | <section class="save_data"> |
||
41 | <a name="#save_data01"> |
||
42 | <img src="/img/img_save_sample02.png" alt="タイトル"> |
||
43 | <h3>ここにタイトルが入ります</h3> |
||
44 | <p>こちらに内容が入ります。</p> |
||
45 | b3a58ce1 | hasse | </a> |
46 | 1a69c38c | shiwa | <ul> |
47 | <li><a href="delete_check">さくじょ</a></li> |
||
48 | <li><a href="play">きょうゆう</a></li> |
||
49 | <li><a href="copy">コピー</a></li> |
||
50 | </ul> |
||
51 | </section> |
||
52 | </section> |
||
53 | '; |
||
54 | d90070cd | shiwa | ======= |
55 | 22fd3a57 | hasse | <?php var_dump($countprograms); ?> |
56 | b3a58ce1 | hasse | <?php |
57 | if($countprograms < 9){ |
||
58 | for($i=0 ; $i<(10-$countprograms) ; $i++){ |
||
59 | 22fd3a57 | hasse | echo '<section class="blank_data"> |
60 | <a name="#save_data10"> |
||
61 | <img src="/img/img_save_sample02.png" alt="タイトル"> |
||
62 | b3a58ce1 | hasse | </a> |
63 | 22fd3a57 | hasse | <span class="blank"><a href="">あたらしく作る</a></span> |
64 | b3a58ce1 | hasse | </section>'; |
65 | } |
||
66 | d90070cd | shiwa | >>>>>>> 22fd3a57332c6aa77b895d52fe3fbc4a06169e05 |
67 | b3a58ce1 | hasse | } |
68 | 1a69c38c | shiwa | } |
69 | b3a58ce1 | hasse | ?> |
70 | |||
71 | <div class="actions"> |
||
72 | <h3><?php echo __('Actions'); ?></h3> |
||
73 | <ul> |
||
74 | <li><?php echo $this->Html->link(__('New Program'), array('action' => 'add')); ?></li> |
||
75 | <li><?php echo $this->Html->link(__('List Users'), array('controller' => 'users', 'action' => 'index')); ?> </li> |
||
76 | <li><?php echo $this->Html->link(__('New User'), array('controller' => 'users', 'action' => 'add')); ?> </li> |
||
77 | </ul> |
||
78 | </div> |
||
79 | </article> |
||
80 | </main> |