function writeContent() { global $sUser; addField(makeInput('Email Address', 'use_email', $sUser)); addField(makePassword('Password', 'use_password')); addField(makeSubmit('Log In', 'login')); writeDataForm($_SERVER['REQUEST_URI'], 'login', 'login'); }
function writeContent() { global $aStates, $isPost, $sFirstName, $sLastName, $sEmail, $nPhone, $sAddress, $sAddress2, $sCity, $sState, $nZip, $sComments, $bSent; if ($bSent) { echo '<p>Thank you for contacting us.</p>'; } else { addField(makeInput('First Name', 'con_firstname', $sFirstName), true); addField(makeInput('Last Name', 'con_lastname', $sLastName), true); addField(makeEmail('Email Address', 'con_email', $sEmail), true); addField(makeInput('Telephone', 'con_phone', $nPhone, 'size="13"')); addField(makeInput('Address', 'con_address', $sAddress, 'size="30"')); addField(makeInput('Address 2', 'con_address2', $sAddress2, 'size="30"')); addField(makeInput('City', 'con_city', $sCity)); addField(makeSelect('State', 'con_state', $aStates, $sState)); addField(makeInput('Zip', 'con_zip', $nZip, 'size="10" maxlength="5"')); addField(makeTextArea('Message', 'con_comments', $sComments, 'rows="5" cols="60"')); addField(makeSubmit('Send', 'send') . ' ' . makeCancel('Cancel', 'cancel')); writeDataForm('/contact.php', 'contact'); } }
function writeContent() { global $sId, $aStates, $isPost, $sName, $sEmail, $nPhone, $sAddress, $sAddress2, $sCity, $sState, $nZip, $bAdmin, $bActive; if (!empty($sId)) { addHidden('use_id', $sId); } addField(makeInput('Name', 'use_name', $sName), true); addField(makeEmail('Email Address', 'use_email', $sEmail), true); addField(makePassword('Password', 'use_password')); addField(makeInput('Phone', 'use_phone', $nPhone, 'size="13"')); addField(makeInput('Address', 'use_address', $sAddress, 'size="30"')); addField(makeInput('Address 2', 'use_address2', $sAddress2, 'size="30"')); addField(makeInput('City', 'use_city', $sCity)); addField(makeSelect('State', 'use_state', $aStates, $sState)); addField(makeInput('Zip', 'use_zip', $nZip, 'size="10"')); addField(makeCheckbox('Admin', 'use_admin', $bAdmin)); addField(makeCheckbox('Active', 'use_active', $bActive)); addField(makeSubmit('Save', 'save') . ' ' . makeCancel('Cancel', 'cancel')); writeDataForm($_SERVER['PHP_SELF'], 'user'); }
</td> </tr> <tr> <td>Change Frames to start:</td> <td> <?php makeInput('motion_startframes', 5); ?> <input type="button" value="OK" onclick="send_cmd('mb ' + document.getElementById('motion_startframes').value)"> </td> </tr> <tr> <td>Still Frames to stop:</td> <td> <?php makeInput('motion_stopframes', 5); ?> <input type="button" value="OK" onclick="send_cmd('me ' + document.getElementById('motion_stopframes').value)"> </td> </tr> <tr> <td>Save vectors to .dat :<br>Uses more space</td> <td><select onchange="send_cmd('mf ' + this.value);"><?php makeOptions($options_mf, 'motion_file'); ?> </select></td> </tr> </table> </div> </div> </div>
:<?php makeInput('ac_u', 4, 'anno3_custom_background_U'); ?> :<?php makeInput('ac_v', 4, 'anno3_custom_background_V'); ?> <input type="button" value="OK" onclick="set_ac();"> </td> </tr> <tr> <td>Watchdog, default interval 3s, errors 3</td> <td>Interval <?php makeInput('watchdog_interval', 3); ?> s Errors <?php makeInput('watchdog_errors', 3); ?> <input type="button" value="OK" onclick="send_cmd('wd ' + 10 * document.getElementById('watchdog_interval').value + ' ' + document.getElementById('watchdog_errors').value)"> </td> </tr> </table> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"> <h2 class="panel-title"> <a data-toggle="collapse" data-parent="#accordion" href="#collapseTwo">System</a> </h2> </div> <div id="collapseTwo" class="panel-collapse collapse">
function makeEmail($label, $name, $value = "", $other = "size='30'") { return makeInput($label, $name, $value, $other); }