remove old readme
[atutor.git] / docs / themes / mobile / admin / system_preferences / add_feed.tmpl.php
1 <?php
2 global $stripslashes;
3
4 if (!isset($_POST['confirm'])) {
5 ?>
6         <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
7                 <input type="hidden" name="confirm" value="1" />
8
9                 <div class="input-form" style="width: 95%x">
10                         <div class="row">
11                                 <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="title"><?php echo _AT('title'); ?></label><br />
12                                 <input id="title" name="title" type="text" size="40" maxlength="255" value="<?php echo $stripslashes(htmlspecialchars($_POST['title'])); ?>" /><br />
13                         </div>
14
15                         <div class="row">
16                                 <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="url"><?php echo _AT('url'); ?></label><br />
17                                 <input id="url" name="url" type="text" size="40" maxlength="255" value="<?php echo $stripslashes(htmlspecialchars($_POST['url'])); ?>" /><br />
18                         </div>
19
20                         <div class="row buttons">
21                                 <input type="submit" name="submit" value=" <?php echo _AT('save'); ?> " accesskey="s" />
22                                 <input type="submit" name="cancel" value=" <?php echo _AT('cancel'); ?> " />
23                         </div>
24                 </div>
25         </form>
26 <?php 
27 } else { ?>
28
29         <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
30         <input type="hidden" name="new" value="<?php echo $_POST['new']; ?>" />
31
32         <div class="input-form">
33                 <div class="row">
34                         <h3><?php if (file_exists($this->title_file)) { 
35                                         readfile($this->title_file); 
36                                 } else {
37                                         echo $_POST['title'];
38                                 }?>
39                         </h3>
40                 </div>
41
42                 <div class="row">
43                         <?php echo $this->output; ?>
44                 </div>
45         </div>
46         </form>
47
48         <?php
49                 $this->msg->printConfirm();
50 }
51 ?>