Changeset 581:dbfb5e376275
- Timestamp:
- 07/12/11 21:17:28 (14 years ago)
- Branch:
- default
- Location:
- plugins
- Files:
-
- 2 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" /> -
plugins/userPref/index.php
r500 r581 72 72 return 73 73 '<tr>'. 74 '<td ><label for="s_'.$id.'">'.sprintf($slabel,html::escapeHTML($id)).'</label></td>'.74 '<td scope="raw"><label for="s_'.$id.'">'.sprintf($slabel,html::escapeHTML($id)).'</label></td>'. 75 75 '<td>'.$field.'</td>'. 76 76 '<td>'.$s['type'].'</td>'. … … 84 84 <?php echo dcPage::jsPageTabs($part); ?> 85 85 <style type="text/css"> 86 .ns-name { background: #ccc; color: #000; padding-top: 0.3em; padding-bottom: 0.3em; font-size: 1.1em; } 86 table.prefs { border: 1px solid #999; margin-bottom: 2em; } 87 table.prefs th { background: #f5f5f5; color: #444; padding-top: 0.3em; padding-bottom: 0.3em; } 87 88 </style> 88 89 </head> … … 102 103 <div id="local" class="multi-part" title="<?php echo __('user preferences'); ?>"> 103 104 <form action="plugin.php" method="post"> 104 <table> 105 <tr> 106 <th class="nowrap">Pref ID</th> 107 <th><?php echo __('Value'); ?></th> 108 <th><?php echo __('Type'); ?></th> 109 <th class="maximal"><?php echo __('Description'); ?></th> 110 </tr> 111 <?php 105 106 <?php 107 108 $table_header = '<table class="prefs"><caption>%s</caption>'. 109 '<thead>'. 110 '<tr>'."\n". 111 ' <th class="nowrap">Setting ID</th>'."\n". 112 ' <th>'.__('Value').'</th>'."\n". 113 ' <th>'.__('Type').'</th>'."\n". 114 ' <th class="maximalx">'.__('Description').'</th>'."\n". 115 '</tr>'."\n". 116 '</thead>'."\n". 117 '<tbody>'; 118 $table_footer = '</tbody></table>'; 119 112 120 $prefs = array(); 113 121 … … 123 131 { 124 132 ksort($s); 125 echo '<tr><td colspan="4" class="ws-name">workspace: <strong>'.$ws.'</strong></td></tr>'; 126 133 echo sprintf($table_header,$ws); 127 134 foreach ($s as $k => $v) 128 135 { 129 136 echo prefLine($k,$v,$ws,'s',!$v['global']); 130 137 } 138 echo $table_footer; 131 139 } 132 140 ?> 133 </table> 141 134 142 <p><input type="submit" value="<?php echo __('Save'); ?>" /> 135 143 <input type="hidden" name="p" value="userPref" /> … … 140 148 <div id="global" class="multi-part" title="<?php echo __('global preferences'); ?>"> 141 149 <form action="plugin.php" method="post"> 142 <table> 143 <tr> 144 <th class="nowrap">Pref ID</th> 145 <th><?php echo __('Value'); ?></th> 146 <th><?php echo __('Type'); ?></th> 147 <th class="maximal"><?php echo __('Description'); ?></th> 148 </tr> 150 149 151 <?php 150 152 $prefs = array(); … … 161 163 { 162 164 ksort($s); 163 echo '<tr><td colspan="4" class="ws-name">workspace: <strong>'.$ws.'</strong></td></tr>'; 164 165 echo sprintf($table_header,$ws); 165 166 foreach ($s as $k => $v) 166 167 { 167 168 echo prefLine($k,$v,$ws,'gs',false); 168 169 } 170 echo $table_footer; 169 171 } 170 172 ?> 171 </table> 173 172 174 <p><input type="submit" value="<?php echo __('Save'); ?>" /> 173 175 <input type="hidden" name="p" value="userPref" />
Note: See TracChangeset
for help on using the changeset viewer.