当前位置: 首页>>代码示例>>PHP>>正文


PHP TbHtml::checkBoxList方法代码示例

本文整理汇总了PHP中TbHtml::checkBoxList方法的典型用法代码示例。如果您正苦于以下问题:PHP TbHtml::checkBoxList方法的具体用法?PHP TbHtml::checkBoxList怎么用?PHP TbHtml::checkBoxList使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在TbHtml的用法示例。


在下文中一共展示了TbHtml::checkBoxList方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

			<?php 
echo TbHtml::checkBoxList('checkGames', '', array('6.1, 6.2, 6.3, 6.4' => CHtml::encode('Does your app is a game?')));
?>
		<p><?php 
echo TbHtml::b('Contracts and Extensions');
?>
</p>
                        <?php 
echo TbHtml::checkBoxList('checkContracts', '', array('7.1, 7.2' => CHtml::encode('Does your app is a share source?')));
?>
		<p><?php 
echo TbHtml::b('Audio and Video');
?>
</p>
			<?php 
echo TbHtml::checkBoxList('checkAudioAndVideo', '', array('9.1, 9.2' => CHtml::encode('Does your app is a music app?'), '9.3' => CHtml::encode('Does your app use voice call?'), '9.4' => CHtml::encode('Does your app have sounds?')));
?>
                
	</div>

 <?php 
echo TbHtml::button('Back', array('onclick' => 'js:document.location.href="/mtcontrool/runs/create"', 'color' => TbHtml::BUTTON_COLOR_DEFAULT, 'size' => TbHtml::BUTTON_SIZE_LARGE));
?>
	 <?php 
echo TbHtml::link('Submit', array('runs/saveWPQuest', 'id' => $idRuns), array('class' => 'btn btn-success btn-large'));
?>
 

 <?php 
echo TbHtml::button('Cancel', array('onclick' => 'js:document.location.href="/mtcontrool"', 'color' => TbHtml::BUTTON_COLOR_DANGER, 'size' => TbHtml::BUTTON_SIZE_LARGE));
?>
开发者ID:raphaelrocha,项目名称:mtcontrool_mtcontext,代码行数:31,代码来源:_questWP.php

示例2: array

		<?php 
echo TbHtml::checkBoxList('checkMultiplayer', '', array('18.1, 18.2, 18.3, 18.4' => CHtml::encode('Does your app have Multiplayer function?')));
?>
                <p><?php 
echo TbHtml::b('Display');
?>
</p>
		<?php 
echo TbHtml::checkBoxList('checkDisplay', '', array('24.7' => CHtml::encode('Does your app produce assistive text which can be displayed on the device?'), '24.11' => CHtml::encode('Does your app address reading comprehension issues?')));
?>
                <p><?php 
echo TbHtml::b('External Devices');
?>
</p>
		<?php 
echo TbHtml::checkBoxList('checkExternalDevices', '', array('26.7' => CHtml::encode('Does your app produce assistive text-to-speech in conjunction with an external audio output device?'), '26.8' => CHtml::encode('Does your app produce assistive text which can be output through an external display? ')));
?>
	</div>
 <?php 
echo TbHtml::button('Back', array('onclick' => 'js:document.location.href="/mtcontrool/runs/create"', 'color' => TbHtml::BUTTON_COLOR_DEFAULT, 'size' => TbHtml::BUTTON_SIZE_LARGE));
?>
	 <?php 
echo TbHtml::link('Submit', array('runs/saveAndroidQuest', 'id' => $idRuns), array('class' => 'btn btn-success btn-large', 'confirm' => 'Are you sure?'));
?>
 
 
         <?php 
echo TbHtml::button('Cancel', array('onclick' => 'js:document.location.href="/mtcontrool"', 'color' => TbHtml::BUTTON_COLOR_DANGER, 'size' => TbHtml::BUTTON_SIZE_LARGE));
?>

       
开发者ID:raphaelrocha,项目名称:mtcontrool_mtcontext,代码行数:29,代码来源:_questAndroid.php

