コード例 #1
0
ファイル: post_reply.php プロジェクト: superwow/cms
		<?php 
if ($error = $ERRORS->DoPrint('post_reply', true)) {
    echo '<div class="alerts-container">', $error, '</div>';
}
unset($error);
?>
		
		<form method="post" action="<?php 
echo $config['BaseURL'];
?>
/execute.php?take=post_reply" class="post_topic_reply" name="post_reply">
		
			<label>
				<p>Reply title</p>
				<input name="title" type="text" maxlength="150" value="<?php 
echo $topic ? 'Re: ' . WCF::parseTitle($topic['name']) : '';
?>
" />
			</label>
			
			<label>
				<p>Reply text</p>
				<?php 
echo '<textarea name="text" class="bbcode">';
//Check if we're quoting somebody
if ($quote) {
    //Try getting info about the post
    if ($QuoteInfo = WCF::getQuoteInfo($quote)) {
        echo '[quote=', $QuoteInfo['author'], ']', $QuoteInfo['text'], '[/quote]', "\n\r";
    }
}
コード例 #2
0
ファイル: home.php プロジェクト: Jougito/DynWeb
										<li class="forum_title_desc">
											<a href="', $config['BaseURL'], '/forums.php?page=forum&id=', $forum['id'], '">
												<h1>', WCF::parseTitle($forum['name']), '</h1>
												<h2>', WCF::parseTitle($forum['description']), '</h2>
											</a>
										</li>
										<li class="post">
											<p>', $forum['posts'], '</p>
										</li>
										<li class="topics">
											<p>', $forum['topics'], '</p>
										</li>
										<li class="lastpost">';
                    if ($lastTopic) {
                        echo '
												<p class="topic_title"><a href="', $config['BaseURL'], '/forums.php?page=topic&id=', $lastTopic['id'], '">', WCF::parseTitle($lastTopic['name']), '</a></p>
												<p class="by"><a href="', $config['BaseURL'], '/index.php?page=profile&uid=', $lastTopic['author'], '">', $lastTopic['author_str'], '</a></p>
												<p class="postdate">', $lastTopic['added'], '</p>';
                    }
                    echo '
										</li>
									</ul>';
                }
            }
        } else {
            echo '<div><h2>This category is empty.</h2></div>';
        }
        unset($res2);
        echo '	</div>
				</div>';
    }
コード例 #3
0
ファイル: edit_reply.php プロジェクト: Jougito/DynWeb
		<?php 
if ($error = $ERRORS->DoPrint('edit_reply', true)) {
    echo '<div class="alerts-container">', $error, '</div>';
}
unset($error);
?>
		
		<form method="post" action="<?php 
echo $config['BaseURL'];
?>
/execute.php?take=edit_reply" class="post_topic_reply" name="edit_reply">
		
			<label>
				<p>Reply title</p>
				<input name="title" type="text" maxlength="150" value="<?php 
echo WCF::parseTitle($Post['title']);
?>
" />
			</label>
			
			<label>
				<p>Reply text</p>
				<?php 
echo '<textarea name="text" class="bbcode">', stripslashes($Post['text']), '</textarea>';
?>
			</label>
			
			<input type="hidden" value="<?php 
echo $Post['id'];
?>
" name="post" />
コード例 #4
0
ファイル: forum.php プロジェクト: Jougito/DynWeb
            $arr['author_str'] = $author;
        } else {
            $arr['author_str'] = 'Unknown';
        }
        unset($author);
        //format the time
        $arr['added'] = date('D M j, Y, h:i a', strtotime($arr['added']));
        //Get the last post
        $lastPost = WCF::getTopicLastPost($arr['id']);
        echo '
				<ul class="topic_row">
					<li class="icon">
						<img src="template/forums/style/icons/topic_unread_mine.png" width="55px" height="39px"/>
					</li>
					<li class="topic_title_by_date">
						<h1><a href="', $config['BaseURL'], '/forums.php?page=topic&id=', $arr['id'], '">', WCF::parseTitle($arr['name']), '</a></h1>
						<p>Created by <a href="#">', $arr['author_str'], '</a>, ', $arr['added'], '</p>
					</li>
					<li class="lastpost">';
        if ($lastPost) {
            echo '
							<h4>by <a href="', $config['BaseURL'], '/index.php?page=profile&uid=', $lastPost['author'], '">', $lastPost['author_str'], '</a></h4>
							<h5>', $lastPost['added'], '</h5>
							<a href="', $config['BaseURL'], '/forums.php?page=topic&id=', $arr['id'], '&p=', $lastPost['page_number'], '#post-', $lastPost['id'], '" class="go_to_lastpost" title="Go to last post"><p>Go to last post</p></a>';
        }
        echo '
					</li>
				</ul>';
    }
    unset($topics_res, $arr, $lastPost);
} else {
コード例 #5
0
ファイル: post_topic.php プロジェクト: Jougito/DynWeb
<div class="container main-wide">
	<div class="forum-padding">
	
		<div class="forum_header">
		
			<div class="new_title">
				<p>Post New Topic</p>
				<div></div>
			</div>
			
			<?php 
if ($forum) {
    echo '
				<div class="forum_title">
					<h1>', WCF::parseTitle($forum['name']), '</h1>
					<h3>', WCF::parseTitle($forum['description']), '</h3>
				</div>
				<h4><b>', $forum['topics'], '</b> topics</h4>';
}
?>
		
		</div>
		
		<?php 
if ($error = $ERRORS->DoPrint('post_topic', true)) {
    echo '<div class="alerts-container">', $error, '</div>';
}
unset($error);
?>
		
		<form method="post" action="<?php 
コード例 #6
0
ファイル: topic.php プロジェクト: Jougito/DynWeb
echo $config['BaseURL'], '/forums.php?page=topic&id=', $row['id'];
?>
"><?php 
echo WCF::parseTitle($row['name']);
?>
</a>
</div>

<div class="container main-wide">
	<div class="forum-padding">
		
		<!-- Forum Header -->
		<div class="topic_header">
			<div class="topic_title">
				<h1><?php 
echo WCF::parseTitle($row['name']);
?>
</h1>
				<h3><?php 
echo $row['added'];
?>
</h3>
			</div>
			<h4><b><?php 
echo $count;
?>
</b> posts</h4>
		</div>
		<!-- Forum Header.End -->

		<?php