diff options
| author | Simon | 2011-03-14 16:20:25 +0100 |
|---|---|---|
| committer | Simon | 2011-03-14 16:20:25 +0100 |
| commit | 722ac9facf183998fb02e14bf035306672419aa6 (patch) | |
| tree | 142486bec18e259f9678de6c7ce75cfdbe1d5bf4 /application/views/scripts/pool | |
| parent | Zweiter push um die änderungen hinzuzufügen, Trennung der Ansichten (diff) | |
| download | pbs2-722ac9facf183998fb02e14bf035306672419aa6.tar.gz pbs2-722ac9facf183998fb02e14bf035306672419aa6.tar.xz pbs2-722ac9facf183998fb02e14bf035306672419aa6.zip | |
die verschobenen ansichten löschen
Diffstat (limited to 'application/views/scripts/pool')
| -rw-r--r-- | application/views/scripts/pool/createpool.phtml | 2 | ||||
| -rw-r--r-- | application/views/scripts/pool/deletepool.phtml | 1 | ||||
| -rw-r--r-- | application/views/scripts/pool/editpool.phtml | 4 | ||||
| -rw-r--r-- | application/views/scripts/pool/index.phtml | 126 | ||||
| -rw-r--r-- | application/views/scripts/pool/linkclient.phtml | 3 | ||||
| -rw-r--r-- | application/views/scripts/pool/unlinkclient.phtml | 1 |
6 files changed, 0 insertions, 137 deletions
diff --git a/application/views/scripts/pool/createpool.phtml b/application/views/scripts/pool/createpool.phtml deleted file mode 100644 index 305b36e..0000000 --- a/application/views/scripts/pool/createpool.phtml +++ /dev/null @@ -1,2 +0,0 @@ -<?php -echo $this->addpool; diff --git a/application/views/scripts/pool/deletepool.phtml b/application/views/scripts/pool/deletepool.phtml deleted file mode 100644 index 622e663..0000000 --- a/application/views/scripts/pool/deletepool.phtml +++ /dev/null @@ -1 +0,0 @@ -<br /><br /><center>View script for controller <b>Pool</b> and script/action name <b>deletepool</b></center>
\ No newline at end of file diff --git a/application/views/scripts/pool/editpool.phtml b/application/views/scripts/pool/editpool.phtml deleted file mode 100644 index 359a5f9..0000000 --- a/application/views/scripts/pool/editpool.phtml +++ /dev/null @@ -1,4 +0,0 @@ -<h1>Edit Pool</h1> -<?php - -echo $this->editpoolform; diff --git a/application/views/scripts/pool/index.phtml b/application/views/scripts/pool/index.phtml deleted file mode 100644 index 2c6ba16..0000000 --- a/application/views/scripts/pool/index.phtml +++ /dev/null @@ -1,126 +0,0 @@ -<h1>Pools</h1> -<?php echo $this->formButton('createconfig', 'Create Pool', array( - 'onclick' => 'self.location="/pool/createpool"', - 'class' => 'addbutton'))?> - -<?php if ($this->pools): ?> - <table > - <tr> - <th>ID</th> - <th>Title</th> - <th>Description</th> - <th>Location</th> - <th colspan=3>Actions</th> - </tr> - <?php foreach ($this->pools as $pool): ?> - <tr class=entry> - <td><?php echo $this->escape($pool->getID()) ?></td> - <td><?php echo $this->escape($pool->getTitle()) ?></td> - <td><?php echo $this->escape($pool->getDescription()) ?></td> - <td><?php echo $this->escape($pool->getLocation()) ?></td> - <td class='action'><a href="<?php echo $this->url( - array( - 'controller' => 'pool', - 'action' => 'editpool', - 'poolID' => $pool->getID() - ), - 'default', - true) ?>"><img src='/media/img/edit.png' alt='Edit Pool'/></a></td> - <td class='action'><a href="<?php echo $this->url( - array( - 'controller' => 'pool', - 'action' => 'deletepool', - 'poolID' => $pool->getID() - ), - 'default', - true) ?>"><img src='/media/img/delete.png' alt='Delete Pool'/></a></td> - <td class='action'><a href="<?php echo $this->url( - array( - 'controller' => 'pool', - 'action' => 'linkclient', - 'poolID' => $pool->getID() - ), - 'default', - true) ?>"><img src='/media/img/add.png' alt='Link Client'/></a></td> - </tr> - <?php - $poolentriesMapper = new Application_Model_PoolEntriesMapper(); - $clients = $poolentriesMapper->findBy('poolID',$pool->getID()); - ?> - <?php if (count($clients)>0): ?> - <tr class=detail> - <td class=arrowtop>↳</td> - <td colspan=6> - <table> - <tr> - <th>ClientID</th> - <th>Mac</th> - <th>Hardwarehash</th> - <th>Actions</th> - </tr> - <?php - foreach ($clients as $client): ?> - <tr> - <td><?php echo $client['clientID'];?></td> - <?php - $cli = new Application_Model_Client(); - $clientMapper = new Application_Model_ClientMapper(); - $clientMapper->find($client['clientID'],$cli); - ?> - <td><?php echo ($cli->macAdress); ?></td> - <td><?php echo ($cli->hardwarehash); ?></td> - <td class='action'><a href="<?php echo $this->url( - array( - 'controller' => 'pool', - 'action' => 'unlinkclient', - 'poolentriesID' => $client['poolentriesID'] - ), - 'default', - true) ?>"><img src='/media/img/delete.png' alt='Unlink Client'/></a></td> - </tr> - <?php endforeach ?> - </table> - </td> - </tr> - <?php endif;?> - <?php endforeach ?> - </table> -<h2>Free clients</h2> -<table > -<tr> -<th>ClientID</th> -<th>MacAdress</th> -<th>Hardwarehash</th> -<th>Actions</th> -</tr> -<?php -foreach ($this->freeclients as $client): ?> - <tr> - <td><?php echo $client['clientID']; ?></td> - <td><?php echo $client['macadress']; ?></td> - <td><?php echo $client['hardwarehash']; ?></td> - <td><select onChange="location.href=this.options[this.selectedIndex].value"> - <option></option> - <?php foreach ($this->pools as $pool): ?> - <option value="<?php echo $this->url( - array( - 'controller' => 'pool', - 'action' => 'linkclient', - 'clientID' => $client['clientID'], - 'poolID' => $pool->getID(), - ), - 'default', - true) ?>"><?php echo $pool->getTitle(); ?></option> - <?php //<img src='/media/img/add.png' alt='Link to Pool'/></a></td> ?> - <?php endforeach ?> - </select> - </td> - </tr> -<?php endforeach ?> -</table> -<?php else: ?> - - - <p>There are no pools to display.</p> - -<?php endif;?> diff --git a/application/views/scripts/pool/linkclient.phtml b/application/views/scripts/pool/linkclient.phtml deleted file mode 100644 index cbd2dd4..0000000 --- a/application/views/scripts/pool/linkclient.phtml +++ /dev/null @@ -1,3 +0,0 @@ -<h1>Link Clients</h1> -<?php -echo $this->poolclient; diff --git a/application/views/scripts/pool/unlinkclient.phtml b/application/views/scripts/pool/unlinkclient.phtml deleted file mode 100644 index 35aa9c5..0000000 --- a/application/views/scripts/pool/unlinkclient.phtml +++ /dev/null @@ -1 +0,0 @@ -<br /><br /><center>View script for controller <b>Pool</b> and script/action name <b>unlinkclient</b></center>
\ No newline at end of file |
