Hiç için 5 ürün yeni bir
  • yaratmak mümkündür

0 Cevap

Ben 50 öğelerin bir listesi var, ve bu tür uzun olur. Bu 10 sütun içine bölmek mümkün mü?

belki 5 li başına td ile bir tablo? ve 10'dan fazla td td başka bir dizi ile bir tr oluşturmak aşarsa?

iyi Üzgünüm, bu benim mevcut komut kurulum ve onun bana biraz koşulu eklemek için nasıl gibi biraz kafa karıştırıcı.

if(isset($_POST['submit-script']))
{
    $path  = "./projects/scripts";
    $handle = new upload($_FILES['script']);
    if ($handle->uploaded)
    {
        $handle->file_overwrite = true;
        $handle->process($path);
        if ($handle->processed)
        {
            $handle->clean();
            $msg = "[ Your Script ".$handle->file_dst_name_body." has been uploaded ]";
            $file = $handle->file_dst_path.$handle->file_dst_name_body.'.'.$handle->file_dst_name_ext;
            $open = fopen($file, 'r+');
            $story = fread($open, filesize($file));
            $_ = NULL;
            if (preg_match_all('/\s{35}(.*)/m', $story, $_))
            {
                $counter = 0;
                $unique_characters = array_unique(array_map(create_function('$a', 'return ucfirst(strtolower(trim($a)));'), $_[1]));
                echo "<p>It looks like you have ".count($unique_characters)." characters in your script</p>\r\n";
                echo "\r\n";
                array_map(
                    create_function(
                        '$a',
                        'echo "<ul style=/"float:left;/">;
                        foreach($a as $item)
                        {
                            $counter++;
                            echo "<li>$item</li>";
                            if(is_int($counter/5) && count($unique_characters) >= $counter)
                            {
                                echo "</ul>\r\n";
                            }
                        '
                    ),
                $unique_characters);
            }

        }else{
            $msg = "<div class='error'>[ error : " . $handle->error .  ]</div>";
        }
    }
}

bir alıntıdır $story:

EXT. DUNKIN' DONUTS - DAY 

               Police vehicles remain in the parking lot.  The determined
               female reporter from the courthouse steps, MELINDA FUENTES
               (32), interviews Comandante Chitt, who holds a napkin to his
               jaw, like he cut himself shaving. 

                                   MELINDA
                         < Comandante Chitt, how does it
                         feel to get shot in the face? >

                                   COMANDANTE CHITT
                         < Not too different than getting
                         shot in the arm or leg. >

                                   MELINDA
                         < Tell us what happened. >

                                   COMANDANTE CHITT
                         < I parked my car.
                             (indicates assault vehicle
                              in donut shop)
                         He aimed his weapon at my head.  I
                         fired seven shots. He stopped
                         aiming his weapon at my head. >

               Melinda waits for more, but Chitt turns and walks away into
               the roped-off crime scene. Melinda is confused for a second,
               then resumes smiling.

                                   MELINDA
                         < And there you have it... A man of
                         few words. >

0 Cevap