Exemplo n.º 1
0
?>
" />
					<?php 
echo form_error('title');
?>
				</div>
			</div>
			<div class="clearfix">
				<label>Body:</label>
				<div class="input">
					<textarea id="body_text" name="body_text"><?php 
echo set_value('body_text');
?>
</textarea>
					<?php 
echo display_ckeditor($ckeditor);
?>
					<?php 
echo form_error('body_text');
?>
				</div>
			</div>		
		  </fieldset>
		  <fieldset id="featureimage">
			<legend>Feature Image</legend>
			<div class="clearfix">
				<label>Choose image to use as feature</label>
				<div class="input">
					<input type="file" name="featureimage" />
					<?php 
echo form_error('featureimage');
Exemplo n.º 2
0
        echo $item->nm_lista;
        ?>
</option>
                            <?php 
    }
    ?>
                        <?php 
}
?>
                    </select>
                </div>
                <div class="form-group">
                    <label>Template</label>
                    <textarea name="ds_mensagem" id="texto1"></textarea>
                    <?php 
echo display_ckeditor($ckeditor_texto1);
?>
                </div>
                <br/>
                <div class="form-group" align="center">
                    <button type="submit" class="btn btn-primary">Salvar</button>
                    <button type="submit" name="enviar" class="btn btn-success">Salvar e Enviar</button>
                </div>
                <br/><br/>
            </form>
        </div>
    </div>
    <!-- /.row -->

</div>
<!-- /#page-wrapper -->
Exemplo n.º 3
0
				</select>
			</fieldset><div class="clear"></div>
			
			<fieldset style="width:48%;float:right;margin-top:-179px">
				<label>Học phí : </label>
				<input type="text" name="hocphi" style="color:blue;float:left;width:70%;height:30px;font-weight: bold"/>
				<select name="tiente" style="color:blue;float:right;width:17%;height:30px;font-weight: bold"/>
					<?php foreach($tiente as $tien)
					{
						?>
							<option style="color:blue;font-weight: bold" value="<?php echo $tien->ten; ?>"><?php echo $tien->ten;?></option>
						<?php 
					}
					?>
				</select>
			</fieldset><div class="clear"></div>
			
			<fieldset>
				<label>Nội dung khóa học: </label>
				<textarea name="noidung" id="content" ></textarea>
					<?php echo display_ckeditor($ckeditor); ?>
			</fieldset>
		
		</div>
			<footer>	
					<div class="submit_link">
						<input type="submit" name="submit" value="Thêm khóa học" class="alt_btn">
					</div>
			</footer>
</article>
</form>
Exemplo n.º 4
0
?>
</textarea>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="field-1" class="col-sm-3 control-label"><?php 
echo $this->language->from_body()[23][3];
?>
 <span class="required">*</span></label>
                            <div class="col-sm-8">
                                <textarea class="form-control " name="long_description" id="ck_editor" required><?php 
echo $notice->long_description;
?>
</textarea>
                                <?php 
echo display_ckeditor($editor['ckeditor']);
?>
                            </div>
                        </div>

                        <!--hidden input values -->                       

                        <div class="form-group">
                            <div class="col-sm-offset-3 col-sm-5">
                                <button type="submit" id="sbtn" class="btn btn-primary"><?php 
echo $this->language->from_body()[1][12];
?>
</button>                            
                            </div>
                        </div>   
                    </form>
