Exemple #1
0
/**
 * States Dropdown
 *
 * @uses check_select
 * @param string $post, the one to make "selected"
 * @param string $type, by default it shows abbreviations. 'abbrev', 'name' or 'mixed'
 * @return string
 */
function StateDropdown($post = null, $type = 'abbrev')
{
    $states = array(array('AL', 'Alabama'), array('AK', 'Alaska'), array('AZ', 'Arizona'), array('AR', 'Arkansas'), array('CA', 'California'), array('CO', 'Colorado'), array('CT', 'Connecticut'), array('DE', 'Delaware'), array('DC', 'District of Columbia'), array('FL', 'Florida'), array('GA', 'Georgia'), array('HI', 'Hawaii'), array('ID', 'Idaho'), array('IL', 'Illinois'), array('IN', 'Indiana'), array('IA', 'Iowa'), array('KS', 'Kansas'), array('KY', 'Kentucky'), array('LA', 'Louisiana'), array('ME', 'Maine'), array('MD', 'Maryland'), array('MA', 'Massachusetts'), array('MI', 'Michigan'), array('MN', 'Minnesota'), array('MS', 'Mississippi'), array('MO', 'Missouri'), array('MT', 'Montana'), array('NE', 'Nebraska'), array('NV', 'Nevada'), array('NH', 'New Hampshire'), array('NJ', 'New Jersey'), array('NM', 'New Mexico'), array('NY', 'New York'), array('NC', 'North Carolina'), array('ND', 'North Dakota'), array('OH', 'Ohio'), array('OK', 'Oklahoma'), array('OR', 'Oregon'), array('PA', 'Pennsylvania'), array('PR', 'Puerto Rico'), array('RI', 'Rhode Island'), array('SC', 'South Carolina'), array('SD', 'South Dakota'), array('TN', 'Tennessee'), array('TX', 'Texas'), array('UT', 'Utah'), array('VT', 'Vermont'), array('VA', 'Virginia'), array('WA', 'Washington'), array('WV', 'West Virginia'), array('WI', 'Wisconsin'), array('WY', 'Wyoming'));
    $options = '<option value=""></option>';
    foreach ($states as $state) {
        if ($type == 'abbrev') {
            $options .= '<option value="' . $state[0] . '" ' . check_select($post, $state[0], false) . ' >' . $state[0] . '</option>' . "\n";
        } elseif ($type == 'name') {
            $options .= '<option value="' . $state[1] . '" ' . check_select($post, $state[1], false) . ' >' . $state[1] . '</option>' . "\n";
        } elseif ($type == 'mixed') {
            $options .= '<option value="' . $state[0] . '" ' . check_select($post, $state[0], false) . ' >' . $state[1] . '</option>' . "\n";
        }
    }
    echo $options;
}
						<select name="ssperiod">
							<option value="">선택</option>
							<option value="month"<?php 
echo check_select("month", $ssperiod);
?>
>월별</option>
							<option value="day"<?php 
echo check_select("day", $ssperiod);
?>
>일별</option>
							<option value="weekday"<?php 
echo check_select("weekday", $ssperiod);
?>
>요일별</option>
							<option value="hour"<?php 
echo check_select("hour", $ssperiod);
?>
>시간별</option>
						</select>

                        <select name="ssyear" id="ssyear" hname="검색 시작년(年)" required onchange="check_slast_day();">
							<option value="">선택</option>
<?php 
echo sel_year($stryear, 2015, $ssyear);
?>
                        </select>년
                        <select name="ssmonth" id="ssmonth" hname="검색 시작월(月)" required onchange="check_slast_day();">
							<option value="">선택</option>
<?php 
echo sel_month($ssmonth);
?>
Exemple #3
0
     $form_err .= xl('Age format for "age from" is not valid', '', '<br>');
 }
 if (!check_age($_POST['age_upto'])) {
     $form_err .= xl('Age format for "age up to" is not valid', '', '<br>');
 }
 // validate selections
 if (!check_select($_POST['gender'], $gender)) {
     $form_err .= xl('Error in "Gender" selection', '', '<br>');
 }
 if (!check_select($_POST['process_type'], $choices)) {
     $form_err .= xl('Error in "Process" selection', '', '<br>');
 }
 if (!check_select($_POST['hipaa_choice'], $hipaa)) {
     $form_err .= xl('Error in "HIPAA" selection', '', '<br>');
 }
 if (!check_select($_POST['sort_by'], $sort_by)) {
     $form_err .= xl('Error in "Sort By" selection', '', '<br>');
 }
 // validates and or
 if (!check_yes_no($_POST['and_or_gender'])) {
     $form_err .= xl('Error in YES or NO option', '', '<br>');
 }
 if (!check_yes_no($_POST['and_or_app_within'])) {
     $form_err .= xl('Error in YES or NO option', '', '<br>');
 }
 if (!check_yes_no($_POST['and_or_seen_since'])) {
     $form_err .= xl('Error in YES or NO option', '', '<br>');
 }
 if (!check_yes_no($_POST['and_or_not_seen_since'])) {
     $form_err .= xl('Error in YES or NO option', '', '<br>');
 }
