File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2323 <form action="<?php echo base_url ('admin/admin/add_article ' );?> " method="post">
2424 <label><input type="text" name="title" placeholder="title"/></label>
2525
26- <textarea class="add" type="text" name="content" placeholder="学无止境"></textarea>
26+ <textarea id="image-tools" class="add" type="text" name="content" placeholder="学无止境"></textarea>
2727
2828 <label><input type="text" name="type" placeholder="type"/></label>
2929
4747 <li></li>
4848 </ul>
4949</div>
50+ <!--footer-->
51+ <?php $ this ->load ->view ('admin/footer ' );?>
5052</body>
5153</html>
Original file line number Diff line number Diff line change 2020 <a href="<?= base_url ('admin/admin/logout ' )?> ">登出</a>
2121
2222 <form action="<?php echo base_url ('admin/admin/add_diaries ' );?> " method="post">
23- <textarea class="add" type="text" name="content" placeholder="个人日记"></textarea>
23+ <textarea id="image-tools" class="add" type="text" name="content" placeholder="个人日记"></textarea>
2424
2525 <label><input type="text" name="date" placeholder="date" value="<?php echo date ('Y-m-d ' );?> "/></label>
2626
4343 <li></li>
4444 </ul>
4545</div>
46+ <!--footer-->
47+ <?php $ this ->load ->view ('admin/footer ' );?>
4648</body>
4749</html>
Original file line number Diff line number Diff line change 2121 <a href="<?= base_url ('admin/admin/logout ' )?> ">登出</a>
2222
2323 <form action="<?php echo base_url ('admin/admin/add_tweets ' );?> " method="post">
24- <textarea class="add" type="text" name="content" placeholder="碎言碎语"></textarea>
24+ <textarea id="image-tools" class="add" type="text" name="content" placeholder="碎言碎语"></textarea>
2525
2626 <label><input type="text" name="date" placeholder="date" value="<?php echo date ('Y-m-d H:i:s ' );?> "/></label>
2727
4444 <li></li>
4545 </ul>
4646</div>
47+ <!--footer-->
48+ <?php $ this ->load ->view ('admin/footer ' );?>
4749</body>
4850</html>
Original file line number Diff line number Diff line change 3434 <dl>
3535 <dt><img src="<?php echo base_url ();?> static/images/s2.jpg" width="200" height="123" alt="文章图片"></dt>
3636 <dd>
37- <p class="dd_text_1"><?php echo $ row ->content ;?> </p >
37+ <div class="dd_text_1"><?php echo $ row ->content ;?> </div >
3838 <p class="dd_text_2">
3939 <span class="left author">Nova</span>
4040 <span class="left sj">时间:<?php echo $ row ->date ;?> </span>
Original file line number Diff line number Diff line change 1919
2020 <label><input type="text" name="title" placeholder="title" value="<?php echo $ article ->title ;?> "/></label>
2121
22- <textarea class="add" type="text" name="content" placeholder="content"><?php echo $ article ->content ?> </textarea>
22+ <textarea id="image-tools" class="add" type="text" name="content" placeholder="content"><?php echo $ article ->content ?> </textarea>
2323
2424 <label><input type="text" name="type" placeholder="type" value="<?php echo $ article ->type ?> "/></label>
2525
4444 <li></li>
4545 </ul>
4646</div>
47+ <!--footer-->
48+ <?php $ this ->load ->view ('admin/footer ' );?>
4749</body>
4850</html>
Original file line number Diff line number Diff line change 1717 <h1 style="margin: 0; text-align: center;"><font>Hi, Nova 👋</font></h1>
1818 <form action="<?php echo base_url ('admin/admin/update_diaries/ ' . $ diaries ->id );?> " method="post">
1919
20- <textarea class="add" type="text" name="content" placeholder="content"><?php echo $ diaries ->content ?> </textarea>
20+ <textarea id="image-tools" class="add" type="text" name="content" placeholder="content"><?php echo $ diaries ->content ?> </textarea>
2121
2222 <label><input type="text" name="date" placeholder="date" value="<?php echo date ('Y-m-d ' );?> "/></label>
2323
4040 <li></li>
4141 </ul>
4242</div>
43+ <!--footer-->
44+ <?php $ this ->load ->view ('admin/footer ' );?>
4345</body>
4446</html>
Original file line number Diff line number Diff line change 1717 <h1 style="margin: 0; text-align: center;"><font>Hi, Nova 👋</font></h1>
1818 <form action="<?php echo base_url ('admin/admin/update_tweets/ ' . $ tweets ->id );?> " method="post">
1919
20- <textarea class="add" type="text" name="content" placeholder="content"><?php echo $ tweets ->content ?> </textarea>
20+ <textarea id="image-tools" class="add" type="text" name="content" placeholder="content"><?php echo $ tweets ->content ?> </textarea>
2121
2222 <label><input type="text" name="date" placeholder="date" value="<?php echo date ('Y-m-d H:i:s ' );?> "/></label>
2323
4040 <li></li>
4141 </ul>
4242</div>
43+ <!--footer-->
44+ <?php $ this ->load ->view ('admin/footer ' );?>
4345</body>
4446</html>
Original file line number Diff line number Diff line change 1+ <script src =" https://cdn.tiny.cloud/1/bxj3r4iu38vnskv5rgln7oq5kpbeaa61dr2q6ajfp5bg4rxh/tinymce/5/tinymce.min.js" referrerpolicy =" origin" ></script >
2+ <script >
3+ tinymce .init ({
4+ selector: ' textarea#image-tools' ,
5+ language: ' zh_CN' ,
6+ height: 400 ,
7+ plugins: [
8+ ' advlist autolink lists link image charmap print preview anchor' ,
9+ ' searchreplace visualblocks code fullscreen' ,
10+ ' insertdatetime media table paste imagetools wordcount'
11+ ],
12+ toolbar: ' insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image' ,
13+ content_style: ' body { font-family:Helvetica,Arial,sans-serif; font-size:14px }'
14+ });
15+ </script >
Original file line number Diff line number Diff line change 5353</div>
5454<!--content end-->
5555<!--footer-->
56- <?php $ this ->load ->view ('footer ' );?> </body>
56+ <?php $ this ->load ->view ('footer ' );?>
57+ </body>
5758</html>
Original file line number Diff line number Diff line change 2929 <?php if (isset ($ rows )) { foreach ($ rows as $ row ): ?>
3030 <ul class="say_box">
3131 <div class="sy">
32- <p ><?php echo $ row ['content ' ]?> </p >
32+ <div ><?php echo $ row ['content ' ]?> </div >
3333 <a><?php echo anchor ('admin/admin/edit_tweets/ ' . $ row ['id ' ],'更新说说 ' )?> </a>
3434 <a><?php echo anchor ('admin/admin/delete_tweets/ ' . $ row ['id ' ],'删除说说 ' )?> </a>
3535 </div>
You can’t perform that action at this time.
0 commit comments