Goutham_1 0 Newbie Poster

I have a new button in the view. I want to make it look in similar style like view/delete button. please help me.

<!--Content-->
<?php $details=$details;
?>
<h3><?php echo $name; ?></h3>
<div id="content">
<?php $form=$this->beginWidget('CActiveForm', array(
    'id'=>'nimsoft-host-form',
    //'enableAjaxValidation'=>true,
        'enableClientValidation' => true,
        'clientOptions' => array(
            'validateOnSubmit' => true,
            'validateOnChange' => true, // allow client validation for every field
         ), 
        'htmlOptions' => array('enctype' => 'multipart/form-data'),
)); ?>
        <?php $this->endWidget();?>
    <h3><?php echo htmlspecialchars($title); ?></h3>
    <h3><?php echo $title; ?></h3>
   <div style="padding: 10px;">
        <a href="<?php echo $this->createUrl('/Nimsoft/create?id='.$details->host_customer_id);?>" title="Create New Host" class="btn btn-primary circle_ok" style="text-decoration: none;" >Add New Host to Customer</a>
    <div style="float:right">
                         <?php
                            echo CHtml::link('Upload Customer CSV', array('/Nimsoft/uploadCustomers?id='.$details->host_customer_id), array(
                            'onclick'=>'return hs.htmlExpand(this, { objectType: "iframe", wrapperClassName: "full-size", align: "center" } )',
                            'class'=>'btn btn-primary',
                            'id'=>'upload_link',
                            ));
                         ?>                          
                     </div>
    <div class="innerLR">
        <div class="row-fluid">
<?php 

$obj=$this->widget('zii.widgets.grid.CGridView', array(
    'dataProvider'=>$dataProvider,


    //'afterAjaxUpdate'=>'\'changeTRColor()\'',
    //'itemView'=>'_view',
    'columns'=>array(

                array(            // display 'create_time' using an expression
                            'name'=>'name',
                                            'value'=>'$data->host_name',
                ),
                array(
                            'name'=>'serviceId',
                            'value'=>'$data->host_serviceid',
                ),
                                array(
                            'name'=>'Status',
                            'value'=>'$data->status',
                ),
                array(
                                    'class'=>'CButtonColumn',
                                    'template'=>'{edit_date}{view}{update}{delete}',
                                    'buttons' => array(
                                        'htmlOptions' => array('style'=>'width:80px'),
                                           'edit_date' => array( //the name {reply} must be same
                                             'label' => 'Edit Date', // text label of the button
                                               'url' => Yii::app()->createUrl("Nimsoft/Add_date", array("id"=>$data->host_id)), //Your URL According to your wish
                                                  'imageUrl' => Yii::app()->baseUrl.'/images/add2.jpg',  // image URL of the button. If not set or false, a text link is used, The image must be 16X16 pixels
                                               'options'=>array(

                                                   'class'=>'grid-view-edit_date',
                                                   )
                                               ),
                                           ),)
                ),

)); 

?>

   </div>

<html lang="en">
<head>
  <meta charset="utf-8">

</head>
<body>

</body>
</html>

        <div class="separator bottom"></div>
    </div>
</div>
<!-- // Content END -->
<div class="clearfix"></div>
<!-- // Sidebar menu & content wrapper END -->

<div id="footer" class="hidden-print">
<?php $this->renderPartial('application.views.layouts._footer_inc');  ?>
</div>
</div>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.