[Commits] [svn:einsteintoolkit] www/ (Rev. 454)
knarf at cct.lsu.edu
knarf at cct.lsu.edu
Thu Dec 16 13:01:40 CST 2010
User: knarf
Date: 2010/12/16 01:01 PM
Added:
/about/members/
members.txt
Modified:
/about/members/
index.php
Log:
I am sick of counting the members by hand: now this is done by a script and displayed on the page
Directory Changes:
Directory: /svn:executable/
===========================
+ *
File Changes:
Directory: /about/members/
==========================
File [modified]: index.php
Delta lines: +51 -136
===================================================================
--- about/members/index.php 2010-11-30 14:36:11 UTC (rev 453)
+++ about/members/index.php 2010-12-16 19:01:40 UTC (rev 454)
@@ -12,142 +12,57 @@
Current users include:
</h3>
-<ul class="column">
- <li><b><a href="http://numrel.aei.mpg.de/" class="nostyle">Albert Einstein Institute</a></b></li>
- <ul>
-<li>Daniela Alic</li>
- <li>Filippo Galeazzi</li>
- <li>Ian Hinder</li>
- <li>Michael Koppitz</li>
- <li>Gian Mario Manca</li>
- <li>Philip Mösta</li>
- <li>David Radice</li>
- <li>Luciano Rezzolla</li>
- <li>Aaryn Tonita</li>
- <li>Barry Wardell</li>
- </ul>
+<?php
+ $list = "<ul class=\"column\">\n";
+ // Function to handle links in lines
+ function entry($text)
+ {
+ if ((strlen($text) > 4) && (substr($text, 0, 4) == "http") &&
+ (strpos($text, " ") > 0))
+ {
+ $words = explode(" ",$text);
+ $link = array_shift($words);
+ $name = implode(" ",$words);
+ return "<a href=\"$link\" class=\"nostyle\">$name</a>";
+ }
+ else
+ {
+ return "$text";
+ }
+ }
- <li><b>Aristotle University of Thessaloniki</b></li>
- <ul>
- <li>Nick Stergioulas</li>
- </ul>
+ $lines = file('list.txt');
+ $groups = 0;
+ $members = 0;
+ $first = true;
+ foreach ($lines as $line_num => $line)
+ {
+ // Remove newlines
+ $line = rtrim($line);
+ // Disregard empty lines
+ if (strlen($line)>0)
+ {
+ // Handle institutions
+ if (substr($line, 0, 1) != " ")
+ {
+ if (!$first) $list.= " </ul></li>\n";
+ $list .= " <li><b>".entry($line)."</b>\n <ul>\n";
+ $groups++;
+ $first = false;
+ }
+ else // Handle individual members
+ {
+ $line = ltrim($line);
+ $list .= " <li>".entry($line)."</li>\n";
+ $members++;
+ }
+ }
+ }
+ // That <br /> isn't standard-conform but it makes safari display the last element
+ // which it otherwise would hide for some reason.
+ $list .= " </ul></li><br />\n</ul>";
+ echo $list;
+ echo "<p>These add up to <b>$members</b> members from <b>$groups</b> different groups.</p>\n";
+?>
- <li><b>Belmont University</b></li>
- <ul>
- <li>Scott Hawley</li>
- </ul>
-
- <li><b><a href="http://www.tapir.caltech.edu/" class="nostyle">California Institute of Technology</a></b></li>
- <ul>
- <li><a href="http://www.tapir.caltech.edu/~cott/" class="nostyle">Christian D. Ott</a></li>
- <li>Christian Reisswig</li>
- <li>Béla Szilágyi</li>
- </ul>
-
- <li><b>Chinese Academy of Sciences</b></li>
- <ul>
- <li>Mew Bing Wan</li>
- </ul>
-
- <li><b><a href="http://www.cct.lsu.edu/numerical/" class="nostyle">Louisiana State University</a></b></li>
- <ul>
- <li>Ernazar Abdikamalov</li>
- <li><a href="http://www.cct.lsu.edu/~gallen" class="nostyle">Gabrielle Allen</a></li>
- <li>Eloisa Bentivegna</li>
- <li><a href="http://www.cct.lsu.edu/~sbrandt/" class="nostyle">Steven Brandt</a></li>
- <li>Peter Diener</li>
- <li>Linda Holyoke</li>
- <li>Colby Jordan</li>
- <li>Oleg Korobkin</li>
- <li>Frank Löffler</li>
- <li>Megan Miller</li>
- <li><a href="http://www.cct.lsu.edu/~eschnett/" class="nostyle">Erik Schnetter</a></li>
- <li>Edward Seidel</li>
- <li>Jian Tao</li>
- <li>Michael Thomas</li>
- <li>Ashley Zebrowski</li>
- </ul>
-
- <li><b><a href="http://www.cra.gatech.edu/" class="nostyle">Georgia Institute of Technology</a></b></li>
- <ul>
- <li>Tanja Bode</li>
- <li>Roland Haas</li>
- <li><a href="http://www.cra.gatech.edu/people/laguna.shtml" class="nostyle">Pablo Laguna</a></li>
- <li>Deirdre Shoemaker</li>
- </ul>
-
- <li><b>Korea Institute of Science and Technology Information</b></li>
- <ul>
- <li>Jakob Hansen</li>
- </ul>
-
- <li><b>NASA Goddard Space Flight Center</b></li>
- <ul>
- <li>John Baker</li>
- <li>Bernard Kelly</li>
- <li>Jennifer Seiler</li>
- </ul>
-
-
- <li><b>Osaka University</b></li>
- <ul>
- <li>Luca Baiotti</li>
- </ul>
-
- <li><b><a href="http://www.perimeterinstitute.ca/" class="nostyle">Perimeter Institute</a></b></li>
- <ul>
- <li>David Rideout</li>
- </ul>
-
- <li><b><a href="http://ccrg.rit.edu/" class="nostyle">Rochester Institute of Technology</a></b></li>
- <ul>
- <li>Manuela Campanelli</li>
- <li>Joshua Faber</li>
- <li>Carlos Lousto</li>
- <li>Bruno Mundim</li>
- <li>Scott Noble</li>
- <li>Marcelo Ponce</li>
- <li>David Saroff</li>
- <li>Billy Vazquez</li>
- <li>Yosef Zlochower</li>
- </ul>
-
- <li><b>Seoul National University</b></li>
- <ul>
- <li>Hee Il Kim</li>
- </ul>
-
- <li><b><a href="http://www.uib.es/en/" class="nostyle">Universitat de les Illes Balears</a></b></li>
- <ul>
- <li>Sascha Husa</li>
- <li>Denis Pollney</li>
- </ul>
-
- <li><b>Universidad Michoacana</b></li>
- <ul>
- <li>Francisco Guzmán</li>
- </ul>
-
- <li><b>Universidad Nacional Autónoma de México</b></li>
- <ul>
- <li>Jose Manuel Torres</li>
- </ul>
-
- <li><b>University of Maryland</b></li>
- <ul>
- <li>Bruno Giacomazzo</li>
- </ul>
-
- <li><b>Washburn University</b></li>
- <ul>
- <li>Karen Camarda</li>
- </ul>
-
- <li><b>Washington University</b></li>
- <ul>
- <li>Huimin Zhang</li>
- </ul>
- <br /><!--hack to make Safari display the last entry-->
-</ul>
-
<?php include_once($_SERVER['DOCUMENT_ROOT'].'/global/footer.php');?>
File [added]: members.txt
Delta lines: +95 -0
===================================================================
--- about/members/members.txt (rev 0)
+++ about/members/members.txt 2010-12-16 19:01:40 UTC (rev 454)
@@ -0,0 +1,95 @@
+Albert Einstein Institute
+ Daniela Alic
+ Filippo Galeazzi
+ Ian Hinder
+ Michael Koppitz
+ Gian Mario Manca
+ Philip Mösta
+ David Radice
+ Luciano Rezzolla
+ Aaryn Tonita
+ Barry Wardell
+
+Aristotle University of Thessaloniki
+ Nick Stergioulas
+
+Belmont University
+ Scott Hawley
+
+http://www.tapir.caltech.edu/ California Institute of Technology
+ http://www.tapir.caltech.edu/~cott/ Christian D. Ott
+ Christian Reisswig
+ Béla Szilágyi
+
+Chinese Academy of Sciences
+ Mew Bing Wan
+
+http://www.cct.lsu.edu/numerical/ Louisiana State University
+ Ernazar Abdikamalov
+ http://www.cct.lsu.edu/~gallen Gabrielle Allen
+ Eloisa Bentivegna
+ http://www.cct.lsu.edu/~sbrandt/ Steven Brandt
+ Peter Diener
+ Linda Holyoke
+ Colby Jordan
+ Oleg Korobkin
+ Frank Löffler
+ Megan Miller
+ http://www.cct.lsu.edu/~eschnett/ Erik Schnetter
+ Edward Seidel
+ Jian Tao
+ Michael Thomas
+ Ashley Zebrowski
+
+http://www.cra.gatech.edu/ Georgia Institute of Technology
+ Tanja Bode
+ Roland Haas
+ http://www.cra.gatech.edu/people/laguna.shtml Pablo Laguna
+ Deirdre Shoemaker
+
+Korea Institute of Science and Technology Information
+ Jakob Hansen
+
+NASA Goddard Space Flight Center
+ John Baker
+ Bernard Kelly
+ Jennifer Seiler
+
+Osaka University
+ Luca Baiotti
+
+http://www.perimeterinstitute.ca/ Perimeter Institute
+ David Rideout
+
+http://ccrg.rit.edu/ Rochester Institute of Technology
+ Manuela Campanelli
+ Joshua Faber
+ Carlos Lousto
+ Bruno Mundim
+ Scott Noble
+ Marcelo Ponce
+ David Saroff
+ Billy Vazquez
+ Yosef Zlochower
+
+Seoul National University
+ Hee Il Kim
+
+http://www.uib.es/en/ Universitat de les Illes Balears
+ Sascha Husa
+ Denis Pollney
+
+Universidad Michoacana
+ Francisco Guzmán
+
+Universidad Nacional Autónoma de México
+ Jose Manuel Torres
+
+University of Maryland
+ Bruno Giacomazzo
+
+Washburn University
+ Karen Camarda
+
+Washington University
+ Huimin Zhang
Property changes on: about/members/members.txt
___________________________________________________________________
More information about the Commits
mailing list