summaryrefslogtreecommitdiffstats
path: root/application/modules/dev/views/scripts/bootmenu/index.phtml
blob: 3eb3b0cffdc3e4a39b85e8a7d5433b8689bfb34f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<h1>BootMenu</h1>
<?php echo $this->formButton('createbootmenu', 'Create BootMenu', array(
							'onclick' => 'self.location="/dev/bootmenu/createbootmenu"',
							'class' => 'addbutton'))?>


<table>
  <tr>
	<th>ID</th>
    <th>Title</th>
    <th>GroupID</th>
    <th>MembershipID</th>
    <th>Changed</th>
 	<th colspan=3>Actions</th>
  </tr>
  <?php if(count($this->bootmenulist)==0)
  	echo "</table> There are no BootMenus to display." ?>
  <?php foreach ($this->bootmenulist as $bootmenu): ?>
  <tr class=entry>
    <td><?php echo $this->escape($bootmenu->getID()); ?></td>
    <td><?php echo $this->escape($bootmenu->getTitle()); ?></td>
    <td><?php echo $this->escape($bootmenu->getGroupID()); ?></td>
    <td><?php echo $this->escape($bootmenu->getMembershipID()); ?></td>
    <td><?php echo $this->escape(date('Y-m-d H:i:s', $bootmenu->getCreated())); ?></td>
    <td class='action'><a href="<?php echo $this->url(
					array(
						'module'	=> 'dev',
						'controller' => 'bootmenu',
						'action'     => 'editbootmenu',
						'bootmenuID'   =>  $bootmenu->getID()
					),
					'default',
					true, false) ?>"><img src='/media/img/edit.png' alt='Edit Bootmenu'/></a></td>
	<td class='action'><a href="<?php echo $this->url(
					array(
						'module'	=> 'dev',
						'controller' => 'bootmenu',
						'action'     => 'deletebootmenu',
						'bootmenuID'   =>  $bootmenu->getID()
					),
					'default',
					true) ?>"><img src='/media/img/delete.png' alt='Delete Bootmenu'/></a></td>
	<td class='action'><a href="<?php echo $this->url(
					array(
						'module'	=> 'dev',
						'controller' => 'bootmenu',
						'action'     => 'addbootmenuentry',
						'bootmenuID'   =>  $bootmenu->getID(),
						'maxorder' => count($this->bootmenuentrylist[$bootmenu->getID()])
					),
					'default',
					true) ?>"><img src='/media/img/add.png' alt='Add Entry'/></a></td>
  </tr>

<?php if(count($this->bootmenuentrylist[$bootmenu->getID()]) > 0):?>
  <tr class=detail>
	<td class=arrowtop>↳</td>
	<td colspan=7>
	<table>
	<tr> 
	<th></th>
	<th>ID</th>
    <th>Title</th>
<!--	<th>BootmenuID</th>-->
    <th>BootOS</th>
    <th>kcl</th>
	<th>kclappend</th>
    <th>Config</th>
    <th>Position</th>
 	<th colspan=2>Actions</th>
    
  </tr>
  	<?php foreach ($this->bootmenuentrylist[$bootmenu->getID()] as $bootmenuentry): ?>	
  	<?php $bootos = $this->bootosmapper->find($bootmenuentry->getBootosID());?>
  	<?php $config = $this->configmapper->find($bootmenuentry->getConfigID());?>
  	<tr>
		<td class='action'>
			<a href="<?php echo $this->url(
					array(
						'module'	=> 'dev',
						'controller' => 'resource',
						'action'     => 'getbootmenuentry',
						'bootmenuentryID'   =>  $bootmenuentry->getID(),
						'bootosID' => $bootmenuentry->getBootosID(),
						'alpha'   =>  $_SESSION['alphasessionID']
					),
					'default',
					true, false) ?>"><img src='/media/img/play.gif'>
			</a>
		</td>
		<td><?php echo $this->escape($bootmenuentry->getID()); ?></td>
		<td><?php echo $this->escape($bootmenuentry->getTitle()); ?></td>
		<!--<td><?php echo $this->escape($bootmenuentry->getBootmenuID()); ?></td>
		--><td><?php echo "[".$this->escape($bootmenuentry->getBootosID())."] ". $bootos->getTitle(); ?></td>
		<td><?php echo $this->escape($bootmenuentry->getKcl()); ?></td>
		<td><?php echo $this->escape($bootmenuentry->getKclappend()); ?></td>
		<td><?php echo "[".$this->escape($bootmenuentry->getConfigID())."] ". $config->getTitle(); ?></td>
		<td><?php echo $this->escape($bootmenuentry->getOrder() + 1); ?></td>
		<td class='action'><a href="<?php echo $this->url(
					array(
						'module'	=> 'dev',
						'controller' => 'bootmenu',
						'action'     => 'editbootmenuentry',
						'bootmenuentryID'   =>  $bootmenuentry->getID(),
						'bootmenuID'   =>  $bootmenu->getID(),
						'maxorder' => count($this->bootmenuentrylist[$bootmenu->getID()]),
						'oldorder' => $bootmenuentry->getOrder()
					),
					'default',
					true, false) ?>"><img src='/media/img/edit.png' alt='Edit Entry'/></a></td>
		<td class='action'><a href="<?php echo $this->url(
					array(
						'module'	=> 'dev',
						'controller' => 'bootmenu',
						'action'     => 'removebootmenuentry',
						'bootmenuentryID'   =>  $bootmenuentry->getID()
					),
					'default',
					true) ?>"><img src='/media/img/delete.png' alt='Remove Entry'/></a></td>
	</tr>
	<?php endforeach; ?>
	</table>
	</td>
	</tr>
	<?php endif; ?>
  <?php endforeach; ?>
</table>