1 | <div class="wrap">
|
---|
2 | <form name="form1" method="post" action="<?php echo remove_query_arg(array('mode', 'id')); ?>">
|
---|
3 | <input type="hidden" name="mode_x" value="<?php if($mode=='add') echo "add_x"; else echo "edit_x"; ?>" />
|
---|
4 | <input type="hidden" name="lexi_id" value="<?php echo $id; ?>" />
|
---|
5 | <div id="icon-tools" class="icon32"><br /></div>
|
---|
6 | <h2><?php if($mode=='add') _e( 'Add Feed', 'lexi' ); if($mode=='edit') _e( 'Edit Feed', 'lexi' );?></h2>
|
---|
7 | <div id="poststuff" class="metabox-holder">
|
---|
8 | <div id="post-body" class="has-sidebar">
|
---|
9 | <div id="post-body-content" class="has-sidebar-content">
|
---|
10 | <div id="namediv" class="stuffbox">
|
---|
11 | <h3><label for="name"><?php _e('RSS', 'lexi'); ?></label></h3>
|
---|
12 | <div class="inside">
|
---|
13 | <div class="submitbox" id="submitcomment">
|
---|
14 | <table>
|
---|
15 | <tr>
|
---|
16 | <td width="20%"><?php _e("Name", 'lexi' ); ?>:</td>
|
---|
17 | <td colspan=2><input type="text" name="lexi_name" value="<?php echo $name; ?>" /></td>
|
---|
18 | </tr>
|
---|
19 | <tr>
|
---|
20 | <td><?php _e("RSS", 'lexi' ); ?>:</td>
|
---|
21 | <td colspan=2><input type="text" name="lexi_rss" value="<?php echo $rss; ?>" /></td>
|
---|
22 | </tr>
|
---|
23 | <tr>
|
---|
24 | <td><?php _e("Items", 'lexi' ); ?>:</td>
|
---|
25 | <td colspan=2>
|
---|
26 | <select name="lexi_items"><?php
|
---|
27 | for($i=1; $i<11; $i++) {
|
---|
28 | echo "<option value=\"$i\"";
|
---|
29 | if ($items == $i) echo(' selected');
|
---|
30 | echo ">$i</option>";
|
---|
31 | } ?>
|
---|
32 | </select>
|
---|
33 | </td>
|
---|
34 | </tr>
|
---|
35 | <tr>
|
---|
36 | <td><?php _e("Show contents", 'lexi' ); ?>:</td>
|
---|
37 | <td width="5%"><input type="checkbox" name="lexi_showcontent" <?php if($showcontent) echo "checked"; ?>/></td>
|
---|
38 | <td></td>
|
---|
39 | </tr>
|
---|
40 | <tr>
|
---|
41 | <td><?php _e("Save cache", 'lexi' ); ?>:</td>
|
---|
42 | <td><input type="checkbox" name="lexi_cached" <?php if($cached || !$id) echo "checked"; ?>/></td>
|
---|
43 | <td><?php _e('Uncheck this option only in case the feed updates several times in an hour.','lexi'); ?></td>
|
---|
44 | </tr>
|
---|
45 | </table>
|
---|
46 | </div>
|
---|
47 | </div>
|
---|
48 | <div id="major-publishing-actions">
|
---|
49 | <div id="delete-action">
|
---|
50 | <input type="submit" name="cancel" value="<?php _e( 'Cancel', 'lexi' );?>" class="button-primary" />
|
---|
51 | </div>
|
---|
52 | <div id="publishing-action" style="margin-right:18px;">
|
---|
53 | <input type="submit" name="submit" value="<?php if($mode=='add') _e( 'Add', 'lexi' ); if($mode=='edit') _e( 'Modify', 'lexi' );?>" class="button-primary" />
|
---|
54 | </div>
|
---|
55 | <div class="clear"></div>
|
---|
56 | </div>
|
---|
57 | </div>
|
---|
58 | </div>
|
---|
59 | </div>
|
---|
60 | </div>
|
---|
61 | </form>
|
---|
62 | </div>
|
---|