cvs: pearweb /public_html election-edit.php election-info.php election-new.php election.php /templates election-confirm.tpl.php
election-confirmed.tpl.php election-dovote.tpl.php election-listforedit.tpl.php election-new-step1.tpl.php election-new-step2.tpl.php
election-new-step3.tpl.php election-register.tpl.php election-results.tpl.php election-showresults.tpl.php election-vote.tpl.php
| From: | Greg Beaver | Date: | Tue, 21 Nov 2006 05:40:23 +0000 |
| Subject: | cvs: pearweb /public_html election-edit.php election-info.php election-new.php election.php /templates election-confirm.tpl.php election-confirmed.tpl.php election-dovote.tpl.php election-listforedit.tpl.php election-new-step1.tpl.php election-new-step2.tpl.php election-new-step3.tpl.php election-register.tpl.php election-results.tpl.php election-showresults.tpl.php election-vote.tpl.php |
||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-5213@lists.php.net to get a copy of this message | ||
cellog Tue Nov 21 05:40:23 2006 UTC
Removed files:
/pearweb/public_html election-edit.php election-info.php
election-new.php election.php
Modified files:
/pearweb/templates election-confirm.tpl.php
election-confirmed.tpl.php
election-dovote.tpl.php
election-listforedit.tpl.php
election-new-step1.tpl.php
election-new-step2.tpl.php
election-new-step3.tpl.php
election-register.tpl.php
election-results.tpl.php
election-showresults.tpl.php
election-vote.tpl.php
Log:
as Martin requested,
move election into a subdirectory.
include/election has pear-voter/pear-election
public_html/election has mapped from:
election.php -> index.php
election-info.php -> info.php
election-new.php -> new.php
election-edit.php -> edit.php
http://cvs.php.net/viewvc.cgi/pearweb/templates/election-confirm.tpl.php?r1=1.4&r2=1.5&diff_format=u Index: pearweb/templates/election-confirm.tpl.php diff -u pearweb/templates/election-confirm.tpl.php:1.4 pearweb/templates/election-confirm.tpl.php:1.5 --- pearweb/templates/election-confirm.tpl.php:1.4 Tue Nov 21 05:22:47 2006 +++ pearweb/templates/election-confirm.tpl.php Tue Nov 21 05:40:23 2006 @@ -7,7 +7,7 @@ <h2>Detail on the election</h2> <?php echo $info['detail']; ?> <h2>Your Vote (PLEASE CONFIRM BELOW, YOUR VOTE IS NOT SAVED):</h2> -<form action="/election-info.php" method="post"> +<form action="/election/info.php" method="post"> <input type="hidden" name="election" value="<?php echo $info['id']; ?>" /> <table> <tr> http://cvs.php.net/viewvc.cgi/pearweb/templates/election-confirmed.tpl.php?r1=1.2&r2=1.3&diff_format=u Index: pearweb/templates/election-confirmed.tpl.php diff -u pearweb/templates/election-confirmed.tpl.php:1.2 pearweb/templates/election-confirmed.tpl.php:1.3 --- pearweb/templates/election-confirmed.tpl.php:1.2 Tue Nov 7 05:47:06 2006 +++ pearweb/templates/election-confirmed.tpl.php Tue Nov 21 05:40:23 2006 @@ -42,5 +42,5 @@ allowed to vote again in this election. Thank you for voting! </p> <p> - <a href="/election.php">Return to Elections</a> + <a href="/election/">Return to Elections</a> </p> \ No newline at end of file http://cvs.php.net/viewvc.cgi/pearweb/templates/election-dovote.tpl.php?r1=1.4&r2=1.5&diff_format=u Index: pearweb/templates/election-dovote.tpl.php diff -u pearweb/templates/election-dovote.tpl.php:1.4 pearweb/templates/election-dovote.tpl.php:1.5 --- pearweb/templates/election-dovote.tpl.php:1.4 Tue Nov 21 05:22:47 2006 +++ pearweb/templates/election-dovote.tpl.php Tue Nov 21 05:40:23 2006 @@ -31,7 +31,7 @@ <h2>Detail on the election</h2> <?php echo $info['detail']; ?> <h2>Please choose <?php echo $pleasechoose; ?>:</h2> -<form action="/election-info.php" method="post"> +<form action="/election/info.php" method="post"> <input type="hidden" name="confirm" value="1" /> <input type="hidden" name="election" value="<?php echo $info['id']; ?>" /> <table> http://cvs.php.net/viewvc.cgi/pearweb/templates/election-listforedit.tpl.php?r1=1.1&r2=1.2&diff_format=u Index: pearweb/templates/election-listforedit.tpl.php diff -u pearweb/templates/election-listforedit.tpl.php:1.1 pearweb/templates/election-listforedit.tpl.php:1.2 --- pearweb/templates/election-listforedit.tpl.php:1.1 Fri Nov 10 03:46:28 2006 +++ pearweb/templates/election-listforedit.tpl.php Tue Nov 21 05:40:23 2006 @@ -25,7 +25,7 @@ $class = $election['active'] == 'yes' ? 'vote-active' : 'vote-inactive'; ?> <tr> - <td class="<?php echo $class; ?>"><a href="/election-edit.php?election=<?php + <td class="<?php echo $class; ?>"><a href="/election/edit.php?election=<?php echo $election['id']; ?>"><?php echo htmlspecialchars($election['purpose']); ?></a></td> <td class="<?php echo $class; ?>"><?php echo $election['votestart'] . ' until ' . $election['voteend']; ?></td> http://cvs.php.net/viewvc.cgi/pearweb/templates/election-new-step1.tpl.php?r1=1.3&r2=1.4&diff_format=u Index: pearweb/templates/election-new-step1.tpl.php diff -u pearweb/templates/election-new-step1.tpl.php:1.3 pearweb/templates/election-new-step1.tpl.php:1.4 --- pearweb/templates/election-new-step1.tpl.php:1.3 Fri Nov 10 03:46:28 2006 +++ pearweb/templates/election-new-step1.tpl.php Tue Nov 21 05:40:23 2006 @@ -9,7 +9,7 @@ } } ?> -<form name="newelection" action="/election-<?php echo $new ?>.php" method="post"> +<form name="newelection" action="/election/<?php echo $new ?>.php" method="post"> <input type="hidden" name="step" value="2" /> <?php if ($new == 'edit'): ?> <input type="hidden" name="election_id" value="<?php echo $election_id ?>" /> http://cvs.php.net/viewvc.cgi/pearweb/templates/election-new-step2.tpl.php?r1=1.3&r2=1.4&diff_format=u Index: pearweb/templates/election-new-step2.tpl.php diff -u pearweb/templates/election-new-step2.tpl.php:1.3 pearweb/templates/election-new-step2.tpl.php:1.4 --- pearweb/templates/election-new-step2.tpl.php:1.3 Fri Nov 10 03:46:28 2006 +++ pearweb/templates/election-new-step2.tpl.php Tue Nov 21 05:40:23 2006 @@ -9,7 +9,7 @@ } } ?> -<form name="newelection" action="/election-<?php echo $new ?>.php" method="post"> +<form name="newelection" action="/election/<?php echo $new ?>.php" method="post"> <input type="hidden" name="step" value="3" /> <?php if ($new == 'edit'): ?> <input type="hidden" name="election_id" value="<?php echo $election_id ?>" /> http://cvs.php.net/viewvc.cgi/pearweb/templates/election-new-step3.tpl.php?r1=1.3&r2=1.4&diff_format=u Index: pearweb/templates/election-new-step3.tpl.php diff -u pearweb/templates/election-new-step3.tpl.php:1.3 pearweb/templates/election-new-step3.tpl.php:1.4 --- pearweb/templates/election-new-step3.tpl.php:1.3 Fri Nov 10 03:46:28 2006 +++ pearweb/templates/election-new-step3.tpl.php Tue Nov 21 05:40:23 2006 @@ -9,7 +9,7 @@ } } ?> -<form name="newelection" action="/election-<?php echo $new ?>.php" method="post"> +<form name="newelection" action="/election/<?php echo $new ?>.php" method="post"> <input type="hidden" name="step" value="4" /> <?php if ($new == 'edit'): ?> <input type="hidden" name="election_id" value="<?php echo $election_id ?>" /> http://cvs.php.net/viewvc.cgi/pearweb/templates/election-register.tpl.php?r1=1.1&r2=1.2&diff_format=u Index: pearweb/templates/election-register.tpl.php diff -u pearweb/templates/election-register.tpl.php:1.1 pearweb/templates/election-register.tpl.php:1.2 --- pearweb/templates/election-register.tpl.php:1.1 Sun Nov 5 22:38:20 2006 +++ pearweb/templates/election-register.tpl.php Tue Nov 21 05:40:23 2006 @@ -2,7 +2,7 @@ <h1>Register to Vote</h1> <h2> - If you already have a PEAR developer account, Please <a href="login.php?redirect=/election.php<?php + If you already have a PEAR developer account, Please <a href="/login.php?redirect=/election/<?php if ($query) { echo urlencode($query); } ?>">Log in</a>, you are already registered to vote. http://cvs.php.net/viewvc.cgi/pearweb/templates/election-results.tpl.php?r1=1.1&r2=1.2&diff_format=u Index: pearweb/templates/election-results.tpl.php diff -u pearweb/templates/election-results.tpl.php:1.1 pearweb/templates/election-results.tpl.php:1.2 --- pearweb/templates/election-results.tpl.php:1.1 Mon Nov 6 05:54:53 2006 +++ pearweb/templates/election-results.tpl.php Tue Nov 21 05:40:23 2006 @@ -14,7 +14,7 @@ } ?> <tr> - <td class="<?php echo $class; ?>"><a href="/election-info.php?election=<?php + <td class="<?php echo $class; ?>"><a href="/election/info.php?election=<?php echo $election['id']; ?>&results=1"><?php echo htmlspecialchars($election['purpose']); ?></a></td> <td class="<?php echo $class; ?>"><?php echo $election['votestart'] . ' until ' . $election['voteend']; ?></td> http://cvs.php.net/viewvc.cgi/pearweb/templates/election-showresults.tpl.php?r1=1.6&r2=1.7&diff_format=u Index: pearweb/templates/election-showresults.tpl.php diff -u pearweb/templates/election-showresults.tpl.php:1.6 pearweb/templates/election-showresults.tpl.php:1.7 --- pearweb/templates/election-showresults.tpl.php:1.6 Tue Nov 21 04:29:48 2006 +++ pearweb/templates/election-showresults.tpl.php Tue Nov 21 05:40:23 2006 @@ -46,3 +46,4 @@ </td> </tr> </table> +<?php response_footer(); http://cvs.php.net/viewvc.cgi/pearweb/templates/election-vote.tpl.php?r1=1.3&r2=1.4&diff_format=u Index: pearweb/templates/election-vote.tpl.php diff -u pearweb/templates/election-vote.tpl.php:1.3 pearweb/templates/election-vote.tpl.php:1.4 --- pearweb/templates/election-vote.tpl.php:1.3 Fri Nov 10 03:46:28 2006 +++ pearweb/templates/election-vote.tpl.php Tue Nov 21 05:40:23 2006 @@ -27,7 +27,7 @@ <?php if ($election['voted'] == 'yes'): ?> <td class="<?php echo $class; ?>"><?php echo htmlspecialchars($election['purpose']); ?></td> <?php else: // if ($election['voted'] == 'yes'): ?> - <td class="<?php echo $class; ?>"><a href="/election-info.php?election=<?php + <td class="<?php echo $class; ?>"><a href="/election/info.php?election=<?php echo $election['id']; ?>&vote=1"><?php echo htmlspecialchars($election['purpose']); ?></a></td> <?php endif; // if ($election['voted'] == 'yes'): ?> <td class="<?php echo $class; ?>"><?php echo $election['votestart'] . ' until ' . @@ -70,7 +70,7 @@ }; endif; // if ($retrieval && isset($info)) ?> <h3>Retrieve your vote in an election:</h3> -<form name="checkvote" action="/election.php" method="post"> +<form name="checkvote" action="/election/index.php" method="post"> <select name="election"> <?php foreach ($allelections as $election): ?> <option value="<?php echo $election['id']; ?>"><?php echo htmlspecialchars($election['purpose']); ?></option>
http://cvs.php.net/viewvc.cgi/pearweb/templates/election-confirm.tpl.php?r1=1.4&r2=1.5&diff_format=u Index: pearweb/templates/election-confirm.tpl.php diff -u pearweb/templates/election-confirm.tpl.php:1.4 pearweb/templates/election-confirm.tpl.php:1.5 --- pearweb/templates/election-confirm.tpl.php:1.4 Tue Nov 21 05:22:47 2006 +++ pearweb/templates/election-confirm.tpl.php Tue Nov 21 05:40:23 2006 @@ -7,7 +7,7 @@ <h2>Detail on the election</h2> <?php echo $info['detail']; ?> <h2>Your Vote (PLEASE CONFIRM BELOW, YOUR VOTE IS NOT SAVED):</h2> -<form action="/election-info.php" method="post"> +<form action="/election/info.php" method="post"> <input type="hidden" name="election" value="<?php echo $info['id']; ?>" /> <table> <tr> http://cvs.php.net/viewvc.cgi/pearweb/templates/election-confirmed.tpl.php?r1=1.2&r2=1.3&diff_format=u Index: pearweb/templates/election-confirmed.tpl.php diff -u pearweb/templates/election-confirmed.tpl.php:1.2 pearweb/templates/election-confirmed.tpl.php:1.3 --- pearweb/templates/election-confirmed.tpl.php:1.2 Tue Nov 7 05:47:06 2006 +++ pearweb/templates/election-confirmed.tpl.php Tue Nov 21 05:40:23 2006 @@ -42,5 +42,5 @@ allowed to vote again in this election. Thank you for voting! </p> <p> - <a href="/election.php">Return to Elections</a> + <a href="/election/">Return to Elections</a> </p> \ No newline at end of file http://cvs.php.net/viewvc.cgi/pearweb/templates/election-dovote.tpl.php?r1=1.4&r2=1.5&diff_format=u Index: pearweb/templates/election-dovote.tpl.php diff -u pearweb/templates/election-dovote.tpl.php:1.4 pearweb/templates/election-dovote.tpl.php:1.5 --- pearweb/templates/election-dovote.tpl.php:1.4 Tue Nov 21 05:22:47 2006 +++ pearweb/templates/election-dovote.tpl.php Tue Nov 21 05:40:23 2006 @@ -31,7 +31,7 @@ <h2>Detail on the election</h2> <?php echo $info['detail']; ?> <h2>Please choose <?php echo $pleasechoose; ?>:</h2> -<form action="/election-info.php" method="post"> +<form action="/election/info.php" method="post"> <input type="hidden" name="confirm" value="1" /> <input type="hidden" name="election" value="<?php echo $info['id']; ?>" /> <table> http://cvs.php.net/viewvc.cgi/pearweb/templates/election-listforedit.tpl.php?r1=1.1&r2=1.2&diff_format=u Index: pearweb/templates/election-listforedit.tpl.php diff -u pearweb/templates/election-listforedit.tpl.php:1.1 pearweb/templates/election-listforedit.tpl.php:1.2 --- pearweb/templates/election-listforedit.tpl.php:1.1 Fri Nov 10 03:46:28 2006 +++ pearweb/templates/election-listforedit.tpl.php Tue Nov 21 05:40:23 2006 @@ -25,7 +25,7 @@ $class = $election['active'] == 'yes' ? 'vote-active' : 'vote-inactive'; ?> <tr> - <td class="<?php echo $class; ?>"><a href="/election-edit.php?election=<?php + <td class="<?php echo $class; ?>"><a href="/election/edit.php?election=<?php echo $election['id']; ?>"><?php echo htmlspecialchars($election['purpose']); ?></a></td> <td class="<?php echo $class; ?>"><?php echo $election['votestart'] . ' until ' . $election['voteend']; ?></td> http://cvs.php.net/viewvc.cgi/pearweb/templates/election-new-step1.tpl.php?r1=1.3&r2=1.4&diff_format=u Index: pearweb/templates/election-new-step1.tpl.php diff -u pearweb/templates/election-new-step1.tpl.php:1.3 pearweb/templates/election-new-step1.tpl.php:1.4 --- pearweb/templates/election-new-step1.tpl.php:1.3 Fri Nov 10 03:46:28 2006 +++ pearweb/templates/election-new-step1.tpl.php Tue Nov 21 05:40:23 2006 @@ -9,7 +9,7 @@ } } ?> -<form name="newelection" action="/election-<?php echo $new ?>.php" method="post"> +<form name="newelection" action="/election/<?php echo $new ?>.php" method="post"> <input type="hidden" name="step" value="2" /> <?php if ($new == 'edit'): ?> <input type="hidden" name="election_id" value="<?php echo $election_id ?>" /> http://cvs.php.net/viewvc.cgi/pearweb/templates/election-new-step2.tpl.php?r1=1.3&r2=1.4&diff_format=u Index: pearweb/templates/election-new-step2.tpl.php diff -u pearweb/templates/election-new-step2.tpl.php:1.3 pearweb/templates/election-new-step2.tpl.php:1.4 --- pearweb/templates/election-new-step2.tpl.php:1.3 Fri Nov 10 03:46:28 2006 +++ pearweb/templates/election-new-step2.tpl.php Tue Nov 21 05:40:23 2006 @@ -9,7 +9,7 @@ } } ?> -<form name="newelection" action="/election-<?php echo $new ?>.php" method="post"> +<form name="newelection" action="/election/<?php echo $new ?>.php" method="post"> <input type="hidden" name="step" value="3" /> <?php if ($new == 'edit'): ?> <input type="hidden" name="election_id" value="<?php echo $election_id ?>" /> http://cvs.php.net/viewvc.cgi/pearweb/templates/election-new-step3.tpl.php?r1=1.3&r2=1.4&diff_format=u Index: pearweb/templates/election-new-step3.tpl.php diff -u pearweb/templates/election-new-step3.tpl.php:1.3 pearweb/templates/election-new-step3.tpl.php:1.4 --- pearweb/templates/election-new-step3.tpl.php:1.3 Fri Nov 10 03:46:28 2006 +++ pearweb/templates/election-new-step3.tpl.php Tue Nov 21 05:40:23 2006 @@ -9,7 +9,7 @@ } } ?> -<form name="newelection" action="/election-<?php echo $new ?>.php" method="post"> +<form name="newelection" action="/election/<?php echo $new ?>.php" method="post"> <input type="hidden" name="step" value="4" /> <?php if ($new == 'edit'): ?> <input type="hidden" name="election_id" value="<?php echo $election_id ?>" /> http://cvs.php.net/viewvc.cgi/pearweb/templates/election-register.tpl.php?r1=1.1&r2=1.2&diff_format=u Index: pearweb/templates/election-register.tpl.php diff -u pearweb/templates/election-register.tpl.php:1.1 pearweb/templates/election-register.tpl.php:1.2 --- pearweb/templates/election-register.tpl.php:1.1 Sun Nov 5 22:38:20 2006 +++ pearweb/templates/election-register.tpl.php Tue Nov 21 05:40:23 2006 @@ -2,7 +2,7 @@ <h1>Register to Vote</h1> <h2> - If you already have a PEAR developer account, Please <a href="login.php?redirect=/election.php<?php + If you already have a PEAR developer account, Please <a href="/login.php?redirect=/election/<?php if ($query) { echo urlencode($query); } ?>">Log in</a>, you are already registered to vote. http://cvs.php.net/viewvc.cgi/pearweb/templates/election-results.tpl.php?r1=1.1&r2=1.2&diff_format=u Index: pearweb/templates/election-results.tpl.php diff -u pearweb/templates/election-results.tpl.php:1.1 pearweb/templates/election-results.tpl.php:1.2 --- pearweb/templates/election-results.tpl.php:1.1 Mon Nov 6 05:54:53 2006 +++ pearweb/templates/election-results.tpl.php Tue Nov 21 05:40:23 2006 @@ -14,7 +14,7 @@ } ?> <tr> - <td class="<?php echo $class; ?>"><a href="/election-info.php?election=<?php + <td class="<?php echo $class; ?>"><a href="/election/info.php?election=<?php echo $election['id']; ?>&results=1"><?php echo htmlspecialchars($election['purpose']); ?></a></td> <td class="<?php echo $class; ?>"><?php echo $election['votestart'] . ' until ' . $election['voteend']; ?></td> http://cvs.php.net/viewvc.cgi/pearweb/templates/election-showresults.tpl.php?r1=1.6&r2=1.7&diff_format=u Index: pearweb/templates/election-showresults.tpl.php diff -u pearweb/templates/election-showresults.tpl.php:1.6 pearweb/templates/election-showresults.tpl.php:1.7 --- pearweb/templates/election-showresults.tpl.php:1.6 Tue Nov 21 04:29:48 2006 +++ pearweb/templates/election-showresults.tpl.php Tue Nov 21 05:40:23 2006 @@ -46,3 +46,4 @@ </td> </tr> </table> +<?php response_footer(); http://cvs.php.net/viewvc.cgi/pearweb/templates/election-vote.tpl.php?r1=1.3&r2=1.4&diff_format=u Index: pearweb/templates/election-vote.tpl.php diff -u pearweb/templates/election-vote.tpl.php:1.3 pearweb/templates/election-vote.tpl.php:1.4 --- pearweb/templates/election-vote.tpl.php:1.3 Fri Nov 10 03:46:28 2006 +++ pearweb/templates/election-vote.tpl.php Tue Nov 21 05:40:23 2006 @@ -27,7 +27,7 @@ <?php if ($election['voted'] == 'yes'): ?> <td class="<?php echo $class; ?>"><?php echo htmlspecialchars($election['purpose']); ?></td> <?php else: // if ($election['voted'] == 'yes'): ?> - <td class="<?php echo $class; ?>"><a href="/election-info.php?election=<?php + <td class="<?php echo $class; ?>"><a href="/election/info.php?election=<?php echo $election['id']; ?>&vote=1"><?php echo htmlspecialchars($election['purpose']); ?></a></td> <?php endif; // if ($election['voted'] == 'yes'): ?> <td class="<?php echo $class; ?>"><?php echo $election['votestart'] . ' until ' . @@ -70,7 +70,7 @@ }; endif; // if ($retrieval && isset($info)) ?> <h3>Retrieve your vote in an election:</h3> -<form name="checkvote" action="/election.php" method="post"> +<form name="checkvote" action="/election/index.php" method="post"> <select name="election"> <?php foreach ($allelections as $election): ?> <option value="<?php echo $election['id']; ?>"><?php echo htmlspecialchars($election['purpose']); ?></option>