Commit 3488bf75 authored by Benjamin Drieu's avatar Benjamin Drieu

Initial import

parents
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /home/benj/public_html/declaration/index.php/$1 [L,PT]
RewriteRule ^/$ /home/benj/public_html/declaration/index.php [L]
Main GPeTition authors:
====================
Programming:
Benjamin Drieu (bdrieu@april.org)
Icons:
Tango icons are under public domain
feed.png is licensed under the Mozilla's MPL/GPL/LGPL tri-license
and is copyright Mozilla Foundation
Photos:
kitten.jpeg is licensed under the CC Attribution-ShareAlike 2.0
Generic license and is copyright Lachlan Rogers :
https://secure.flickr.com/photos/lachlanrogers/
This diff is collapsed.
* Pre-requisites
You must have the following components installed in the server where
you install GePeTition :
- a webserver (GePeTition has been tested on Apache) ;
- PHP >= 4 ;
- PHP-MySQL ;
- Smarty ;
- a mail server.
You also need a MySQL server accessible to the GePeTition installation.
* Installation procedure
To install GePeTition, unpack it directly in your website directory
tree. Configure the include/options.php file to your needs and set
the database part to the MySQL database you created for GePeTition.
Execute the sql/gepetition.sql file in a mysql console in order to
create the needed SQL table.
Then point your web browser to its location.
I.e, in Debian, if you unpacked it to /var/www/gpt, you can point your
web browser to http://xxx/gepetition/ (assuming xxx is the hostname of the
machine where you installed GePeTition).
This diff is collapsed.
<?
include '../include/options.php';
include '../include/language.php';
include '../include/utils.php';
print get_updated_language ( $argv[1] );
?>
/* ----------------------------- */
/* == soft reset */
/* ----------------------------- */
/* switching box model for all elements */
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
html {
margin: 0;
padding: 0;
}
body {
margin: 0;
padding: 0;
}
audio,
canvas,
video {
display: inline-block;
}
audio:not([controls]) {
display: none;
height: 0;
}
[hidden],
template {
display: none;
}
a {
background: transparent;
}
a:focus {
outline: thin dotted;
}
a:active,
a:hover {
outline: 0;
}
abbr[title] {
border-bottom: none;
}
b,
strong {
font-weight: bold;
}
dfn {
font-style: italic;
}
hr {
-moz-box-sizing: content-box;
box-sizing: content-box;
height: 0;
}
mark {
background: #ff0;
color: #000;
}
code,
kbd,
pre,
samp {
font-family: monospace, serif;
font-size: 1em;
}
pre {
white-space: pre-wrap;
}
q {
quotes: "\201C" "\201D" "\2018" "\2019";
}
small {
font-size: 80%;
}
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sup {
top: -0.5em;
}
sub {
bottom: -0.25em;
}
img {
border: 0;
}
svg:not(:root) {
overflow: hidden;
}
figure {
margin: 0;
}
fieldset {
border: 1px solid #c0c0c0;
margin: 0 2px;
padding: 0.35em 0.625em 0.75em;
}
legend {
border: 0;
padding: 0;
}
button,
input,
select,
textarea {
font-family: inherit;
font-size: 100%;
margin: 0;
}
button,
input {
line-height: normal;
}
button,
select {
text-transform: none;
}
button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
-webkit-appearance: button;
cursor: pointer;
}
button[disabled],
html input[disabled] {
cursor: default;
}
input[type="checkbox"],
input[type="radio"] {
box-sizing: border-box;
padding: 0;
}
input[type="search"] {
-webkit-appearance: textfield;
-moz-box-sizing: content-box;
-webkit-box-sizing: content-box;
box-sizing: content-box;
}
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
}
button::-moz-focus-inner,
input::-moz-focus-inner {
border: 0;
padding: 0;
}
textarea {
overflow: auto;
vertical-align: top;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
.clearfix:after {
content: " "; /* Older browser do not support empty content */
visibility: hidden;
display: block;
height: 0;
clear: both;
}
.left {
float: left;
}
img.left {
margin-right: 1em;
}
.right {
float: right;
}
img.right {
margin-left: 1em;
}
img.left, img.right {
margin-bottom: 5px;
}
.debug {
background: pink;
outline: 3px solid maroon;
}
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
.main-cols .row {
margin-left: 0px !important;
margin-right: 0px !important;
}
.bigform input[type=radio] {
float: left;
}
.bigform label {
display: inline-block;
min-width: 170px;
}
.bigform input[type=text], .bigform select {
min-width: 350px;
padding: 3px 6px !important;
min-height: 2em !important;
}
.bigform .chosen-container-single .chosen-single, .bigform .chosen-container-single .chosen-single span {
min-height: 2em !important;
line-height: 2em !important;
}
.bigform input[type=checkbox] {
margin-left: 170px;
margin-right: 0.5em;
}
.bigform .field-error label {
color: firebrick;
font-weight: bold;
}
.bigform .field-error input {
background: url('../images/warning.png') no-repeat 99% 50% white;
border: 1px solid firebrick;
}
.main-block {
text-align: justify;
}
#latest-signatories {
// padding: 20px;
}
#signature-list ul, #other ul {
list-style-type: none;
list-style-position: inside;
padding-left: 0px;
margin: 0px;
}
#signature-list ul li, #other ul li {
padding: 3px;
border-bottom: 1px solid #ccc;
margin-left: 0px;
vertical-align: middle;
}
#signature-list ul li:last-of-type, #other ul li:last-of-type {
border-bottom: none;
}
#signature-list ul span, #signature-list ul em {
font-size: 90%;
font-style: normal;
color: #888;
}
#signature-list u {
text-decoration: none;
color: firebrick;
}
#signature-list img {
vertical-align: middle;
}
#signature-list ul span {
display: inline-block;
padding-right: 1em;
min-width: 130px;
}
#signature-list, #other {
// padding: 20px 0px;
}
#other a {
text-decoration: none;
}
/**************************************************/
/* RIBBON */
.ribbon {
font-size: 16px !important;
width: 560px;
position: relative;
background: rgb(28, 82, 139);
color: #fff;
text-align: center;
padding: 1em 2em; /* Adjust to suit */
margin: 2em auto 3em; /* Based on 24px vertical rhythm. 48px bottom margin - normally 24 but the ribbon 'graphics' take up 24px themselves so we double it. */
}
.ribbon:before, .ribbon:after {
content: "";
position: absolute;
display: block;
bottom: -1em;
border: 1.5em solid rgb(58, 112, 169);
z-index: -1;
}
.ribbon:before {
left: -2em;
border-right-width: 1.5em;
border-left-color: transparent;
}
.ribbon:after {
right: -2em;
border-left-width: 1.5em;
border-right-color: transparent;
}
.ribbon .ribbon-content:before, .ribbon .ribbon-content:after {
content: "";
position: absolute;
display: block;
border-style: solid;
border-color: rgb(8, 62, 119) transparent transparent transparent;
bottom: -1em;
}
.ribbon .ribbon-content:before {
left: 0;
border-width: 1em 0 0 1em;
}
.ribbon .ribbon-content:after {
right: 0;
border-width: 1em 1em 0 0;
}
/**************************************************/
/* TABS */
ul#signatures-menu {
list-style: none;
padding: 0;
margin: 0;
}
ul#signatures-menu li {
float: left;
border: 1px solid #ccc;
border-bottom-width: 0;
margin: 0;
}
ul#signatures-menu a {
text-decoration: none;
display: block;
background: #ddd;
padding: 0.24em 0.5em;
color: #707070;
text-align: center;
font-size: smaller;
}
ul#signatures-menu a:hover {
background: #ddf;
}
ul#signatures-menu li {
border-color: #fff;
}
ul#signatures-menu #selected {
border-color: #ccc;
}
ul#signatures-menu #selected a {
position: relative;
top: 1px;
background: white;
color: black;
font-weight: bold;
}
#all-signatures {
margin: 1em 0px;
}
#all-signatures #signature-list {
border: 1px solid #ccc;
clear: left;
padding: 0px;
}
#all-signatures #signature-list ul {
padding: 0px 1em;
}
#all-signatures #signature-list ul.signature-list li {
width: 50%;
margin: 0px;
float: left;
}
#signature-list #alphabet {
margin: 1em 0px;
}
#signature-list #alphabet li {
float: left;
border: 0px;
margin: 0px;
}
#signature-list #alphabet a {
padding: 0px 0.25em;
text-decoration: none;
}
#all-signatures ul.pagination {
margin: 2em 0px !important;
}
.share-text {
border: 1px solid #888;
padding: 0.5em;
}
.share-text a {
font-family: monospace;
text-decoration: none;
}
.share-text {
padding: 20px;
background:
}
.share-text img {
float: left;
}
.share-text form {
clear: left;
}
.share-text textarea, .share-text pre {
background: white;
border: 1px solid #888;
overflow: auto;
font-family: monospace;
width: 520px;
height: 8em;
padding: 1em;
margin: 1em 0em;
}
.theme-dropdown .dropdown-menu {
position: static;
display: block;
margin-bottom: 20px;
}
#content-wrapper, body, html {
}
.wrapper {
width: 100%;
margin: 0;
padding: 0;
}
.container {
min-height: 50% !important;
margin: 0 auto;
padding: 0;
}
.half-block {
width: 560px;
margin: 0;
padding: 0;
}
.progress {
margin-bottom: 0px !important;
}
/* Sticky footer styles
-------------------------------------------------- */
html {
position: relative;
min-height: 100%;
margin: 0px;
padding: 0px;
}
body {
margin: 0px;
padding: 0px;
}
#page {
/* Margin bottom by footer height */
margin-bottom: 120px;
}
footer {
position: absolute !important;
bottom: 0px;
margin-bottom: 0px;
width: 100%;
}
\ No newline at end of file
hr {
height: 1px;
padding: 0px;
color: rgb(181, 197, 212);
background-color: rgb(181, 197, 212);
border: 0;
margin-top: 12px;
margin-bottom: 12px;
}
.form {
border: 1px solid rgb(181, 197, 212);
background-color: rgb(246, 246, 246);
padding: 12px;
}
.form h2 {
margin: 0;
}
.form td {
padding: 3px;
}
.form input[type = "text"], .form textarea {
margin-right: 12px;
width: 100%;
}
.form-label {
text-align: right;
}
.liste-candidats, .supertable {
border-collapse: collapse;
}