jeudi 19 août 2021

how to choose your own checkbox image html or php and inplement it in the code I post

Custom pictures for checkbox?

hello can also code checkbox personal image the way they do in the link

I try to make my own agenda so making a todolist and a with waterbottle full and empty row.

protected static function generate_content_box( array $items,$checkbox ) : void {
        echo '<table class="content-box">';

        foreach ( $items as $item ) {
            if($checkbox==1){
?>
            <form>
                <input type="checkbox">
            </form>
<?php
            }
            $number_of_rows = $item[0];
            if ( $number_of_rows <= 0 ) {
                continue;
            }
            $item_name = $item[1];

            echo "<tr><td class=\"content-box-line\">$item_name</td></tr>";
            $number_of_rows--;
            echo str_repeat( '<tr><td class="content-box-line"></td></tr>', $number_of_rows );
        }
        echo '</table>';
}



Aucun commentaire:

Enregistrer un commentaire