示例3: testCheckboxList

 public function testCheckboxList()
 {
     $I = $this->codeGuy;
     $html = TbHtml::checkBoxList('checkboxList', null, array('Option 1', 'Option 2', 'Option 3'), array('separator' => '<br>', 'container' => 'div', 'containerOptions' => array('class' => 'container')));
     $container = $I->createNode($html, 'div.container');
     $I->seeNodeChildren($container, array('label.checkbox', 'br', 'label.checkbox', 'br', 'label.checkbox'));
     $label = $container->filter('label')->first();
     $I->seeNodePattern($label, '/> Option 1$/');
     $input = $label->filter('input[type=checkbox]');
     $I->seeNodeAttributes($input, array('id' => 'checkboxList_0', 'name' => 'checkboxList[]', 'value' => '0'));
     $html = TbHtml::checkBoxList('checkboxList', null, array('Option 1', 'Option 2', 'Option 3'), array('checkAll' => true));
     $span = $I->createNode($html, 'span');
     $I->seeNodeChildren($span, array('input[type=checkbox]', 'label.checkbox', 'label.checkbox', 'label.checkbox', 'label.checkbox'));
     $label = $span->filter('label')->first();
     $input = $label->filter('input');
     $I->seeNodeAttribute($input, 'name', 'checkboxList_all');
     $html = TbHtml::checkBoxList('checkboxList', null, array('Option 1', 'Option 2', 'Option 3'), array('checkAll' => true, 'checkAllLast' => true));
     $span = $I->createNode($html, 'span');
     $I->seeNodeChildren($span, array('label.checkbox', 'label.checkbox', 'label.checkbox', 'label.checkbox', 'input[type=checkbox]'));
     $label = $span->filter('label')->last();
     $input = $label->filter('input');
     $I->seeNodeAttribute($input, 'name', 'checkboxList_all');
 }
开发者ID:AlexanderGrant1,项目名称:AC41004,代码行数:23,代码来源:TbHtmlTest.php

示例4: array

		<?php 
echo TbHtml::checkBoxList('checkMultiplayer', '', array('18.1, 18.2, 18.3, 18.4' => CHtml::encode('Does your app have Multiplayer function?')));
?>
                <p><?php 
echo TbHtml::b('Privacy and User Permissions');
?>
</p>
		<?php 
echo TbHtml::checkBoxList('checkPrivacyandUserPermissions', '', array('20.2' => CHtml::encode('Does your app use location data?'), '20.3' => CHtml::encode('Does your app use push notification?')));
?>
                 <p><?php 
echo TbHtml::b('Platform Compliance for: In App Purchase, Adversiting and Multiplayer Game Lobby');
?>
</p>
		<?php 
echo TbHtml::checkBoxList('checkPlatformCompliance', '', array('21.1' => CHtml::encode('Does your app use in-app purchase?'), '21.2' => CHtml::encode('Does your app use advertising?'), '21.3' => CHtml::encode('Does your app use the multiplayer game lobby?'), '21.4' => CHtml::encode('Does your app use subscriptions or rental mechanisms?'), '21.5' => CHtml::encode('Does your app use enable charitable donations?')));
?>
                
                 
	</div>

<?php 
echo TbHtml::button('Back', array('onclick' => 'js:document.location.href="/mtcontrool/runs/create"', 'color' => TbHtml::BUTTON_COLOR_DEFAULT, 'size' => TbHtml::BUTTON_SIZE_LARGE));
?>
	 <?php 
echo TbHtml::link('Submit', array('runs/saveIOSQuest', 'id' => $idRuns), array('class' => 'btn btn-success btn-large'));
?>
 

 <?php 
