summaryrefslogblamecommitdiffstats
path: root/application/views/scripts/config/index.phtml
blob: 5562b86a24bc29aac8a513415218a316387dea44 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
               


                                                                                                            
 
       



                    
                         
                        
                    
                                  
       

                                                            
                                                  
                  


                                                                
                                                                         
                                                                    
                                                                                     
                                                      
                                              


                                                                                 

                                                  

                                                                                                                    
                                              

                                                                               
                                                                                 

                                                  
                                                                                                                 


                      
 




        
<h1>Config</h1>
<?php echo $this->formButton('createconfig', 'Create Config', array(
							'onclick' => 'self.location="/config/createconfig"',
							'class' => 'addbutton'))?>

<table>
  <tr>
    <th>ID</th>
    <th>Title</th>
    <th>GroupID</th>
    <th>MembershipID</th>
    <th>Shellscript</th>
    <th>Changed</th>
 	<th colspan=2>Actions</th>
  </tr>
  <?php if(count($this->configlist)==0)
  	echo "</table> There are no Config's to display." ?>
  <?php foreach ($this->configlist as $config): ?>
  <tr class=entry>
    <td><?php echo $this->escape($config->getID()); ?></td>
    <td><?php echo $this->escape($config->getTitle()); ?></td>
    <td><?php echo $this->escape($config->getGroupID()); ?></td>
    <td><?php echo $this->escape($config->getMembershipID()); ?></td>    
    <td><?php echo $this->escape($config->getShellscript()); ?></td>
    <td><?php echo $this->escape(date('Y-m-d H:i:s', $config->getCreated())); ?></td>
    <td class='action'><a href="<?php echo $this->url(
					array(
						'controller' => 'config',
						'action'     => 'editconfig',
						'configID'   =>  $config->getID()
					),
					'default',
					true, false) ?>"><img src='/media/img/edit.png' alt='Edit Config'/></a></td>
	<td class='action'><a href="<?php echo $this->url(
					array(
						'controller' => 'config',
						'action'     => 'deleteconfig',
						'configID'   =>  $config->getID()
					),
					'default',
					true) ?>"><img src='/media/img/delete.png' alt='Delete Config'/></a></td>
  </tr>
  <?php endforeach; ?>
</table>