Changeset 581:dbfb5e376275 for plugins/aboutConfig/index.php
- Timestamp:
- 07/12/11 21:17:28 (14 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/aboutConfig/index.php
r500 r581 76 76 return 77 77 '<tr>'. 78 '<td ><label for="s_'.$id.'">'.sprintf($slabel,html::escapeHTML($id)).'</label></td>'.78 '<td scope="raw"><label for="s_'.$id.'">'.sprintf($slabel,html::escapeHTML($id)).'</label></td>'. 79 79 '<td>'.$field.'</td>'. 80 80 '<td>'.$s['type'].'</td>'. … … 88 88 <?php echo dcPage::jsPageTabs($part); ?> 89 89 <style type="text/css"> 90 .ns-name { background: #dfdfdf; color: #333; padding-top: 0.3em; padding-bottom: 0.3em; font-size: 1.1em; } 90 table.settings { border: 1px solid #999; margin-bottom: 2em; } 91 table.settings th { background: #f5f5f5; color: #444; padding-top: 0.3em; padding-bottom: 0.3em; } 91 92 </style> 92 93 </head> … … 106 107 <div id="local" class="multi-part" title="<?php echo __('blog settings'); ?>"> 107 108 <form action="plugin.php" method="post"> 108 <table> 109 <tr> 110 <th class="nowrap">Setting ID</th> 111 <th><?php echo __('Value'); ?></th> 112 <th><?php echo __('Type'); ?></th> 113 <th class="maximal"><?php echo __('Description'); ?></th> 114 </tr> 115 <?php 109 110 <?php 111 112 $table_header = '<table class="settings"><caption>%s</caption>'. 113 '<thead>'. 114 '<tr>'."\n". 115 ' <th class="nowrap">Setting ID</th>'."\n". 116 ' <th>'.__('Value').'</th>'."\n". 117 ' <th>'.__('Type').'</th>'."\n". 118 ' <th class="maximalx">'.__('Description').'</th>'."\n". 119 '</tr>'."\n". 120 '</thead>'."\n". 121 '<tbody>'; 122 $table_footer = '</tbody></table>'; 123 116 124 $settings = array(); 117 125 … … 127 135 { 128 136 ksort($s); 129 echo '<tr><td colspan="4" class="ns-name">namespace: <strong>'.$ns.'</strong></td></tr>'; 130 137 echo sprintf($table_header,$ns); 131 138 foreach ($s as $k => $v) 132 139 { 133 140 echo settingLine($k,$v,$ns,'s',!$v['global']); 134 141 } 142 echo $table_footer; 135 143 } 136 144 ?> 137 </table> 145 138 146 <p><input type="submit" value="<?php echo __('Save'); ?>" /> 139 147 <input type="hidden" name="p" value="aboutConfig" /> … … 144 152 <div id="global" class="multi-part" title="<?php echo __('global settings'); ?>"> 145 153 <form action="plugin.php" method="post"> 146 <table>147 <tr>148 <th class="nowrap">Setting ID</th>149 <th><?php echo __('Value'); ?></th>150 <th><?php echo __('Type'); ?></th>151 <th class="maximal"><?php echo __('Description'); ?></th>152 </tr>153 154 <?php 154 155 $settings = array(); … … 165 166 { 166 167 ksort($s); 167 echo '<tr><td colspan="4" class="ns-name">namespace: <strong>'.$ns.'</strong></td></tr>'; 168 168 echo sprintf($table_header,$ns); 169 169 foreach ($s as $k => $v) 170 170 { 171 171 echo settingLine($k,$v,$ns,'gs',false); 172 172 } 173 echo $table_footer; 173 174 } 174 175 ?> 175 </table> 176 176 177 <p><input type="submit" value="<?php echo __('Save'); ?>" /> 177 178 <input type="hidden" name="p" value="aboutConfig" />
Note: See TracChangeset
for help on using the changeset viewer.