Example #1
0
        } else {
            sendChatMsg();
        }
        break;
    case "setroom":
        setRoom($out, $lang);
        break;
}
if (!isset($_SESSION["refreshrate"])) {
    $_SESSION["refreshrate"] = 0;
}
checkLogin(false);
// Auto-reload is off in accessibility mode
//--debug:--// echo("<pre>"); print_r($_SESSION); echo("</pre>");
$out->add("\n<div class=\"chatText\">");
$out->add(getMsgBuffer($lang, 25));
$out->add("</div>\n");
$out->add(listUsers($out, $lang));
$out->add(listRooms($out, $lang));
$out->add("\n<div class=\"nofloat\">&nbsp;</div>\n");
$out->add(getWriteBox($out, $lang));
$backurl = getBackUrl();
if (!empty($backurl)) {
    $out->add("\n<noscript>\n");
    $out->add("<a href=\"" . $backurl . "\">");
    $out->add($lang->def("_BACK") . "</a>\n");
    $out->add("\n</noscript>\n");
}
// -------------------------------------------------------------------
require_once dirname(__FILE__) . "/footer.php";
// -------------------------------------------------------------------
Example #2
0
<div class="iform">
<?php 
$form = $this->beginWidget('CActiveForm', array('id' => 'article-form', 'enableAjaxValidation' => false, 'htmlOptions' => array('class' => 'article_ajax_form')));
?>
  <input type="hidden" value="<?php 
echo getBackUrl();
?>
" name="back_url" />

  <?php 
echo $this->renderPartial('//layouts/flash');
?>

	<?php 
echo $form->errorSummary($model);
?>
		  
	
  <table class='w100S'>
    <thead>
      <tr>
        <td colspan="2" class="pl8P" style="border: none">
  		      <?php 
echo CHtml::submitButton($model->isNewRecord ? Yii::t('cp', 'Create') : Yii::t('cp', 'Save'), array('class' => 'isubmit'));
?>
          <span class="note"><?php 
echo Yii::t('cp', 'Fields with * are required.');
?>
</span>
        </td>
      </tr>