Permalink
Browse files

minor html fixes

  • Loading branch information...
1 parent 5ff029a commit 2ba43375d5a1fcb54d0bc1ea43212272e1dea591 @project79 committed May 23, 2011
Showing with 18 additions and 15 deletions.
  1. +9 −6 views/newnote.php
  2. +9 −9 views/update.php
View
@@ -1,17 +1,20 @@
<?php
+<?php
+
/**
* Notes plugin for Wolf CMS <http://project79.net/projects/notes>
* Available on Github <https://github.com/project79>
*
* Simple notes for admin area.
*
* @author Dejan Andjelkovic <dejan79@gmail.com>
+ * @author Fortron <webmasterkubes@gmail.com>
* @package Wolf
* @subpackage plugin.notes
- * @version 0.0.1
+ * @version 0.0.6
* @licence http://www.gnu.org/licenses/gpl.html
- * @copyright http://project79.net ,2010
+ * @copyright http://project79.net ,2010-2011
*/
@@ -26,13 +29,13 @@
<legend style="padding: 0em 0.5em 0em 0.5em; font-weight: bold;"><?php echo __('Create New Note'); ?></legend>
<table class="fieldset" cellspacing="0" cellpadding="0" border="0">
<tr>
- <td class="label"><?php echo __('Title'); ?></td>
- <td class="field"><input type="text" name="notes[title]" class="textbox" value="<?php if (isset($notes['title'])) echo $notes['title']; ?>"></td>
+ <td class="label"><label for="notes-title"><?php echo __('Title'); ?></label></td>
+ <td class="field"><input type="text" id="notes-title" name="notes[title]" class="textbox" value="<?php if (isset($notes['title'])) echo $notes['title']; ?>" /></td>
<td class="help"><?php echo __('Insert title for your note.'); ?></td>
</tr>
<tr>
- <td class="label"><?php echo __('Content'); ?></td>
- <td class="text"><textarea rows="10" cols="20" name="notes[content]" class="textarea" value="<?php if (isset($notes['content'])) echo $notes['content']; ?>"></textarea></td>
+ <td class="label"><label for="notes-content"><?php echo __('Content'); ?></label></td>
+ <td class="text"><textarea rows="10" cols="20" id="notes-content" name="notes[content]" class="textarea"><?php if (isset($notes['content'])) echo htmlentities($notes['content']); ?></textarea></td>
<td class="help"><?php echo __('Main content for note.'); ?></td>
</tr>
</table>
View
@@ -7,11 +7,12 @@
* Simple notes for admin area.
*
* @author Dejan Andjelkovic <dejan79@gmail.com>
+ * @revised Fortron <webmasterkubes@gmail.com>
* @package Wolf
* @subpackage plugin.notes
- * @version 0.0.2
+ * @version 0.0.6
* @licence http://www.gnu.org/licenses/gpl.html
- * @copyright http://project79.net ,2010
+ * @copyright http://project79.net ,2010-2011
*/
if (!defined('IN_CMS')) { exit(); }
@@ -26,18 +27,18 @@
<legend style="padding: 0em 0.5em 0em 0.5em; font-weight: bold;"><?php echo __('Edit Note'); ?></legend>
<table class="fieldset" cellspacing="0" cellpadding="0" border="0">
<tr>
- <td class="label"><?php echo __('Note ID'); ?></td>
- <td class="field"><input type="text" readonly="readonly" name="notes[id]" class="textbox" value="<?php echo $notes->getId(); ?>"></td>
+ <td class="label"><label for="notes-id"><?php echo __('Note ID'); ?></label></td>
+ <td class="field"><input type="text" readonly="readonly" id="notes-id" name="notes[id]" class="textbox" value="<?php echo $notes->getId(); ?>" /></td>
<td class="help"><?php echo __('Cannot be changed.'); ?></td>
</tr>
<tr>
- <td class="label"><?php echo __('Title'); ?></td>
- <td class="field"><input type="text" name="notes[title]" class="textbox" value="<?php echo $notes->getTitle(); ?>"></td>
+ <td class="label"><label for="notes-title"><?php echo __('Title'); ?></label></td>
+ <td class="field"><input type="text" id="notes-title" name="notes[title]" class="textbox" value="<?php echo $notes->getTitle(); ?>" /></td>
<td class="help"><?php echo __('Edit title'); ?></td>
</tr>
<tr>
- <td class="label"><?php echo __('Content'); ?></td>
- <td class="text"><textarea rows="10" cols="20" name="notes[content]" class="textarea"><?php echo $notes->getContent(); ?></textarea></td>
+ <td class="label"><label for="notes-content"><?php echo __('Content'); ?></label></td>
+ <td class="text"><textarea rows="10" cols="20" id="notes-content" name="notes[content]" class="textarea"><?php echo htmlentities($notes->getContent()); ?></textarea></td>
<td class="help"><?php echo __('Edit content'); ?></td>
</tr>
</table>
@@ -46,5 +47,4 @@
<input class="button" type="submit" name="save" value="<?php echo __('Save'); ?>" />
</p>
</form>
-
</div>

0 comments on commit 2ba4337

Please sign in to comment.