<?php

/**
 * phpwcms content management system
 *
 * @author Oliver Georgi <*****@*****.**>
 * @copyright Copyright (c) 2002-2015, Oliver Georgi
 * @license http://opensource.org/licenses/GPL-2.0 GNU GPL-2
 * @link http://www.phpwcms.de
 *
 **/
// ----------------------------------------------------------------
// obligate check for phpwcms constants
if (!defined('PHPWCMS_ROOT')) {
    die("You Cannot Access This Script Directly, Have a Nice Day.");
}
// ----------------------------------------------------------------
//Create new profile data if not existing
$sql = "INSERT INTO " . DB_PREPEND . "phpwcms_userdetail (" . "detail_pid, detail_title, detail_firstname, detail_lastname, " . "detail_company, detail_street, detail_add, detail_city, " . "detail_zip, detail_region, detail_country, detail_fon, detail_fax, " . "detail_mobile, detail_signature, detail_prof, detail_notes, " . "detail_public, detail_newsletter) VALUES (" . $_SESSION["wcs_user_id"] . ", '" . getpostvar($_POST["form_title"]) . "', '" . getpostvar($_POST["form_firstname"]) . "', '" . getpostvar($_POST["form_lastname"]) . "', '" . getpostvar($_POST["form_company"]) . "', '" . getpostvar($_POST["form_street"]) . "', '" . getpostvar($_POST["form_add"]) . "', '" . getpostvar($_POST["form_city"]) . "', '" . getpostvar($_POST["form_zip"]) . "', '" . getpostvar($_POST["form_region"]) . "', '" . getpostvar($_POST["form_country"]) . "', '" . getpostvar($_POST["form_fon"]) . "', '" . getpostvar($_POST["form_fax"]) . "', '" . getpostvar($_POST["form_mobile"]) . "', '" . getpostvar(mb_substr($_POST["form_signature"], 0, 250)) . "', '" . getpostvar($_POST["form_prof"]) . "', '" . getpostvar(mb_substr($_POST["form_notes"], 0, 3000)) . "', " . check_checkbox($_POST["form_public"]) . ", " . check_checkbox($_POST["form_newsletter"]) . ")";
if (mysql_query($sql, $db)) {
    $detail_updated = $BL['be_profile_create_success'];
} else {
    $detail_updated = $BL['be_profile_create_error'];
}
Example #2
0
    function form($instance)
    {
        $defaults = array('title' => __(null, 'bitpub'), 'nav-page' => null, 'show-parent' => false);
        $instance = wp_parse_args((array) $instance, $defaults);
        ?>
			
			<div class="ewf-meta">
				<p>
					<label for="<?php 
        echo $this->get_field_id('title');
        ?>
"><?php 
        _e('Section title:', 'bitpub');
        ?>
</label>
					<input id="<?php 
        echo $this->get_field_id('title');
        ?>
" name="<?php 
        echo $this->get_field_name('title');
        ?>
" value="<?php 
        echo esc_html($instance['title']);
        ?>
" style="width:95%;" /> 
				</p>
				 
				<p>
				<?php 
        $pages_list = get_pages();
        echo '<select id="' . $this->get_field_id('nav-page') . '" name="' . $this->get_field_name('nav-page') . '" style="width:95%;">';
        foreach ($pages_list as $current_page) {
            if ($current_page->post_parent == 0) {
                if (esc_html($instance['nav-page']) == $current_page->post_title) {
                    echo '<option selected="selected" >' . $current_page->post_title . '</option>';
                } else {
                    echo '<option>' . $current_page->post_title . '</option>';
                }
            }
        }
        echo '</select>';
        ?>
				</p>
				
				<p class="ewf-meta-checkbox">
					<input type="checkbox" id="<?php 
        echo $this->get_field_id('show-parent');
        ?>
" name="<?php 
        echo $this->get_field_name('show-parent');
        ?>
" <?php 
        check_checkbox(esc_html($instance['show-parent']));
        ?>
 />
					<label for="<?php 
        echo $this->get_field_id('show-parent');
        ?>
"><?php 
        _e('Show parent', 'bitpub');
        ?>
</label>
				</p>
			</div>
 
		<?php 
    }
    function form($instance)
    {
        $defaults = array('title' => __(null, EWF_SETUP_THEME_DOMAIN), 'all-work' => __('All Work', EWF_SETUP_THEME_DOMAIN));
        $instance = wp_parse_args((array) $instance, $defaults);
        ?>
		
			<p>
				<label for="<?php 
        echo $this->get_field_id('title');
        ?>
"><?php 
        _e('Section title:', EWF_SETUP_THEME_DOMAIN);
        ?>
</label>
				<input id="<?php 
        echo $this->get_field_id('title');
        ?>
" name="<?php 
        echo $this->get_field_name('title');
        ?>
" value="<?php 
        echo $instance['title'];
        ?>
" style="width:95%;" /> 
			</p>
			 
			<p>
				<label for="<?php 
        echo $this->get_field_id('all-work');
        ?>
"><?php 
        _e('All Work Title:', EWF_SETUP_THEME_DOMAIN);
        ?>
</label>
				<input id="<?php 
        echo $this->get_field_id('all-work');
        ?>
" name="<?php 
        echo $this->get_field_name('all-work');
        ?>
" value="<?php 
        echo $instance['all-work'];
        ?>
" style="width:95%;" /> 
			</p> 
			 		
			<p>
				<input type="checkbox" id="<?php 
        echo $this->get_field_id('extra-link');
        ?>
" name="<?php 
        echo $this->get_field_name('extra-link');
        ?>
" <?php 
        check_checkbox($instance['extra-link']);
        ?>
 />
				<label for="<?php 
        echo $this->get_field_id('extra-link');
        ?>
"><?php 
        _e('Show portfolio link', EWF_SETUP_THEME_DOMAIN);
        ?>
</label>
			</p>
 
		<?php 
    }
?>
 class="checkbox_quiz" />모 아니면 도
					<input type="checkbox" name="quiz[]" value="2"<?php 
echo check_checkbox("2", $arr_session3_quiz);
?>
 class="checkbox_quiz" />과장과 축소
					<input type="checkbox" name="quiz[]" value="3"<?php 
echo check_checkbox("3", $arr_session3_quiz);
?>
 class="checkbox_quiz" />지나친 일반화
					<input type="checkbox" name="quiz[]" value="4"<?php 
echo check_checkbox("4", $arr_session3_quiz);
?>
 class="checkbox_quiz" />독심술적 사고
					<input type="checkbox" name="quiz[]" value="5"<?php 
echo check_checkbox("5", $arr_session3_quiz);
?>
 class="checkbox_quiz" />강박적 부담
				</li>
				<li style="padding:10px 0 0 50px;">정답 2개를 선택하여 주세요.</li>

			</ul>
		</div>
		</form>
	</div>
</div>

<audio id="audio">
	<source id="main">
	<source src="/sound/session_3/03_15.mp3">	
</audio>