aries_

view

Nov 2nd, 2012
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.36 KB | None | 0 0
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <html>
  3.     <head>
  4.         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  5.         <script type="text/javascript" src="/assets/tiny_mce/tiny_mce.js"></script>
  6.         <script type="text/javascript">
  7.             tinyMCE.init({
  8.                 theme : "advanced",
  9.                 mode : "textareas",
  10.                 plugins : "lists,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,inlinepopups,autosave",
  11.                 theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect",
  12.                 theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
  13.                 theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
  14.                 theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak,restoredraft",
  15.                 theme_advanced_toolbar_location : "top",
  16.                 theme_advanced_toolbar_align : "left",
  17.                 theme_advanced_statusbar_location : "bottom",
  18.  
  19.                 convert_urls : false,
  20.                 height: 300,
  21.                 width:700
  22.             });
  23.         </script>';
  24.         <title>
  25.  
  26.         </title>
  27.     </head>
  28.     <body>
  29.  
  30.         <h2><?php echo $header; ?></h2>
  31.         <?php
  32.         foreach ($menu as $item ) {
  33.             echo "<li>".anchor($item -> link,$item->nama)."</li>";
  34.  
  35.         }
  36.         ?>
  37.  
  38.         <hr><hr>
  39.  
  40.         <?php
  41.         echo $error;
  42.         echo validation_errors();
  43.         echo $this->session->flashdata('msg'); ?>
  44.         <?php echo form_open_multipart('Admin/Admin_post/do_upload'); ?>
  45.         <fieldset>
  46.             <p><label>Category :</label>
  47.                 <?php
  48.                 echo form_dropdown('category',$category);
  49.                 ?></p>
  50.             <p><label>Judul :</label>
  51.                 <?php
  52.                 $judul=array (
  53.                         'name'=>'judul',
  54.                         'id'=>'',
  55.                         'style'=>'width:25%'
  56.  
  57.                 );
  58.                 echo form_input($judul);
  59.                 ?>
  60.             </p>
  61.             <p> <label>Post :</label></p>
  62.             <?php
  63.             $content = array(
  64.                     'name'  => 'post',
  65.                     'class' => ''
  66.             );
  67.             echo form_textarea($content)
  68.             ?>
  69.             <p><label>Banner :</label>
  70.                 <?php
  71.                 $image = array(
  72.                         'name'        => 'userfile'
  73.  
  74.                 );
  75.                 echo form_upload($image);
  76.                 ?>
  77.             </p> <?php echo form_submit('save','save').form_submit('publish','publish').
  78.                     form_reset('reset','reset');
  79.  
  80.             ?>
  81.  
  82.         </fieldset>
  83.     </body>
  84. </html>
Advertisement
Add Comment
Please, Sign In to add comment