Пример #1
0
        ?>
          </span>
        </td>
        <?php 
    }
    ?>
        <td><?php 
    if ($thread->status != 'wait') {
        echo $thread->hidden ? '<span class="text-warning"><i class="icon-eye-close"></i> ' . $lang->thread->displayList['hidden'] . '</span>' : '<span class="text-success"><i class="icon-ok-sign"></i> ' . $lang->thread->displayList['normal'] . '</span>';
    }
    ?>
</td>
        <td>
          <?php 
    if ($this->config->forum->postReview == 'open' and $thread->status == 'wait') {
        commonmodel::printlink('thread', 'approve', "threadid={$thread->id}&boardid={$thread->board}", $lang->thread->approve, "class='reload'");
    } else {
        echo html::a('javascript:;', $lang->thread->approve, "class='disabled'");
    }
    $text = $thread->hidden ? $lang->thread->show : $lang->thread->hide;
    if ($thread->status != 'wait') {
        commonModel::printLink('thread', 'switchStatus', "threadID={$thread->id}", $text, "class='reload'");
        commonModel::printLink('thread', 'transfer', "threadID={$thread->id}", $lang->thread->transfer, "data-toggle='modal'");
    } else {
        echo html::a('javascript:;', $text, "class='disabled'");
        echo html::a('javascript:;', $lang->thread->transfer, "class='disabled'");
    }
    commonModel::printLink('thread', 'delete', "threadID={$thread->id}", $lang->delete, "class='deleter'");
    commonModel::printLink('guarder', 'addToBlacklist', "type=thread&id={$thread->id}", $lang->addToBlacklist, "data-toggle='modal'");
    ?>
        </td>
Пример #2
0
        commonModel::printLink('article', 'setcss', "articleID={$article->id}", $lang->article->css, "data-toggle='modal'");
        ?>
</li>
              <li><?php 
        commonModel::printLink('article', 'setjs', "articleID={$article->id}", $lang->article->js, "data-toggle='modal'");
        ?>
</li>
              <?php 
        if ($type == 'article') {
            ?>
              <li><?php 
            commonmodel::printlink('article', 'forward2blog', "articleid={$article->id}", $lang->article->forward2Blog, "data-toggle='modal'");
            ?>
</li>
              <li><?php 
            commonmodel::printlink('article', 'forward2forum', "articleid={$article->id}", $lang->article->forward2Forum, "data-toggle='modal'");
            ?>
</li>
              <?php 
        }
        ?>
            </ul>
          </span>
        </td>
      </tr>
      <?php 
    }
    ?>
      <?php 
}
?>