当前位置: 首页>>代码示例>>PHP>>正文


PHP password_field函数代码示例

本文整理汇总了PHP中password_field函数的典型用法代码示例。如果您正苦于以下问题:PHP password_field函数的具体用法?PHP password_field怎么用?PHP password_field使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了password_field函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: testTextfield

 public function testTextfield()
 {
     $this->assertDomEqual(text_field('post', 'title', $this->post), '<input id="post_title" name="post[title]" size="30" type="text" value="PHP for ever" />');
     $this->assertDomEqual(password_field('post', 'title', $this->post), '<input id="post_title" name="post[title]" size="30" type="password" value="PHP for ever" />');
     $this->assertDomEqual(file_field('post', 'title', $this->post), '<input id="post_title" name="post[title]" type="file" />');
     $this->assertDomEqual(text_field('post', 'title', $this->post, array('size' => 35, 'maxlength' => 35)), '<input id="post_title" name="post[title]" size="35" maxlength="35" type="text" value="PHP for ever" />');
     $this->assertDomEqual(text_field('post', 'title', $this->post, array('index' => 2)), '<input id="post_2_title" name="post[2][title]" size="30" type="text" value="PHP for ever" />');
 }
开发者ID:BackupTheBerlios,项目名称:stato-svn,代码行数:8,代码来源:form_helper.test.php

示例2: display_login_page

function display_login_page()
{
    printf("<form method=\"post\" action=\"%s?action=%d\">\n", script_name(), DISPLAY_ENTRY);
    print "Enter your membership ID number and password,\n";
    print "then select Submit.\n<br /><br />\n";
    print "<table>\n";
    print "<tr>";
    print "<td>Member ID</td><td>";
    text_field("member_id", "", 10);
    print "</td></tr>";
    print "<tr>";
    print "<td>Password</td><td>";
    password_field("password", "", 10);
    print "</td></tr>";
    print "</table>\n";
    submit_button("button", "Submit");
    print "</form>\n";
}
开发者ID:Eric-Shih-Hsuan,项目名称:DB-Interface-Stuff,代码行数:18,代码来源:edit_member.php

示例3: lang

        ?>
</span>
							</div>
					
							<div class="mail-account-item dataBlock">
								<label for="<?php 
        echo $genid;
        ?>
sync_pass">
									<?php 
        echo lang('password');
        ?>
<span class="label_required">*</span>
								</label>
								<?php 
        echo password_field('mailAccount[sync_pass]', array_var($mailAccount_data, 'sync_pass'), array('id' => $genid . 'sync_pass', 'tabindex' => '240'));
        ?>
								<span class="desc"><?php 
        echo lang('mail account password description');
        ?>
</span>
							</div>
					
							<div class="mail-account-item dataBlock">
								<label for="<?php 
        echo $genid;
        ?>
sync_server">
									<?php 
        echo lang('server address');
        ?>
开发者ID:abhinay100,项目名称:fengoffice_app,代码行数:31,代码来源:add_account.php

示例4: add_page_action

    add_page_action(lang('delete'), "javascript:if(confirm('".lang('confirm delete permanently sync')."')) og.openLink('".get_url('event', 'delete_calendar_user')."');", 'ico-delete');
}
?>

<div id="<?php echo $genid ?>sincrhonization" class="adminMailAccounts" style="height: 100%; background-color: white">
    <div class="adminHeader">
        <div class="adminTitle"><?php echo lang('calendar sinchronization') ?></div>
        <div class="adminSeparator"></div>
        <div style="float: left; width: 350px;">
            <form id ="<?php echo $genid ?>submit-sync-form" class="internalForm" action="<?php echo get_url('event', 'add_calendar_user', array('cal_user_id' => array_var($user, 'id'))); ?>" method="post">
                <?php 
                    echo label_tag(lang('account gmail'), $genid . 'auth_user', true);
                    echo text_field('auth_user', array_var($user, 'auth_user'),array('id' => $genid . 'auth_user', 'tabindex' => '1'));

                    echo label_tag(lang('password gmail'), $genid . 'auth_pass', true);
                    echo password_field('auth_pass', array_var($user, 'auth_pass'),array('id' => $genid . 'auth_pass', 'tabindex' => '2'));

                    echo label_tag(lang('sync event feng'), $genid . 'sync');
                    echo checkbox_field('sync', array_var($user, 'sync'), array('id' => $genid.'sync', 'tabindex'=>'3'));
                ?>
                <div style="clear:both"></div> 
                <input id="<?php echo $genid?>related_to" type="hidden" name="related_to" />
                <?php
                  echo button(array_var($user, 'id') ? lang('save changes') : lang('add account'), 's', array('tabindex' => '4', 'onclick' => 'submitCalendar()')); 
                ?>
            </form>
        </div>
        <?php if(count($external_calendars) > 0){?>
        <form class="internalForm" action="<?php echo get_url('event', 'import_calendars'); ?>" method="post">
            <div style="float: left; width: 600px;">
                <fieldset>
开发者ID:Jtgadbois,项目名称:Pedadida,代码行数:31,代码来源:calendar_sinchronization.php

示例5: render

 /**
 * Render form control
 *
 * @param string $control_name
 * @return string
 */
 function render($control_name) {
   return password_field($control_name, $this->getValue(), array('class' => 'middle'));
 } // render
开发者ID:Jtgadbois,项目名称:Pedadida,代码行数:9,代码来源:PasswordConfigHandler.class.php

示例6: label_tag

    <div id="userFormPasswordInputs">
      <div>
        <?php 
    echo label_tag(lang('password'), 'userFormPassword', true);
    ?>
        <?php 
    echo password_field('user[password]', null, array('id' => 'userFormPassword'));
    ?>
      </div>
      
      <div>
        <?php 
    echo label_tag(lang('password again'), 'userFormPasswordA', true);
    ?>
        <?php 
    echo password_field('user[password_a]', null, array('id' => 'userFormPasswordA'));
    ?>
      </div>
    </div>
  </fieldset>
<?php 
}
// if
?>

