Changeset 581:dbfb5e376275 for plugins/userPref
- Timestamp:
- 07/12/11 21:17:28 (14 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.