whoami7 - Manager
:
/
proc
/
self
/
root
/
home
/
papecmvm
/
www
/
application
/
views
/
setting
/
Upload File:
files >> //proc/self/root/home/papecmvm/www/application/views/setting/setting_add.php
<?php require_once(APPPATH.'views/header.php');?> <?php require_once(APPPATH.'views/menu.php');?> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> <?php if (!isset($view)) {?> <?php echo "Add Setting"; ?> <?php }else{?> <?php echo "Edit Setting";} ?> </h1> <ol class="breadcrumb"> <li><a href="<?php echo site_url('admin/welcome')?>"><i class="fa fa-dashboard"></i> Dashboard</a></li> <li> <a href="<?php echo site_url('admin/setting')?>">Setting</a></li> <li class="active"><?php if (!isset($view)) {?> <?php echo "Add Setting"; ?> <?php }else{?> <?php echo "Edit Setting";} ?> </li> </ol> </section> <!-- Main content --> <section class="content"> <?php $attributes = array('class' =>'defaultForm','data-bv-message'=>'This value is not valid', 'data-bv-feedbackicons-validating'=>'glyphicon glyphicon-refresh'); if (isset($view)) {?> <?php $this->load->model('alldata','model'); $encrypted_id = $this->model->encryptdata($view[0]['other_id']); echo form_open_multipart("admin/setting/edit_setting/{$encrypted_id}",$attributes); ?> <?php }else{?> <?php echo form_open_multipart('admin/setting/add_setting',$attributes); ?> <?php }?> <!-- /.row --> <div class="row"> <div class="col-xs-12"> <div class="box box-success"> <div class="box-header"> </div><!-- /.box-header --> <div class="box-body"> <div class="form-group"> <label>Catrgory </label> <select class="form-control" name="other_cat" required data-bv-notempty-message="The Category is required and cannot be empty"> <option value="">--- Select Category ---</option> <option value="logo" <?php if(isset($view)){ if($view[0]['other_cat']=="logo"){ echo "selected";} }?>>Logo</option> <option value="contact" <?php if(isset($view)){ if($view[0]['other_cat']=="contact"){ echo "selected";} }?>>contact</option> <option value="social-icon" <?php if(isset($view)){ if($view[0]['other_cat']=="social-icon"){ echo "selected";} }?>>Social Icon</option> <option value="copy-right" <?php if(isset($view)){ if($view[0]['other_cat']=="copy-right"){ echo "selected";} }?>>Copy Right</option> <optgroup class="my_optiongroup" label="Contact Us"> <option value="email" <?php if(isset($view)){ if($view[0]['other_cat']=="email"){ echo "selected";} }?>> > Email</option> <option value="address" <?php if(isset($view)){ if($view[0]['other_cat']=="address"){ echo "selected";} }?>> > Address</option> <option value="contact-no" <?php if(isset($view)){ if($view[0]['other_cat']=="contact-no"){ echo "selected";} }?>> > Contact No.</option> <optgroup class="my_optiongroup" label="Email Setting"> <option value="email-host" <?php if(isset($view)){ if($view[0]['other_cat']=="email-host"){ echo "selected";} }?>> > Host Name</option> <option value="email-port" <?php if(isset($view)){ if($view[0]['other_cat']=="email-port"){ echo "selected";} }?>> > Port</option> <option value="email-email" <?php if(isset($view)){ if($view[0]['other_cat']=="email-email"){ echo "selected";} }?>> > Email</option> <option value="email-password" <?php if(isset($view)){ if($view[0]['other_cat']=="email-password"){ echo "selected";} }?>> > Password</option> </optgroup> <!--optgroup class="my_optiongroup" label="Database Setting"> <option value="db-name" <?php if(isset($view)){ if($view[0]['other_cat']=="db-database"){ echo "selected";} }?>> > Database Name</option> <option value="db-host" <?php if(isset($view)){ if($view[0]['other_cat']=="db-host"){ echo "selected";} }?>> > Host Name</option> <option value="db-user-name" <?php if(isset($view)){ if($view[0]['other_cat']=="db-user-name"){ echo "selected";} }?>> > User Name</option> <option value="db-password" <?php if(isset($view)){ if($view[0]['other_cat']=="db-password"){ echo "selected";} }?>> > Password</option> </optgroup--> </select> </div> <div class="form-group"> <label>Title</label> <input type="text" class="form-control" placeholder="Title" name="other_title" value="<?php if(isset($view)){echo $view[0]['other_title'];}?>" required data-bv-notempty-message="The title is required and cannot be empty" /> </div> <div class="form-group"> <label>Description/Text</label> <textarea id="editor" name='other_text' required data-bv-notempty-message="The Description/Text is required and cannot be empty"><?php if(isset($view)){echo $view[0]['other_text'];}?></textarea> </div> <div class="form-group"> <label>Title Icon</label> <input type="text" class="form-control icon-picker" placeholder="Select Icon" name="other_icon" value="<?php if(isset($view)){echo $view[0]['other_icon'];}?>"/> </div> <div class="form-group"> <label>Social Link</label> <input type="text" class="form-control" placeholder="Social Link" name="social_link" value="<?php if(isset($view)){echo $view[0]['social_link'];}?>"/> </div> <div class="form-group"> <label>Position</label> <input type="text" class="form-control" placeholder="Position" name="other_position" value="<?php if(isset($view)){echo $view[0]['other_position'];}?>"/> </div> <?php /*<div class="form-group"> <label>Background Color</label> <input type="text" class="form-control" placeholder="Background Color" name="other_bgclr" value="<?php if(isset($view)){echo $view[0]['other_bgclr'];}?>"/> </div> <div class="form-group"> <label>Text Color</label> <input type="text" class="form-control" placeholder="Background Color" name="other_clr" value="<?php if(isset($view)){echo $view[0]['other_clr'];}?>"/> </div>*/?> <div class="form-group"> <label>Page URL Link</label> <?php if(isset($view)){ $pg=$view[0]['other_link'];} ?> <select class="form-control" name="other_link"> <option value="">--- Select Portfolio Category ---</option> <?php foreach($pageData as $key ) { ?> <option value="<?Php echo $key['content_id'] ?>" <?php if(isset($view)){ if($pg== $key['content_id']){ echo "selected='selected'";}}?>><?Php echo $key['content_title'] ?></option> <?php }?> </select> </div> <div class="form-group"> <label>Upload Image</label> <?php if(isset($view)){ ?> <img src="<?php echo base_url()."bootstrap/images/".$view[0]['other_image'];?>" class="thumbnail" width="150" /> <input class="file-0" type="file" name="image_name" data-show-upload="false" /> <?php }else{?> <input class="file-0" type="file" name="image_name" data-show-upload="false"/> <?php } ?> <input type="hidden" value="<?php if(isset($view)){echo $view[0]['other_image'];}?>" name="hidden_photo"/> </div> <button class="btn btn-primary bg-blue" name="save" value="save" type="submit">Save</button> </div><!-- /.box-body --> </div><!-- /.box --> </div><!--End .col-xs-12--> </div> <!-- /.row --> <?php echo form_close(); ?> <!-- /.Form data --> </section><!-- /.content --> </div><!-- /.content-wrapper --> <?php require_once(APPPATH.'views/footer.php');?>
Copyright ©2021 || Defacer Indonesia