whoami7 - Manager
:
/
home
/
papecmvm
/
public_html
/
application
/
views
/
portfolio
/
Upload File:
files >> //home/papecmvm/public_html/application/views/portfolio/portfolio_sub_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 Portfolio Category"; ?> <?php }else{?> <?php echo "Edit Portfolio Category";} ?> </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/portfolioCategory')?>">Portfolio Category</a></li> <li class="active"><?php if (!isset($view)) {?> <?php echo "Add Portfolio Category"; ?> <?php }else{?> <?php echo "Edit Portfolio Category";} ?> </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]['psid']); echo form_open_multipart("admin/Portfolio_subcat/edit_portfoliocategory/{$encrypted_id}",$attributes); ?> <?php }else{?> <?php echo form_open_multipart('admin/Portfolio_subcat/add_portfoliocategory',$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>Portfolio Category</label> <?php if(isset($view)){ echo $catid=$view[0]['pid'];} ?> <select name="pid" class="form-control"> <option>----SELECT</option> <?php foreach ($port as $key) { ?> <option value="<?php echo $key['portfolio_cat_id']; ?>" <?php if(isset($view)){ if($catid== $key['portfolio_cat_id']){ echo "selected='selected'";}}?>><?php echo $key['portfolio_cat_name']; ?></option> <?php } ?> </select> </div> <div class="form-group"> <label>Portfolio Sub Category</label> <input type="text" class="form-control" data-bv-regexp-message="Special characters not allowed..." pattern='^[^\`\~\@\#\$\%\^\*\[\]\{\}\\;:<>=+"]+$' placeholder="Portfolio Category" name="ps_name" value="<?php if(isset($view)){echo $view[0]['ps_name'];}?>" required data-bv-notempty-message="The portfolio category is required and cannot be empty" /> </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