コード例 #1
0
ファイル: editpost.php プロジェクト: BattlePumpkin/HundeBlog
echo $_GET['id'];
?>
" method="post" autocomplete="off" onsubmit="return checkformpost()">
				<label class="label">Title</label>
				<br>
				<input name="title" value="<?php 
echo selectpost($_GET['id'])['title'];
?>
" id="titleform" type="text" class="input">
				<br>

				<br>
				<label class="label">Content</label>
				<br>
				<textarea name="content" id="content"class="input textareacontent" maxlength="7000" cols="10"><?php 
echo selectpost($_GET['id'])['body'];
?>
</textarea>
				<br>
				<br>
				<label class="label">Theme</label>
				<br>
				<select name="select" id="select" class="input">
					<option value="RANDOM">Random</option>
					<option value="MUSIC">Musik</option>
					<option value="STORY">Story</option>
					<option value="GAMES">Games</option>
					<option value="FILME">Filme</option>
				</select>
				<br>
				<br>
コード例 #2
0
ファイル: view-post.php プロジェクト: kieranjwillis/blog
    ?>
</h3>
						</div>
						<div class="col-md-10 col-xs-8 col-sm-10 commenttext">
							<h6><?php 
    echo $fetch['created_at'];
    ?>
</h6>
							<p><?php 
    foreach (preg_split("/((\r?\n)|(\r\n?))/", $fetch['body']) as $line) {
        echo $line . '<br>';
    }
    ?>
</p>
						<?php 
    if ($fetch['user_id'] == $_SESSION['id'] or selectpost($_GET["id"])['user_id'] == $_SESSION['id']) {
        echo "<a href='deletecomment.php?id=" . $fetch['id'] . "&post_id=" . $fetch['post_id'] . "'><h5>DELETE</h5></a>";
    }
    ?>

						</div>
					</div>
					<?php 
}
?>
			</div>
		</div>

		<script type="text/javascript" src="scripts/jquery.nailthumb.1.1.js"></script>
		<script type="text/javascript">
	        jQuery(document).ready(function() {
コード例 #3
0
ファイル: post-settings.php プロジェクト: kieranjwillis/blog
?>
 value="LIFESTYLE">Lifestyle</option>
															<option <?php 
if (selectpost($_GET['id'])['tag'] == 'DIARY') {
    echo 'selected';
}
?>
 value="DIARY">Diary</option>
															<option <?php 
if (selectpost($_GET['id'])['tag'] == 'HUMOR') {
    echo 'selected';
}
?>
 value="HUMOR">Humor</option>
															<option <?php 
if (selectpost($_GET['id'])['tag'] == 'QUOTATION') {
    echo 'selected';
}
?>
 value="QUOTATION">Quotation</option>
														</select></div>
				</div>
				<br>
				<br>
				<div class="row"><div class="textalign col-xs-12"><button type="submit" name="submit">SUBMIT</button></div></div>
				<div class="row"><div class="textalign col-xs-12"><button type="submit" name="delete">DELETE</button></div></div>
			</form>
			<div class="row"><div class="textalign col-xs-12"><a href="view-post.php?id=<?php 
echo $_GET['id'];
?>
"><button type="submit" name="submit">BACK</button></a></div></div>