• September 16, 2018

    เข้าไปใน BoardIndex.template.php

    // Assuming the category hasn't been collapsed...
        if (!$category['is_collapsed'])
        {
          echo '
        <table border="0" width="100%" cellspacing="1" cellpadding="5" class="bordercolor" style="margin-top: 0px;">';
    
          /* Each board in each category's boards has:
          new (is it new?), id, name, description, moderators (see below), link_moderators (just a list.),
          children (see below.), link_children (easier to use.), children_new (are they new?),
          topics (# of), posts (# of), link, href, and last_post. (see below.) */
          $picBoard = array('admin', 'ok', 'suggest', 'ti', 'travel', 'eat', 'dorm', 'sevice', 'talk', 'story', 'sara', 'ask', 'gal', 'wall', 'ittech', 'program');
          $picBoard2 = array('admin2', 'ok2', 'suggest2', 'ti2', 'travel2', 'eat2', 'dorm2', 'sevice2', 'talk2', 'story2', 'sara2', 'ask2', 'gal2', 'wall2', 'ittech2', 'program2');
          $i=1;
          foreach ($category['boards'] as $board)
          {
            if($i%2==1)
              echo '<tr>';
            echo '
            <td class="windowbg" valign="middle" height="100" width="50%">
              <div class="picBoard">
              <a href="', $scripturl, '?action=unread;board=', $board['id'], '.0">';
            // If the board is new, show a strong indicator.
            if ($board['new'])
              echo '<img src="', $settings['images_url'], '/picBoards/',$picBoard[$pic],'.png" alt="', $txt[333], '" title="', $txt[333], '" />';
            // No new posts at all! The agony!!
            else
              echo '<img src="', $settings['images_url'], '/picBoards/',$picBoard2[$pic],'.png" alt="', $txt[334], '" title="', $txt[334], '" />';
    
            echo '</a>
              </div>
              <div class="detailBoard">
              <b><a class="boardtitle" href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b><br />
                ', $board['description'],'<br />',$txt[21],' : ', $board['posts'],' || ',$txt[330], ' : ', $board['topics'];
    
            // Show the "Moderators: ". Each has name, href, link, and id. (but we're gonna use link_moderators.)
            if (!empty($board['moderators']))
              echo '
              <div style="padding-top: 1px;" class="smalltext"><i>', count($board['moderators']) == 1 ? $txt[298] : $txt[299], ': ', implode(', ', $board['link_moderators']), '</i></div>';
            // Show some basic information about the number of posts, etc.
              echo '</div>
            </td>';
            if($i%2==0)
              echo '</tr>';
            $i++;
            $pic++;
          }//end foreach
          echo '
          </table>';
        }
        echo '
      </div>';
      }
    
      if ($context['user']['is_logged'])
      {
        echo '
      <table border="0" width="100%" cellspacing="0" cellpadding="5">
        <tr>
          <td align="', !$context['right_to_left'] ? 'left' : 'right', '" class="smalltext">
            <img src="' . $settings['images_url'] . '/new_some.gif" alt="" align="middle" /> ', $txt[333], '
            <img src="' . $settings['images_url'] . '/new_none.gif" alt="" align="middle" style="margin-left: 4ex;" /> ', $txt[334], '
          </td>
          <td align="', !$context['right_to_left'] ? 'right' : 'left', '">';
    
        // Mark read button.


เวอไนน์ไอคอร์ส

ประหยัดเวลากว่า 100 เท่า!






เวอไนน์เว็บไซต์⚡️
สร้างเว็บไซต์ ดูแลเว็บไซต์

Categories


Uncategorized