Skip to content
Snippets Groups Projects
Commit 429be7c3 authored by hahn's avatar hahn
Browse files

initial - temp checkin 7

parent f71a29d2
No related branches found
No related tags found
No related merge requests found
[[PHPOUT]]
\ No newline at end of file
<?php
require_once("../config/inc_projects_config.php");
require_once("../classes/project.class.php");
require_once("../classes/formgen.class.php");
require_once("inc_functions.php");
$sOut='<h1>Deploy</h1>';
$sError='';
// --- Checks
if (!array_key_exists("prj", $_GET)){
$sError.='<li>Es wurde kein Projekt angegeben.</li>';
} else {
$oPrj=new project($_GET["prj"]);
$sOut='<h1>Deploy to next phase :: '.$oPrj->getLabel().'</h1><p>' . $oPrj->getDescription() . '</p><hr>';
if (!array_key_exists("phase", $_GET)){
$sError.='<li>Die aktuelle Phase wurde nicht angegeben.</li>';
} else {
$sPhase=$_GET["phase"];
if (!$oPrj->isActivePhase($sPhase)){
$sError.='<li>Die Phase '.$sPhase.' ist in diesem Projekt nicht aktiv.</li>';
} else {
if (!$oPrj->canDeploy($sPhase)){
$sError.='<li>Die Phase '.$sPhase.' kann nicht deployed werden.</li>';
}
}
}
}
if ($sError){
$sOut.='<i class="icon-exclamation-sign"></i> FEHLER:<ul>'.$sError.'</ul>';
} else {
$sNext=$oPrj->getNextPhase($sPhase);
$sOut.='
<p>
Das aktuelle Paket von Phase <em class="'.$sPhase.'">'.$sPhase.'</em> wird auf die Phase <em class="'.$sNext.'">'.$sNext.'</em> installiert.<br>
Du kannst einen Kommentar zu diesem Deployment angeben.
</p>
';
// Eingabe Kommentare zum Deployment
//$oForm=new formgen();
// $sOut.=showPhases($sPhase, $sNext);
$aInfos=$oPrj->getPhaseInfos($sPhase);
$sOut.='<pre>'.print_r($aInfos["deployed"], true).'</pre>';
$sOut.='
<hr>
' . enterDeployinfos() . '
<hr>
Aktionen [Buld] |
';
}
$sOut.=aHome();
// -- Ausgabe
$sPhpOut=$sOut;
?>
[[PHPOUT]]
\ No newline at end of file
<?php
require_once("../classes/classinfos.class.php");
require_once("../classes/project.class.php");
$o=new classinfos("project");
$sOut=$o->render();
// -- Ausgabe
$sPhpOut=$sOut;
?>
/*
* 2013-10-nn axel.hahn@iml.unibe.ch
*/
<?php
$aCfg=array(
"prj"=>"IML Deployment",
"sfprj"=>"", // name sourceforge project
"version"=>"",
"footer"=>'Copyright &copy; ' . date("Y") . ' IML<br>
',
"pages"=>array(
"index.htm"=>array(
"title"=>"&Uuml;bersicht",
"class"=>"icon-home",
),
"build.htm"=>array(
"title"=>"Build",
"class"=>"icon-play-circle",
),
"deploy.htm"=>array(
"title"=>"Deploy",
"class"=>"icon-forward",
),
"doc.htm"=>array(
"title"=>"Doc",
"class"=>"icon-book",
),
),
);
\ No newline at end of file
<h1>Übersicht über alle Projekte</h1>
<p>
Ansicht aller Projekte und Versionen auf den einzelnen Deployment-Phasen
</p>
[[PHPOUT]]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment