summaryrefslogtreecommitdiffstats
path: root/usr/local/www/widgets/widgets/picture.widget.php
diff options
context:
space:
mode:
authorColin Fleming <cj_fleming@sky.com>2013-03-05 18:38:09 +0000
committerColin Fleming <cj_fleming@sky.com>2013-03-05 18:38:09 +0000
commiteabce399c51e3503b12b717ea66e84de77908197 (patch)
treedd3c2f15d3a7c70205e90088af49b6639925ca39 /usr/local/www/widgets/widgets/picture.widget.php
parentbcab1b076d4a73bf2ffdb3aa527fe0157185a6cb (diff)
downloadpfsense-eabce399c51e3503b12b717ea66e84de77908197.zip
pfsense-eabce399c51e3503b12b717ea66e84de77908197.tar.gz
Tidy up widget XHTML
Close input tags Change target _NEW to _BLANK Add ALT to img tags Add CDATA sections to scipts. Changed name in FORM tag to be different, not allowed to have the same "name" in XHMTL
Diffstat (limited to 'usr/local/www/widgets/widgets/picture.widget.php')
-rw-r--r--usr/local/www/widgets/widgets/picture.widget.php15
1 files changed, 8 insertions, 7 deletions
diff --git a/usr/local/www/widgets/widgets/picture.widget.php b/usr/local/www/widgets/widgets/picture.widget.php
index 27b9df2..145768c 100644
--- a/usr/local/www/widgets/widgets/picture.widget.php
+++ b/usr/local/www/widgets/widgets/picture.widget.php
@@ -69,26 +69,27 @@ if($_POST) {
?>
-<input type="hidden" id="picture-config" name="picture-config" value="">
+<input type="hidden" id="picture-config" name="picture-config" value="" />
-<div id="picture-settings" name="picture-settings" class="widgetconfigdiv" style="display:none;">
- </form>
+<div id="picture-settings" class="widgetconfigdiv" style="display:none;">
<form action="/widgets/widgets/picture.widget.php" method="post" name="iforma" enctype="multipart/form-data">
- <input name="pictfile" type="file" class="formfld unknown" id="pictfile" size="20"></p>
+ <input name="pictfile" type="file" class="formfld unknown" id="pictfile" size="20" />
<input id="submita" name="submita" type="submit" class="formbtn" value="Upload" /><br/>
<b>NOTE:</b> Best image size is 350x350 or smaller.
</form>
</div>
<div id="picture-widgets" style="padding: 5px">
- <a href='/widgets/widgets/picture.widget.php?getpic=true' target='_new'>
- <img border=0 width="350" height="350" src="/widgets/widgets/picture.widget.php?getpic=true">
+ <a href='/widgets/widgets/picture.widget.php?getpic=true' target='_blank'>
+ <img border="0" width="350" height="350" src="/widgets/widgets/picture.widget.php?getpic=true" alt="picture" />
</a>
</div>
<!-- needed to show the settings widget icon -->
-<script language="javascript" type="text/javascript">
+<script type="text/javascript">
+//<![CDATA[
selectIntLink = "picture-configure";
textlink = document.getElementById(selectIntLink);
textlink.style.display = "inline";
+//]]>
</script>
OpenPOWER on IntegriCloud