Exemplo n.º 5
0
 /**
  * pages form
  */
 public function create()
 {
     //generate WYSIWYG editor
     $this->_ckeditor_conf();
     $this->data['generated_editor'] = display_ckeditor($this->data['ckeditor']);
     $this->data['generated_editor2'] = display_ckeditor($this->data['ckeditor2']);
     //generate username, current date if creating nu pages [not editing]
     if (!isset($this->data['date_created'])) {
         $this->data['date_created'] = get_timestamp();
         $this->session->set_userdata('date_created', $this->data['date_created']);
     }
     if (!isset($this->data['created_by'])) {
         $this->data['created_by'] = $this->ion_auth->get_user()->username;
     } else {
         //get the username of the person who created the pages
         //			$this->data['created_by'] = $this->ion_auth->get_user($this->data['created_by'])->username;
     }
     if (!isset($this->data['output'])) {
         $this->data = array_merge($this->data, array('output' => '', 'js_files' => array(), 'css_files' => array()));
     }
     //array_push($this->data,$this->data[0]);
     //array_push($this->data,(array)$this->data[0]);
     //array_merge($this->data[0],$this->data);
     //echo '<pre>';
     //print_r($this->data);
     //echo '</pre>';
     //display
     $this->load->view('templates/admin_header');
     $this->load->view('admin/index.php');
     $this->load->view('admin/create_pages.php', $this->data);
     $this->load->view('templates/admin_footer');
 }
Exemplo n.º 6
0
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
</head>
<body>
	<textarea name="content" id="content" ><p>Example data</p></textarea>
	<?php 
echo display_ckeditor($ckeditor);
?>
	<textarea name="content_2" id="content_2" ><p>Example data</p></textarea>
	<?php 
echo display_ckeditor($ckeditor_2);
?>
</body>
</html>
Exemplo n.º 7
0
 public function create_type()
 {
     //generate WYSIWYG editor
     $this->_ckeditor_conf2();
     $this->data['generated_editor'] = display_ckeditor($this->data['ckeditor']);
     $this->data['generated_editor2'] = display_ckeditor($this->data['ckeditor2']);
     //generate username, current date if creating nu notices [not editing]
     if (!isset($this->data['date_created'])) {
         $this->data['date_created'] = get_timestamp();
         $this->session->set_userdata('date_created', $this->data['date_created']);
     }
     if (!isset($this->data['created_by'])) {
         $this->data['created_by'] = $this->ion_auth->get_user()->username;
     } else {
         //get the username of the person who created the notices
         //			$this->data['created_by'] = $this->ion_auth->get_user($this->data['created_by'])->username;
     }
     //display
     $this->load->view('templates/admin_header');
     $this->load->view('admin/index.php');
     $this->load->view('admin/create_faqs_type.php', $this->data);
     $this->load->view('templates/admin_footer');
 }
Exemplo n.º 8
0
				<?php echo display_ckeditor($address_vn); ?>
			</fieldset><div class="clear"></div>
			<fieldset style="width:100%; float:left;"> <!-- to make two field float next to one another, adjust values accordingly -->
				<label><?php echo $this->lang->line('contact-address-en');?></label>
				<textarea name="address_en" id="address_en"><?php echo $row->address_en; ?></textarea>
				<?php echo display_ckeditor($address_en); ?>
			</fieldset><div class="clear"></div>
			<fieldset style="width:100%; float:left;"> <!-- to make two field float next to one another, adjust values accordingly -->
				<label><?php echo $this->lang->line('contact-info-vn');?></label>
				<textarea name="info_vn" id="info_vn"><?php echo $row->info_vn; ?></textarea>
				<?php echo display_ckeditor($info_vn); ?>
			</fieldset><div class="clear"></div>
			<fieldset style="width:100%; float:left;"> <!-- to make two field float next to one another, adjust values accordingly -->
				<label><?php echo $this->lang->line('contact-info-en');?></label>
				<textarea name="info_en" id="info_en"><?php echo $row->info_en; ?></textarea>
				<?php echo display_ckeditor($info_en); ?>
			</fieldset><div class="clear"></div>
			<fieldset>
				<label><?php echo $this->lang->line('contact-email'); ?></label>
				<input type="text" name="email" value="<?php echo $row->email; ?>"/>	
			</fieldset>
			<fieldset>
				<label><?php echo $this->lang->line('contact-phone'); ?></label>
				<input type="text" name="phone_number" value="<?php echo $row->phone_number; ?>"/>	
			</fieldset>
			<fieldset>
				<label><?php echo $this->lang->line('contact-fax'); ?></label>
				<input type="text" name="fax_number" value="<?php echo $row->fax_number; ?>"/>	
			</fieldset>
		</div>
		<footer>