Log in with username/password: lyceum/lyceum

Changeset 1065

Show
Ignore:
Timestamp:
08/17/07 00:44:07 (1 year ago)
Author:
justin
Message:

first of many styling, markup, and language changes to the admin screens. this is a work-in-progress. constructive criticism is welcome.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/lyceum/system-admin/settings.php

    r1048 r1065  
    55<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    66<html xmlns="http://www.w3.org/1999/xhtml"> 
     7 
    78<head> 
    8 <title>Lyceum System Settings</title> 
    9 <link rel="stylesheet" href="../wp-admin/wp-admin.css" type="text/css" /> 
    10 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 
     9  <title>Lyceum System Settings</title> 
     10  <link rel="stylesheet" href="../wp-admin/wp-admin.css" type="text/css" /> 
     11  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 
    1112</head> 
     13 
    1214<body> 
    1315 
    1416<div id="lyceumhead"> 
    15 <div id="lyceumheadleft"> 
     17  <div id="lyceumheadleft"> 
    1618<?php 
    1719   echo '<strong>'.get_settings('site_title').'</strong>: '; 
     
    2931   echo ' &bull; <strong>System Settings</strong>'; 
    3032?>  
     33   </div> 
     34 
     35   <div id="user_info"><?php printf(__('<strong>%s</strong>'), $user_identity) ?>  
     36      [<a href="<?php echo LURL?>/login?action=logout" title="<?php _e('Log out of this account') ?>"><?php _e('Sign Out'); ?></a>] 
     37      [<a href="<?php echo LURL?>/register?action=addblog" title="<?php _e('Create new blog with currently logged in account') ?>"><?php _e('Create Blog'); ?></a>] 
     38   </div> 
    3139</div> 
    32 <div id="user_info"><?php printf(__('<strong>%s</strong>'), $user_identity) ?>  
    33    [<a href="<?php echo LURL?>/login?action=logout" title="<?php _e('Log out of this account') ?>"><?php _e('Sign Out'); ?></a>] 
    34    [<a href="<?php echo LURL?>/register?action=addblog" title="<?php _e('Create new blog with currently logged in account') ?>"><?php _e('Create Blog'); ?></a>] 
    35 </div> 
    36 </div> 
    37  
    38 <p><a href="systemplugins.php">Click here to manage system-wide plugins.</a></p> 
    39 <p><a href="blog-management.php">Click here to manage blogs.</a></p> 
    40 <p><a href="user-management.php">Click here to manage users.</a></p> 
    41 <p><a href="rewriterules.php">Click here to write or delete .htaccess file, and generate mod_rewrite config block for Apache.</a></p> 
    42  
    43  
    44 <form method="post" action="setoption.php"> 
     40 
     41 
     42<ul> 
     43   <li><a href="systemplugins.php">System-wide plugins</a></li> 
     44   <li><a href="blog-management.php">Blogs</a></li> 
     45   <li><a href="user-management.php">Users</a></li> 
     46   <li><a href="rewriterules.php">Rewrite Rules</a></li> 
     47</ul> 
     48 
     49 
     50<form method="post" action="setoption.php" class="lyceum_form"> 
    4551   <?php echo tokeninput('setoption.php', 'site_title')?> 
    46    <fieldset> 
    47       <legend>Site Title</legend> 
    48       <input type="hidden" name="option" value="site_title" /> 
    49       <p><input type="text" name="value" size="100" maxlength="100" value="<?php echo  get_option('site_title') ?>" /> 
    50       <input type="submit" value="Submit" name="submit" /></p> 
    51    </fieldset> 
    52 </form> 
    53  
    54 <form method="post" action="setoption.php"> 
     52   <input type="hidden" name="option" value="site_title" /> 
     53 
     54   <table class="FormTable"> 
     55      <col width="20%" /> 
     56      <col width="80%" /> 
     57 
     58      <tbody> 
     59         <tr> 
     60            <th scope="row"><label for="site_title">Site Title</label></th> 
     61            <td> 
     62               <input type="text" name="value" id="site_title" maxlength="100" value="<?php echo  get_option('site_title') ?>" class="TextInput" /> 
     63               <input type="submit" value="Submit" name="submit" class="Button" /> 
     64            </td> 
     65         </tr> 
     66      </tbody> 
     67   </table> 
     68</form> 
     69 
     70<form method="post" action="setoption.php" class="lyceum_form"> 
    5571   <?php echo tokeninput('setoption.php', 'system_admin_email')?> 
    56    <fieldset> 
    57       <legend>System Admin Email</legend> 
    58       <input type="hidden" name="option" value="system_admin_email" /> 
    59       <p><input type="text" name="value" size="100" maxlength="100" value="<?php echo  get_option('system_admin_email') ?>" /> 
    60       <input type="submit" value="Submit" name="submit" /></p> 
    61    </fieldset> 
    62 </form> 
    63  
    64 <form method="post" action="setoption.php"> 
     72   <input type="hidden" name="option" value="system_admin_email" /> 
     73 
     74   <table class="FormTable"> 
     75      <col width="20%" /> 
     76      <col width="80%" /> 
     77 
     78      <tbody> 
     79         <tr> 
     80            <th scope="row"><label for="system_admin_email">System Admin Email</label></th> 
     81            <td> 
     82               <input type="text" name="value" id="system_admin_email" maxlength="100" value="<?php echo  get_option('system_admin_email') ?>" class="TextInput" /> 
     83               <input type="submit" value="Submit" name="submit" class="Button" /> 
     84            </td> 
     85         </tr> 
     86      </tbody> 
     87   </table> 
     88</form> 
     89 
     90<form method="post" action="setoption.php" class="lyceum_form"> 
    6591   <?php echo tokeninput('setoption.php', 'wp-content_file_path')?> 
    66    <fieldset> 
    67       <legend>wp-content_file_path: The file path where individual blog uploads and cache are kept.</legend> 
    68       <input type="hidden" name="option" value="wp-content_file_path" /> 
    69       <p><input type="text" name="value" size="100" maxlength="200" value="<?php echo  get_option('wp-content_file_path') ?>" /> 
    70       <input type="submit" value="Submit" name="submit" /></p> 
    71    </fieldset> 
    72 </form> 
    73  
    74 <form method="post" action="setoption.php"> 
     92   <input type="hidden" name="option" value="wp-content_file_path" /> 
     93 
     94   <table class="FormTable"> 
     95      <col width="20%" /> 
     96      <col width="80%" /> 
     97 
     98      <tbody> 
     99         <tr> 
     100            <th scope="row"><label for="wp_content_path">wp-content_file_path</label></th> 
     101            <td> 
     102               <input type="text" name="value" id="wp_content_path" maxlength="200" value="<?php echo  get_option('wp-content_file_path') ?>" class="TextInput" /> 
     103               <input type="submit" value="Submit" name="submit" class="Button" /> 
     104               <div class="HelpText">The file path where individual blog uploads and cache are kept.</div> 
     105            </td> 
     106         </tr> 
     107      </tbody> 
     108   </table> 
     109</form> 
     110 
     111<form method="post" action="setoption.php" class="lyceum_form"> 
    75112   <?php echo tokeninput('setoption.php', 'fileupload_base_url')?> 
    76    <fieldset> 
    77       <legend>File upload base url. This needs to work with wp-content_file_path above.</legend> 
    78       <input type="hidden" name="option" value="fileupload_base_url" /> 
    79       <p><input type="text" name="value" size="100" maxlength="100" value="<?php echo  get_option('fileupload_base_url') ?>" /> 
    80       <input type="submit" value="Submit" name="submit" /></p> 
    81    </fieldset> 
    82 </form> 
    83  
    84 <form method="post" action="setoption.php"> 
     113   <input type="hidden" name="option" value="fileupload_base_url" /> 
     114 
     115   <table class="FormTable"> 
     116      <col width="20%" /> 
     117      <col width="80%" /> 
     118 
     119      <tbody> 
     120         <tr> 
     121            <th scope="row"><label for="fileupload_base_url">File upload base url</label></th> 
     122            <td> 
     123               <input type="text" name="value" id="fileupload_base_url" maxlength="100" value="<?php echo  get_option('fileupload_base_url') ?>" class="TextInput" /> 
     124               <input type="submit" value="Submit" name="submit" class="Button" /> 
     125               <div class="HelpText">This needs to work with wp-content_file_path above.</div> 
     126            </td> 
     127         </tr> 
     128      </tbody> 
     129   </table> 
     130</form> 
     131 
     132<form method="post" action="setoption.php" class="lyceum_form"> 
    85133   <?php echo tokeninput('setoption.php', 'blog_charset')?> 
    86    <fieldset> 
    87       <legend>System character encoding.</legend> 
    88       <input type="hidden" name="option" value="blog_charset" /> 
    89       <p><input type="text" name="value" size="100" maxlength="100" value="<?php echo  get_option('blog_charset') ?>" /> 
    90       <input type="submit" value="Submit" name="submit" /></p> 
    91    </fieldset> 
    92 </form> 
    93  
    94 <form method="post" action="setoption.php"> 
     134   <input type="hidden" name="option" value="blog_charset" /> 
     135 
     136   <table class="FormTable"> 
     137      <col width="20%" /> 
     138      <col width="80%" /> 
     139 
     140      <tbody> 
     141         <tr> 
     142            <th scope="row"><label for="blog_charset">System character encoding</label></th> 
     143            <td> 
     144               <input type="text" name="value" id="blog_charset" maxlength="100" value="<?php echo  get_option('blog_charset') ?>" class="TextInput" /> 
     145               <input type="submit" value="Submit" name="submit" class="Button" /> 
     146            </td> 
     147         </tr> 
     148      </tbody> 
     149   </table> 
     150</form> 
     151 
     152<form method="post" action="setoption.php" class="lyceum_form"> 
    95153   <?php echo tokeninput('setoption.php', 'html_type')?> 
    96    <fieldset> 
    97       <legend>System HTML type.</legend> 
    98       <input type="hidden" name="option" value="html_type" /> 
    99       <p><input type="text" name="value" size="100" maxlength="100" value="<?php echo  get_option('html_type') ?>" /> 
    100       <input type="submit" value="Submit" name="submit" /></p> 
    101    </fieldset> 
    102 </form> 
    103  
    104 <form method="post" action="setoption.php"> 
     154   <input type="hidden" name="option" value="html_type" /> 
     155 
     156   <table class="FormTable"> 
     157      <col width="20%" /> 
     158      <col width="80%" /> 
     159 
     160      <tbody> 
     161         <tr> 
     162            <th scope="row"><label for="html_type">System HTML type</label></th> 
     163            <td> 
     164               <input type="text" name="value" id="html_type" maxlength="100" value="<?php echo  get_option('html_type') ?>" class="TextInput" /> 
     165               <input type="submit" value="Submit" name="submit" class="Button" /> 
     166            </td> 
     167         </tr> 
     168      </tbody> 
     169   </table> 
     170</form> 
     171 
     172<form method="post" action="setoption.php" class="lyceum_form"> 
    105173   <?php echo tokeninput('setoption.php', 'email_structure')?> 
    106    <fieldset> 
    107       <legend>Regular expression against which new email addresses must match (example: <strong>/.*@example\.tld/</strong>)</legend> 
    108       <input type="hidden" name="option" value="email_structure" /> 
    109       <p><input type="text" name="value" size="100" maxlength="100" value="<?php echo  get_option('email_structure') ?>" /> 
    110       <input type="submit" value="Submit" name="submit" /></p> 
    111    </fieldset> 
    112 </form> 
    113  
    114 <form method="post" action="setoption.php"> 
     174   <input type="hidden" name="option" value="email_structure" /> 
     175 
     176   <table class="FormTable"> 
     177      <col width="20%" /> 
     178      <col width="80%" /> 
     179 
     180      <tbody> 
     181         <tr> 
     182            <th scope="row"><label for="email_structure">email regex</label></th> 
     183            <td> 
     184               <input type="text" name="value" id="email_structure" maxlength="100" value="<?php echo  get_option('email_structure') ?>" class="TextInput" /> 
     185               <input type="submit" value="Submit" name="submit" class="Button" /> 
     186               <div class="HelpText">Regular expression against which new email addresses must match (example: <strong>/.*@example\.tld/</strong>)</div> 
     187            </td> 
     188         </tr> 
     189      </tbody> 
     190   </table> 
     191</form> 
     192 
     193<form method="post" action="setoption.php" class="lyceum_form"> 
    115194   <?php echo tokeninput('setoption.php', 'email_structure_error_message')?> 
    116    <fieldset> 
    117       <legend>Error message (example: <strong>You must have a example.tld email address in order to make an account.</strong>)</legend> 
    118       <input type="hidden" name="option" value="email_structure_error_message" /> 
    119       <p><input type="text" name="value" size="100" maxlength="100" value="<?php echo  get_option('email_structure_error_message') ?>" /> 
    120       <input type="submit" value="Submit" name="submit" /></p> 
    121    </fieldset> 
    122 </form> 
    123  
    124 <form method="post" action="setoption.php"> 
     195   <input type="hidden" name="option" value="email_structure_error_message" /> 
     196 
     197   <table class="FormTable"> 
     198      <col width="20%" /> 
     199      <col width="80%" /> 
     200 
     201      <tbody> 
     202         <tr> 
     203            <th scope="row"><label for="email_regex_error">email regex error</label></th> 
     204            <td> 
     205               <input type="text" name="value" id="email_regex_error" maxlength="100" value="<?php echo  get_option('email_structure_error_message') ?>" class="TextInput" /> 
     206               <input type="submit" value="Submit" name="submit" class="Button" /> 
     207               <div class="HelpText">(example: <strong>You must have a example.tld email address in order to make an account.</strong>)</div> 
     208            </td> 
     209         </tr> 
     210      </tbody> 
     211   </table> 
     212</form> 
     213 
     214<form method="post" action="setoption.php" class="lyceum_form"> 
    125215   <?php echo tokeninput('setoption.php', 'slug_blacklist')?> 
    126    <fieldset> 
    127       <legend>Slugs which may not be registered. Comma-separated with no spaces.</legend> 
    128       <input type="hidden" name="option" value="slug_blacklist" /> 
    129       <p> 
    130          <textarea name="value" cols="60" rows="5" /><?php echo  get_option('slug_blacklist') ?></textarea> 
    131          <input type="submit" value="Submit" name="submit" /> 
    132       </p> 
    133    </fieldset> 
    134 </form> 
    135  
    136 <form method="post" action="setoption.php"> 
     216   <input type="hidden" name="option" value="slug_blacklist" /> 
     217 
     218   <table class="FormTable"> 
     219      <col width="20%" /> 
     220      <col width="80%" /> 
     221 
     222      <tbody> 
     223         <tr> 
     224            <th scope="row"><label for="slug_blacklist">Unregisterable Slugs</label></th> 
     225            <td> 
     226               <textarea name="value" cols="60" rows="5" id="slug_blacklist" class="TextArea"><?php echo  get_option('slug_blacklist') ?></textarea> 
     227               <input type="submit" value="Submit" name="submit" class="Button" /> 
     228               <div class="HelpText">Comma-separated with no spaces.</div> 
     229            </td> 
     230         </tr> 
     231      </tbody> 
     232   </table> 
     233</form> 
     234 
     235<form method="post" action="setoption.php" class="lyceum_form"> 
    137236   <?php echo tokeninput('setoption.php', 'username_blacklist')?> 
    138    <fieldset> 
    139       <legend>Usernames which may not be registered. Comma-separated with no spaces.</legend> 
    140       <input type="hidden" name="option" value="username_blacklist" /> 
    141       <p> 
    142          <textarea name="value" cols="60" rows="5" /><?php echo  get_option('username_blacklist') ?></textarea> 
    143          <input type="submit" value="Submit" name="submit" /> 
    144       </p> 
    145    </fieldset> 
    146 </form> 
    147  
    148 <form method="post" action="setoption.php"> 
     237   <input type="hidden" name="option" value="username_blacklist" /> 
     238 
     239   <table class="FormTable"> 
     240      <col width="20%" /> 
     241      <col width="80%" /> 
     242 
     243      <tbody> 
     244         <tr> 
     245            <th scope="row"><label for="username_blacklist">Unregisterable Usernames</label></th> 
     246            <td> 
     247               <textarea name="value" cols="60" rows="5" id="username_blacklist" class="TextArea"><?php echo  get_option('username_blacklist') ?></textarea> 
     248               <input type="submit" value="Submit" name="submit" class="Button" /> 
     249               <div class="HelpText">Comma-separated with no spaces.</div> 
     250            </td> 
     251         </tr> 
     252      </tbody> 
     253   </table> 
     254</form> 
     255 
     256<form method="post" action="setoption.php" class="lyceum_form"> 
    149257   <?php echo tokeninput('setoption.php', 'users_can_register')?> 
    150    <fieldset> 
    151       <legend>Can users register themselves for an account and blog? (Above regular expression still applies.)</legend> 
    152       <input type="hidden" name="option" value="users_can_register" /> 
    153       <p> 
    154       <select name="value"> 
    155          <option value="1" <?php echo  get_option('users_can_register')?'selected="selected"':"" ?>>Yes</option> 
    156          <option value="0" <?php echo  !get_option('users_can_register')?'selected="selected"':"" ?>>No</option> 
    157       </select> 
    158       <input type="submit" value="Submit" name="submit" /></p> 
    159    </fieldset> 
    160 </form> 
    161  
    162 <form method="post" action="setoption.php"> 
     258   <input type="hidden" name="option" value="users_can_register" /> 
     259 
     260   <table class="FormTable"> 
     261      <col width="20%" /> 
     262      <col width="80%" /> 
     263 
     264      <tbody> 
     265         <tr> 
     266            <th scope="row"><span class="Label">Open Registration</span></th> 
     267            <td> 
     268               <ul class="HorizList Inputs"> 
     269                  <li><input type="radio" name="value" id="open_reg_1" value="1" <?php echo  get_option('users_can_register')?'checked="checked"':"" ?> /> <label for="open_reg_1">Enabled</label></li> 
     270                  <li><input type="radio" name="value" id="open_reg_0" value="0" <?php echo  !get_option('users_can_register')?'checked="checked"':"" ?> /> <label for="open_reg_0">Disabled</label></li> 
     271               </ul> 
     272               <input type="submit" value="Submit" name="submit" class="Button" /> 
     273               <div class="HelpText">Allow users to register themselves for an account and blog. (Above regular expression still applies.)</div> 
     274            </td> 
     275         </tr> 
     276      </tbody> 
     277   </table> 
     278</form> 
     279 
     280<form method="post" action="setoption.php" class="lyceum_form"> 
    163281   <?php echo tokeninput('setoption.php', 'presentation_tab')?> 
    164    <fieldset> 
    165       <legend>Can users change their blog's theme and adjust its settings?</legend> 
    166       <input type="hidden" name="option" value="presentation_tab" /> 
    167       <p> 
    168       <select name="value"> 
    169          <option value="1" <?php echo  get_option('presentation_tab')?'selected="selected"':"" ?>>Yes</option> 
    170          <option value="0" <?php echo  !get_option('presentation_tab')?'selected="selected"':"" ?>>No</option> 
    171       </select> 
    172       <input type="submit" value="Submit" name="submit" /></p> 
    173    </fieldset> 
    174 </form> 
    175  
    176 <form method="post" action="setoption.php"> 
     282   <input type="hidden" name="option" value="presentation_tab" /> 
     283 
     284   <table class="FormTable"> 
     285      <col width="20%" /> 
     286      <col width="80%" /> 
     287 
     288      <tbody> 
     289         <tr> 
     290            <th scope="row"><span class="Label">User Customization</span></th> 
     291            <td> 
     292               <ul class="HorizList Inputs"> 
     293                  <li><input type="radio" name="value" id="presentation_tab_1" value="1" <?php echo  get_option('presentation_tab')?'checked="checked"':"" ?> /> <label for="presentation_tab_1">Enabled</label></li> 
     294                  <li><input type="radio" name="value" id="presentation_tab_0" value="0" <?php echo  !get_option('presentation_tab')?'checked="checked"':"" ?> /> <label for="presentation_tab_0">Disabled</label></li> 
     295               </ul> 
     296               <input type="submit" value="Submit" name="submit" class="Button" /> 
     297               <div class="HelpText">Allow users to change their blog's theme and adjust its settings.</div> 
     298            </td> 
     299         </tr> 
     300      </tbody> 
     301   </table> 
     302</form> 
     303 
     304<form method="post" action="setoption.php" class="lyceum_form"> 
    177305   <?php echo tokeninput('setoption.php', 'import_allowed')?> 
    178    <fieldset> 
    179       <legend>Can users use the import scripts? (These scripts are not yet thoroughly tested and are therefore a potential security vulnerability)</legend> 
    180       <input type="hidden" name="option" value="import_allowed" /> 
    181       <p> 
    182       <select name="value"> 
    183          <option value="1" <?php echo  get_option('import_allowed')?'selected="selected"':"" ?>>Yes</option> 
    184          <option value="0" <?php echo  !get_option('import_allowed')?'selected="selected"':"" ?>>No</option> 
    185       </select> 
    186       <input type="submit" value="Submit" name="submit" /></p> 
    187    </fieldset> 
    188 </form> 
    189  
    190 <form method="post" action="setoption.php"> 
     306   <input type="hidden" name="option" value="import_allowed" /> 
     307 
     308   <table class="FormTable"> 
     309      <col width="20%" /> 
     310      <col width="80%" /> 
     311 
     312      <tbody> 
     313         <tr> 
     314            <th scope="row"><span class="Label">Import Scripts</span></th> 
     315            <td> 
     316               <ul class="HorizList Inputs"> 
     317                  <li><input type="radio" name="value" id="import_allowed_1" value="1" <?php echo  get_option('import_allowed')?'checked="checked"':"" ?> /> <label for="import_allowed_1">Enabled</label></li> 
     318                  <li><input type="radio" name="value" id="import_allowed_0" value="0" <?php echo  !get_option('import_allowed')?'checked="checked"':"" ?> /> <label for="import_allowed_0">Disabled</label></li> 
     319               </ul> 
     320               <input type="submit" value="Submit" name="submit" class="Button" /> 
     321               <div class="HelpText">Allow users to use the import scripts? (These scripts are not yet thoroughly tested and are therefore a potential security vulnerability)</div> 
     322            </td> 
     323         </tr> 
     324      </tbody> 
     325   </table> 
     326</form> 
     327 
     328<form method="post" action="setoption.php" class="lyceum_form"> 
    191329   <?php echo tokeninput('setoption.php', 'gzipcompression')?> 
    192    <fieldset> 
    193       <legend>Lyceum should compress articles (gzip) if browsers ask for them. <strong>note: this feature has not been tested and it is recommended that you keep it off. Please email us with any experience you have with this feature: jjb AT ibiblio DOT org</strong></legend> 
    194       <input type="hidden" name="option" value="gzipcompression" /> 
    195       <p> 
    196       <select name="value"> 
    197          <option value="1" <?php echo  get_option('gzipcompression')?'selected="selected"':"" ?>>Yes</option> 
    198          <option value="0" <?php echo  !get_option('gzipcompression')?'selected="selected"':"" ?>>No</option> 
    199       </select> 
    200       <input type="submit" value="Submit" name="submit" /></p> 
    201    </fieldset> 
    202 </form> 
    203  
    204 <form method="post" action="setoption.php"> 
     330   <input type="hidden" name="option" value="gzipcompression" /> 
     331 
     332   <table class="FormTable"> 
     333      <col width="20%" /> 
     334      <col width="80%" /> 
     335 
     336      <tbody> 
     337         <tr> 
     338            <th scope="row"><span class="Label">gzip Compression</span></th> 
     339            <td> 
     340               <ul class="HorizList Inputs"> 
     341                  <li><input type="radio" name="value" id="gzipcompression_1" value="1" <?php echo  get_option('gzipcompression')?'checked="checked"':"" ?> /> <label for="gzipcompression_1">Enabled</label></li> 
     342                  <li><input type="radio" name="value" id="gzipcompression_0" value="0" <?php echo  !get_option('gzipcompression')?'checked="checked"':"" ?> /> <label for="gzipcompression_0">Disabled</label></li> 
     343               </ul> 
     344               <input type="submit" value="Submit" name="submit" class="Button" /> 
     345               <div class="HelpText">Compress articles (gzip) if browsers ask for them.</div> 
     346               <div class="Note"><strong>NOTE: this feature has not been tested and it is recommended that you keep it off. Please email us with any experience you have with this feature: jjb AT ibiblio DOT org</strong></div> 
     347            </td> 
     348         </tr> 
     349      </tbody> 
     350   </table> 
     351</form> 
     352 
     353<form method="post" action="setoption.php" class="lyceum_form"> 
    205354   <?php echo tokeninput('setoption.php', 'restrict_admin_ip')?> 
    206    <fieldset> 
    207       <legend>Restrict IP addresses from which an administrator may log in? <em><strong>BEFORE YOU TURN THIS ON:</strong> Make sure that your current IP address, <strong><?php echo $_SERVER['REMOTE_ADDR']?></strong>, is in the list below.</em></legend> 
    208       <input type="hidden" name="option" value="restrict_admin_ip" /> 
    209       <p> 
    210       <select name="value"> 
    211          <option value="1" <?php echo  get_option('restrict_admin_ip')?'selected="selected"':"" ?>>Yes</option> 
    212          <option value="0" <?php echo  !get_option('restrict_admin_ip')?'selected="selected"':"" ?>>No</option> 
    213       </select> 
    214       <input type="submit" value="Submit" name="submit"/></p> 
    215    </fieldset> 
    216 </form> 
    217  
    218 <form method="post" action="adminip.php"> 
     355   <input type="hidden" name="option" value="restrict_admin_ip" /> 
     356 
     357   <table class="FormTable"> 
     358      <col width="20%" /> 
     359      <col width="80%" /> 
     360 
     361      <tbody> 
     362         <tr> 
     363            <th scope="row"><span class="Label">Restrict Admin IP</span></th> 
     364            <td> 
     365               <ul class="HorizList Inputs"> 
     366                  <li><input type="radio" name="value" id="restrict_admin_ip_1" value="1" <?php echo  get_option('restrict_admin_ip')?'checked="checked"':"" ?> /> <label for="restrict_admin_ip_1">Enabled</label></li> 
     367                  <li><input type="radio" name="value" id="restrict_admin_ip_0" value="0" <?php echo  !get_option('restrict_admin_ip')?'checked="checked"':"" ?> /> <label for="restrict_admin_ip_0">Disabled</label></li> 
     368               </ul> 
     369               <input type="submit" value="Submit" name="submit" class="Button" /> 
     370               <div class="HelpText">Restrict IP addresses from which an administrator may log in.</div> 
     371               <div class="Note"><strong>BEFORE YOU TURN THIS ON:</strong> Make sure that your current IP address, <strong><?php echo $_SERVER['REMOTE_ADDR']?></strong>, is in the list below.</div> 
     372            </td> 
     373         </tr> 
     374      </tbody> 
     375   </table> 
     376</form> 
     377 
     378<form method="post" action="adminip.php" class="lyceum_form"> 
    219379   <?php echo tokeninput('adminip.php')?> 
    220    <fieldset> 
    221       <legend>Insert an IP address from which an administrator may log in.</legend> 
    222       <p><input type="text" name="ip" size="15" maxlength="15" /> 
    223       <input type="submit" value="Insert" name="submit" /></p> 
    224    <p>Current Admin IPs:</p> 
    225    <ul> 
    226    <?php 
    227    $ips = get_admin_ips(); 
    228    foreach($ips as $ip) 
    229       echo '<li>'.$ip.'</li>'; 
    230    ?> 
    231    </ul> 
    232    </fieldset> 
    233 </form> 
     380 
     381   <table class="FormTable"> 
     382      <col width="20%" /> 
     383      <col width="80%" /> 
     384 
     385      <tbody> 
     386         <tr> 
     387            <th scope="row"><label for="admin_ip">New Admin IP</label></th> 
     388            <td> 
     389               <input type="text" name="ip" id="admin_ip" maxlength="15" class="TextInput" /> 
     390               <input type="submit" value="Submit" name="submit" class="Button" /> 
     391            </td> 
     392         </tr> 
     393 
     394         <tr> 
     395            <th scope="row">Current Admin IPs</th> 
     396            <td> 
     397               <ul> 
     398<?php 
     399$ips = get_admin_ips(); 
     400foreach($ips as $ip) 
     401   echo '<li>'.$ip.'</li>'; 
     402?> 
     403               </ul> 
     404            </td> 
     405         </tr> 
     406 
     407      </tbody> 
     408   </table> 
     409</form> 
     410 
    234411</body> 
     412 
    235413</html> 
  • trunk/src/lyceum/wp-admin/wp-admin.css

    r1061 r1065  
    10271027   padding-right:27em;   
    10281028} 
     1029 
     1030/* FormTables are used for LABEL/INPUT pairs, with LABELs in THs and INPUT/SELECT/other stuff in TDs */ 
     1031.FormTable { width: 100%; border: none; border-collapse: collapse; border-spacing: 0; clear: both; } /* TODO: add bottom margin? */ 
     1032.FormTable TD, 
     1033.FormTable TH { padding: 4px 0 !important; line-height: normal; } 
     1034.FormTable TH { font-weight: normal; text-align: right !important; padding: 11px .5em 3px 0 !important; vertical-align: top; } 
     1035.FormTable THEAD TH { text-align: left; border-bottom: 1px solid #081E3F; } 
     1036.FormTable TD .Inputs, 
     1037.FormTable TD .FieldValue { min-height: 14px; padding-top: 4px; } 
     1038.FormTable TD .FieldValue { font-weight: bold; } 
     1039.FormTable LABEL, 
     1040.FormTable .Label { } 
     1041.FormTable TD .HelpText { font-size: .92em; } 
     1042.FormTable TD .Note { font-size: .92em; color: #C00; } 
     1043 
     1044 
     1045/* for radio buttons and checkboxes. used on UL and maybe OL */ 
     1046.Inputs { margin: 0 0 1em; padding: 0; list-style: none; line-height: 1; } 
     1047.Inputs LI { margin: 0 0 .5em; padding: 0 0 0 2em; text-indent: -2em; } 
     1048 
     1049/* displays a simple list as horizontal. used on UL and maybe OL */ 
     1050.HorizList { margin: 0; padding: 0; list-style: none; } 
     1051.HorizList LI { display: inline; margin: 0; padding: 0 1em 0 0; } 
     1052 
     1053.FormTable TD .HorizList { display: inline; } 
     1054 
     1055.lyceum_form .TextInput, 
     1056.lyceum_form .TextArea { width: 400px; } 
     1057 
Log in with username/password: lyceum/lyceum