EVOLUTION-NINJA
Edit File: master_page.php
<?php $this->load->view('includes/admin_header');?> <div class="main-container ace-save-state" id="main-container"> <div id="sidebar" class="sidebar responsive ace-save-state"> <div class="text-center"> <h4>ADMIN</h4> </div> <ul class="nav nav-list"> <li class=""> <a href="#" class="dropdown-toggle">General<b class="arrow fa fa-angle-down"></b> </a> <b class="arrow"></b> <ul class="submenu"> <li class=""> <a href="<?php echo site_url('yaskawa/personal_settings');?>"> <i class="menu-icon fa fa-caret-right"></i> Personal Settings </a> <b class="arrow"></b> </li> <li class=""> <a href="<?php echo site_url('yaskawa/company_details');?>"> <i class="menu-icon fa fa-caret-right"></i> Company Details </a> <b class="arrow"></b> </li> <li class=""> <a href="<?php echo site_url('yaskawa/email_settings');?>"> <i class="menu-icon fa fa-caret-right"></i> Email Settings </a> <b class="arrow"></b> </li> </ul> </li><!---org end----> <li class=""> <a href="#" class="dropdown-toggle"> <span class="menu-text"> Users & Control </span> <b class="arrow fa fa-angle-down"></b> </a> <b class="arrow"></b> <ul class="submenu"> <li class=""> <a href="<?php echo site_url('yaskawa/users');?>"> <i class="menu-icon fa fa-caret-right"></i> Users </a> <b class="arrow"></b> </li> <li class=""> <a href="<?php echo site_url('yaskawa/security_control');?>"> <i class="menu-icon fa fa-caret-right"></i> Security Control </a> <b class="arrow"></b> </li> <?php $user_name = $this->session->userdata('admin'); if($user_name=='Admin'){ ?> <li class=""> <a href="<?php echo base_url('yaskawa/add_access');?>"> <i class="menu-icon fa fa-caret-right"></i> Add Access </a> <b class="arrow"></b> </li> <?php } ?> <li class=""> <a href="<?php echo site_url('yaskawa/master_page');?>"> <i class="menu-icon fa fa-caret-right"></i> Master Page </a> <b class="arrow"></b> </li> </ul> </ul> </li> <!-----Emp end-----> </ul><!-- /.nav-list --> </div> <div class="main-content"> <div class="main-content-inner"> <form id="master-page1" action="<?php echo site_url("yaskawa/insert_master_page"); ?>" method="post"> <div class="page-content"> <div class="row"> <div class="col-sm-12 col-md-5"> <h3><span style="font-size:14px" class="btn btn-primary btn-sm" data-toggle="modal"> Master page</span></h3> </div> </div> <div class="row"> <div class="col-sm-12 col-xs-12 col-md-6"> <label class="col-sm-4">Master page</label> <div class="col-sm-8 yes_form"> <input type="hidden" id="ids" name="ids"> <select name="master_data" id="master_data" class="form-control" required="required"> <option value="">Select</option> <option value="1">Lead Source</option> <option value="2">Industry</option> <option value="3">Lead Status</option> <option value="4">Ratings</option> <option value="5">Account type</option> <option value="6">honorific</option> <option value="7">Customer Type</option> <option value="8">Lead Process</option> </select> </div> </div> </div> <div class="row" id="data_enter"> <div class="col-sm-12 col-xs-12 col-md-6"> <label class="col-sm-4">Enter data</label> <div class="col-sm-8 yes_form"> <input type="text" name="enter_data" class="form-control" id="show_data" required="required"> <div id="progress"> <select name="progress" id="prg_range"> <option value=" ">Progress</option> <option value="20">20</option> <option value="40">40</option> <option value="60">60</option> <option value="80">80</option> <option value="100">100</option> </select> </div> <input type="submit" value="Save" id="hide_save" class=" btn btn-primary btn-sm"> </div> </div> </div> </form> <div class="row row-form" id="hide_lead_source"> <h1 style=" margin-left:10%; width:80%; font-weight: bold;">Lead Source</h1> <div class="col-sm-12 table-responsive"> <table id="maintable" class="table" border="1" style=" margin-left:10%; width:80%;"> <thead> <th>Lead Source</th> <th>Edit</th> <th>Delete</th> </thead> <tbody> <?php foreach($lead_source as $value) {?> <tr> <td><?php echo $value->lead_source_name; ?></td> <td><input type="hidden" value="<?php echo $value->source_id; ?>" class="edit_lead_source<?php echo $value->source_id; ?>"><input type="button" href="javascript:void(0)" value="Edit" onclick="edit_lead_source(<?php echo $value->source_id; ?>)"></td> <td><input type="hidden" value="<?php echo $value->source_id; ?>" class="lead_source<?php echo $value->source_id; ?>"><input type="button" href="javascript:void(0)" value="Delete" onclick="delete_lead_source(<?php echo $value->source_id; ?>)"></td> </tr> <?php } ?> </tbody> </table> </div> </div> <div class="row row-form" id="hide_lead_industry"> <h1 style=" margin-left:10%; width:80%; font-weight: bold;">Industry</h1> <table id="maintable" class="table" border="1" style=" margin-left:10%; width:80%;"> <thead> <th>Industry</th> <th>Edit</th> <th>Delete</th> </thead> <tbody> <?php foreach($lead_industry as $value) {?> <tr> <td><?php echo $value->industry_name; ?></td> <td><input type="hidden" value="<?php echo $value->industry_id; ?>" class="edit_lead_industry<?php echo $value->industry_id; ?>"><input type="button" value="Edit" onclick="edit_lead_industry(<?php echo $value->industry_id; ?>)"></td> <td><input type="hidden" value="<?php echo $value->industry_id; ?>" class="lead_industry<?php echo $value->industry_id; ?>"><input type="button" value="Delete" onclick="delete_lead_industry(<?php echo $value->industry_id; ?>)"></td> </tr> <?php } ?> </tbody> </table> </div> <div class="row row-form" id="hide_lead_status"> <h1 style=" margin-left:10%; width:80%; font-weight: bold;">Lead Status</h1> <table id="maintable" class="table" border="1" style=" margin-left:10%; width:80%;"> <thead> <th>Lead Status</th> <th>Edit</th> <th>Delete</th> </thead> <tbody> <?php foreach($lead_status as $value) {?> <tr> <td><?php echo $value->lead_status_name; ?></td> <td><input type="hidden" value="<?php echo $value->status_id; ?>" class="edit_lead_status<?php echo $value->status_id; ?>"><input type="button" value="Edit" onclick="edit_lead_status(<?php echo $value->status_id; ?>)"></td> <td><input type="hidden" value="<?php echo $value->status_id; ?>" class="lead_status<?php echo $value->status_id; ?>"><input type="button" value="Delete" onclick="delete_lead_status(<?php echo $value->status_id; ?>)"></td> </tr> <?php } ?> </tbody> </table> </div> <div class="row row-form" id="hide_lead_ratings"> <h1 style=" margin-left:10%; width:80%; font-weight: bold;">Ratings</h1> <table id="maintable" class="table" border="1" style=" margin-left:10%; width:80%;"> <thead> <th>Ratings</th> <th>Edit</th> <th>Delete</th> </thead> <tbody> <?php foreach($lead_ratings as $value) {?> <tr> <td><?php echo $value->ratings; ?></td> <td><input type="hidden" value="<?php echo $value->rating_id; ?>" class="edit_rating<?php echo $value->rating_id; ?>"><input type="button" value="Edit" onclick="edit_rating(<?php echo $value->rating_id; ?>)"></td> <td><input type="hidden" value="<?php echo $value->rating_id; ?>" class="rating<?php echo $value->rating_id; ?>"><input type="button" value="Delete" onclick="delete_rating(<?php echo $value->rating_id; ?>)"></td> </tr> <?php } ?> </tbody> </table> </div> <div class="row row-form" id="account_type"> <h1 style=" margin-left:10%; width:80%; font-weight: bold;">Accounts Type</h1> <table id="maintable" class="table" border="1" style=" margin-left:10%; width:80%;"> <thead> <th>Account Type</th> <th>Edit</th> <th>Delete</th> </thead> <tbody> <?php foreach($account_type as $value) {?> <tr> <td><?php echo $value->account_type; ?></td> <td><input type="hidden" value="<?php echo $value->account_type_id; ?>" class="edit_account_type<?php echo $value->account_type_id; ?>"><input type="button" value="Edit" onclick="edit_account_type(<?php echo $value->account_type_id; ?>)"></td> <td><input type="hidden" value="<?php echo $value->account_type_id; ?>" class="delete_account_type<?php echo $value->account_type_id; ?>"><input type="button" value="Delete" onclick="delete_account_type(<?php echo $value->account_type_id; ?>)"></td> </tr> <?php } ?> </tbody> </table> </div> <div class="row row-form" id="honorific"> <h1 style=" margin-left:10%; width:80%; font-weight: bold;">Honorifics</h1> <table id="maintable" class="table" border="1" style=" margin-left:10%; width:80%;"> <thead> <th>Honorific</th> <th>Edit</th> <th>Delete</th> </thead> <tbody> <?php foreach($honorific as $value) {?> <tr> <td><?php echo $value->honorific; ?></td> <td><input type="hidden" value="<?php echo $value->honorific_id; ?>" class="edit_honorific<?php echo $value->honorific_id; ?>"><input type="button" value="Edit" onclick="edit_honorific(<?php echo $value->honorific_id; ?>)"></td> <td><input type="hidden" value="<?php echo $value->honorific_id; ?>" class="delete_honorific<?php echo $value->honorific_id; ?>"><input type="button" value="Delete" onclick="delete_honorific(<?php echo $value->honorific_id; ?>)"></td> </tr> <?php } ?> </tbody> </table> </div> <div class="row row-form" id="customer_type"> <h1 style=" margin-left:10%; width:80%; font-weight: bold;">Customer Types</h1> <table id="maintable" class="table" border="1" style=" margin-left:10%; width:80%;"> <thead> <th>Customer Types</th> <th>Edit</th> <th>Delete</th> </thead> <tbody> <?php foreach($customer_type as $value) {?> <tr> <td><?php echo $value->customer_type; ?></td> <td><input type="hidden" value="<?php echo $value->customer_type_id; ?>" class="edit_customer_type<?php echo $value->customer_type_id; ?>"><input type="button" value="Edit" onclick="edit_customer_type(<?php echo $value->customer_type_id; ?>)"></td> <td><input type="hidden" value="<?php echo $value->customer_type_id; ?>" class="delete_customer_type<?php echo $value->customer_type_id; ?>"><input type="button" value="Delete" onclick="delete_customer_type(<?php echo $value->customer_type_id; ?>)"></td> </tr> <?php } ?> </tbody> </table> </div> <div class="row row-form" id="lead_process"> <h1 style=" margin-left:10%; width:80%; font-weight: bold;">Lead Process</h1> <table id="maintable" class="table" border="1" style=" margin-left:10%; width:80%;"> <thead> <th>Lead Process</th> <th>Edit</th> <th>Delete</th> </thead> <tbody> <?php foreach($lead_process as $value) {?> <tr> <td><?php echo $value->lead_process; ?></td> <td><input type="hidden" value="<?php echo $value->lead_process_id; ?>" class="edit_lead_process<?php echo $value->lead_process_id; ?>"><input type="button" value="Edit" onclick="edit_lead_process(<?php echo $value->lead_process_id; ?>)"></td> <td><input type="hidden" value="<?php echo $value->lead_process_id; ?>" class="delete_lead_process<?php echo $value->lead_process_id; ?>"><input type="button" value="Delete" onclick="delete_lead_process(<?php echo $value->lead_process_id; ?>)"></td> </tr> <?php } ?> </tbody> </table> </div> <!-- <div class="row" id="track_buttons"> <div class="col-sm-4 col-md-3"> <h3><span style="font-size:14px" class="btn btn-primary btn-sm" data-toggle="modal"> Leads</span></h3> </div> <div class="col-sm-4 col-md-3"> <h3><span style="font-size:14px" class="btn btn-primary btn-sm" data-toggle="modal"> Accounts</span></h3> </div> <div class="col-sm-4 col-md-3"> <h3><span style="font-size:14px" class="btn btn-primary btn-sm" data-toggle="modal"> Quotations</span></h3> </div> <div class="col-sm-4 col-md-3"> <h3><span style="font-size:14px" class="btn btn-primary btn-sm" data-toggle="modal"> Invoice</span></h3> </div> </div> --> </div><!-- /.page-content --> </div> </div><!-- /.main-content --> <div id="lead_datas"></div> <a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse"> <i class="ace-icon fa fa-angle-double-up icon-only bigger-110"></i> </a> </div><!-- /.main-container --> <!-- Modal --> <!-- basic scripts --> <!--[if !IE]> --> <!-- <script src="<?php echo base_url('admin_assets/assets/js/jquery-2.1.4.min.js'); ?>"></script> --> <script type="text/javascript"> if('ontouchstart' in document.documentElement) document.write("<script src='assets/js/jquery.mobile.custom.min.js'>"+"<"+"/script>"); </script> <!-- <script src="<?php echo base_url('admin_assets/assets/js/bootstrap.min.js'); ?>"></script> --> <!-- page specific plugin scripts --> <!--[if lte IE 8]> <script src="<?php echo base_url('admin_assets/assets/js/excanvas.min.js'); ?>"></script> <![endif]--> <script src="<?php echo base_url('admin_assets/assets/js/jquery-ui.custom.min.js'); ?>"></script> <script src="<?php echo base_url('admin_assets/assets/js/jquery.ui.touch-punch.min.js'); ?>"></script> <script src="<?php echo base_url('admin_assets/assets/js/jquery.easypiechart.min.js'); ?>"></script> <script src="<?php echo base_url('admin_assets/assets/js/jquery.sparkline.index.min.js'); ?>"></script> <script src="<?php echo base_url('admin_assets/assets/js/jquery.flot.min.js'); ?>"></script> <script src="<?php echo base_url('admin_assets/assets/js/jquery.flot.pie.min.js'); ?>"></script> <script src="<?php echo base_url('admin_assets/assets/js/jquery.flot.resize.min.js'); ?>"></script> <!-- ace scripts --> <script src="<?php echo base_url('admin_assets/assets/js/ace-elements.min.js'); ?>"></script> <script src="<?php echo base_url('admin_assets/assets/js/ace.min.js'); ?>"></script> <!-- inline scripts related to this page --> <!-- Modal --> </body> </html> <style type="text/css"> .yes_form input{ width:100% !important; border:none !important; border-bottom:1px solid gray !important; margin-bottom:5%; } .yes_form select{ width:100% !important; border:none !important; border-bottom:1px solid gray !important; margin-bottom:5%; } .yes_form textarea{ width:100% !important; border:none !important; border-bottom:1px solid gray !important; margin-bottom:5%; } </style> <!-- <script type="text/javascript"> $(document).ready(function(){ $('#lead_owner_ids').change(function(){ $('#track_buttons').show(); }); $('#track_buttons').hide(); }); </script> --> <script type="text/javascript"> $(document).ready(function(){ $('#master_data').change(function(){ var master_data=$('#master_data').val(); if(master_data == 1){ $('#data_enter').show(); $('#progress').hide(); $('#hide_lead_source').show(); }else if(master_data == 2){ $('#data_enter').show(); $('#progress').hide(); $('#hide_lead_industry').show(); }else if(master_data == 3){ $('#data_enter').show(); $('#progress').hide(); $('#hide_lead_status').show(); }else if(master_data == 4){ $('#data_enter').show(); $('#progress').hide(); $('#hide_lead_ratings').show(); }else if(master_data ==5){ $('#data_enter').show(); $('#progress').hide(); $('#account_type').show(); }else if(master_data == 6){ $('#data_enter').show(); $('#progress').hide(); $('#honorific').show(); }else if(master_data == 7){ $('#data_enter').show(); $('#progress').hide(); $('#customer_type').show(); }else if(master_data == 8){ $('#data_enter').show(); $('#progress').show(); $('#lead_process').show(); } if(master_data == 1){ $('#hide_lead_industry').hide(); $('#hide_lead_status').hide(); $('#hide_lead_ratings').hide(); $('#account_type').hide(); $('#honorific').hide(); $('#customer_type').hide(); $('#lead_process').hide(); }else if(master_data == 2){ $('#hide_lead_source').hide(); $('#hide_lead_status').hide(); $('#hide_lead_ratings').hide(); $('#account_type').hide(); $('#honorific').hide(); $('#customer_type').hide(); $('#lead_process').hide(); }else if(master_data == 3){ $('#hide_lead_source').hide(); $('#hide_lead_industry').hide(); $('#hide_lead_ratings').hide(); $('#account_type').hide(); $('#honorific').hide(); $('#customer_type').hide(); $('#lead_process').hide(); }else if(master_data == 4){ $('#hide_lead_source').hide(); $('#hide_lead_industry').hide(); $('#hide_lead_status').hide(); $('#account_type').hide(); $('#honorific').hide(); $('#customer_type').hide(); $('#lead_process').hide(); }else if(master_data == 5){ $('#hide_lead_source').hide(); $('#hide_lead_industry').hide(); $('#hide_lead_status').hide(); $('#hide_lead_ratings').hide(); $('#honorific').hide(); $('#customer_type').hide(); $('#lead_process').hide(); }else if(master_data == 6){ $('#hide_lead_source').hide(); $('#hide_lead_industry').hide(); $('#hide_lead_status').hide(); $('#hide_lead_ratings').hide(); $('#account_type').hide(); $('#customer_type').hide(); $('#lead_process').hide(); }else if(master_data == 7){ $('#hide_lead_source').hide(); $('#hide_lead_industry').hide(); $('#hide_lead_status').hide(); $('#hide_lead_ratings').hide(); $('#account_type').hide(); $('#honorific').hide(); $('#lead_process').hide(); }else if(master_data == 8){ $('#hide_lead_source').hide(); $('#hide_lead_industry').hide(); $('#hide_lead_status').hide(); $('#hide_lead_ratings').hide(); $('#account_type').hide(); $('#honorific').hide(); $('#customer_type').hide(); } }); $('#data_enter').hide(); $('#hide_lead_source').hide(); $('#hide_lead_industry').hide(); $('#hide_lead_status').hide(); $('#hide_lead_ratings').hide(); $('#account_type').hide(); $('#honorific').hide(); $('#customer_type').hide(); $('#lead_process').hide(); }); </script> <script> // $(document).ready(function(){ // $('#master-page1').submit(function(e){ // //alert(); // e.preventDefault(); // var master_data=$('#master_data').val(); // if(master_data == 1){ // formdata = new FormData($(this)[0]); // //alert(master_data); // $.ajax({ // type : 'post', // url : '<?php //echo site_url("yaskawa/insert_master_page");?>', // data : formdata, // contentType: false, // processData: false, // success:function(response){ // response=jQuery.parseJSON(response); // console.log(response); // if(response.result == 1) // { // alert("Added Successfully"); // location.reload(); // } // else // { // alert("Something error"); // } // } // }); // }else if(master_data == 2){ // formdata = new FormData($(this)[0]); // //alert(master_data); // $.ajax({ // type : 'post', // url : '<?php //echo site_url("yaskawa/insert_master_page");?>', // data : formdata, // contentType: false, // processData: false, // success:function(response){ // response=jQuery.parseJSON(response); // console.log(response); // if(response.result == 1) // { // alert("Added Successfully"); // location.reload(); // } // else // { // alert("Something error"); // } // } // }); // }else if(master_data == 3){ // formdata = new FormData($(this)[0]); // //alert(master_data); // $.ajax({ // type : 'post', // url : '<?php //echo site_url("yaskawa/insert_master_page");?>', // data : formdata, // contentType: false, // processData: false, // success:function(response){ // response=jQuery.parseJSON(response); // console.log(response); // if(response.result == 1) // { // alert("Added Successfully"); // location.reload(); // } // else // { // alert("Something error"); // } // } // }); // }else if(master_data == 4){ // formdata = new FormData($(this)[0]); // //alert(master_data); // $.ajax({ // type : 'post', // url : '<?php //echo site_url("yaskawa/insert_master_page");?>', // data : formdata, // contentType: false, // processData: false, // success:function(response){ // response=jQuery.parseJSON(response); // console.log(response); // if(response.result == 1) // { // alert("Added Successfully"); // location.reload(); // } // else // { // alert("Something error"); // } // } // }); // }else if(master_data == 5){ // formdata = new FormData($(this)[0]); // //alert(master_data); // $.ajax({ // type : 'post', // url : '<?php //echo site_url("yaskawa/insert_master_page");?>', // data : formdata, // contentType: false, // processData: false, // success:function(response){ // response=jQuery.parseJSON(response); // console.log(response); // if(response.result == 1) // { // alert("Added Successfully"); // location.reload(); // } // else // { // alert("Something error"); // } // } // }); // } // }); // }); </script> <script type="text/javascript"> function edit_lead_source(key){ var edit_lead_source=$('.edit_lead_source'+key).val(); $.ajax({ type:'POST', data:{'source_id':edit_lead_source}, url:'<?php echo site_url('yaskawa/edit_lead_source'); ?>', success:function(response) { var objData = jQuery.parseJSON(response); source_id=objData.source_id; lead_source_name=objData.lead_source_name; $('#ids').val(source_id); $('#show_data').val(lead_source_name); $('#data_enter').show(); } }); } </script> <script type="text/javascript"> function edit_lead_industry(key){ var edit_lead_industry=$('.edit_lead_industry'+key).val(); $.ajax({ type:'POST', data:{'industry_id':edit_lead_industry}, url:'<?php echo site_url('yaskawa/edit_lead_industry'); ?>', success:function(response) { var objData = jQuery.parseJSON(response); industry_name=objData.industry_name; industry_id=objData.industry_id; $('#ids').val(industry_id); $('#show_data').val(industry_name); $('#data_enter').show(); } }); } </script> <script type="text/javascript"> function edit_lead_status(key){ var edit_lead_status=$('.edit_lead_status'+key).val(); $.ajax({ type:'POST', data:{'status_id':edit_lead_status}, url:'<?php echo site_url('yaskawa/edit_lead_status'); ?>', success:function(response) { var objData = jQuery.parseJSON(response); lead_status_name=objData.lead_status_name; status_id=objData.status_id; $('#ids').val(status_id); $('#show_data').val(lead_status_name); $('#data_enter').show(); } }); } </script> <script type="text/javascript"> function edit_rating(key){ var edit_rating=$('.edit_rating'+key).val(); $.ajax({ type:'POST', data:{'rating_id':edit_rating}, url:'<?php echo site_url('yaskawa/edit_rating'); ?>', success:function(response) { var objData = jQuery.parseJSON(response); ratings=objData.ratings; rating_id=objData.rating_id; $('#ids').val(rating_id); $('#show_data').val(ratings); $('#data_enter').show(); } }); } </script> <script type="text/javascript"> function delete_lead_source(key){ var lead_source=$('.lead_source'+key).val(); $.ajax({ type:'POST', data:{'source_id':lead_source}, url:'<?php echo site_url('yaskawa/delete_lead_source'); ?>', success:function(response) { response=jQuery.parseJSON(response); console.log(response); if(response.result == 1) { alert("Deleted Successfully"); location.reload(); } else { alert("Something went wrong"); } } }); } </script> <script type="text/javascript"> function delete_lead_industry(key){ var lead_industry=$('.lead_industry'+key).val(); $.ajax({ type:'POST', data:{'industry_id':lead_industry}, url:'<?php echo site_url('yaskawa/delete_lead_industry'); ?>', success:function(response) { response=jQuery.parseJSON(response); console.log(response); if(response.result == 1) { alert("Deleted Successfully"); location.reload(); } else { alert("Something went wrong"); } } }); } </script> <script type="text/javascript"> function delete_lead_status(key){ var lead_status=$('.lead_status'+key).val(); $.ajax({ type:'POST', data:{'status_id':lead_status}, url:'<?php echo site_url('yaskawa/delete_lead_status'); ?>', success:function(response) { response=jQuery.parseJSON(response); console.log(response); if(response.result == 1) { alert("Deleted Successfully"); location.reload(); } else { alert("Something went wrong"); } } }); } </script> <script type="text/javascript"> function delete_rating(key){ var rating_id=$('.rating'+key).val(); $.ajax({ type:'POST', data:{'rating_id':rating_id}, url:'<?php echo site_url('yaskawa/delete_rating'); ?>', success:function(response) { response=jQuery.parseJSON(response); console.log(response); if(response.result == 1) { alert("Deleted Successfully"); location.reload(); } else { alert("Something went wrong"); } } }); } </script> <script> function edit_account_type(key){ var edit_account_type=$('.edit_account_type'+key).val(); $.ajax({ type:'POST', data:{'account_id':edit_account_type}, url:'<?php echo site_url('yaskawa/edit_account_type'); ?>', success:function(response) { var objData = jQuery.parseJSON(response); account_type_id=objData.account_type_id; account_type=objData.account_type; $('#ids').val(account_type_id); $('#show_data').val(account_type); $('#data_enter').show(); } }); } function delete_account_type(key){ var delete_account_type=$('.delete_account_type'+key).val(); $.ajax({ type:'POST', data:{'account_id':delete_account_type}, url:'<?php echo site_url('yaskawa/delete_account_type'); ?>', success:function(response) { response=jQuery.parseJSON(response); console.log(response); if(response.result == 1) { alert("Deleted Successfully"); location.reload(); } else { alert("Something went wrong"); } } }); } </script> <script type="text/javascript"> function edit_honorific(key){ var edit_honorific=$('.edit_honorific'+key).val(); $.ajax({ type:'POST', data:{'honorific_id':edit_honorific}, url:'<?php echo site_url('yaskawa/edit_honorific'); ?>', success:function(response) { var objData = jQuery.parseJSON(response); honorific_id=objData.honorific_id; honorific=objData.honorific; $('#ids').val(honorific_id); $('#show_data').val(honorific); $('#data_enter').show(); } }); } function delete_honorific(key){ var edit_honorific=$('.edit_honorific'+key).val(); $.ajax({ type:'POST', data:{'honorific_id':edit_honorific}, url:'<?php echo site_url('yaskawa/delete_honorific'); ?>', success:function(response) { response=jQuery.parseJSON(response); console.log(response); if(response.result == 1) { alert("Deleted Successfully"); location.reload(); } else { alert("Something went wrong"); } } }); } </script> <script type="text/javascript"> function edit_customer_type(key){ var customer_type_id=$('.edit_customer_type'+key).val(); $.ajax({ type:'POST', data:{'customer_type_id':customer_type_id}, url:'<?php echo site_url('yaskawa/edit_customer_type'); ?>', success:function(response) { var objData = jQuery.parseJSON(response); customer_type_id=objData.customer_type_id; customer_type=objData.customer_type; $('#ids').val(customer_type_id); $('#show_data').val(customer_type); $('#data_enter').show(); } }); } function delete_customer_type(key){ var customer_type_id=$('.delete_customer_type'+key).val(); $.ajax({ type:'POST', data:{'customer_type_id':customer_type_id}, url:'<?php echo site_url('yaskawa/delete_customer_type'); ?>', success:function(response) { response=jQuery.parseJSON(response); console.log(response); if(response.result == 1) { alert("Deleted Successfully"); location.reload(); } else { alert("Something went wrong"); } } }); } </script> <script type="text/javascript"> function edit_lead_process(key){ var edit_lead_process=$('.edit_lead_process'+key).val(); $.ajax({ type:'POST', data:{'lead_process_id':edit_lead_process}, url:'<?php echo site_url('yaskawa/edit_lead_process'); ?>', success:function(response) { var objData = jQuery.parseJSON(response); lead_process_id=objData.lead_process_id; lead_process=objData.lead_process; $('#ids').val(lead_process_id); $('#show_data').val(lead_process); $('#data_enter').show(); } }); } function delete_lead_process(key){ var delete_lead_process=$('.delete_lead_process'+key).val(); $.ajax({ type:'POST', data:{'lead_process_id':delete_lead_process}, url:'<?php echo site_url('yaskawa/delete_lead_process'); ?>', success:function(response) { response=jQuery.parseJSON(response); console.log(response); if(response.result == 1) { alert("Deleted Successfully"); location.reload(); } else { alert("Something went wrong"); } } }); } </script> <style type="text/css"> .breadcrumb { background-color: transparent; line-height: 20px; margin: -10px 22px 0 12px; padding: 0; font-size: 13px; color: #333; border-radius: 0; } .btn{ padding: 6px 40px; } #track_buttons{ margin-left:16px; } </style> <?php $this->load->view('includes/admin_footer');?>