Example #1
0
?>
 (<?php 
echo anchor('usercp/change_world', lang('general_change'));
?>
)</p>
    
    <a id="link_add" href="<?php 
echo Tw_import::get_tw_base_host($this->User->selected_world);
?>
external_auth.php?sid=<?php 
echo $this->User->selected_world;
?>
|<?php 
echo $this->User->api_hash;
?>
&client=dsconn">
        <?php 
echo ui_ficon('link_add', lang('accounts_connect_new_account'));
?>
 
        <?php 
echo lang('accounts_connect_new_account');
?>
    </a>
    <?php 
echo ui_button("link_add");
?>
</div>

<?php 
$this->load->view("basic/footer");
Example #2
0
    ?>
    <br />
    <?php 
    echo form_textarea('comment', '', 'id="comment"');
    ?>
    <br />
    <button id="commentBtn">
        <?php 
    echo lang('general_save');
    ?>
        <?php 
    echo ui_loadicon();
    ?>
    </button>
    <?php 
    echo ui_button("commentBtn");
    ?>
    <?php 
    echo form_close();
    ?>
    <?php 
}
?>
</div>

<?php 
echo ui_ajax_post_form('comment_form', 'loadimg', '
    var nD = $("<div>").html(resp.bit);
    
    $("#commentboard").prepend(
        nD
Example #3
0
echo form_textarea('note');
?>
            
            <h3></h3>
            
            <button id="addBtn">
                <?php 
echo ui_ficon('add');
?>
                <?php 
echo lang('attack_tab_add');
?>
            </button>
            
            <?php 
echo ui_button('addBtn');
?>
            
            <?php 
echo form_close();
?>
        </div>
        
        <div id="tab-wizard">
            <?php 
if ($wiz_step == 1) {
    ?>
            <?php 
    echo ui_msgbox(lang('attack_wizard_info'));
    ?>
            <?php 
/**
 * All the buttons within a button pane will have the onhover effect
 * @param <type> $htmlProperties Html attributes and properties
 * @param <type> $tag The tag for the button pane
 * @return <type>
 */
function ui_button_pane_init($type, $buttons = array(), $htmlProperties = '', $tag = 'div')
{
    $pattern = '<%s class="%s" %s>';
    if ($type == 'single') {
        $defaultClass = 'fg-buttonset fg-buttonset-single ui-helper-clearfix';
    } elseif ($type == 'multiple') {
        $defaultClass = 'fg-buttonset fg-buttonset-multi';
    } else {
        $defaultClass = 'fg-buttonset';
    }
    $defaultClass = isset($buttons['class']) ? $defaultClass . ' ' . $buttons['class'] : $defaultClass;
    $pattern = sprintf($pattern, $tag, $defaultClass, $htmlProperties);
    if (is_array($buttons)) {
        $size = sizeof($buttons);
        $i = 0;
        foreach ($buttons as $id => $button) {
            $button['id'] = isset($button['id']) ? $button['id'] : $id;
            if ((int) $size == 1 || $type == 'none') {
                $button['corner'] = isset($button['corner']) ? $button['corner'] : 'all';
            }
            if ($i == 0) {
                $button['corner'] = isset($button['corner']) ? $button['corner'] : 'left';
            }
            if (++$i == $size) {
                $button['corner'] = isset($button['corner']) ? $button['corner'] : 'right';
            }
            if (isset($button['buttonType']) && strtolower($button['buttonType']) == 'button') {
                $pattern .= ui_button($button);
            } else {
                $pattern .= ui_link_button($button);
            }
        }
    }
    return $pattern;
}
Example #5
0
<?php 
echo add_jquery_support('#lnkBtnId', 'click', 'linkEnableAndDisableToggleFunction');
echo add_jquery_support('#btnId', 'click', like_function('alert("Ui button")'));
?>

<?php 
echo ui_link_button(array('value' => 'Link button', 'id' => 'lnkBtnId'));
?>

<br><br><br>


BUTTON:
<br>
<?php 
echo ui_button(array('value' => 'Button', 'id' => 'btnId'));
?>

<br><br>
Enable & Disable the buttons
<br>

<?php 
echo ui_link_button(array('value' => 'Enable Link button', 'id' => 'enableLnkBtnId'));
echo ui_link_button(array('value' => 'Disable Link button', 'id' => 'disablelnkBtnId'));
?>

<?php 
echo ui_link_button(array('value' => 'Enable button', 'id' => 'enableBtnId'));
echo ui_link_button(array('value' => 'Disable button', 'id' => 'disableBtnId'));
?>
Example #6
0
 <?php 
echo lang('signup_repeat');
?>
</label>:
        <?php 
echo form_password(array('id' => 'password2', 'name' => 'password2'));
?>
 <br />
    
    <?php 
echo lang('general_email', 'email');
?>
: 
        <?php 
echo form_input(array('id' => 'email', 'name' => 'email', 'value' => set_value('email')));
?>
 <br />
        
    <?php 
echo form_submit('signup', lang('general_signup'), 'id=signupbtn');
?>
    <?php 
echo ui_button('signupbtn');
?>
    <?php 
echo form_close();
?>
</div>

<?php 
$this->load->view("basic/footer");
Example #7
0
<div id="intro_div">
    <h1><?php 
echo lang('intro_welcome');
?>
</h1>
    
    <h2><?php 
echo lang('intro_what_is');
?>
</h2>
    
    <p><?php 
echo lang('intro_what_is_text');
?>
</p>
    
    <a href="<?php 
echo site_url('usercp/signup');
?>
" id="signupBtn"><?php 
echo lang('intro_signup_now');
?>
</a>
    <?php 
echo ui_button('signupBtn');
?>
</div>

<?php 
$this->load->view("basic/footer");
Example #8
0
                        <?php 
echo lang("messageboard_visible_world", 'vworld');
?>
                            <input type="radio" name="visible" value="world" id="vworld" checked="checked" />
                        <?php 
echo lang("messageboard_visible_ally", 'vally');
?>
                            <input type="radio" name="visible" value="ally" id="vally" />
                        <?php 
echo lang("messageboard_visible_me", 'vme');
?>
                            <input type="radio" name="visible" value="me" id="vme" />
                        </div>
                    
                    <?php 
echo ui_button("new_status_btn");
?>
                    <?php 
echo form_close();
?>
                </div>
                
                <script type="text/javascript">
                var defaultText = '<?php 
echo addslashes(lang('messageboard_whats_happening'));
?>
';
                
                $(function() {
                    TWUtils.msgBoard_since = '<?php 
echo time();
Example #9
0
?>
    <?php 
echo lang('attack_desc', 'desc');
?>
: 
    <?php 
echo form_input('desc', '', 'id="desc" style="width:200px;"');
?>
    <button id="createBtn">
        <?php 
echo ui_ficon('table_add');
?>
    </button>
    
    <?php 
echo ui_button('createBtn');
?>
    <?php 
echo form_close();
?>
    
    
    <h3><?php 
echo lang('attack_own_plans');
?>
</h3>
    <table>
        <tr>
            <th><?php 
echo lang('attack_id');
?>
Example #10
0
echo form_input(array('id' => 'username', 'name' => 'username'));
?>
 <br />
    <?php 
echo lang('general_password', 'password');
?>
: 
        <?php 
echo form_password(array('id' => 'password', 'name' => 'password'));
?>
 <br />
    <?php 
echo form_submit('login', lang('general_login'), 'id=loginbtn');
?>
    <?php 
echo ui_button('loginbtn');
?>
 <a href="<?php 
echo site_url('usercp/password');
?>
">&raquo; <?php 
echo lang('general_forgot_password');
?>
</a>
    <?php 
echo form_close();
?>
</div>

<?php 
$this->load->view("basic/footer");
Example #11
0
?h=<?php 
    echo md5(microtime(true));
    ?>
" alt="img" />
        
    <?php 
    echo lang('password_captcha', 'captcha');
    ?>
: 
        <?php 
    echo form_input(array('id' => 'captcha', 'name' => 'captcha'));
    ?>
 <br />
    
    <?php 
    echo form_submit('recover', lang('password_ok'), 'id=recoverbtn');
    ?>
    <?php 
    echo ui_button('recoverbtn');
    ?>
        
    <?php 
    echo form_close();
    ?>
     <?php 
}
?>
</div>

<?php 
$this->load->view("basic/footer");