<?php function __autoload($classe) { if (file_exists("class/especificas/{$classe}.class.php")) { include_once "class/especificas/{$classe}.class.php"; } elseif (file_exists("class/appado/{$classe}.class.php")) { include_once "class/appado/{$classe}.class.php"; } } $zipador = new Zipador(); $zipador->zipaArquivo('style', 'style.zip'); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Escritor De Software</title> <link rel="stylesheet" type="text/css" href="style/style.css"/> </head> <body> </body> </html>
if ($atributo->getIndice() == "padrao") { echo ' <li>' . $atributo->getNome() . ' - ' . $atributo->getTipo() . '</li>'; } else { echo ' <li>' . $atributo->getNome() . ' - ' . $atributo->getTipo() . '; ' . $atributo->getIndice() . '</li>'; } } echo '</ul>'; echo '</div>'; } } switch ($software->getLinguagem()) { case "php": $escritorPHP = new EscritorPHP(); $escritorPHP->setSoftware($software); $escritorPHP->escreverSoftware(); $zipador = new Zipador(); $zipador->zipaArquivo('sistemasphp/' . $software->getNome(), 'sistemasphp/' . $software->getNome() . '.zip'); echo '<br><a href="sistemasphp/' . $software->getNome() . '/index.php">Acessar Software</a><br>'; echo '<a href="sistemasphp/' . $software->getNome() . '.zip">Baixar Software</a>'; break; case "java": echo "Ainda falta implementar as classes que criam java"; //As classes deverao criar o codigo e compilar. break; case "c": echo "Ainda falta implementar as classes que criam c"; break; case "c++": echo "Ainda falta implementar as classes que criam c++"; break; case "pyton":