<?php if (count($stories) == 0) { ?> <p>暫無資料</p> <?php } ?> <?php foreach ($stories as $story) { ?> <div class="item"> <div class="item-image"> <div class="item-image-content"> <div class="tags"> <?php render_tags($story->tags); ?> </div> </div> <a href="<?php echo site_url("project/view/" . $story->storyID); ?> "> <?php if ($story->cover != null) { ?> <img src="<?php echo base_url($story->cover); ?> " /> <?php
$c_rank = $row2['rank']; $c_creator = $row2['user_id']; $c_create_time = $row2['create_time']; if (!$has_right_to_edit && $row2['is_comment']) { continue; } echo '<section id="s' . $segment_id . '">'; $is_comment = $row2['is_comment'] ? '批注:' : ''; if ($c_rank == 0) { echo '<p><strong><font face="微软雅黑">' . $is_comment . $c_title . '</font></strong></p>'; } else { $c_rank_no = $c_rank + 2; echo '<h' . $c_rank_no . '><font face="微软雅黑">' . $is_comment . $c_title . '</font></h' . $c_rank_no . '>'; } render_user_action($dbc, $c_creator, '创建于', $c_create_time); echo ($tags_string = render_tags($dbc, $c_id)) ? '<p>标签:' . $tags_string . '</p>' : ''; //echo '<p>' . $c_content . '</p>'; //$c_content_processed = process_number_sign($c_content); //echo '<p>' . $c_content_processed["content"] . '</p>'; //$results = process_number_sign($c_content); //$biblio = array_merge($biblio, $results[biblio]); preg_match_all('/#(.*?)#/', $c_content, $out); foreach ($out[1] as $word) { if (!strncmp($word, BIBLIO, strlen(BIBLIO))) { $word = substr($word, strlen(BIBLIO)); //echo "is biblio;"; if (in_array($word, $biblio)) { $key = array_search($word, $biblio) + 1; //print_r($biblio); //echo $word." is array search as:" . $key ."; "; } else {
</div> </div> <div class="container-activity container-col-left"> <h2 class="section-title">創客活動 ACTIVITIES</h2> <div class="activities"> <?php foreach ($activities as $act) { ?> <div class="activity"> <div class="activity-image"> <div class="activity-image-content"> <div class="tags"> <?php render_tags($act->tags); ?> </div> </div> <a href="<?php echo site_url("project/view/" . $act->storyID); ?> "> <img src="<?php echo base_url($act->cover); ?> " /> </a> </div> <div class="activity-content article-content"> <a href="<?php
$color = true; while ($row = mysqli_fetch_array($result)) { if ($color) { echo '<tr>'; } else { echo '<tr class="info">'; } $color = !$color; $segment_id = $row['id']; echo '<td>' . $row_num++ . '</td>'; echo '<td>'; echo "<a href=\"editor.php?act=edit&id={$segment_id}\">" . $row[title] . "</a>"; echo '</td>'; echo '<td>' . render_articles_by_seg($dbc, $row['id']) . '</td>'; echo '<td>' . tcmks_substr($row['content']) . '</td>'; echo '<td>' . render_tags($dbc, $row['id']) . '</td>'; echo '<td>' . $row[create_time] . '</td>'; echo '<td>'; if (!is_segment_used($dbc, $row['id'])) { echo '<a href="' . $_SERVER['PHP_SELF'] . '?delete_segment=' . $row['id'] . '"><i class="icon-trash"></i></a>'; } echo '</td>'; } ?> </tbody> </table> <?php } else { render_warning('没有可显示的综述段落!您可以创建新的综述段落。'); }