1234567891011121314151617181920212223 |
- @Title{Settings Editor}@
- @CSS{
- td:first-child{
- text-align:right;
- }
- }@
- @ButtonsRight{
- <button type="submit" form="settingsForm">
- <img src="/images/save.svg" alt="Save" />
- </button>
- }@
- @Body{
- <form action="/settingseditor/save" method="post" id="settingsForm">
- <?php foreach ($data as $sectionName=>$section){
- echo '<h3>',$sectionName,'</h3><table>';
- foreach ($section as $key=>$value){
- $id=$sectionName.SettingsEditor::KEY_SPLITTER.$key;
- echo '<tr><td><label for="',$id,'">',$key,':</label></td><td><input type="text" id="',$id,'" name="',$id,'" value="',$value,'" /></td></tr>';
- }
- echo '</table>';
- }?>
- </form>
- }@
|