-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcandidate.php
130 lines (112 loc) · 5.52 KB
/
candidate.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<?php require("hypertext-preprocessor/header.php"); ?>
<div class="main">
<div class="main__nav">
<ul class="contexttabs">
<li class="contexttabs__item">
<a href="javascript:void(0);" title="Ver candidatos" class="contexttabs__link is-active tooltip contexttabs__candidates">
<img src="images/icon-candidates.png" alt="Ver candidatos" />
</a>
</li>
<li class="contexttabs__item">
<a href="javascript:void(0);" title="Ver discussão" class="contexttabs__link tooltip contexttabs__discussion">
<img src="images/icon-discussion.png" alt="Ver discussão" />
<span class="contexttabs__link__news">+</span>
</a>
</li>
</ul>
</div><div class="main__content">
<div class="main__content__wrapper">
<div class="candidateinfo">
<div class="candidateinfo__header">
<div class="candidateinfo__header__wrapper">
<div class="candidateinfo__header__content">
<a href="http://<?php echo (HOST . "/" . $header->state_sa . "/" . $header->city_url); ?>" class="candidateinfo__backbutton">Voltar</a>
<div class="breadcrumb">
<h2>
<?php echo ($header->candidate->post_name); ?> para <?php echo ($header->candidate->city_name); ?>
</h2>
</div>
</div>
</div>
</div>
<div class="candidateinfo__main">
<div class="candidateslist__item">
<div class="candidatecard">
<img src="//candidatos.agora.vc/F<?php echo ($header->candidate->state_sa . $header->candidate->id_tse); ?>.jpg" alt="<?php echo ($header->candidate->name); ?>" class="candidatecard__photo" />
<p class="candidatecard__name">
<?php echo ($header->candidate->name); ?>
</p>
</div>
<div class="support" id="123123123">
<div class="support__counter">
<span class="support__counter__number">
<?php echo ($header->candidate->supports); ?>
</span>
</div>
<?php if ($header->hasSupport($header->candidate->id)) { ?>
<a id="<?php echo ($header->candidate->id); ?>" data-post="<?php echo ($header->candidate->post_id); ?>" href="<?php echo ($header->address); ?>" class="unsupport__button">
<img src="images/icon-support.png" alt="Apoiar candidato" class="support__button__icon" /><span class="support__button__text">Desfazer</span>
</a>
<?php } else { ?>
<a id="<?php echo ($header->candidate->id); ?>" data-post="<?php echo ($header->candidate->post_id); ?>" href="<?php echo ($header->address); ?>" class="support__button">
<img src="images/icon-support.png" alt="Apoiar candidato" class="support__button__icon" /><span class="support__button__text">Apoiar</span>
</a>
<?php } ?>
</div>
</div>
<div class="candidateinfo__main__content">
<h2 class="candidateinfo__candidatename">
<?php echo ($header->candidate->name); ?>
</h2>
<table class="candidateinfo__details">
<tr>
<td class="candidateinfo__details__title">Número:</td>
<td>
<?php echo ($header->candidate->number); ?>
</td>
</tr>
<tr>
<td class="candidateinfo__details__title">Data de nascimento:</td>
<td>
<?php echo ($header->candidate->birth_si); ?>
</td>
</tr>
<tr>
<td class="candidateinfo__details__title">Partido:</td>
<td>
<?php echo ($header->candidate->party_acronym); ?> - <?php echo ($header->candidate->party_name); ?>
</td>
</tr>
</table>
<a href="http://divulgacand2012.tse.jus.br/divulgacand2012/mostrarFichaCandidato.action?sqCandidato=<?php echo ($header->candidate->id_tse); ?>&codigoMunicipio=<?php echo ($header->candidate->city_id_tse); ?>" target="_blank" class="candidateinfo__externallink">
Ficha do candidato no TSE
</a>
</div>
</div>
</div>
<div class="discussion">
<div class="discussion__header">
<div class="breadcrumb">
<h2>Discussão</h2>
</div>
<?php if ($header->candidate->post_id == 4) { ?>
<div class="currentsupport support_mayor">
<img src="images/candidates/<?php echo ($header->candidate->id_tse); ?>.jpg" alt="<?php echo ($header->candidate->name); ?>" class="currentsupport__candidatephoto" />
<p class="currentsupport__label">Prefeito(a)<a href="<?php echo ($header->address); ?>" class="currentsupport__candidatename"><?php echo ($header->candidate->name); ?></a></p>
</div>
<?php } else { ?>
<div class="currentsupport support_alderman">
<img src="images/candidates/<?php echo ($header->candidate->id_tse); ?>.jpg" alt="<?php echo ($header->candidate->name); ?>" class="currentsupport__candidatephoto" />
<p class="currentsupport__label">Vereador(a)<a href="<?php echo ($header->address); ?>" class="currentsupport__candidatename"><?php echo ($header->candidate->name); ?></a></p>
</div>
<?php } ?>
</div>
<div class="row-division">
<hr />
</div>
<div class="fbcomments">
<fb:comments href="<?php echo($header->address); ?>" num_posts="5" width="737"></fb:comments>
</div>
</div>
</div>
<?php require('hypertext-preprocessor/footer.php'); ?>