<?php /** * CommonPlugin for phplist. * * This file is a part of CommonPlugin. * * @category phplist * * @author Duncan Cameron * @copyright 2011-2018 Duncan Cameron * @license http://www.gnu.org/licenses/gpl.html GNU General Public License, Version 3 */ /** * Template for the attribute search and select widget form. */ /** * Available fields * - $showSearch: whether to show the search fields * - $model: the model * searchTerm: term to search on * searchBy: attribute to search on * attributes: associative array of user attributes * listID: selected list to filter * lists: associative array of lists * selectedAttrs: array of selected attributes * unconfirmed: show only unconfirmed users * blacklisted: show only blacklisted users. */ ?> <style type="text/css"> div.inline { display: inline; white-space: nowrap } .inline label, label.inline{ display: inline; } input[type="text"], select { width: auto !important; display: inline !important; } </style> <form method='post'> <fieldset> <?php if ($showSearch): ?> <div style='padding-bottom: 10px;'> <label class="inline"> <?php echo $this->i18n->get('Search for'); ?>: <input size="24" type="text" value="<?php echo htmlspecialchars($model->searchTerm); ?>" name="SearchForm[searchTerm]" id="SearchForm_searchTerm" /> </label> <div class='inline'> <?php echo CHtml::dropDownList( 'SearchForm[searchBy]', $model->searchTerm == '' ? 'email' : $model->searchBy, array('email' => 'email', 'id' => 'id', 'uniqid' => 'unique id') + CHtml::listData($model->attributes, 'id', 'name') ); ?> </div> <label class="inline"> <?php echo $this->i18n->get('List'); ?>: <?php echo CHtml::dropDownList( 'SearchForm[listID]', $model->listID, CHtml::listData($model->lists, 'id', 'name'), array('prompt' => $this->i18n->get('All')) ); ?> </label> <div class='inline'> <label> <?php echo $this->i18n->get('Confirmed'); ?>: <?php echo CHtml::dropDownList( 'SearchForm[confirmed]', $model->confirmed, $this->i18n->get(array(1 => 'All subscribers', 2 => 'confirmed only', 3 => 'unconfirmed only')) ); ?> </label> <label> <?php echo $this->i18n->get('Blacklisted'); ?>: <?php echo CHtml::dropDownList( 'SearchForm[blacklisted]', $model->blacklisted, $this->i18n->get(array(1 => 'All subscribers', 2 => 'blacklisted only', 3 => 'not blacklisted only')) ); ?> </label> </div> </div> <?php endif; ?> <div class='clear'></div> <div> <?php echo CHtml::checkBoxList( 'SearchForm[selectedAttrs]', $model->selectedAttrs, CHtml::listData($model->attributes, 'id', 'name'), array( 'separator' => ' ', 'uncheckValue' => 0, 'template' => '<div class="inline">{input} {label}</div>', ) ); ?> <input type='submit' name='SearchForm[submit]' value='<?php echo $this->i18n->get('Show'); ?>' /> </div> </fieldset> </form>
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
DAO | Folder | 0755 |
|
|
BaseController.php | File | 936 B | 0644 |
|
Config.php | File | 1003 B | 0644 |
|
Container.php | File | 509 B | 0644 |
|
Context.php | File | 1.18 KB | 0644 |
|
Controller.php | File | 2.43 KB | 0644 |
|
ControllerFactory.php | File | 479 B | 0644 |
|
ControllerFactoryBase.php | File | 1.4 KB | 0644 |
|
DAO.php | File | 692 B | 0644 |
|
DB.php | File | 2.47 KB | 0644 |
|
DBResultIterator.php | File | 931 B | 0644 |
|
Exception.php | File | 1.03 KB | 0644 |
|
ExportCSV.php | File | 962 B | 0644 |
|
ExportCSVAsync.php | File | 4.3 KB | 0644 |
|
ExportXML.php | File | 1.4 KB | 0644 |
|
FPDF.php | File | 1.03 KB | 0644 |
|
FileNotFoundException.php | File | 631 B | 0644 |
|
FileServer.php | File | 2.21 KB | 0644 |
|
FrontendTranslator.php | File | 1.46 KB | 0644 |
|
HelpManager.php | File | 2.61 KB | 0644 |
|
HtmlToPdf.php | File | 683 B | 0644 |
|
I18N.php | File | 5.05 KB | 0644 |
|
IChartable.php | File | 447 B | 0644 |
|
IExportable.php | File | 569 B | 0644 |
|
IMailClient.php | File | 1.33 KB | 0644 |
|
IPopulator.php | File | 517 B | 0644 |
|
ImageTag.php | File | 894 B | 0644 |
|
Listing.php | File | 1.23 KB | 0644 |
|
Logger.php | File | 2.88 KB | 0644 |
|
MailSender.php | File | 7.12 KB | 0644 |
|
Main.php | File | 1.21 KB | 0644 |
|
Model.php | File | 2.17 KB | 0644 |
|
PageLink.php | File | 1.33 KB | 0644 |
|
PageURL.php | File | 1.87 KB | 0644 |
|
Pager.php | File | 7.46 KB | 0644 |
|
Paginator.php | File | 1.53 KB | 0644 |
|
Populator.php | File | 1.34 KB | 0644 |
|
StringCallback.php | File | 559 B | 0644 |
|
StringStream.php | File | 3.41 KB | 0644 |
|
Tabs.php | File | 707 B | 0644 |
|
Toolbar.php | File | 2.62 KB | 0644 |
|
UniqueLogger.php | File | 1.14 KB | 0644 |
|
View.php | File | 669 B | 0644 |
|
WebblerListing.php | File | 3.85 KB | 0644 |
|
Widget.php | File | 1.12 KB | 0644 |
|
about.tpl.php | File | 553 B | 0644 |
|
depends.php | File | 1.45 KB | 0644 |
|
helpmanager.tpl.php | File | 676 B | 0644 |
|
pager.tpl.php | File | 2.14 KB | 0644 |
|
toolbar.tpl.php | File | 1.04 KB | 0644 |
|
widget_attributeform.tpl.php | File | 3.42 KB | 0644 |
|