コード例 #1
0
    $results = $wpdb->get_results("SELECT ID, user_login FROM $wpdb->users ORDER BY ID");
    echo "          <select name=\"newowner\" size=\"1\">\n";
    foreach ($results as $row) {
      echo "            <option value=\"".$row->ID."\"";
      echo ">".$row->user_login;
      echo "</option>\n";
    }
    echo "          </select>\n";
?>
        <input name="assign" type="submit" id="assign" value="<?php _e('Go') ?>" />
        </td>
        <td>
          <input name="visibility" type="submit" id="visibility" value="<?php _e('Toggle Visibility') ?>" />
        </td>
        <td>
          <?php _e('Move to category:'); link_category_dropdown('category'); ?> <input name="move" type="submit" id="move" value="<?php _e('Go') ?>" />
        </td>
        <td align="right">
          <a href="#" onclick="checkAll(document.getElementById('links')); return false; "><?php _e('Toggle Checkboxes') ?></a>
        </td>
    </tr>
</table>

<?php
  } // end if !popup
?>
</div>
</form>


<?php
コード例 #2
0
        <table class="editform" width="100%" cellspacing="2" cellpadding="5">
         <tr>
           <th width="33%" scope="row"><?php _e('URI:') ?></th>
           <td width="67%"><input type="text" name="link_url" value="<?php echo $link->link_url; ?>" style="width: 95%;" /></td>
         </tr>
         <tr>
           <th scope="row"><?php _e('Link Name:') ?></th>
           <td><input type="text" name="link_name" value="<?php echo $link->link_name; ?>" style="width: 95%" /></td>
         </tr>
         <tr>
            <th scope="row"><?php _e('Short description:') ?></th>
         	<td><input type="text" name="link_description" value="<?php echo $link->link_description; ?>" style="width: 95%" /></td>
         	</tr>
        <tr>
           <th scope="row"><?php _e('Category:') ?></th>
           <td><?php link_category_dropdown('link_category', $link->link_category); ?></td>
         </tr>
</table>
</fieldset>
       <p class="submit">
       <input type="submit" name="submit" value="<?php echo $submit_text ?>" />
       </p>
	<fieldset class="options">
        <legend><?php _e('Link Relationship (XFN)') ?></legend>
        <table class="editform" width="100%" cellspacing="2" cellpadding="5">
            <tr>
                <th width="33%" scope="row"><?php _e('rel:') ?></th>
            	<td width="67%"><input type="text" name="link_rel" id="link_rel" size="50" value="<?php echo $link->link_rel; ?>" /></td>
           	</tr>
            <tr>
                <th scope="row"><?php _e('<a href="http://gmpg.org/xfn/">XFN</a> Creator:') ?></th>
コード例 #3
0
            <th scope="row"><?php 
_e('Short description:');
?>
</th>
         	<td><input type="text" name="link_description" value="<?php 
echo $link->link_description;
?>
" style="width: 95%" /></td>
         	</tr>
        <tr>
           <th scope="row"><?php 
_e('Category:');
?>
</th>
           <td><?php 
link_category_dropdown('link_category', $link->link_category);
?>
</td>
         </tr>
</table>
</fieldset>
       <p class="submit">
       <input type="submit" name="submit" value="<?php 
echo $submit_text;
?>
" />
       </p>
	<fieldset class="options">
        <legend><?php 
_e('Link Relationship (XFN)');
?>
コード例 #4
0
            ?>
        <input name="assign" type="submit" id="assign" value="<?php 
            _e('Go');
            ?>
" />
        </td>
        <td>
          <input name="visibility" type="submit" id="visibility" value="<?php 
            _e('Toggle Visibility');
            ?>
" />
        </td>
        <td>
          <?php 
            _e('Move to category:');
            link_category_dropdown('category');
            ?>
 <input name="move" type="submit" id="move" value="<?php 
            _e('Go');
            ?>
" />
        </td>
        <td align="right">
          <a href="#" onclick="checkAll(document.getElementById('links')); return false; "><?php 
            _e('Toggle Checkboxes');
            ?>
</a>
        </td>
    </tr>
</table>