2 <html xmlns:ng="http://angularjs.org">
5 <script src="angular.js" ng:autobind></script>
8 Registrations.$inject = ['$xhr'];
10 function Registrations(xhr){
14 , "/data/drzb2011/Registration?callback=JSON_CALLBACK"
15 , function(code, response){
16 // console.log('xhr JSON', code, response);
25 <title>DRZB2011 Registrations</title>
41 background-color: #ffcccc;
45 background-color: #ccffe6;
50 background-color: #ccccff;
55 background-color: #e6ccff;
56 background-color: #99ffcc;
61 background-color: #ffccff;
66 background-color: #ffcce6;
67 background-color: #ffcc99;
72 background-color: #ffff99;
77 background-color: #ccff99;
87 <div ng:controller="Registrations">
90 <div ng:repeat="registration in data">
92 <span class="{{registration.type}}">
93 <span ng:show="registration.type == 'participant'">samo registracija</span>
94 <span ng:show="registration.type == 'sparticipant'">sudionik simpozija/okruglog stola</span>
95 <span ng:show="registration.type == 'symposium'">organizator simpozija</span>
96 <span ng:show="registration.type == 'round'">organizator okruglog stola</span>
97 <span ng:show="registration.type == 'lecture'">usmeno priopćenje</span>
98 <span ng:show="registration.type == 'poster'">poster</span>
99 <span ng:show="registration.type == 'student'">student - samo registracija</span>
100 <span ng:show="registration.type == 'accomp'">osoba u pratnji</span>
102 <span ng:show="registration.student == thrue"> - student</span><br>
104 <p ng:repeat="person in registration.persons">
112 {{registration.work.authors[0].name}}
113 {{registration.work.authors[0].surname}},
114 {{registration.work.authors[0].inst}}
118 <div class=address>{{registration.person.zip}} {{registration.person.city}}</div>
124 <input name=debug type=checkbox style="float: right;">
125 <pre ng:show="debug">