[ Index ]

PHP Cross Reference of zeList

title

Body

[close]

/style/ -> submitform.php (source)

   1  <?php
   2  /**
   3   * Fallback for missing submitform.php in theme directory
   4   **/
   5  ?>
   6  <?php if(!is_user_logged_in()) : ?><div class="warning">
   7      <strong><?php _e("You're not logged in",'zelist'); ?></strong>
   8      <br />
   9      <?php printf(__('Please <a href="%s">login</a> or <a href="%s">register</a>','zelist'),site_url('wp-login.php?redirect_to=' . $_SERVER['REQUEST_URI']),site_url('wp-login.php?action=register')); ?>
  10  </div>
  11  
  12  <?php else : ?>
  13      <?php the_submit_message(); ?>
  14  
  15      <form id="site_submit" action="<?php the_submit_form_action(); ?>" method="post">
  16      <input type="hidden" name="action" value="create_link" />
  17  
  18  
  19  <fieldset>
  20      <label for="link_url"><?php _e('Url:','zelist'); ?>&nbsp;<img id="link_url_img" src="<?php echo admin_url('images/required.gif'); ?>" title="required" alt="required" /></label>
  21      <input type="text" name="link_url" id="link_url" size="40" value="<?php echo $_GET['link_url']; ?>" />
  22      <?php wp_nonce_field('check_url','check_url'); ?>
  23      <p class="response" id="link_url_response"></p>
  24  
  25  
  26      <label for="link_name"><?php _e('Name:','zelist'); ?>&nbsp;<img id="link_name_img" src="<?php echo admin_url('images/required.gif'); ?>" title="required" alt="required" /></label>
  27      <input type="text" name="link_name" id="link_name" size="40" value="<?php echo $_GET['link_name']; ?>" />
  28      <p class="response" id="link_name_response"></p>
  29  
  30      <label for="link_category"><?php _e('Category:','zelist'); ?>&nbsp;<img id="link_category_img" src="<?php echo admin_url('images/required.gif'); ?>" title="required" alt="required" /></label>
  31      <?php $selected = (isset($_REQUEST['link_category'])) ? (int) $_GET['link_category'] : get_option('default_link_category');
  32      wp_dropdown_categories('type=link&name=link_category&orderby=name&hierarchical=1&hide_empty=0&selected='.$selected);  ?>
  33      <p class="response" id="link_category_response"></p>
  34  
  35      <input id="site_submit_submit" type="submit" value="<?php _e('Submit','zelist'); ?>" />
  36  
  37      <?php wp_nonce_field('create_link'); ?>
  38  </fieldset>
  39      <p class="response" id="site_submit_response">&nbsp;</p>
  40  
  41      </form>
  42  
  43  
  44  <?php endif; ?>


Generated: Sat May 30 23:51:06 2009 Cross-referenced by PHPXref 0.7