public function test__pchecked()
 {
     ob_start();
     __pchecked(true);
     $output = ob_get_clean();
     $this->assertEquals('checked', $output);
     ob_start();
     __pchecked(false);
     $output = ob_get_clean();
     $this->assertEquals('', $output);
 }
Example #2
0
							<input type="radio" name="time" value="2" <?php 
__pchecked($mailform->isSelectedValue('time', '2'));
?>
 /><span><label for="time1"><?php 
echo $mailform->getSelectValue('time', '2');
?>
</label></span><br />
							<input type="radio" name="time" value="3" <?php 
__pchecked($mailform->isSelectedValue('time', '3'));
?>
 /><span><label for="time2"><?php 
echo $mailform->getSelectValue('time', '3');
?>
</label></span><br />
							<input type="radio" name="time" value="4" <?php 
__pchecked($mailform->isSelectedValue('time', '4'));
?>
 /><span><label for="time3"><?php 
echo $mailform->getSelectValue('time', '4');
?>
</label></span><br />
						</td>
					</tr>
				</table>
			</div>
			<div class="infobox">
			<div class="confirmbox">
				<p class="txt">※個人情報に関する確認事項を確認してください。</p>
				<p class="btn"><input type="checkbox" id="conf" name="conf" value="確認済" /><span><label for="conf">確認しました</label></span></p>
			</div>
			<ul class="btnbox">