Merge branch 'bug-1394' into testserver-stable
[cacert-devel.git] / pages / advertising / 1.php
1 <? /*
2 LibreSSL - CAcert web application
3 Copyright (C) 2004-2008 CAcert Inc.
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; version 2 of the License.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 */ ?>
18 <? global $errmsg, $link, $title, $months; if($errmsg != "") { ?><p class="error_fatal"><?=$errmsg?></p><? } ?>
19 <form method="post" action="advertising.php" ACCEPTCHARSET="utf-8">
20 <table align="center" valign="middle" border="0" cellspacing="0" cellpadding="0" class="wrapper">
21 <tr>
22 <td colspan="6" class="title"><?=_("New Advertisement")?></td>
23 </tr>
24 <tr><td class='DataTD'>Link Title:</td><td class='DataTD'><input type="text" name="title" value="<?=$title?>"></td></tr>
25 <tr><td class='DataTD'>URL:</td><td class='DataTD'><input type="text" name="link" value="<?=$link?>"></td></tr>
26 <tr><td class='DataTD'>Months:</td><td class='DataTD'><select name="months"><?
27 for($i = 1; $i <= 12; $i++)
28 {
29 echo "<option value='$i'";
30 if($months == $i)
31 echo " selected";
32 echo ">$i Months</option>";
33 }
34 ?></td></tr>
35 <tr><td class='DataTD' colspan='2'><input type="submit" name="process" value="Submit New Advertisment"></tr>
36 </table>
37 <input type="hidden" name="oldid" value="<?=$id?>">
38 </form>