/** * Creates markup required for the current mode. */ public function createMarkup() { list($name,$id)=$this->resolveNameID(); $this->htmlOptions["name"]= $name; $this->htmlOptions["id"]= $id; if(!$this->hasModel()) { $this->htmlOptions["value"]= $this->getValue(); } else { $this->htmlOptions["value"]= $this->model->{$this->attribute} != "" ? $this->model->{$this->attribute} : $this->getValue(); } $this->htmlOptions["style"]= "width:".($this->getWidth()-13)."px"; $this->htmlOptions["class"]= "textfield"; $this->htmlOptions["readonly"]= "true"; $field = $this->hasModel() ? Chtml::activeTextField($this->model,$this->attribute,$this->htmlOptions) : Chtml::TextField($this->name,$this->getValue(),$this->htmlOptions); ?> <script> var <?php echo $id."_list"?> = new Array(); <?php if (count($this->_list) > 0) { ?> <?php foreach ($this->_list as $i=>$v) { ?> <?php echo $id."_list"?>.push('<?php echo addslashes($v)?>'); <?php } }?> </script> <div class='spinner' style="height:<?php echo $this->getHeight()?>px"> <table cellspacing=0 cellpadding=0 align="left"> <tr> <td rowspan='2'> <?php echo $field ?> </td> <td class="button_up" style="background-color:<?php echo $this->bgColor?>" onmousedown="javascript:setMouseDown('up','<?php echo $id?>','<?php echo $this->_type?>', <?php echo $id."_list"?> ,<?php echo "0"?>,<?php echo "0"?>, <?php echo "0"?>,<?php echo $this->getDelay()?>, '<?php echo $this->getAcceleration()?>');" onmouseup="setMouseUp();" onmouseout="setMouseUp();"> </td> </tr> <tr> <td class="button_down" style="background-color:<?php echo $this->bgColor?>" onmousedown="javascript:setMouseDown('down','<?php echo $id?>','<?php echo $this->_type?>', <?php echo $id."_list"?>, <?php echo "0"?>,<?php echo "0"?>, <?php echo "0"?>,<?php echo $this->getDelay()?>, '<?php echo $this->getAcceleration()?>')" onmouseup="setMouseUp();" onmouseout="setMouseUp();"> </td> </tr> </table> <span class="text"><?php echo $this->text?></span> </div> <? }
<span class="chatboxuser"><?php echo $user; ?> </span> </div> <div class="chatboxmain"> <div class="chatboxmess"> </div> <div class="chatboxinput"> <?php echo Chtml::hiddenField('username', $user); ?> <?php echo Chtml::TextField('chatboxmessage', '', array('class' => "chatboxmessage", ' size' => '20', 'maxlength' => '100')); ?> <a href="#" class="chatboxsend">Send</a> </div> </div> </div> <div class="chatboxbtn <?php echo $options['float']; ?> " title="Open <?php echo $options['title']; ?> "> </div>