summaryrefslogblamecommitdiffstats
path: root/application/views/scripts/config/index.phtml
blob: f7d0fae399d613afaa74ad9e246cea4ef389a302 (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>
  </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><a href="<?php echo $this->url(
					array(
						'controller' => 'config',
						'action'     => 'editconfig',
						'configID'   =>  $config->getID()
					),
					'default',
					true, false) ?>">Edit Config</a></td>
	<td><a href="<?php echo $this->url(
					array(
						'controller' => 'config',
						'action'     => 'deleteconfig',
						'configID'   =>  $config->getID()
					),
					'default',
					true) ?>">Delete Config</a></td>
  </tr>
  <?php endforeach; ?>
</table>