<?php 
if ($company->isOwner()) {
    ?>
  <div class="formBlock">
    <div>
      <?php 
开发者ID:noxstyle,项目名称:Project-Pier,代码行数:31,代码来源:add_user.php

示例7: password_field

 public function password_field($method, $options = array())
 {
     return password_field($this->objectName, $method, $this->object, $options);
 }
开发者ID:BackupTheBerlios,项目名称:stato-svn,代码行数:4,代码来源:form_builder.php

示例8: show_login

 function show_login($message = '')
 {
     global $_SERVER;
     print body(form($_SERVER['PHP_SELF'], $message . table(row2("Username:", field("username")) . row2("Password:", password_field("password")) . row2('', submit('Log In')))));
 }
开发者ID:nbtscommunity,项目名称:phpfnlib,代码行数:5,代码来源:index.php

示例9: label_tag

   <div id="userFormPasswordInputs">
     <div>
       <?php 
   echo label_tag(lang('password'), 'userFormPassword', true);
   ?>
       <?php 
   echo password_field('user[password]', null, array('id' => 'userFormPassword', 'tabindex' => '900'));
   ?>
     </div>
     
     <div>
       <?php 
   echo label_tag(lang('password again'), 'userFormPasswordA', true);
   ?>
       <?php 
   echo password_field('user[password_a]', null, array('id' => 'userFormPasswordA', 'tabindex' => '1000'));
   ?>
     </div>
   </div>
   <div style="margin-top:10px">
   <label class="checkbox">
   <?php 
   echo checkbox_field('user[send_email_notification]', array_var($user, 'send_email_notification', 1), array('id' => $genid . 'notif', 'tabindex' => '1050'));
   ?>
   <?php 
   echo lang('send new account notification');
   ?>
   </label>
   </div>
 </fieldset>
 <script>
开发者ID:pnagaraju25,项目名称:fengoffice,代码行数:31,代码来源:add_user.php

示例10: lang

  <div>
    <label><?php 
echo lang('confirm delete milestone');
?>
</label>
    <?php 
echo yes_no_widget('deleteMilestone[really]', 'deleteMilestoneReallyDelete', false, lang('yes'), lang('no'));
?>
  </div>
    
  <div>
    <?php 
echo label_tag(lang('password'));
?>
    <?php 
echo password_field('deleteMilestone[password]', null, array('id' => 'loginPassword', 'class' => 'medium'));
?>
  </div>
    
  <?php 
echo submit_button(lang('delete milestone'));
?>
 <a href="<?php 
echo get_url('milestone');
?>
"><?php 
echo lang('cancel');
?>
</a>
</form>
开发者ID:469306621,项目名称:Languages,代码行数:30,代码来源:del_milestone.php

示例11: get_item_input_field

function get_item_input_field($fieldname, $item_attribute_type_r, $item_r, $value = NULL, $dowrap = TRUE, $prompt_mask = NULL, $onchange_event = NULL, $disabled = FALSE)
{
    if (is_array($item_attribute_type_r)) {
        $s_attribute_type = $item_attribute_type_r['s_attribute_type'];
        $order_no = $item_attribute_type_r['order_no'];
        $prompt = $item_attribute_type_r['prompt'];
        $input_type = $item_attribute_type_r['input_type'];
        $compulsory_ind = $item_attribute_type_r['compulsory_ind'];
        $widget['type'] = $item_attribute_type_r['input_type'];
        $widget['args'][0] = $item_attribute_type_r['input_type_arg1'];
        $widget['args'][1] = $item_attribute_type_r['input_type_arg2'];
        $widget['args'][2] = $item_attribute_type_r['input_type_arg3'];
        $widget['args'][3] = $item_attribute_type_r['input_type_arg4'];
        $widget['args'][4] = $item_attribute_type_r['input_type_arg5'];
    }
    if ($item_attribute_type_r['multi_attribute_ind'] == 'Y') {
        $multi_value = TRUE;
        if (!is_array($value)) {
            $old_value = ifempty($value, "");
            unset($value);
            $value[] = $old_value;
        }
    } else {
        $multi_value = FALSE;
        // an array will be a lookup value
        if (!is_array($value)) {
            // Escape all html entities so they are displayed correctly!
            if (strlen($value) > 0) {
                $value = htmlspecialchars($value);
            }
        }
    }
    $field = NULL;
    $field_mask = NULL;
    // Now we have to work out how to parse the input_type
    if ($item_attribute_type_r['input_type'] == 'hidden') {
        return hidden_field($fieldname, $value);
    } else {
        if ($item_attribute_type_r['input_type'] == 'readonly') {
            $field = readonly_field($fieldname, $value);
        } else {
            if ($item_attribute_type_r['input_type'] == 'textarea' || $item_attribute_type_r['input_type'] == 'htmlarea') {
                // arg[0] = rows, arg[1] = cols, arg[2] = length
                $field = textarea_field($fieldname, $prompt, $widget['args']['0'], $widget['args']['1'], $widget['widget']['2'], $compulsory_ind, $value, $onchange_event, $disabled);
            } else {
                if ($item_attribute_type_r['input_type'] == 'text') {
                    // arg[0] = length of field, arg[1] = maxlength of field
                    $field = text_field($fieldname, $prompt, $widget['args']['0'], $widget['args']['1'], $compulsory_ind, $value, $onchange_event, $disabled, $multi_value);
                } else {
                    if ($item_attribute_type_r['input_type'] == 'password') {
                        // arg[0] = length of field, arg[1] = maxlength of field
                        $field = password_field($fieldname, $prompt, $widget['args']['0'], $widget['args']['1'], $compulsory_ind, $value, $onchange_event, $disabled, $multi_value);
                    } else {
                        if ($item_attribute_type_r['input_type'] == 'email') {
                            // arg[0] = length of field, arg[1] = maxlength of field
                            $field = email_field($fieldname, $prompt, $widget['args']['0'], $widget['args']['1'], $compulsory_ind, $value, $onchange_event, $disabled, $multi_value);
                        } else {
                            if ($item_attribute_type_r['input_type'] == 'filtered') {
                                // arg[0] = length of field, arg[1] = maxlength of field, arg[2] = legalChars
                                $field = filtered_field($fieldname, $prompt, $widget['args']['0'], $widget['args']['1'], $widget['args']['2'], $compulsory_ind, $value, $onchange_event, $disabled, $multi_value);
                            } else {
                                if ($item_attribute_type_r['input_type'] == 'datetime') {
                                    // arg[0] = datetime mask, arg[1] = auto_datetime
                                    $field = datetime_field($fieldname, $prompt, ifempty($widget['args']['0'], 'DD/MM/YYYY'), $widget['args']['1'], $compulsory_ind, $value, $onchange_event, $disabled, $multi_value);
                                } else {
                                    if ($item_attribute_type_r['input_type'] == 'number') {
                                        // arg[0] = length of field, arg[0] = maxlength of field
                                        $field = number_field($fieldname, $prompt, $widget['args']['0'], $widget['args']['0'], $compulsory_ind, $value, $onchange_event, $disabled, $multi_value);
                                    } else {
                                        if ($item_attribute_type_r['input_type'] == 'simple_checkbox') {
                                            // arg[0] = checked
                                            $field = checkbox_field($fieldname, $prompt, strcasecmp(trim($widget['args']['0']), 'CHECKED') === 0, $value, $onchange_event, $disabled);
                                        } else {
                                            if ($item_attribute_type_r['input_type'] == 'checkbox') {
                                                // arg[0] = checked, arg[1] = unchecked
                                                $field = enhanced_checkbox_field($fieldname, $prompt, $widget['args']['0'], $widget['args']['1'], $value, $onchange_event, $disabled);
                                            } else {
                                                if ($item_attribute_type_r['input_type'] == 'checkbox_grid') {
                                                    $lookup_results = fetch_attribute_type_lookup_rs($s_attribute_type, 'order_no, ' . get_lookup_order_by($widget['args']['0']) . ' ASC');
                                                    if ($lookup_results) {
                                                        //arg[0] = display_mask, arg[1] = orientation
                                                        $field = checkbox_grid($fieldname, $lookup_results, $widget['args']['0'], $widget['args']['1'], $value, $disabled);
                                                    }
                                                } else {
                                                    if ($item_attribute_type_r['input_type'] == 'radio_grid') {
                                                        $lookup_results = fetch_attribute_type_lookup_rs($s_attribute_type, 'order_no, ' . get_lookup_order_by($widget['args']['0']) . ' ASC');
                                                        if ($lookup_results) {
                                                            //arg[0] = display_mask, arg[1] = orientation
                                                            $field = radio_grid($fieldname, $lookup_results, $widget['args']['0'], $widget['args']['1'], $value, $disabled);
                                                        }
                                                    } else {
                                                        if ($item_attribute_type_r['input_type'] == 'value_radio_grid') {
                                                            //arg[0] = "comma delimited list of values"
                                                            $field = value_radio_grid($fieldname, explode(',', $widget['args']['0']), $value, $disabled);
                                                        } else {
                                                            if ($item_attribute_type_r['input_type'] == 'single_select') {
                                                                $lookup_results = fetch_attribute_type_lookup_rs($s_attribute_type, 'order_no, ' . get_lookup_order_by($widget['args']['0']) . ' ASC');
                                                                if ($lookup_results) {
                                                                    //arg[0] = display mask, arg[1] = max value length
                                                                    $field = single_select($fieldname, $lookup_results, $widget['args']['0'], $widget['args']['1'], $value, $onchange_event, $disabled);
//.........这里部分代码省略.........
开发者ID:horrabin,项目名称:opendb,代码行数:101,代码来源:inputfields.php

示例12: closedir

    closedir($handle);
}
?>
          </select>
        </li>
     </ul>
    </div>
  </div>
  <div class="right">
    <div id="loginPasswordDiv">
      <label for="loginPassword"><?php 
echo lang('password');
?>
:</label>
      <?php 
echo password_field('login[password]', null, array('id' => 'loginPassword', 'class' => 'medium', 'tabindex' => 2));
?>
    </div>
    <div id="loginSubmit"><?php 
echo submit_button(lang('login'), null, array('tabindex' => 3));
?>
</div>
    <div id="options2" class="hidden">
      <ul>
        <li id="loginClearCookies"><a href="<?php 
echo get_url('access', 'clear_cookies');
?>
"><?php 
echo lang('clear cookies');
?>
</a></li>
开发者ID:bahmany,项目名称:PythonPurePaperless,代码行数:31,代码来源:login1.php

示例13: lang

  <div>
    <label><?php 
echo lang('confirm delete revision');
?>
</label>
    <?php 
echo yes_no_widget('deleteFileRevision[really]', 'deleteFileRevisionReallyDelete', false, lang('yes'), lang('no'));
?>
  </div>
    
  <div>
    <?php 
echo label_tag(lang('password'));
?>
    <?php 
echo password_field('deleteFileRevision[password]', null, array('id' => 'loginPassword', 'class' => 'medium'));
?>
  </div>
    
  <?php 
echo submit_button(lang('delete file revision'));
?>
 <a href="<?php 
echo $revision->getDetailsUrl();
?>
"><?php 
echo lang('cancel');
?>
</a>
</form>
开发者ID:ukd1,项目名称:Project-Pier,代码行数:30,代码来源:del_revision.php

示例14: label_tag

        <div id="userFormPasswordInputs">
          <div>
            <?php 
    echo label_tag(lang('password'), 'userFormPassword', true);
    ?>
            <?php 
    echo password_field('contact[user][password]', null, array('id' => 'userFormPassword'));
    ?>
          </div>

          <div>
            <?php 
    echo label_tag(lang('password again'), 'userFormPasswordA', true);
    ?>
            <?php 
    echo password_field('contact[user][password_a]', null, array('id' => 'userFormPasswordA'));
    ?>
          </div>
        </div>
      </fieldset>

      <div class="formBlock">
        <?php 
    echo label_tag(lang('send new account notification'), null, true);
    ?>
        <?php 
    echo yes_no_widget('contact[user][send_email_notification]', 'userFormEmailNotification', array($user_data, 'send_email_notification'), lang('yes'), lang('no'));
    ?>
        <br /><span class="desc"><?php 
    echo lang('send new account notification desc');
    ?>
开发者ID:bahmany,项目名称:PythonPurePaperless,代码行数:31,代码来源:add_contact.php

示例15: value_select

/**
    boolean - TRUE or FALSE only
    text - arbritrary text
    textarea - arbritrary text
    email - email address
    number - enforce a numeric value
    datemask - enforce a date mask.
    usertype - Restrict to a single user type only.
    usertype_array - Restrict to set of user types only.
    value_select(option1,option2)
    array - keys will be numeric and in sequence only.
*/
function get_group_block_input_field($config_group_item_r, $value)
{
    // replace period with '$', so we can avoid PHP auto-replacing '.' with '_' and the
    // confusion that will bring.
    $config_group_item_r['group_id'] = str_replace('.', '$', $config_group_item_r['group_id']);
    $fieldname = $config_group_item_r['group_id'] . '[' . $config_group_item_r['id'] . ']';
    if ($config_group_item_r['keyid'] != '0') {
        $fieldname .= '[' . $config_group_item_r['keyid'] . ']';
    }
    switch ($config_group_item_r['type']) {
        case 'boolean':
            return checkbox_field($fieldname, $config_group_item_r['prompt'], $value !== NULL && $value === TRUE, 'TRUE');
            break;
        case 'readonly':
            return readonly_field($fieldname, htmlspecialchars($value));
            break;
        case 'text':
            return text_field($fieldname, $config_group_item_r['prompt'], 50, 255, 'N', htmlspecialchars($value));
            break;
        case 'password':
            return password_field($fieldname, $config_group_item_r['prompt'], 50, 255, 'N', htmlspecialchars($value));
            break;
        case 'textarea':
            return textarea_field($fieldname, $config_group_item_r['prompt'], 50, 5, 255, 'N', htmlspecialchars($value));
            break;
        case 'email':
            return email_field($fieldname, $config_group_item_r['prompt'], 50, 255, 'N', htmlspecialchars($value));
            break;
        case 'number':
            return number_field($fieldname, $config_group_item_r['prompt'], 10, 50, 'N', htmlspecialchars($value));
            break;
        case 'datemask':
            return text_field($fieldname, $config_group_item_r['prompt'], 50, 255, 'N', htmlspecialchars($value));
            break;
        case 'instance_attribute_type':
            return custom_select($fieldname, fetch_instance_attribute_type_rs(), '%s_attribute_type% - %description%', 1, $value, 's_attribute_type');
            break;
        case 'language':
            return custom_select($fieldname, fetch_language_rs(), '%language%', 1, $value, 'language', NULL, 'default_ind');
            break;
        case 'theme':
            return custom_select($fieldname, get_user_theme_r(), '%value%', 1, $value);
            break;
        case 'export':
            return custom_select($fieldname, array_merge(array(''), get_export_r()), '%value%', 1, $value);
            break;
        case 'value_select':
            $value_options_r = explode(',', $config_group_item_r['subtype']);
            return value_select($fieldname, $value_options_r, 1, $value);
            break;
        case 'array':
            $buffer = '';
            switch ($config_group_item_r['subtype']) {
                case 'text':
                case 'number':
                    $element_name = $config_group_item_r['group_id'] . "[" . $config_group_item_r['id'] . "][]";
                    $buffer .= "<select name=\"" . $element_name . "\" size=\"5\" MULTIPLE>\n";
                    if (is_array($value)) {
                        reset($value);
                        while (list($key, $val) = each($value)) {
                            $buffer .= "<option value=\"" . $val . "\" SELECTED>" . $val . "\n";
                        }
                    }
                    $buffer .= "</select>";
                    $buffer .= "<ul class=\"actionButtons\">";
                    $buffer .= "<li><input type=\"button\" class=\"button\" value=\"Edit\" onClick=\"updateSelectedOption(this.form['" . $element_name . "'], '" . $config_group_item_r['prompt'] . "', '" . $config_group_item_r['subtype'] . "');\"></li>";
                    $buffer .= "<li><input type=\"button\" class=\"button\" value=\"Add\" onClick=\"addSelectOption(this.form['" . $element_name . "'], '" . $config_group_item_r['prompt'] . "', '" . $config_group_item_r['subtype'] . "');\"></li>";
                    $buffer .= "<li><input type=\"button\" class=\"button\" value=\"Delete\" onClick=\"removeSelectedOption(this.form['" . $element_name . "']);\"></li>";
                    $buffer .= "</ul>";
                    break;
            }
            return $buffer;
    }
    //else
    return '>>> ERROR <<<';
}
开发者ID:horrabin,项目名称:opendb,代码行数:88,代码来源:index.php


注:本文中的password_field函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。