/** * WordPress Registration Form * Function outputs the registration form * * * @author AppThemes * @package ClassiPress * */ function app_register_form($action = '') { global $posted, $app_abbr; if (get_option('users_can_register')) { if (!$action) { $action = site_url('login.php?action=register'); } ?> <form action="<?php echo $action; ?> " method="post" class="loginform" name="registerform" id="registerform"> <p> <label for="user_login"><?php _e('Username:'******'appthemes'); ?> </label> <input tabindex="1" type="text" class="text" name="user_login" id="user_login" value="<?php if (isset($posted['user_login'])) { echo esc_attr($posted['user_login']); } ?> " /> </p> <p> <label for="user_email"><?php _e('Email:', 'appthemes'); ?> </label> <input tabindex="2" type="text" class="text" name="user_email" id="user_email" value="<?php if (isset($posted['user_email'])) { echo esc_attr($posted['user_email']); } ?> " /> </p> <?php if (get_option($app_abbr . '_allow_registration_password') == 'yes') { ?> <p> <label for="your_password"><?php _e('Password:'******'appthemes'); ?> </label> <input tabindex="3" type="password" class="text" name="your_password" id="your_password" value="" /> </p> <p> <label for="your_password_2"><?php _e('Password Again:', 'appthemes'); ?> </label> <input tabindex="4" type="password" class="text" name="your_password_2" id="your_password_2" value="" /> </p> <?php } ?> <?php // include the spam checker if enabled appthemes_recaptcha(); ?> <p> <label for="disability">Engel Durumunuz:</label> <select name="engelDurumu" > <?php //require_once('./dbconnect.php'); $con = mysql_connect("localhost", "root", ""); mysql_select_db("erisimdb", $con); $sql = "SELECT * FROM er_disability"; $result = mysql_query($sql); mysql_close($con); while ($row = mysql_fetch_array($result)) { echo "<option value='" . $row['ID'] . "'/>" . $row['name'] . "</option>"; } ?> </select> </p> <div id="checksave"> <p class="submit"> <input tabindex="6" class="btn_orange" type="submit" name="register" id="wp-submit" value="<?php _e('Create Account', 'appthemes'); ?> " /> </p> <?php do_action('register_form'); ?> </div> </form> <script type="text/javascript">document.getElementById('user_login').focus();</script> <?php } else { ?> <p><?php _e('** User registration is currently disabled. Please contact the site administrator. **', 'appthemes'); ?> </p> <?php } ?> <?php }
/** * WordPress Registration Form * Function outputs the registration form * * * @author AppThemes * @package ClassiPress * */ function app_register_form($action = '') { global $posted, $app_abbr; if (get_option('users_can_register')) { if (!$action) { $action = site_url('wp-login.php?action=register'); } ?> <form action="<?php echo $action; ?> " method="post" class="loginform" name="registerform" id="registerform"> <p> <label><?php _e('Username:'******'appthemes'); ?> </label> <input tabindex="1" type="text" class="text" name="your_username" id="your_username" value="<?php if (isset($posted['your_username'])) { esc_attr_e($posted['your_username']); } ?> " /> </p> <p> <label><?php _e('Email:', 'appthemes'); ?> </label> <input tabindex="2" type="text" class="text" name="your_email" id="your_email" value="<?php if (isset($posted['your_email'])) { esc_attr_e($posted['your_email']); } ?> " /> </p> <?php if (get_option($app_abbr . '_allow_registration_password') == 'yes') { ?> <p> <label><?php _e('Password:'******'appthemes'); ?> </label> <input tabindex="3" type="password" class="text" name="your_password" id="your_password" value="" /> </p> <p> <label><?php _e('Password Again:', 'appthemes'); ?> </label> <input tabindex="4" type="password" class="text" name="your_password_2" id="your_password_2" value="" /> </p> <?php } ?> <?php // include the spam checker if enabled appthemes_recaptcha(); ?> <div id="checksave"> <p class="submit"> <input tabindex="6" class="btn_orange" type="submit" name="register" id="wp-submit" value="<?php _e('Create Account', 'appthemes'); ?> " /> </p> </div> </form> <script type="text/javascript">document.getElementById('your_username').focus();</script> <?php } else { ?> <p><?php _e('** User registration is currently disabled. Please contact the site administrator. **', 'appthemes'); ?> </p> <?php } ?> <?php }
/** * JobRoller Registration Form * Function outputs the registration form * * * @version 1.0 * @author AppThemes * @package JobRoller * @copyright 2010 all rights reserved * */ function jr_register_form($action = '', $role = 'job_lister') { global $posted; if (get_option('users_can_register')) { if (!$action) { $action = site_url('wp-login.php?action=register'); } ?> <h2><?php _e('Create a free account', 'appthemes'); ?> </h2> <form action="<?php echo $action; ?> " method="post" class="account_form"> <?php if (get_option('jr_allow_job_seekers') == 'yes') { if (!$role) { ?> <p class="role"> <label><input type="radio" name="role" value="job_lister" <?php if (isset($posted['role']) && $posted['role'] == 'job_lister') { echo 'checked="checked"'; } ?> /> <?php _e('I am an <strong>Employer</strong>', 'appthemes'); ?> </label> <label class="alt"><input type="radio" name="role" value="job_seeker" <?php if (isset($posted['role']) && $posted['role'] == 'job_seeker') { echo 'checked="checked"'; } ?> /> <?php _e('I am a <strong>Job Seeker</strong>', 'appthemes'); ?> </label> </p> <?php } elseif ($role == 'job_lister') { echo '<div><input type="hidden" name="role" value="job_lister" /></div>'; } elseif ($role == 'job_seeker') { echo '<div><input type="hidden" name="role" value="job_seeker" /></div>'; } } ?> <div class="account_form_fields"> <p> <label for="your_username"><?php _e('Username', 'appthemes'); ?> </label><br/> <input type="text" class="text" tabindex="1" name="your_username" id="your_username" value="<?php if (isset($posted['your_username'])) { echo $posted['your_username']; } ?> " /> </p> <p> <label for="your_email"><?php _e('Email', 'appthemes'); ?> </label><br/> <input type="text" class="text" tabindex="2" name="your_email" id="your_email" value="<?php if (isset($posted['your_email'])) { echo $posted['your_email']; } ?> " /> </p> <?php if (get_option('jr_allow_registration_password') == 'yes') { ?> <p> <label for="your_password"><?php _e('Enter a password', 'appthemes'); ?> </label><br/> <input type="password" class="text" tabindex="3" name="your_password" id="your_password" value="" /> </p> <p> <label for="your_password_2"><?php _e('Enter password again', 'appthemes'); ?> </label><br/> <input type="password" class="text" tabindex="4" name="your_password_2" id="your_password_2" value="" /> </p> <?php } ?> <?php // include the spam checker if enabled appthemes_recaptcha(); ?> <?php if (get_option('jr_terms_page_id') > 0) { ?> <p> <input type="checkbox" name="terms" tabindex="6" value="yes" id="terms" <?php if (isset($_POST['terms'])) { echo 'checked="checked"'; } ?> /> <label for="terms"><?php _e('I accept the ', 'appthemes'); ?> <a href="<?php echo get_permalink(get_option('jr_terms_page_id')); ?> " target="_blank"><?php _e('terms & conditions', 'appthemes'); ?> </a>.</label> </p><?php } ?> <p> <input type="submit" class="submit" tabindex="7" name="register" value="<?php _e('Create Account →', 'appthemes'); ?> " /> </p> </div> </form> <?php } ?> <?php }