eidryanDM/ECMI-App
A simple web application, based on the Ethical Choices Mapping Instrument.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <?php $coffee = array("starbucks", "figaro", "seattles best"); $coffee_places = array ("a" => "starbucks", "b" => "figaro"); $preferred = $coffee[1]; echo $preferred; $prefer = $coffee_places ["b"]; echo $prefer; $preferred[3] = "coffee bean"; foreach ($coffee as $philcoffee) { echo '<p>' . $philcoffee . '</p>'; } sort ($coffee_places); print_r($coffee_places); echo count ($coffee_places); $coffee[1] = "beanhoppers"; print_r($coffee); ?> </table> </body> </html>
This repository is cataloged as part of our automated global GitHub synchronization. Full telemetry, velocity snapshots, and code summaries are scheduled for continuous enrichment.
A simple web application, based on the Ethical Choices Mapping Instrument.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <?php echo "<h1>Multiplication table</h1>"; echo "<table border=2 width=50%"; for ($i = 1; $i <= 12; $i++ ) { echo "<tr>"; echo "<td>".$i."</td>"; for ( $j = 2; $j <= 12; $j++ ) { echo "<td>".$i * $j."</td>"; } echo "</tr>"; } echo "</table>"; ?> </table> </body> </html>
<table border="1"> <tr> <th>Number</th> <th>Odd or Even?</th> <th>Prime</th> </tr> <?php for ($i = 1; $i <= 10; $i++) { $oddEven = ( $i % 2 == 0 ) ? "Even" : "Odd"; switch ( $i ) { case 2: case 3: case 5: case 7: $prime = "Yes"; break; default: $prime = "No"; break; } ?> <tr> <td><?php echo $i?></td> <td><?php echo $oddEven?></td> <td><?php echo $prime?></td> </tr> <?php } ?> </table> </body> </html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <?php //variable declaration $iteration = 10; $a = 0; $b = 1; for ($i=0 ; $i <= $iteration; $i++) { $sum = $a + $b; $a = $b; $b = $sum; ?> <tr<?php if ($i % 2 != 0 ) echo 'class="alt"' ?>> <td>F<sub><?php echo $i?></sub></td> <td><?php echo $b?></td> </tr> <?php } ?> </table> </body> </html>