cvs: pearweb /templates/election vote.tpl.php
[email protected] ("Helgi ?ormar ?orbj?rnsson") Tue, 06 May 2008 23:20:02 -0000
| Newsgroups | php.pear.cvs,php.pear.core |
|---|---|
| Message-ID | <cvsdufuz1210116002@cvsserver> |
dufuz Tue May 6 23:20:02 2008 UTC
Modified files:
/pearweb/templates/election vote.tpl.php
Log:
Adding success messages, weird that "Election saved" looks like an error
http://cvs.php.net/viewvc.cgi/pearweb/templates/election/vote.tpl.php?r1=1.2&r2=1.3&diff_format=u
Index: pearweb/templates/election/vote.tpl.php
diff -u pearweb/templates/election/vote.tpl.php:1.2 pearweb/templates/election/vote.tpl.php:1.3
--- pearweb/templates/election/vote.tpl.php:1.2 Sun Jan 27 20:54:45 2008
+++ pearweb/templates/election/vote.tpl.php Tue May 6 23:20:02 2008
@@ -1,9 +1,12 @@
<?php response_header('Vote'); ?>
<h1>Vote in a PEAR Election</h1>
-<?php if (isset($error)): ?>
+<?php if (isset($error) && !empty($error)): ?>
<div class="errors"><?php echo $error; ?></div>
<?php endif; // if (isset($error)): ?>
+<?php if (isset($info) && !empty($info)): ?>
+<div class="success"><?php echo $info; ?></div>
+<?php endif; // if (isset($info)): ?>
Current date is <strong><?php echo date('Y-m-d'); ?></strong>
<?php if (count($currentelections)): ?>