|
Lines 165-176
Link Here
|
| 165 |
</div> |
165 |
</div> |
| 166 |
<?php |
166 |
<?php |
| 167 |
} else { |
167 |
} else { |
|
|
168 |
|
| 169 |
|
| 170 |
|
| 168 |
/* |
171 |
/* |
| 169 |
* Load the XML file |
172 |
* Load the XML file |
| 170 |
*/ |
173 |
*/ |
| 171 |
$xml = @simplexml_load_file( $url ); |
174 |
xml = new DomDocument(); |
| 172 |
if( $xml === false |
175 |
$xml->load($url); |
| 173 |
|| !isset($xml->themes_and_priorities->theme) ) { |
176 |
|
|
|
177 |
if( $xml === false) ) { |
| 174 |
$contents = @file_get_contents( $url ); |
178 |
$contents = @file_get_contents( $url ); |
| 175 |
if( !$contents ) { |
179 |
if( !$contents ) { |
| 176 |
show_error_page( 'the project meta-data "projectplanurl" (' . $url . ') points to an empty file.', $projectid ); |
180 |
show_error_page( 'the project meta-data "projectplanurl" (' . $url . ') points to an empty file.', $projectid ); |
|
Lines 186-281
Link Here
|
| 186 |
|
190 |
|
| 187 |
// ---------------------------------------------------------------------------- |
191 |
// ---------------------------------------------------------------------------- |
| 188 |
// OUTPUT |
192 |
// OUTPUT |
| 189 |
?> |
193 |
/* create the processor and import the stylesheet */ |
| 190 |
<div id="maincontent"> |
194 |
$xsl = new DomDocument(); |
| 191 |
<div id="midcolumn"> |
195 |
$xsl->load("project-plan-render.xsl"); |
| 192 |
|
196 |
|
| 193 |
<h1>Project Plan for |
197 |
$proc = new XsltProcessor(); |
| 194 |
<a href="http://www.eclipse.org/projects/project_summary.php?projectid=<?= $projectid ?>"><span |
198 |
$xsl = $proc->importStylesheet($xsl); |
| 195 |
style="font-size: 140%"><?= $projectname ?></span></a>, version <?= $xml->release->attributes()->version ?></h1> |
199 |
$proc->setParameter(null, "projectName", $projectname); |
| 196 |
<h2>Introduction</h2> |
200 |
$proc->setParameter(nuul, "projectId", $projectid); |
| 197 |
<?= $xml->introduction ?> |
|
|
| 198 |
<h2>Release Deliverables</h2> |
| 199 |
<?= $xml->release_deliverables ?> |
| 200 |
<h2>Release Milestones</h2> |
| 201 |
<p><?= $xml->release_milestones->preamble ?></p> |
| 202 |
<table border="1" align="center"> |
| 203 |
<?php |
| 204 |
foreach ($xml->release_milestones->milestone as $milestone ) { |
| 205 |
?><tr><td><b><?= $milestone->attributes()->milestone ?></b></td> |
| 206 |
<td><?= $milestone->attributes()->date ?></td> |
| 207 |
<td><?= $milestone ?></td></tr> |
| 208 |
<?php |
| 209 |
} |
| 210 |
?> |
| 211 |
</table> |
| 212 |
<p><?= $xml->release_milestones->postamble ?></p> |
| 213 |
<h2>Target Environments</h2> |
| 214 |
<?= $xml->target_environments ?> |
| 215 |
<h3>Internationalization</h3> |
| 216 |
<?= $xml->target_environments->internationalization ?> |
| 217 |
<h2>Compatibility With Previous Releases</h2> |
| 218 |
<?= $xml->compatibility_with_previous_releases ?> |
| 219 |
|
201 |
|
| 220 |
<h2>Themes and Priorities</h2> |
202 |
/* transform and output the xml document */ |
| 221 |
<p><?= $xml->themes_and_priorities->preamble ?></p> |
203 |
$echo = $proc->transformToXML($xml); |
| 222 |
<?php |
|
|
| 223 |
$list = array(); |
| 224 |
for( $i = 0; isset($xml->themes_and_priorities->theme[$i]); $i++ ) { |
| 225 |
$list[] = $xml->themes_and_priorities->theme[$i]; |
| 226 |
} |
| 227 |
foreach( $list as $plan_theme ) { |
| 228 |
?><h3><?= $plan_theme->attributes()->name ?></h3> |
| 229 |
<?php |
| 230 |
if( $plan_theme->description != null ) { |
| 231 |
?><p style="margin-top: -6px"><?= $plan_theme->description ?></p> |
| 232 |
<?php |
| 233 |
} |
| 234 |
?> |
| 235 |
<ul><?php |
| 236 |
?><li><b>Committed</b><ul><?php echo "\n"; |
| 237 |
if( $plan_theme->committed->attributes()->bugzilla != null ) { |
| 238 |
report_bugzillas( $plan_theme->committed->attributes()->bugzilla ); |
| 239 |
} else { |
| 240 |
if( trim($plan_theme->committed) ) { |
| 241 |
echo $plan_theme->committed; |
| 242 |
} else { |
| 243 |
?><ul><li><em>no items</em></li></ul><?php |
| 244 |
} |
| 245 |
} |
| 246 |
?></ul></li><li><b>Proposed</b><ul><?php echo "\n"; |
| 247 |
if( $plan_theme->proposed->attributes()->bugzilla != null ) { |
| 248 |
report_bugzillas( $plan_theme->proposed->attributes()->bugzilla ); |
| 249 |
} else { |
| 250 |
if( trim($plan_theme->proposed) ) { |
| 251 |
echo $plan_theme->proposed; |
| 252 |
} else { |
| 253 |
?><ul><li><em>no items</em></li></ul><?php |
| 254 |
} |
| 255 |
} |
| 256 |
?></ul></li><li><b>Deferred</b><ul><?php echo "\n"; |
| 257 |
if( $plan_theme->deferred->attributes()->bugzilla != null ) { |
| 258 |
report_bugzillas( $plan_theme->deferred->attributes()->bugzilla ); |
| 259 |
} else { |
| 260 |
if( trim($plan_theme->deferred) ) { |
| 261 |
echo $plan_theme->deferred; |
| 262 |
} else { |
| 263 |
?><ul><li><em>no items</em></li></ul><?php |
| 264 |
} |
| 265 |
} |
| 266 |
?></ul></li></ul><?php echo "\n"; |
| 267 |
} |
| 268 |
|
| 269 |
$idx = 0; |
| 270 |
foreach( $xml->appendix as $appendix ) { |
| 271 |
$appidx = substr("ABCDEFGHIJKLMNOPQRSTUVWXYZ", $idx, 1); |
| 272 |
?><h2>Appendix <?= $appidx ?>. <?= $appendix->attributes()->name ?></h2> |
| 273 |
<?= $xml->appendix ?> |
| 274 |
<?php |
| 275 |
} |
| 276 |
?> |
| 277 |
<?php |
| 278 |
}// if( $xml === false ) |
| 279 |
?> |
204 |
?> |
| 280 |
<div style="float: right; text-align: right"><a href="?projectid=<?= $projectid ?>&raw=1">view raw xml of project plan</a><br> |
205 |
<div style="float: right; text-align: right"><a href="?projectid=<?= $projectid ?>&raw=1">view raw xml of project plan</a><br> |
| 281 |
<a href="/projects/dev_process/project-status-infrastructure.php">from project meta-data key "projectplanurl"</a></div> |
206 |
<a href="/projects/dev_process/project-status-infrastructure.php">from project meta-data key "projectplanurl"</a></div> |