Exemple #1
0
    }
    
    \$.ajax({
        url: "{$settingsAjaxUrl}?name=spam",
        data: data,
        type: 'post',
        dataType: 'html',
        success: success
    });
});
SCRIPT;
$this->registerJs($script, View::POS_END, 'update-spam');
?>

<?php 
echo Html::checkbox('spam_enabled', SettingsHelper::enabled('spam'), ['id' => 'spam_enabled']);
?>
 <strong>Spam Filter</strong>

<hr />

<h4>Daftar kata-kata spam</h4>

<?php 
echo Html::textarea('spam_words', SettingsHelper::getSpamList('words', true), ['id' => 'spam_words', 'rows' => 6, 'cols' => 150]);
?>

<br />
<a href="#" id="update_spam_words" class="btn btn-info">Update Spam Words</a>

<hr />
Exemple #2
0
<?php

use yii\helpers\Html;
use app\components\SettingsHelper;
use yii\helpers\Url;
use yii\web\View;
echo Html::checkbox('scheduling_enabled', SettingsHelper::enabled('scheduling'), ['id' => 'scheduling_enabled']);
?>
 <strong>Message Scheduling</strong>

<hr />
Exemple #3
0
<?php

use yii\helpers\Html;
use app\components\SettingsHelper;
use yii\helpers\Url;
use yii\web\View;
echo Html::checkbox('auto_reply_enabled', SettingsHelper::enabled('auto_reply'), ['id' => 'auto_reply_enabled']);
?>
 <strong>Auto Reply</strong>

<hr />