$openid_identifier = array('name' => 'openid_identifier', 'id' => 'openid_identifier', 'size' => 40);
?>

<h3><?php 
echo lang('sg_user_identities');
?>
</h3>

<?php 
echo $this->table->generate();
?>

<?php 
if ($uuid == $this->sg_auth->get_uuid()) {
    ?>

<?php 
    if (!$has_facebook) {
        generate_facebook_auth("{$site_url}/user/identities/" . $uuid . '/add_facebook');
    }
    ?>

<?php 
    if (!$has_openid) {
        openid_identifier_render("Add OpenID", "{$site_url}/user/identities/" . $uuid . '/add_openid', "Add");
    }
    ?>

<?php 
}
<?php

$username = array('name' => 'username', 'id' => 'username', 'size' => 30, 'value' => set_value('username'), 'title' => 'register_username');
$password = array('name' => 'password', 'id' => 'password', 'size' => 30, 'value' => set_value('password'));
$confirm_password = array('name' => 'confirm_password', 'id' => 'confirm_password', 'size' => 30, 'value' => set_value('confirm_password'));
$email = array('name' => 'email', 'id' => 'email', 'maxlength' => 80, 'size' => 30, 'value' => set_value('email'), 'title' => 'register_email');
$openid_identifier = array('name' => 'openid_identifier', 'id' => 'openid_identifier', 'size' => 40, 'title' => 'register_openid');
?>

<?php 
generate_facebook_auth("{$site_url}/auth/register_facebook");
?>

<?php 
openid_identifier_render(lang('sg_auth_register_login'), "{$site_url}/auth/register_openid", "Register");
?>

<fieldset><legend><?php 
echo lang('sg_register');
?>
</legend>
<?php 
echo form_open($this->uri->uri_string());
?>

<dl>
    <dt><?php 
echo form_label(lang('sg_name'), $username['id']);
?>
</dt>
    <dd>
示例#3
0
<?php

$username = array('name' => 'username', 'id' => 'username', 'size' => 30, 'value' => set_value('username'));
$password = array('name' => 'password', 'id' => 'password', 'size' => 30);
$remember = array('name' => 'remember', 'id' => 'remember', 'value' => 1, 'checked' => set_value('remember'), 'style' => 'margin:0;padding:0');
$confirmation_code = array('name' => 'captcha', 'id' => 'captcha', 'maxlength' => 8);
$openid_identifier = array('name' => 'openid_identifier', 'id' => 'openid_identifier', 'size' => 40);
?>

<?php 
generate_facebook_auth("{$site_url}/auth/login_facebook");
?>

<?php 
openid_identifier_render(lang('sg_auth_openid_login'), "{$site_url}/auth/login_openid", "Login");
?>

<fieldset><legend><?php 
lang('sg_login');
?>
</legend>
<?php 
echo form_open($this->uri->uri_string());
?>

<dl>
    <dt><?php 
echo form_label(lang('sg_name'), $username['id']);
?>
</dt>
    <dd>