Exemple #1
0
/css/checkin.css" />
	<link rel="stylesheet" type="text/css" href="<?php 
echo Yii::app()->request->baseUrl;
?>
/css/form.css" />
	<link rel="stylesheet" type="text/css" href="<?php 
echo Yii::app()->request->baseUrl;
?>
/css/jquery-ui.css" />

	<?php 
echo CGoogleApi::init();
?>
	 
	<?php 
echo CHtml::script(CGoogleApi::load('jquery', '1.4') . "\n" . CGoogleApi::load('jqueryui', '1.8') . "\n");
?>

	<title><?php 
echo CHtml::encode($this->pageTitle);
?>
</title>
</head>

<body class="settings">

<div class="container" id="page">
	<div id="dialog">
		<?php 
echo $content;
?>
Exemple #2
0
<?php

echo CGoogleApi::init();
//echo CHtml::script(CGoogleApi::load('jquery', '1.4.2'));
echo CHtml::script(CGoogleApi::load("jqueryui", "1.8.2"));
Yii::app()->clientScript->registerScriptFile(Yii::app()->request->baseUrl . '/js/jquery.dynotable.js');
?>
<script type="text/javascript">
    $(document).ready(function(){
        $('#t1').dynoTable();

        /*
         * dynoTable configuration options
         * These are the options that are available with their default values
         */
        $('#t1').dynoTable({
            removeClass: '.row-remover',        //class for the clickable row remover
            cloneClass: '.row-cloner',          //class for the clickable row cloner
            addRowTemplateId: '#add-template',  //id for the "add row template"
            addRowButtonId: '#add-row',         //id for the clickable add row button, link, etc
            lastRowRemovable: true,             //If true, ALL rows in the table can be removed, otherwise there will always be at least one row
            orderable: true,                    //If true, table rows can be rearranged
            dragHandleClass: ".drag-handle",    //class for the click and draggable drag handle
            insertFadeSpeed: "slow",            //Fade in speed when row is added
            removeFadeSpeed: "fast",            //Fade in speed when row is removed
            hideTableOnEmpty: true,             //If true, table is completely hidden when empty
            onRowRemove: function(){
                //Do something when a row is removed
            },
            onRowClone: function(){
                //Do something when a row is cloned