protected function _getForm()
 {
     require_once APPLICATION_PATH . '/forms/ServiceForm.php';
     require_once APPLICATION_PATH . '/forms/FeedServiceOptionForm.php';
     $form = new ServiceForm();
     $optionForm = new FeedServiceOptionForm();
     $form->addSubForm($optionForm, 'service_option');
     return $form;
 }
Example #2
0
<?php 
}
//add in all the sripts
?>

<?php 
/*Database coding: this checks for multiple different actions made by users and responds accordingly.*/
include_once "classes/Service.php";
include_once "classes/Device.php";
include_once "classes/Contact.php";
include_once 'classes/ServiceForm.php';
include_once 'classes/EdittingTools.php';
include_once 'classes/PopLocations.php';
//Make a new service, a new tool bar, and a new form
$tool = new EdittingTools();
$serviceForm = new ServiceForm("auto", 5);
$services = new Service();
$status;
$keyHandlers = array();
$keyData = array();
$keyTitle = array();
//infoKey generates a set of key names to store the key values
$serviceKey = array();
//heading is the array of headlines in the table
$headings = array("Service ID", "Customer", "Service Name", "Service Type");
// Specify Service status
$status_array = array('Testing' => 'Testing', 'In Production' => 'In Production', 'Out of Service' => 'Out of Service');
//titles are the subcategories for each headline. In the array "heading" means make a room there for the headline
$titles = array();
//display the status for success and failures
switch (success) {