コード例 #1
0
ファイル: users.php プロジェクト: agamystar/smart
	
	.dg_form th{
		background-color:gray;
		font-family:"Courier New", Courier, mono;
		font-size:12px;
	}
	
	.dg_form td{
		background-color:gainsboro;
		font-size:12px;
	}
	
	.dg_form input[type=submit]{
		margin-top:2px;
	}
</style>
<?php 
$this->Datagrid->hidePkCol(true);
$this->Datagrid->setHeadings(array('email' => 'E-mail'));
$this->Datagrid->ignoreFields(array('password'));
if ($error = $this->session->flashdata('form_error')) {
    echo "<font color=red>{$error}</font>";
}
echo form_open('test/proc', array('class' => 'dg_form'));
echo $this->Datagrid->generate();
echo Datagrid::createButton('delete', 'Delete');
echo form_close();
?>

</body>
</html>