first commit
This commit is contained in:
23
application/views/admin/data_post.php
Executable file
23
application/views/admin/data_post.php
Executable file
@@ -0,0 +1,23 @@
|
||||
<html>
|
||||
|
||||
<head>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<form method="post" action="/admin/posts/new">
|
||||
<textarea style="display:none" name="content">
|
||||
<?php echo $article['article']?>
|
||||
</textarea>
|
||||
<input type="hidden" name="postTitle" value="<?php echo addslashes(trim($article['title']))?>">
|
||||
<input type="hidden" name="postImage" value="<?php echo addslashes(trim($article['img']))?>">
|
||||
<textarea style="display:none" name="postExcerpt">
|
||||
<?php echo trim($article['postExcerpt'])?>
|
||||
</textarea>
|
||||
</form>
|
||||
<script>
|
||||
document.forms[0].submit();
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user