<?php /* @var $this Controller */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="language" content="en" />

        <!-- blueprint CSS framework -->
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/screen.css" media="screen, projection" />
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/print.css" media="print" />
        <!--[if lt IE 8]>
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/ie.css" media="screen, projection" />
        <![endif]-->

        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/main.css" />
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css" />

        <?php echo Yii::app()->bootstrap->init(); ?>

        <title><?php echo 'ID Search' ?></title>

    </head>

    <body>

        <div class="container" id="page">

            <div id="header">
                <div id="logo"><?php // echo CHtml::encode(Yii::app()->name);           ?></div>
                                <div class="form">
                    <?php
                    $model = new User();
                    $form = $this->beginWidget('CActiveForm', array(
                        'id' => 'my-search-form',
                        'action' => array('user/indexsearch'),
                        'enableClientValidation' => true,
                        'clientOptions' => array(
                            'validateOnSubmit' => true,
                        ),
                    ));
                    ?>

                    <div class="row-fluid">
                        <div class="span6"></div>
                        <div class="span6">
                            <div class="row-fluid">
                                <div class="span4"><label style="font-size: 18px;
                                                          font-weight: lighter;
                                                          margin-top: 8px;">Enter Phone Number :</label></div>
                                <div class="span5">
                                    <?php //echo $form->labelEx($model, 'phone'); ?>
                                    <?php echo $form->textField($model, 'phone'); ?>
                                    <?php echo $form->error($model, 'phone'); ?>
                                </div>
                                <div class="span3 pull-right">
                                    <?php
                                    $this->widget(
                                            'bootstrap.widgets.TbButton', array(
                                        'label' => 'Search',
                                        'type' => 'primary',
                                        'buttonType' => 'submit',
                                            )
                                    );
//echo CHtml::submitButton('Search'); 
                                    ?>
                                </div>
                            </div>
                        </div>

                    </div>

                    <?php $this->endWidget(); ?>
                </div>

<!--                <div class="row">
                    <div class="span5"></div>
                    <div class="span3">
                        <label><h5> Enter Phone Number (login):</h5></label>
                    </div>
                    <div class="span4">

                        <input type="text" name="phonesearch" id="phonesearch" placeholder="Enter Phone Number (login):"></input>
                        <?php
//                        $this->widget(
//                                'bootstrap.widgets.TbButton', array(
//                            'label' => 'Search',
//                            'type' => 'secondary',
//                                )
//                        );
                        ?>
                    </div>
                </div> header -->

                <div id="mainmenu">
                    <?php
                    $this->widget('bootstrap.widgets.TbMenu', array(
                        'type' => 'tabs', // '', 'tabs', 'pills' (or 'list')
                        'stacked' => false, // whether this is a stacked menu
                        'items' => array(
                            //array('label' => 'Home', 'url' => array('/site/index/'), 'active' => true),
                            //array('label' => 'Contact', 'url' => array('/site/contact')),
                            array('label' => 'Login', 'url' => array('/site/login'), 'visible' => Yii::app()->user->isGuest),
                        //array('label' => 'Logout (' . Yii::app()->user->name . ')', 'url' => array('/site/logout'), 'visible' => !Yii::app()->user->isGuest)
                        ),
                    ));
                    ?>
                </div><!-- mainmenu -->
                <?php if (isset($this->breadcrumbs)): ?>
                    <?php
                    $this->widget('zii.widgets.CBreadcrumbs', array(
                        'links' => $this->breadcrumbs,
                    ));
                    ?><!-- breadcrumbs -->
                <?php endif ?>

                <?php echo $content; ?>

                <div class="clear"></div>

                <!--            <div id="footer">
                                Copyright &copy; <?php echo date('Y'); ?> by My Company.<br/>
                                All Rights Reserved.<br/>
                <?php // echo Yii::powered();   ?>
                            </div> footer -->

            </div><!-- page -->

    </body>
</html>
<style>
    .btn{
        margin-bottom: 10px;
    }
    h5 {
        float: right;
        font-size: 14px;
        margin-top: 2px;
    }

</style>