echo TbHtml::button('Cancel', array('onclick' => 'js:document.location.href="/mtcontrool"', 'color' => TbHtml::BUTTON_COLOR_DANGER, 'size' => TbHtml::BUTTON_SIZE_LARGE));
开发者ID:raphaelrocha,项目名称:mtcontrool_mtcontext,代码行数:31,代码来源:_questIOS.php

示例5: array

<div class="row-fluid">
    <?php 
if ($this->election->voter_group_restriction == Election::VGR_GROUPS_ADD) {
    ?>
    <div class="assigned-groups-sel" style="display: none;">
        <p>If you want to register as elector you should specify one or more of these groups where you will be included.</p>
        <?php 
    $groups = $this->election->localVoterGroups;
    $checkData = array();
    foreach ($groups as $group) {
        $checkData[$group->id] = $group->name;
    }
    echo TbHtml::checkBoxList('voter-groups', false, $checkData);
    ?>
    </div>
    <?php 
}
?>
    <button id="register-elector" class="btn btn-large span8 offset2">Register as Elector</button>
</div>
<script type="text/javascript">
    $(function() {
        var parent = $('#register-elector').parent();
        var onSuccess = function(model, response) {
                $('#register-elector').remove();

                if(response.status && response.status == 'exists_elector') {
                    Aes.Notifications.add(response.message, 'warning');
                } else {
                    if(response.status && response.status == 'exists') {
                        Aes.Notifications.add(response.message, 'warning');
开发者ID:vasiliy-pdk,项目名称:aes,代码行数:31,代码来源:registerElector.php

示例6: testUncheckValueOptionForCheckboxesAndRadioInputs

 public function testUncheckValueOptionForCheckboxesAndRadioInputs()
 {
     $I = $this->codeGuy;
     $items = array(0);
     $model = new Dummy();
     $outputsWithHidden = array('checkbox' => TbHtml::checkBox('cb1', false, array('uncheckValue' => 1)), 'checkboxList' => TbHtml::checkBoxList('cb2', 0, $items, array('uncheckValue' => 1)), 'radio' => TbHtml::radioButton('rd1', false, array('uncheckValue' => 1)), 'radioList' => TbHtml::radioButtonList('rd2', 0, $items, array('uncheckValue' => 1)), 'activeCheckbox' => TbHtml::activeCheckBox($model, 'checkboxList'), 'activeCheckboxList' => TbHtml::activeCheckBoxList($model, 'checkboxList', $items), 'activeRadio' => TbHtml::activeRadioButton($model, 'radioList'), 'activeRadioList' => TbHtml::activeRadioButtonList($model, 'radioList', $items));
     foreach ($outputsWithHidden as $output) {
         $I->seeNodeChildren($I->createNode($output), array('input[type=hidden]'));
     }
     // comparing against null 'uncheckValue' option
     $noHiddenOptions = array('uncheckValue' => null);
     $outputsWithoutHidden = array('checkbox' => TbHtml::checkBox('cb1'), 'checkboxList' => TbHtml::checkBoxList('cb2', 0, $items), 'radio' => TbHtml::radioButton('rd1'), 'radioList' => TbHtml::radioButtonList('rd2', 0, $items), 'activeCheckbox' => TbHtml::activeCheckBox($model, 'checkboxList', $noHiddenOptions), 'activeCheckboxList' => TbHtml::activeCheckBoxList($model, 'checkboxList', $items, $noHiddenOptions), 'activeRadio' => TbHtml::activeRadioButton($model, 'radioList', $noHiddenOptions), 'activeRadioList' => TbHtml::activeRadioButtonList($model, 'radioList', $items, $noHiddenOptions));
     foreach ($outputsWithoutHidden as $output) {
         $I->dontSeeNodeChildren($I->createNode($output), array('input[type=hidden]'));
     }
 }
开发者ID:mfavetti,项目名称:LimeSurvey,代码行数:16,代码来源:TbHtmlTest.php


注:本文中的TbHtml::checkBoxList方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。