Add password (hidden text) extravar type

This commit is contained in:
Kijin Sung 2016-04-24 23:17:43 +09:00
parent 2d833e5668
commit 447ba08a2c
11 changed files with 22 additions and 3 deletions

View file

@ -288,6 +288,7 @@ class ExtraItem
//case 'email_address' :
//case 'text' :
//case 'textarea' :
//case 'password' :
default :
return htmlspecialchars($value, ENT_COMPAT | ENT_HTML401, 'UTF-8', false);
}
@ -346,6 +347,7 @@ class ExtraItem
return $value;
// case 'text' :
// case 'password' :
default :
return $value;
}
@ -471,6 +473,10 @@ class ExtraItem
$buff[] = $oKrzipModel->getKrzipCodeSearchHtml($column_name, $value);
}
break;
// Password
case "password" :
$buff[] =' <input type="password" name="' . $column_name . '" value="' . ($value ? $value : $default) . '" class="password" />';
break;
// General text
default :
$buff[] =' <input type="text" name="' . $column_name . '" value="' . ($value ? $value : $default) . '" class="text" />';

View file

@ -255,6 +255,7 @@ $lang->column_type_list['homepage'] = 'Url-Adresse';
$lang->column_type_list['email_address'] = 'E-Mail';
$lang->column_type_list['tel'] = 'Telefonnummer';
$lang->column_type_list['textarea'] = 'Mehrere Zeilen Text';
$lang->column_type_list['password'] = 'Passwort Text';
$lang->column_type_list['radio'] = 'Radiobutton';
$lang->column_type_list['select'] = 'Nur eine Auswahl';
$lang->column_type_list['checkbox'] = 'Multiple Auswahl';

View file

@ -269,9 +269,10 @@ $lang->msg_rul = '';
$lang->column_type = 'Column Type';
$lang->column_type_list['text'] = 'one-line text';
$lang->column_type_list['homepage'] = 'URL';
$lang->column_type_list['email_address'] = 'Email';
$lang->column_type_list['tel'] = 'Phone number';
$lang->column_type_list['email_address'] = 'e-mail address';
$lang->column_type_list['tel'] = 'phone number';
$lang->column_type_list['textarea'] = 'multi-line textarea';
$lang->column_type_list['password'] = 'password';
$lang->column_type_list['radio'] = 'radio button(radio)';
$lang->column_type_list['select'] = 'single select box';
$lang->column_type_list['checkbox'] = 'checkbox(multiple selection)';

View file

@ -207,8 +207,10 @@ $lang->column_type_list['homepage'] = 'URL de la página web';
$lang->column_type_list['email_address'] = 'Correo Electrónico';
$lang->column_type_list['tel'] = 'Número de teléfono';
$lang->column_type_list['textarea'] = 'Texto multi-linea';
$lang->column_type_list['password'] = 'Texto de la contraseña';
$lang->column_type_list['select'] = 'Selección(selección individual)';
$lang->column_type_list['checkbox'] = 'Caja de chequeo(selección múltiple)';
$lang->column_type_list['kr_zip'] = 'Código postal (corea)';
$lang->column_type_list['date'] = 'fecha(dd/mm/aaaa)';
$lang->column_name = 'Nombre de la Columna';
$lang->column_title = 'Título de la Columna';

View file

@ -202,6 +202,7 @@ $lang->column_type_list['homepage'] = 'URL';
$lang->column_type_list['email_address'] = 'Mél';
$lang->column_type_list['tel'] = 'Numéro de Telephone';
$lang->column_type_list['textarea'] = 'Texte en plusieurs lignes';
$lang->column_type_list['password'] = 'Texte de mot de passe';
$lang->column_type_list['select'] = 'Case d\'option(seul choix)';
$lang->column_type_list['checkbox'] = 'Case à cocher(multichoix)';
$lang->column_type_list['kr_zip'] = 'Code postal(coréen)';

View file

@ -266,6 +266,7 @@ $lang->column_type_list['homepage'] = 'URLタイプ(url)';
$lang->column_type_list['email_address'] = 'メールアドレスタイプ(email)';
$lang->column_type_list['tel'] = '電話番号タイプ(phone)';
$lang->column_type_list['textarea'] = 'テキストエリア(textarea)';
$lang->column_type_list['password'] = 'パスワードフィールド(password)';
$lang->column_type_list['radio'] = 'ラジオボタン(radio)';
$lang->column_type_list['select'] = 'ひとつ選択(select)';
$lang->column_type_list['checkbox'] = 'チェックボックス(checkbox)';

View file

@ -272,6 +272,7 @@ $lang->column_type_list['homepage'] = 'URL 형식';
$lang->column_type_list['email_address'] = '이메일 형식(email)';
$lang->column_type_list['tel'] = '전화번호 형식(phone)';
$lang->column_type_list['textarea'] = '여러 줄 입력칸(textarea)';
$lang->column_type_list['password'] = '숨김 입력칸(password)';
$lang->column_type_list['radio'] = '단일 선택(radio)';
$lang->column_type_list['select'] = '단일 선택(single select)';
$lang->column_type_list['checkbox'] = '다중 선택(checkbox)';

View file

@ -250,6 +250,7 @@ $lang->column_type_list['homepage'] = '网址格式(url)';
$lang->column_type_list['email_address'] = '邮件格式(email)';
$lang->column_type_list['tel'] = '电话号码格式(phone)';
$lang->column_type_list['textarea'] = '多行文本框(textarea)';
$lang->column_type_list['password'] = '密码输入(password)';
$lang->column_type_list['radio'] = '单选框(radio)';
$lang->column_type_list['select'] = '下拉列表框(select)';
$lang->column_type_list['checkbox'] = '复选框(checkbox)';

View file

@ -249,6 +249,7 @@ $lang->column_type_list['homepage'] = '網址格式';
$lang->column_type_list['email_address'] = '電子郵件';
$lang->column_type_list['tel'] = '電話號碼格式(phone)';
$lang->column_type_list['textarea'] = '文字區域(textarea)';
$lang->column_type_list['password'] = '密碼輸入(password)';
$lang->column_type_list['radio'] = '選項按紐(radio)';
$lang->column_type_list['select'] = '下拉式選單(select)';
$lang->column_type_list['checkbox'] = '核取方塊(checkbox)';

View file

@ -561,6 +561,10 @@ class memberAdminView extends member
{
$template = '<textarea name="%column_name%" id="%column_name%" rows="4" cols="42">%value%</textarea>';
}
else if($extendForm->column_type == 'password')
{
$template = '<input type="password" name="%column_name%" id="%column_name%" value="%value%" />';
}
else if($extendForm->column_type == 'checkbox')
{
$template = '';

View file

@ -43,7 +43,7 @@
<label class="x_control-label">{$lang->cmd_required}/{$lang->cmd_optional}</label>
<div class="x_controls">
<label for="radio_required" class="x_inline"><input type="radio" id="radio_required" name="required" value="Y" /> {$lang->cmd_required}</label>
<label for="radio_option" class="x_inline"><input type="radio" id="radio_option" name="required" value="N" /> {$lang->cmd_optional}</label>
<label for="radio_option" class="x_inline"><input type="radio" id="radio_option" name="required" value="N" checked="checked" /> {$lang->cmd_optional}</label>
</div>
</div>
</div>