Interface improvements.

git-svn-id: https://develop.svn.wordpress.org/trunk@1076 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2004-04-15 09:15:56 +00:00
parent 2a9ff3112d
commit dfbe32bf8d
7 changed files with 166 additions and 144 deletions

View File

@ -140,7 +140,7 @@ default:
?>
<div class="wrap">
<h2>Current Categories</h2>
<h2>Current Categories (<a href="#addcat">add new</a>) </h2>
<table width="100%" cellpadding="3" cellspacing="3">
<tr>
<th scope="col">Name</th>

View File

@ -442,7 +442,7 @@ $option_data = array(
"INSERT INTO $tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(33,'fileupload_url', 3, 'http://example.com/images', 'enter the URL of that directory (it\'s used to generate the links to the uploded files)', 8, 40)",
"INSERT INTO $tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(34,'fileupload_allowedtypes', 3, 'jpg gif png', 'accepted file types, separated by spaces. example: \'jpg gif png\'', 8, 20)",
"INSERT INTO $tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(35,'fileupload_maxk', 1, '96', 'by default, most servers limit the size of uploads to 2048 KB, if you want to set it to a lower value, here it is (you cannot set a higher value than your server limit)', 8, 20)",
"INSERT INTO $tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(36,'fileupload_minlevel', 1, '1', 'you may not want all users to upload pictures/files, so you can set a minimum level for this', 8, 20)",
"INSERT INTO $tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(36,'fileupload_minlevel', 1, '4', 'you may not want all users to upload pictures/files, so you can set a minimum level for this', 8, 20)",
"INSERT INTO $tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(37,'fileupload_allowedusers', 3, '', '...or you may authorize only some users. enter their logins here, separated by spaces. if you leave this variable blank, all users who have the minimum level are authorized to upload. example: \'barbara anne george\'', 8, 30)",
// email settings
"INSERT INTO $tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(38,'mailserver_url', 3, 'mail.example.com', 'mailserver settings', 8, 20)",

View File

@ -69,125 +69,145 @@ require('admin-header.php');
th { text-align: right; }
</style>
<div class="wrap">
<h3><strong>Add</strong> a link:<?php echo gethelp_link($this_file,'add_a_link');?></h3>
<h2><strong>Add</strong> a link: <?php echo gethelp_link($this_file,'add_a_link');?></h2>
<form name="addlink" method="post" action="link-manager.php">
<table width="100%" border="0" cellspacing="0" cellpadding="4">
<fieldset class="options">
<legend>Basics</legend>
<table class="editform" width="100%" cellspacing="2" cellpadding="5">
<tr>
<th scope="row">URI:</th>
<td><input type="text" name="linkurl" size="80" value="<?php echo $link_url; ?>"></td>
<th width="33%" scope="row">URI:</th>
<td width="67%"><input type="text" name="linkurl" value="<?php echo $_GET['linkurl']; ?>" style="width: 95%; /"></td>
</tr>
<tr>
<th scope="row">Link Name:</th>
<td><input type="text" name="name" size="80" value="<?php echo $link_name; ?>"></td>
<td><input type="text" name="name" value="<?php echo urldecode($_GET['name']); ?>" style="width: 95%" /></td>
</tr>
<tr>
<th scope="row">Image</th>
<td><input type="text" name="image" size="80" value=""></td>
<th scope="row">Description:</th>
<td><input type="text" name="description" value="" style="width: 95%" /></td>
</tr>
<tr>
<th scope="row">Category:</th>
<td><?php category_dropdown('category'); ?></td>
</tr>
</table>
</fieldset>
<p class="submit">
<input type="submit" name="submit" value="Add Link &raquo;" >
</p>
<fieldset class="options">
<legend>Link Relationship (XFN)</legend>
<table class="editform" width="100%" cellspacing="2" cellpadding="5">
<tr>
<th width="33%" scope="row">rel:</th>
<td width="67%"><input type="text" name="rel" id="rel" size="50" value=""></td>
</tr>
<tr>
<th scope="row"><a href="http://gmpg.org/xfn/">XFN</a> Creator:</th>
<td><table cellpadding="3" cellspacing="5">
<tr>
<th scope="row"> friendship </th>
<td><label for="label">
<input class="valinp" type="radio" name="friendship" value="acquaintance" id="label" />
acquaintance</label>
<label for="label2">
<input class="valinp" type="radio" name="friendship" value="friend" id="label2" />
friend</label>
<label for="label3">
<input class="valinp" type="radio" name="friendship" value="" id="label3" />
none</label>
</td>
</tr>
<tr>
<th scope="row"> physical </th>
<td><label for="label4">
<input class="valinp" type="checkbox" name="physical" value="met" id="label4" />
met</label>
</td>
</tr>
<tr>
<th scope="row"> professional </th>
<td><label for="label5">
<input class="valinp" type="checkbox" name="professional" value="co-worker" id="label5" />
co-worker</label>
<label for="label6">
<input class="valinp" type="checkbox" name="professional" value="colleague" id="label6" />
colleague</label>
</td>
</tr>
<tr>
<th scope="row"> geographical </th>
<td><label for="label7">
<input class="valinp" type="radio" name="geographical" value="co-resident" id="label7" />
co-resident</label>
<label for="label8">
<input class="valinp" type="radio" name="geographical" value="neighbor" id="label8" />
neighbor</label>
<label for="label9">
<input class="valinp" type="radio" name="geographical" value="" id="label9" />
none</label>
</td>
</tr>
<tr>
<th scope="row"> family </th>
<td><label for="label10">
<input class="valinp" type="radio" name="family" value="child" id="label10" />
child</label>
<label for="label11">
<input class="valinp" type="radio" name="family" value="parent" id="label11" />
parent</label>
<label for="label12">
<input class="valinp" type="radio" name="family" value="sibling" id="label12" />
sibling</label>
<label for="label13">
<input class="valinp" type="radio" name="family" value="spouse" id="label13" />
spouse</label>
<label for="label14">
<input class="valinp" type="radio" name="family" value="" id="label14" />
none</label>
</td>
</tr>
<tr>
<th scope="row"> romantic </th>
<td><label for="label15">
<input class="valinp" type="checkbox" name="romantic" value="muse" id="label15" />
muse</label>
<label for="label16">
<input class="valinp" type="checkbox" name="romantic" value="crush" id="label16" />
crush</label>
<label for="label17">
<input class="valinp" type="checkbox" name="romantic" value="date" id="label17" />
date</label>
<label for="label18">
<input class="valinp" type="checkbox" name="romantic" value="sweetheart" id="label18" />
sweetheart</label>
</td>
</tr>
</table></td>
</tr>
</table>
</fieldset>
<p class="submit">
<input type="submit" name="submit" value="Add Link &raquo;" >
</p>
<fieldset class="options">
<legend>Advanced</legend>
<table class="editform" width="100%" cellspacing="2" cellpadding="5">
<tr>
<th width="33%" scope="row">Image:</th>
<td width="67%"><input type="text" name="image" size="50" value=""></td>
</tr>
<tr>
<th scope="row">RSS URI: </th>
<td><input name="rss_uri" type="text" id="rss_uri" value="" size="80"></td>
<td><input name="rss_uri" type="text" id="rss_uri" value="" size="50"></td>
</tr>
<tr>
<th scope="row">Description</th>
<td><input type="text" name="description" size="80" value=""></td>
</tr>
<tr>
<th scope="row">rel:</th>
<td><input type="text" name="rel" id="rel" size="80" value=""></td>
</tr>
<tr>
<th scope="row"><a href="http://gmpg.org/xfn/">XFN</a>:</th>
<td><table cellpadding="3" cellspacing="5">
<tr>
<th scope="row"> friendship </th>
<td>
<label for="label">
<input class="valinp" type="radio" name="friendship" value="acquaintance" id="label" />
acquaintance</label>
<label for="label2">
<input class="valinp" type="radio" name="friendship" value="friend" id="label2" />
friend</label>
<label for="label3">
<input class="valinp" type="radio" name="friendship" value="" id="label3" />
none</label>
</td>
</tr>
<tr>
<th scope="row"> physical </th>
<td>
<label for="label4">
<input class="valinp" type="checkbox" name="physical" value="met" id="label4" />
met</label>
</td>
</tr>
<tr>
<th scope="row"> professional </th>
<td>
<label for="label5">
<input class="valinp" type="checkbox" name="professional" value="co-worker" id="label5" />
co-worker</label>
<label for="label6">
<input class="valinp" type="checkbox" name="professional" value="colleague" id="label6" />
colleague</label>
</td>
</tr>
<tr>
<th scope="row"> geographical </th>
<td>
<label for="label7">
<input class="valinp" type="radio" name="geographical" value="co-resident" id="label7" />
co-resident</label>
<label for="label8">
<input class="valinp" type="radio" name="geographical" value="neighbor" id="label8" />
neighbor</label>
<label for="label9">
<input class="valinp" type="radio" name="geographical" value="" id="label9" />
none</label>
</td>
</tr>
<tr>
<th scope="row"> family </th>
<td>
<label for="label10">
<input class="valinp" type="radio" name="family" value="child" id="label10" />
child</label>
<label for="label11">
<input class="valinp" type="radio" name="family" value="parent" id="label11" />
parent</label>
<label for="label12">
<input class="valinp" type="radio" name="family" value="sibling" id="label12" />
sibling</label>
<label for="label13">
<input class="valinp" type="radio" name="family" value="spouse" id="label13" />
spouse</label>
<label for="label14">
<input class="valinp" type="radio" name="family" value="" id="label14" />
none</label>
</td>
</tr>
<tr>
<th scope="row"> romantic </th>
<td>
<label for="label15">
<input class="valinp" type="checkbox" name="romantic" value="muse" id="label15" />
muse</label>
<label for="label16">
<input class="valinp" type="checkbox" name="romantic" value="crush" id="label16" />
crush</label>
<label for="label17">
<input class="valinp" type="checkbox" name="romantic" value="date" id="label17" />
date</label>
<label for="label18">
<input class="valinp" type="checkbox" name="romantic" value="sweetheart" id="label18" />
sweetheart</label>
</td>
</tr>
</table></td>
<td>&nbsp;</td>
</tr>
<tr>
<th scope="row">Notes:</th>
<td><textarea name="notes" cols="80" rows="10"></textarea></td>
<td><textarea name="notes" cols="50" rows="10"></textarea></td>
</tr>
<tr>
<th scope="row">Rating:</th>
@ -207,10 +227,12 @@ th { text-align: right; }
<code>_blank</code></label>
&nbsp;
<label>
<br>
<input type="radio" name="target" value="_top">
<code>_top</code></label>
&nbsp;
<label>
<br>
<input type="radio" name="target" value="" checked="checked">
none</label>
(Note that the <code>target</code> attribute is illegal in XHTML 1.1 and 1.0 Strict.)</td>
@ -219,19 +241,15 @@ none</label>
<th scope="row">Visible:</th>
<td><label>
<input type="radio" name="visible" checked="checked" value="Y">
Yes</label>
&nbsp;
<label>
<input type="radio" name="visible" value="N">
Yes</label><label><br>
<input type="radio" name="visible" value="N"> <input type="hidden" name="action" value="Add" />
No</label></td>
</tr>
<tr>
<th scope="row">Category:</th>
<td><?php category_dropdown('category'); ?></td>
</tr>
</table>
<p style="text-align: center;">
<input type="submit" name="submit" value="Add Link" class="search"> <input type="hidden" name="action" value="Add" />
</table>
</fieldset>
<p class="submit">
<input type="submit" name="submit" value="Add Link &raquo;" >
</p>
</form>
</div>

View File

@ -618,7 +618,8 @@ function checkAll(form)
</select>
</td>
<td>
<input type="submit" name="action" value="Show" class="search" /><?php echo gethelp_link($this_file,'show');?>
<input type="submit" name="action" value="Show" />
<?php echo gethelp_link($this_file,'show');?>
</td>
</tr>
</table>
@ -737,7 +738,7 @@ LINKS;
<?php category_dropdown('category'); ?>
</td>
<td align="right">
<a href="#" onclick="checkAll(document.getElementById('links')); return false; ">Toggle Checkboxes</a><?php echo gethelp_link($this_file,'toggle_checkboxes');?>
<a href="#" onClick="checkAll(document.getElementById('links')); return false; ">Toggle Checkboxes</a><?php echo gethelp_link($this_file,'toggle_checkboxes');?>
</td>
</tr>
</table>

View File

@ -44,17 +44,18 @@ include('options-head.php');
<form name="form1" method="post" action="options.php">
<input type="hidden" name="action" value="update" />
<input type="hidden" name="page_options" value="'default_pingback_flag','default_ping_status','default_comment_status','comments_notify','moderation_notify','comment_moderation','require_name_email','comment_max_links','moderation_keys'" />
<h3>Usual settings for an article: <em>(These settings may be overidden for individual articles.)</em></h3>
<fieldset class="options">
<legend>Usual settings for an article: <em>(These settings may be overidden for individual articles.)</em></legend>
<ul>
<li>
<label for="default_pingback_flag">
<input name="default_pingback_flag" type="checkbox" id="default_pingback_flag" value="1" <?php checked('1', get_settings('default_pingback_flag')); ?> />
Attempt to notify any Weblogs linked to from the article. (Slows down posting.)</label>
Attempt to notify any Weblogs linked to from the article (slows down posting.)</label>
</li>
<li>
<label for="default_ping_status">
<input name="default_ping_status" type="checkbox" id="default_ping_status" value="open" <?php checked('open', get_settings('default_ping_status')); ?> />
Allow link notifications from other Weblogs. (Pingbacks and trackbacks.)</label>
Allow link notifications from other Weblogs (pingbacks and trackbacks.)</label>
</li>
<li>
<label for="default_comment_status">
@ -62,7 +63,9 @@ include('options-head.php');
Allow people to post comments on the article</label>
</li>
</ul>
<h3>Email me whenever:</h3>
</fieldset>
<fieldset class="options">
<legend>Email me whenever:</legend>
<ul>
<li>
<label for="comments_notify">
@ -75,7 +78,9 @@ include('options-head.php');
A comment is approved or declined </label>
</li>
</ul>
<h3>Before a comment appears:</h3>
</fieldset>
<fieldset class="options">
<legend>Before a comment appears:</legend>
<ul>
<li>
<label for="comment_moderation">
@ -88,6 +93,7 @@ include('options-head.php');
User must fill out name and email </label>
</li>
</ul>
</fieldset>
<fieldset class="options">
<legend>Comment Moderation</legend>
<p>Hold a comment in the queue if it contains more than
@ -95,7 +101,7 @@ include('options-head.php');
links. (A common characteristic of comment spam is a large number of hyperlinks.)</p>
<p>When a comment contains any of these words in its content, name, URI, email, or IP, hold it in the moderation queue: (Seperate multiple words with new lines.) <a href="http://wiki.wordpress.org/index.php/SpamWords">Common spam words</a>.</p>
<p>
<textarea name="moderation_keys" cols="60" rows="4" id="moderation_keys" style="width: 98%;"><?php echo get_settings('moderation_keys'); ?></textarea>
<textarea name="moderation_keys" cols="60" rows="4" id="moderation_keys" style="width: 98%; font-size: 12px;" class="code"><?php echo get_settings('moderation_keys'); ?></textarea>
</p>
</fieldset>
<p style="text-align: right;">

View File

@ -46,41 +46,37 @@ include('options-head.php');
<input type="hidden" name="action" value="update" />
<input type="hidden" name="action" value="update" /> <input type="hidden" name="page_options" value="'hack_file','use_fileupload','fileupload_realpath','fileupload_url','fileupload_allowedtypes','fileupload_maxk','fileupload_maxk'" />
<fieldset class="options">
<legend>File Uploads</legend>
<legend>
<input name="use_fileupload" type="checkbox" id="use_fileupload" value="1" <?php checked('1', get_settings('use_fileupload')); ?> />
<label for="use_fileupload">Allow File Uploads</label></legend>
<table width="100%" cellspacing="2" cellpadding="5" class="editform">
<tr valign="top">
<th scope="row"><label for="use_fileupload">Allow file uploads:</label></th>
<td>
<input name="use_fileupload" type="checkbox" id="use_fileupload" value="1" <?php checked('1', get_settings('use_fileupload')); ?> />
</td>
</tr>
<tr valign="top">
<th width="33%" scope="row"> Destination directory: </th>
<tr>
<th width="33%" valign="top" scope="row"> Destination directory: </th>
<td>
<input name="fileupload_realpath" type="text" id="fileupload_realpath" value="<?php echo get_settings('fileupload_realpath'); ?>" size="50" /><br />
Recommended: <code><?php echo ABSPATH . 'wp-content'; ?></code>
</td>
</tr>
<tr valign="top">
<th scope="row">URI of this directory: </th>
<tr>
<th valign="top" scope="row">URI of this directory: </th>
<td>
<input name="fileupload_url" type="text" id="fileupload_url" value="<?php echo get_settings('fileupload_url'); ?>" size="50" /><br />
Recommended: <code><?php echo get_settings('siteurl') . '/wp-content'; ?></code>
</td>
</tr>
<tr valign="top">
<tr>
<th scope="row">Maximum size: </th>
<td><input name="fileupload_maxk" type="text" id="fileupload_maxk" value="<?php echo get_settings('fileupload_maxk'); ?>" size="4">
Kilobytes (KB)</td>
</tr>
<tr valign="top">
<th scope="row">Allowed file extensions:</th>
<tr>
<th valign="top" scope="row">Allowed file extensions:</th>
<td><input name="fileupload_allowedtypes" type="text" id="fileupload_allowedtypes" value="<?php echo get_settings('fileupload_allowedtypes'); ?>" size="40">
<br>
Recommended: <code>jpg jpeg png gif </code></td>
</tr>
<tr valign="top">
<tr>
<th scope="row">Minimum level to upload:</th>
<td><select name="fileupload_minlevel" id="fileupload_minlevel">
<?php

View File

@ -244,8 +244,8 @@ default:
</style>
<table width="99%" border="0" cellspacing="2" cellpadding="3">
<tr>
<th width="15%" scope="row">First name:</th>
<td><input type="text" name="newuser_firstname" id="newuser_firstname" value="<?php echo $profiledata->user_firstname ?>" /></td>
<th width="33%" scope="row">First name:</th>
<td width="73%"><input type="text" name="newuser_firstname" id="newuser_firstname" value="<?php echo $profiledata->user_firstname ?>" /></td>
</tr>
<tr>
<th scope="row">Last name:</th>
@ -312,8 +312,9 @@ default:
<input type="password" name="pass2" size="16" value="" /></td>
</tr>
</table>
<p style=" text-align: center;">
<input class="search" type="submit" value="Update" name="submit" /></p>
<p class="submit">
<input type="submit" value="Update &raquo;" name="submit" />
</p>
</div>
</form>
</div>
@ -329,7 +330,7 @@ function addPanel()
}
</script>
<strong>SideBar</strong><br />
Add the <a href="#" onclick="addPanel()">WordPress Sidebar</a>!
Add the <a href="#" onClick="addPanel()">WordPress Sidebar</a>!
<?php } elseif (($is_winIE) || ($is_macIE)) { ?>
<strong>SideBar</strong><br />
Add this link to your favorites:<br />