home *** CD-ROM | disk | FTP | other *** search
/ MacAddict 108 / MacAddict108.iso / Software / Internet & Communication / WordPress 1.5.1.dmg / wordpress / wp-admin / edit-form.php < prev    next >
Encoding:
PHP Script  |  2005-03-14  |  3.1 KB  |  77 lines

  1.  
  2. <div class="wrap">
  3. <h2><?php _e('Write Post'); ?></h2>
  4. <form name="post" action="post.php" method="post" id="simple">
  5.  
  6. <?php if (isset($mode) && 'bookmarklet' == $mode) : ?>
  7. <input type="hidden" name="mode" value="bookmarklet" />
  8. <?php endif; ?>
  9. <input type="hidden" name="user_ID" value="<?php echo $user_ID ?>" />
  10. <input type="hidden" name="action" value='post' />
  11.  
  12. <script type="text/javascript">
  13. <!--
  14. function focusit() {
  15.     // focus on first input field
  16.     document.getElementById('title').focus();
  17. }
  18. window.onload = focusit;
  19. //-->
  20. </script>
  21.  
  22. <div id="poststuff">
  23.     <fieldset id="titlediv">
  24.       <legend><a href="http://wordpress.org/docs/reference/post/#title" title="<?php _e('Help on titles') ?>"><?php _e('Title') ?></a></legend> 
  25.       <div><input type="text" name="post_title" size="30" tabindex="1" value="<?php echo $edited_post_title; ?>" id="title" /></div>
  26.     </fieldset>
  27.  
  28.     <fieldset id="categorydiv">
  29.       <legend><a href="http://wordpress.org/docs/reference/post/#category" title="<?php _e('Help on categories') ?>"><?php _e('Categories') ?></a></legend> 
  30.       <div><?php dropdown_categories($default_post_cat); ?></div>
  31.     </fieldset>
  32.  
  33. <br />
  34. <fieldset id="postdiv">
  35.     <legend><a href="http://wordpress.org/docs/reference/post/#post" title="<?php _e('Help with post field') ?>"><?php _e('Post') ?></a></legend>
  36. <?php the_quicktags(); ?>
  37. <?php
  38.  $rows = get_settings('default_post_edit_rows');
  39.  if (($rows < 3) || ($rows > 100)) {
  40.      $rows = 10;
  41.  }
  42. ?>
  43. <div><textarea rows="<?php echo $rows; ?>" cols="40" name="content" tabindex="4" id="content"><?php echo $content ?></textarea></div>
  44. </fieldset>
  45.  
  46.  
  47. <script type="text/javascript">
  48. <!--
  49. edCanvas = document.getElementById('content');
  50. //-->
  51. </script>
  52.  
  53. <input type="hidden" name="post_pingback" value="<?php echo get_option('default_pingback_flag') ?>" id="post_pingback" />
  54.  
  55. <p><label for="trackback"> <?php printf(__('<a href="%s" title="Help on trackbacks"><strong>TrackBack</strong> a <abbr title="Universal Resource Identifier">URI</abbr></a>:</label> (Separate multiple <abbr title="Universal Resource Identifier">URI</abbr>s with spaces.)<br />'), 'http://wordpress.org/docs/reference/post/#trackback') ?>
  56.     <input type="text" name="trackback_url" style="width: 360px" id="trackback" tabindex="7" /></p>
  57.  
  58. <p class="submit"><input name="saveasdraft" type="submit" id="saveasdraft" tabindex="9" value="<?php _e('Save as Draft') ?>" /> 
  59.   <input name="saveasprivate" type="submit" id="saveasprivate" tabindex="10" value="<?php _e('Save as Private') ?>" />
  60.  
  61.      <?php if ( user_can_create_post($user_ID) ) : ?>
  62.   <input name="publish" type="submit" id="publish" tabindex="6" style="font-weight: bold;" value="<?php _e('Publish') ?>" /> 
  63. <?php endif; ?>
  64.  
  65. <?php if ('bookmarklet' != $mode) {
  66.       echo '<input name="advanced" type="submit" id="advancededit" tabindex="7" value="' .  __('Advanced Editing »') . '" />';
  67.   } ?>
  68.   <input name="referredby" type="hidden" id="referredby" value="<?php if (isset($_SERVER['HTTP_REFERER'])) echo urlencode($_SERVER['HTTP_REFERER']); ?>" />
  69. </p>
  70.  
  71. <?php do_action('simple_edit_form', ''); ?>
  72.  
  73. </div>
  74. </form>
  75.  
  76. </div>
  77.