<?php if (!defined('PLUGIN_SETTING')) die; require_once('JSSnow.inc.php'); $configxml=JSSnow_load_config($pluginEnv); if ($_SERVER['REQUEST_METHOD']=='POST') { $configxml->maxpoints=TPOST('maxpoints'); $configxml->pointspersec=TPOST('pointspersec'); $configxml->zIndex=TPOST('zIndex'); $configxml->gravitydx=TPOST('gravitydx'); $configxml->gravitydy=TPOST('gravitydy'); $configxml->rightmargin=TPOST('rightmargin'); $configxml->bottommargin=TPOST('bottommargin'); $configxml->snowpicurl=TPOST('snowpicurl'); $configxml->asXML($pluginEnv->datapath.'config.xml'); header("Location: ".$_SERVER['REQUEST_URI'].($_GET['saved']=='yes'?'':"?saved=yes")); return; } ?><form name="form1" method="post" action=""> <?php if($_GET['saved']=='yes') { ?> <div align="center">Saved</div> <div>&nbsp;</div> <?php } ?> <table align="center" width="0%" border="1" cellspacing="0" cellpadding="3" class="thinborder"> <tr> <td align="left" valign="top">Max Number of Snow Points:</td> <td align="left" valign="top"><input name="maxpoints" type="text" id="maxpoints" value="<?php echo $configxml->maxpoints?>" size="3" maxlength="3"></td> </tr> <tr> <td align="left" valign="top">Number of Snow Pieces/Sec:</td> <td align="left" valign="top"><input name="pointspersec" type="text" id="pointspersec" value="<?php echo $configxml->pointspersec?>" size="3" maxlength="3"></td> </tr> <tr> <td align="left" valign="top">Gravity:</td> <td align="left" valign="top">&lt; <input name="gravitydx" type="text" id="gravitydx" value="<?php echo $configxml->gravitydx?>" size="4" maxlength="4"> px , <input name="gravitydy" type="text" id="gravitydy" value="<?php echo $configxml->gravitydy?>" size="4" maxlength="4"> px &gt;<br> A vector to be added to each update.</td> </tr> <tr> <td align="left" valign="top">z-Index:</td> <td align="left" valign="top"><input name="zIndex" type="text" id="zIndex" value="<?php echo $configxml->zIndex?>" size="5" maxlength="10"></td> </tr> <tr> <td align="left" valign="top">Right Margin</td> <td align="left" valign="top"><input name="rightmargin" type="text" id="rightmargin" value="<?php echo $configxml->rightmargin?>" size="5" maxlength="10"> px</td> </tr> <tr> <td align="left" valign="top">Bottom Margin</td> <td align="left" valign="top"><input name="bottommargin" type="text" id="bottommargin" value="<?php echo $configxml->bottommargin?>" size="5" maxlength="10"> px</td> </tr> <tr> <td align="left" valign="top">Snow Piece Image:</td> <td align="left" valign="top"><input type="text" name="snowpicurl" id="snowpicurl" value="<?php echo $configxml->snowpicurl?>"> <br> A URL to the image of a piece of snow.<br> <input type="button" value="Use Default Img" onclick="document.getElementById('snowpicurl').value='plugins/JSSnow/rotatingbluesnow.gif';" class="linkbutton"></td> </tr> <tr> <td colspan="2" align="center"><input type="submit" name="save" id="save" value="Save" class="linkbutton">&nbsp;&nbsp;&nbsp;<input type="reset" name="reset" id="reset" value="Reset" class="linkbutton"></td> </tr> </table> </form>