Exemple #4
0
?>
">
			<div class="notice-sc">
				<ul>
					<li>
						<select name="search_divi">
							<option value="title"<?php 
echo check_select("title", $search_divi);
?>
>제목</option>
							<option value="content"<?php 
echo check_select("content", $search_divi);
?>
>내용</option>
							<option value="tit_cont"<?php 
echo check_select("tit_cont", $search_divi);
?>
>제목+내용</option>
						</select>
					</li>
					<li class="notice-text">
						<input type="text" name="keyword" value="<?php 
echo $keyword;
?>
" />
					</li>
					<li class="notice-text">
						<a href="#" onclick="searchit(); return false;"><img src="/images/notice-btn_01.png" /></a>
<?php 
if ($search != "") {
    ?>
Exemple #5
0
		</tr>
<?php 
}
?>
	<tr>
		<td>
			<form name="frm_search" method="post" action="<?php 
echo $PHP_SELF;
?>
">
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td align="center" style="padding-top:15px;">
						<select name="search_divi">
							<option value="name"<?php 
echo check_select("name", $search_divi);
?>
>이름</option>
						</select>
						<input type="text" name="keyword" value="<?php 
echo $keyword;
?>
" class="input_search" />
						<a href="#" onclick="searchit(); return false;" class="btn_type02">검색</a>
<?php 
if ($search != "") {
    ?>
							&nbsp;&nbsp;<a href="<?php 
    echo $PHP_SELF;
    ?>
" class="btn_type02">최신목록</a>
Exemple #6
0
						<select name="search_divi">
							<option value="">선택</option>
							<option value="name"<?php 
echo check_select("name", $search_divi);
?>
>이름</option>
							<option value="id"<?php 
echo check_select("id", $search_divi);
?>
>아이디</option>
							<option value="mobile"<?php 
echo check_select("mobile", $search_divi);
?>
>휴대폰번호</option>
							<option value="recomm_id"<?php 
echo check_select("recomm_id", $search_divi);
?>
>추천 아이디</option>
						</select>
						<input type="text" name="keyword" value="<?php 
echo $keyword;
?>
" style="width:150px;" />					
					</td>
				</tr>
				<tr>
					<td height="2" colspan="4" bgcolor="#d8d8d8"></td>
				</tr>
				<tr height="30" bgcolor="#ffffff">
					<td colspan="4" style="text-align:center; padding-top:10px;">
						<a href="#" onclick="document.frm_search.submit(); return false;" class="btn_type01">검색</a>
Exemple #7
0
			<tr>
				<td><?php 
echo SYSTEM_THUMB;
?>
</td>
				<td>
					<select id="SystemThumb">
						<option value="1" <?php 
echo check_select($config['systemThumb'], 1);
?>
><?php 
echo YEAS;
?>
</option>
						<option value="0" <?php 
echo check_select($config['systemThumb'], 0);
?>
><?php 
echo NO;
?>
</option>
					</select>
				</td>
			</tr>
			<tr>
				<td colspan="2"><input type="button" id="SavePref" value="<?php 
echo SAVE_PREF;
?>
" /></td>
			</tr>
		</table>
Exemple #8
0
"> 
		</div>
		<?php 
}
?>

		<!--
		<div>
			<label for="role">Role: </label>
			<select name="role">
				<option value="user"<?php 
check_select(isset($form) ? $form->role : set_value('role'), 'user');
?>
>User/Guest</option>
				<option value="admin"<?php 
check_select(isset($form) ? $form->role : set_value('role'), 'admin');
?>
>Administrator</option>
			</select>
		</div>
		-->		
	</fieldset>
	
	<fieldset>
	<?php 
if ($this->uri->segment(2) == 'add') {
    ?>
		<legend>Password</legend>
		<div class="form-group">
			<label for="password">Password: </label>
			<input type="password" name="password" class="form-control" value="<?php