EVOLUTION-NINJA
Edit File: edit_client_requirement.php
<?php $this->load->view('includes/admin_header');?> <link rel="stylesheet" href="<?php echo base_url('admin_assets/toastr/toastr.min.css');?>"> <script src="<?php echo base_url('admin_assets/toastr/toastr.min.js');?>"></script> <head> <title>Update Client Sheet</title> </head> <div style="margin-left:10%;width: 1015px;"> <form id="land_owner" class="form-inline client_form" enctype="multipart/form-data"> <input type="hidden" name="client_requirement_id" value="<?php echo $client_requirement->client_requirement_id;?>"> <h3 style="text-align:center;">Client Sheet<span style="float: right;font-size: 18px;"><a href="#"><i style="font-size: 25px;" class="fa fa-long-arrow-left arro_w back_button"> Back</i></a></span></h3> <div class="row_1"> <table border="1" style="width:100%;border-collapse: collapse;"> <tr> <td colspan="2" style="padding: 5px;width:60%;"></td> <td style="padding: 5px;width:40%;"> <p>Created by :<input type="text" name="entered_by" style="border: initial;width: 125px;" value="<?php echo $client_requirement->user_name;?>"> Edited by :<input type="text" name="updated_by" style="border: initial;width: 125px;" value="<?php echo $client_requirement->uname;?>"></p> <p>Created On :<input type="text" name="created_on" style="border: initial;width: 125px;" value="<?php echo date('d-m-Y',strtotime($client_requirement->c_date));?>">Edited On :<input type="text" name="updated_at" style="border: initial;width: 125px;" value="<?php echo date('d-m-Y',strtotime($client_requirement->u_date));?>"></p> </td> </tr> <tr> <td style="padding: 5px;">Project Name</td> <td style="padding: 5px;"><input type="text" id="project_name" name="project_name" value="<?php echo $client_requirement->account_name;?>" style="border: initial;width: 100%;"></td> <input type="hidden" class="search_content" name="project_id" value="<?php echo $client_requirement->project_id;?>"/> <input type="hidden" class="searched_project" name="searched_project" value="<?php echo $client_requirement->account_name;?>"/> <div class="search_list"> </div> <td style="padding: 5px;"><input type="text" name="project_comments" value="<?php echo $client_requirement->project_comments;?>" style="border: initial;width: 100%;"></td></td> </tr> <tr> <td style="padding: 5px;">Name of the Client</td> <td style="padding: 5px;"><input type="text" name="client_name" value="<?php echo $client_requirement->client_name;?>" style="border: initial;width: 100%;" ></td> <td style="padding: 5px;"><input type="text" name="client_name_comments" value="<?php echo $client_requirement->client_name_comments;?>" style="border: initial;width: 100%;"></td></td> </tr> <tr> <td style="padding: 5px;">Contact Number</td> <td style="padding: 5px;"><input type="text" name="contact_number" value="<?php echo $client_requirement->contact_number;?>" style="border: initial;width: 100%;" ></td> <td style="padding: 5px;"><input type="text" name="contact_number_comments"value="<?php echo $client_requirement->contact_number_comments;?>" style="border: initial;width: 100%;"></td></td> </tr> <tr> <td style="padding: 5px;">Contact Email</td> <td style="padding: 5px;"><input type="text" name="email" value="<?php echo $client_requirement->client_email;?>" style="border: initial;width: 100%;"></td> <td style="padding: 5px;"><input type="text" name="email_comments" value="<?php echo $client_requirement->email_comments;?>" style="border: initial;width: 100%;"></td></td> </tr> <tr> <td style="padding: 5px;">Website</td> <td style="padding: 5px;"><input type="text" name="website" value="<?php echo $client_requirement->website;?>" style="border: initial;width: 100%;"></td> <td style="padding: 5px;"><input type="text" name="website_comments" value="<?php echo $client_requirement->website_comments;?>" style="border: initial;width: 100%;"></td></td> </tr> </table> </div> <!------- row 1 ----------> <div class="row_2" style="padding-top:30px;"> <table border="1" style="width:100%;border-collapse: collapse;"> <tr> <td style="padding: 5px;">Type of Industry </td> <td style="padding: 5px;"><select type="text" name="industry_type" style="border: initial;width: 100%;"> <option value="">Select</option> <?php $industry_details=json_decode($industry_details->field_value);foreach($industry_details as $val){?> <option value="<?php echo $val;?>" <?php if($client_requirement->industry_type==$val){ echo 'selected';} ?>><?php echo $val;?></option> <?php }?> </select></td> <td style="padding: 5px;"><p>Edited By :<input type="text" style="border: initial;width: 125px;" value="<?php if($u_industry) { echo $u_industry->user_name; }?>">Edited On :<input type="text" name="industry_type_comments" value="<?php if($client_requirement->u_industry_on!='0000-00-00 00:00:00'){ echo $client_requirement->u_industry_on; }?>" style="border: initial;width: 100%;"></td> </tr> <tr> <td style="padding: 5px;">website Type <br>(static/dynamic/e-commerce) </td> <td style="padding: 5px;"><select type="text" name="website_type" value="<?php echo $client_requirement->website_type;?>" style="border: initial;width: 100%;" > <option value="static" <?php if( $client_requirement->website_type=='static'){ echo 'selected'; } ?>>Static</option> <option value="dynamic" <?php if( $client_requirement->website_type=='dynamic'){ echo 'selected'; } ?>>Dynamic</option> <option value="e-commerce" <?php if( $client_requirement->website_type=='e-commerce'){ echo 'selected'; } ?>>E-Commerce</option> <option value="logo" <?php if( $client_requirement->website_type=='logo'){ echo 'selected'; } ?>>Logo</option> </select></td> <td style="padding: 5px;"><p>Edited By :<input type="text" style="border: initial;width: 125px;" value="<?php if($web_type_name){ echo $web_type_name->user_name; }?>">Edited On :<input type="text" name="website_type_comments" value="<?php if($client_requirement->u_web_type_edit_on!='0000-00-00 00:00:00'){ echo $client_requirement->u_web_type_edit_on; }?>" style="border: initial;width: 100%;"></td></td> </tr> <tr> <td style="padding: 5px;">Client Domain (Y/N)</td> <td style="padding: 5px;"><select type="text" name="client_domain" style="border: initial;width: 100%;"> <option value="Y" <?php if($client_requirement->client_domain=='Y'){ echo 'selected'; }?>>YES</option> <option value="N" <?php if($client_requirement->client_domain=='N'){ echo 'selected'; }?>>NO</option> </select></td> <td style="padding: 5px;"><p>Edited By :<input type="text" style="border: initial;width: 125px;" value="<?php if($domain_name){ echo $domain_name->user_name; }?>">Edited On :<input type="text" name="client_domain_comments" value="<?php if($client_requirement->u_domain_edit_on!='0000-00-00 00:00:00'){ echo $client_requirement->u_domain_edit_on; }?>" style="border: initial;width: 100%;"></td></td> </tr> <tr> <td style="padding: 5px;">Client Server (Y/N)</td> <td style="padding: 5px;"><select type="text" name="client_server" style="border: initial;width: 100%;"> <option value="Y" <?php if($client_requirement->client_server=='Y'){ echo 'selected'; }?>>YES</option> <option value="N" <?php if($client_requirement->client_server=='N'){ echo 'selected'; }?>>NO</option> </select></td> <td style="padding: 5px;"><p>Edited By :<input type="text" style="border: initial;width: 125px;" value="<?php if($server_name){ echo $server_name->user_name; }?>">Edited On :<input type="text" name="client_server_comments" value="<?php if($client_requirement->u_client_edit_on!='0000-00-00 00:00:00'){ echo $client_requirement->u_client_edit_on; }?>" style="border: initial;width: 100%;"></td></td> </tr> <tr> <td style="padding: 5px;">Reference shared <br>and color combination</td> <td style="padding: 5px;">From US:<br> OR<br> From Client: <input name="reference_shared" value="<?php echo $client_requirement->reference_shared;?>" type="text" style="border: initial;"></td> <td style="padding: 5px;">Edited By :<input type="text" style="border: initial;width: 125px;" value="<?php if($reference_name){ echo $reference_name->user_name; }?>">Edited On :<input type="text" name="reference_shared_comments" value="<?php if($client_requirement->reference_edit_on!='0000-00-00 00:00:00'){ echo $client_requirement->reference_edit_on; }?>" style="border: initial;width: 100%;"></td></td> </tr> <tr> <td style="padding: 5px;">Logo (Y/N)</td> <td style="padding: 5px;"><select type="text" name="logo" value="<?php echo $client_requirement->logo;?>" style="border: initial;width: 100%;"> <option value="Y" <?php if($client_requirement->logo=='Y'){ echo 'selected'; }?>>YES</option> <option value="N" <?php if($client_requirement->logo=='N'){ echo 'selected'; }?>>NO</option> </select> </td> <td style="padding: 5px;">Edited By :<input type="text" style="border: initial;width: 125px;" value="<?php if($logo_name){ echo $logo_name->user_name; }?>">Edited On :<input type="text" name="logo_comments" value="<?php if($client_requirement->logo_edit_on!='0000-00-00 00:00:00'){ echo $client_requirement->logo_edit_on; }?>" style="border: initial;width: 100%;"></td></td> </tr> <tr> <td style="padding: 5px;">Blog (Y/N)</td> <td style="padding: 5px;"><select type="text" name="blog" style="border: initial;width: 100%;"> <option value="Y" <?php if($client_requirement->blog=='Y'){ echo 'selected'; }?>>YES</option> <option value="N" <?php if($client_requirement->blog=='N'){ echo 'selected'; }?>>NO</option> </select></td> <td style="padding: 5px;">Edited By :<input type="text" style="border: initial;width: 125px;" value="<?php if($blog_name){ echo $blog_name->user_name; }?>">Edited On :<input type="text" name="blog_comments" value="<?php if($client_requirement->u_blog_edit_on!='0000-00-00 00:00:00'){ echo $client_requirement->u_blog_edit_on; }?>" style="border: initial;width: 100%;"></td></td> </tr> <tr> <td style="padding: 5px;">Number of templates shared</td> <td style="padding: 5px;"><input type="text" name="no_of_templates" value="<?php echo $client_requirement->no_of_templates;?>" style="border: initial;width: 100%;" ></td> <td style="padding: 5px;">Edited By :<input type="text" style="border: initial;width: 125px;" value="<?php if($temp_name){ echo $temp_name->user_name; }?>">Edited On :<input type="text" name="template_comments" value="<?php if($client_requirement->u_template_edit_on!='0000-00-00 00:00:00'){ echo $client_requirement->u_template_edit_on; }?>" style="border: initial;width: 100%;"></td></td> </tr> <tr> <td style="padding: 5px;">Templates shared (concepts shared) date</td> <td style="padding: 5px;"><input type="text" name="template_concept" value="<?php echo $client_requirement->template_concept;?>" class="date_picker" style="border: initial;width: 100%;"></td> <td style="padding: 5px;">Edited By :<input type="text" style="border: initial;width: 125px;" value="<?php if($concept_name){ echo $concept_name->user_name; }?>">Edited On :<input type="text" name="template_concept_comments" value="<?php if($client_requirement->concept_edit_on!='0000-00-00 00:00:00'){ echo $client_requirement->concept_edit_on; }?>" style="border: initial;width: 100%;"></td></td> </tr> <tr> <td style="padding: 5px;">Approved date</td> <td style="padding: 5px;"><input type="text" name="approved_date" value="<?php echo $client_requirement->approved_date;?>" class="date_picker" style="border: initial;width: 100%;"></td> <td style="padding: 5px;">Edited By :<input type="text" style="border: initial;width: 125px;" value="<?php if($approve_name){ echo $approve_name->user_name; }?>">Edited On :<input type="text" name="approved_date_comments" value="<?php if($client_requirement->u_approved_on!='0000-00-00 00:00:00'){ echo $client_requirement->u_approved_on; }?>" style="border: initial;width: 100%;"></td></td> </tr> <tr> <td style="padding: 5px;">Content received date </td> <td style="padding: 5px;"><input type="text" name="content_received_date" value="<?php echo $client_requirement->content_received_date;?>" class="date_picker" style="border: initial;width: 100%;"></td> <td style="padding: 5px;">Edited By :<input type="text" style="border: initial;width: 125px;" value="<?php if($content_name){ echo $content_name->user_name; }?>">Edited On :<input type="text" name="content_received_date_comments" value="<?php if($client_requirement->u_content_edit_on!='0000-00-00 00:00:00'){ echo $client_requirement->u_content_edit_on; }?>" style="border: initial;width: 100%;"></td></td> </tr> <tr> <td style="padding: 5px;">Development Start date</td> <td style="padding: 5px;"><input type="text" name="development_start_date" value="<?php echo $client_requirement->development_start_date;?>" class="date_picker" style="border: initial;width: 100%;"></td> <td style="padding: 5px;">Edited By :<input type="text" style="border: initial;width: 125px;" value="<?php if($develop_name){ echo $develop_name->user_name; }?>">Edited On :<input type="text" name="development_start_date_comments" value="<?php if($client_requirement->u_development_edit_on!='0000-00-00 00:00:00'){ echo $client_requirement->u_development_edit_on; }?>" style="border: initial;width: 100%;"></td></td> </tr> <tr> <td style="padding: 5px;">Development End date</td> <td style="padding: 5px;"><input type="text" name="development_end_date" value="<?php echo $client_requirement->development_end_date;?>" class="date_picker" style="border: initial;width: 100%;"></td> <td style="padding: 5px;">Edited By :<input type="text" style="border: initial;width: 125px;" value="<?php if($end_name){ echo $end_name->user_name; }?>">Edited On :<input type="text" name="development_end_date_comments" value="<?php if($client_requirement->u_end_edit_on!='0000-00-00 00:00:00'){ echo $client_requirement->u_end_edit_on; }?>" style="border: initial;width: 100%;"></td></td> </tr> <tr> <td style="padding: 5px;">Testing </td> <td style="padding: 5px;"><input type="text" name="testing" value="<?php echo $client_requirement->testing;?>" style="border: initial;width: 100%;" class="date_picker"></td> <td style="padding: 5px;">Edited By :<input type="text" style="border: initial;width: 125px;" value="<?php if($test_name){ echo $test_name->user_name; }?>">Edited On :<input type="text" name="testing_comments" value="<?php if($client_requirement->u_test_edit_on!='0000-00-00 00:00:00'){ echo $client_requirement->u_test_edit_on; }?>" style="border: initial;width: 100%;"></td></td> </tr> <tr> <td style="padding: 5px;">Website live date</td> <td style="padding: 5px;"><input type="text" name="website_live_date" value="<?php if($client_requirement->live_date!='00-00-0000'){ echo $client_requirement->live_date; }?>" class="date_picker" style="border: initial;width: 100%;"></td> <td style="padding: 5px;">Edited By :<input type="text" style="border: initial;width: 125px;" value="<?php if($web_ser_name){ echo $web_ser_name->user_name; }?>">Edited On :<input type="text" name="website_live_comments" value="<?php if($client_requirement->u_website_live_on!='0000-00-00 00:00:00'){ echo $client_requirement->u_website_live_on; }?>" style="border: initial;width: 100%;"></td></td> </tr> <tr> <td style="padding: 5px;">Changes (No. of times and days)</td> <td style="padding: 5px;"><input type="text" name="changes" value="<?php echo $client_requirement->changes;?>" style="border: initial;width: 100%;"></td> <td style="padding: 5px;">Edited By :<input type="text" style="border: initial;width: 125px;" value="<?php if($change_name){ echo $change_name->user_name; }?>">Edited On :<input type="text" name="changes_comments" value="<?php if($client_requirement->u_change_on!='0000-00-00 00:00:00'){ echo $client_requirement->u_change_on; }?>" style="border: initial;width: 100%;"></td></td> </tr> <tr> <td style="padding: 5px;">Email ID provided (Y/N)</td> <td style="padding: 5px;"><select type="text" name="email_provided" style="border: initial;width: 100%;"> <option value="Y" <?php if($client_requirement->email_provided=='Y'){ echo 'selected'; }?>>YES</option> <option value="N" <?php if($client_requirement->email_provided=='N'){ echo 'selected'; }?>>NO</option> </select></td> <td style="padding: 5px;">Edited By :<input type="text" style="border: initial;width: 125px;" value="<?php if($email_name){ echo $email_name->user_name; }?>">Edited On :<input type="text" name="email_provided_comments" value="<?php if($client_requirement->u_email_edit_on!='0000-00-00 00:00:00'){ echo $client_requirement->u_email_edit_on; }?>" style="border: initial;width: 100%;"></td></td> </tr> <tr> <td style="padding: 5px;">Google Analytics (Y/N)</td> <td style="padding: 5px;"><select type="text" name="google_analytics" style="border: initial;width: 100%;"> <option value="Y" <?php if($client_requirement->google_analytics=='Y'){ echo 'selected'; }?>>YES</option> <option value="N" <?php if($client_requirement->google_analytics=='N'){ echo 'selected'; }?>>NO</option> </select></td> <td style="padding: 5px;">Edited By :<input type="text" style="border: initial;width: 125px;" value="<?php if($analytic_name){ echo $analytic_name->user_name; }?>">Edited On :<input type="text" name="google_analytics_comments" value="<?php if($client_requirement->u_analytic_edit_on!='0000-00-00 00:00:00'){ echo $client_requirement->u_analytic_edit_on; }?>" style="border: initial;width: 100%;"></td></td> </tr> <tr> <td style="padding: 5px;">Payment Gateway(Y/N)</td> <td style="padding: 5px;"><select type="text" name="payment_gateway" value="<?php echo $client_requirement->payment_gateway;?>" style="border: initial;width: 100%;"> <option value="Y" <?php if($client_requirement->payment_gateway=='Y'){ echo 'selected'; }?>>YES</option> <option value="N" <?php if($client_requirement->payment_gateway=='N'){ echo 'selected'; }?>>NO</option> </select></td> <td style="padding: 5px;">Edited By :<input type="text" style="border: initial;width: 125px;" value="<?php if($gateway_name){ echo $gateway_name->user_name; }?>">Edited On :<input type="text" name="payment_gateway_comments" value="<?php if($client_requirement->u_gateway_edit_on!='0000-00-00 00:00:00'){ echo $client_requirement->u_gateway_edit_on; }?>" style="border: initial;width: 100%;"></td></td> </tr> <tr> <td style="padding: 5px;">SEO </td> <td style="padding: 5px;"><select type="text" name="seo" style="border: initial;width: 100%;"> <option value="Y" <?php if($client_requirement->seo=='Y'){ echo 'selected'; }?>>YES</option> <option value="N" <?php if($client_requirement->seo=='N'){ echo 'selected'; }?>>NO</option> </select></td> <td style="padding: 5px;">Edited By :<input type="text" style="border: initial;width: 125px;" value="<?php if($seo_name){ echo $seo_name->user_name; }?>">Edited On :<input type="text" name="seo_comments" value="<?php if($client_requirement->u_seo_edit_on!='0000-00-00 00:00:00'){ echo $client_requirement->u_seo_edit_on; }?>" style="border: initial;width: 100%;"></td></td> </tr> <tr> <td style="padding: 5px;">SSL certificate</td> <td style="padding: 5px;"><select type="text" name="ssl" value="<?php echo $client_requirement->ssl;?>" style="border: initial;width: 100%;"> <option value="Y" <?php if($client_requirement->ssl=='Y'){ echo 'selected'; }?>>YES</option> <option value="N" <?php if($client_requirement->ssl=='N'){ echo 'selected'; }?>>NO</option> </select> </td> <td style="padding: 5px;">Edited By :<input type="text" style="border: initial;width: 125px;" value="<?php if($ssl_name){ echo $ssl_name->user_name; }?>">Edited On :<input type="text" name="ssl_comments" value="<?php if($client_requirement->u_ssl_edit_on!='0000-00-00 00:00:00'){ echo $client_requirement->u_ssl_edit_on; }?>" style="border: initial;width: 100%;"></td></td> </tr> <tr> <td style="padding: 5px;">Bulk SMS </td> <td style="padding: 5px;"><select type="text" name="bulk_sms" style="border: initial;width: 100%;"> <option value="Y" <?php if($client_requirement->bulk_sms=='Y'){ echo 'selected'; }?>>YES</option> <option value="N" <?php if($client_requirement->bulk_sms=='N'){ echo 'selected'; }?>>NO</option> </select></td> <td style="padding: 5px;">Edited By :<input type="text" style="border: initial;width: 125px;" value="<?php if($bulk_name){ echo $bulk_name->user_name; }?>">Edited On :<input type="text" name="bulk_sms_comments" value="<?php if($client_requirement->u_bulksms_edit_on!='0000-00-00 00:00:00'){ echo $client_requirement->u_bulksms_edit_on; }?>" style="border: initial;width: 100%;"></td></td> </tr> <tr> <td style="padding: 5px;">Adwords</td> <td style="padding: 5px;"><input type="text" name="adwards" value="<?php echo $client_requirement->adwards;?>" style="border: initial;width: 100%;"></td> <td style="padding: 5px;">Edited By :<input type="text" style="border: initial;width: 125px;" value="<?php if($adward_name){ echo $adward_name->user_name; }?>">Edited On :<input type="text" name="adwards_comments" value="<?php if($client_requirement->u_award_edit_on!='0000-00-00 00:00:00'){ echo $client_requirement->u_award_edit_on; }?>" style="border: initial;width: 100%;"></td></td> </tr> <tr> <td style="padding: 5px;">Support Number </td> <td style="padding: 5px;"><input type="text" name="support_number" value="<?php echo $client_requirement->support_number;?>" style="border: initial;width: 100%;"></td> <td style="padding: 5px;">Edited By :<input type="text" style="border: initial;width: 125px;" value="<?php if($support_name){ echo $support_name->user_name; }?>">Edited On :<input type="text" name="support_number_comments" value="<?php if($client_requirement->u_support_edit_on!='0000-00-00 00:00:00'){ echo $client_requirement->u_support_edit_on; }?>" style="border: initial;width: 100%;"></td></td> </tr> <tr> <td style="padding: 5px;">Project Completion</td> <td style="padding: 5px;"><select type="text" name="completion_status" style="border: initial;width: 100%;"> <option value="YES" <?php if($client_requirement->completion_status=='YES') { echo 'selected'; } ?>>COMPLETED</option> <option value="NO" <?php if($client_requirement->completion_status=='NO') { echo 'selected'; } ?>>ONGOING</option> <option value="CLOSED" <?php if($client_requirement->completion_status=='CLOSED') { echo 'selected'; } ?>>CLOSED</option> </select> </td> <td style="padding: 5px;">Edited By :<input type="text" style="border: initial;width: 125px;" value="<?php if($completion_name){ echo $completion_name->user_name; }?>">Edited On :<input type="text" style="border: initial;width: 125px;" value="<?php if($client_requirement->u_complete_edit_on!='0000-00-00 00:00:00'){ echo $client_requirement->u_complete_edit_on; }?>"></td> </tr> <tr> <td style="padding: 5px;">Client's Individual ERP login </td> <td style="padding: 5px;"><input type="text" style="border: initial;width: 100%;"><br> Username: <input name="client_username" type="email" value="<?php echo $client_requirement->client_username;?>" style="width:80%;border: initial;" ><br> Password: <input name="client_password" type="text" value="<?php echo $client_requirement->client_password;?>" style="border: initial;" ></td> <td style="padding: 5px;"><input type="text" name="client_login_comments" value="<?php echo $client_requirement->client_login_comments;?>" style="border: initial;width: 100%;"></td></td> </tr> <tr> <td style="padding: 5px;"></td> <td style="padding: 5px;"><button type="submit" class="btn btn-primary center-block submit submit_button">Submit</button></td> <td style="padding: 5px;"></td> </tr> </table> </div> </form> </div> <link rel="stylesheet" href="<?php echo base_url('admin_assets/css/jquery-ui.css');?>"> <script src="<?php echo base_url('admin_assets/js/jquery-ui.js');?>"></script> <script src="<?php echo base_url('admin_assets/assets/js/bootstrap.min.js');?>"></script> <!-- page specific plugin scripts --> <!-- 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> <!-- <script src="https://code.jquery.com/jquery-1.12.4.js"></script> <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script> --> <link rel="stylesheet" href="<?php echo base_url('admin_assets/css/datepicker3.css');?>" /> <link rel="stylesheet" href="<?php echo base_url('admin_assets/css/fullcalendar.min.css');?>" /> <link rel="stylesheet" href="<?php echo base_url('admin_assets/assets/css/bootstrap-timepicker.min.css');?>" /> <script src="<?php echo base_url('admin_assets/assets/js/bootstrap-timepicker.min.js');?>"></script> <!-- <script src="<?php echo base_url('admin_assets/event/assets/js/chart.min.js');?>"></script> <script src="<?php echo base_url('admin_assets/event/assets/js/chart-data.js');?>"></script> --> <script src="<?php echo base_url('admin_assets/event/assets/js/bootstrap-datepicker.js');?>"></script> <script src="<?php echo base_url('admin_assets/event/assets/js/moment.min.js');?>"></script> <script src="<?php echo base_url('admin_assets/event/assets/js/fullcalendar.min.js');?>"></script> <style type="text/css"> .pager { float: right;background:#11B0B3;height: 30px;width: 108px;position: relative; right: 0px;width: 118px \9; } .pager img { margin: 3px; } .pageNo { display:inline;position: relative;top: 0px; padding: 0 3px; color: #fff; } .ul_list { height: 10em; line-height: 2em; border: 1px solid #ccc; padding: 0; margin: 0; overflow: scroll; overflow-x: hidden; } .search_field { margin-bottom: 55px; } #hospital_name { width: 500px; } .search_list { z-index: 9; position: absolute; background: #fff; width:500px; } .ui-autocomplete { max-height: 150px; overflow-y: auto; /* prevent horizontal scrollbar */ overflow-x: hidden; /* add padding to account for vertical scrollbar */ padding-right: 20px; } </style> <script type="text/javascript"> $(document).ready(function(){ $('.date_picker').datepicker({ format: "dd-mm-yyyy", }).on('changeDate', function(ev){ $('.date_picker').datepicker('hide'); }); $('.client_form').submit(function(e){ e.preventDefault(); formdata = new FormData($(this)[0]); $(".submit_button").attr('disabled', 'disabled'); $(".submit_button").text("Submitting..."); $.ajax({ type : 'post', url : '<?php echo site_url("update_client_requirement")?>', data : formdata, contentType: false, processData: false, success:function(response){ response=jQuery.parseJSON(response); console.log(response); if(response.result==1) { toastr["success"](response.message); //$('.client_form')[0].reset(); $(".submit_button").text("Submit"); $(".submit_button").removeAttr('disabled'); } else if(response.result == 2) { toastr["error"](response.message); $(".submit_button").text("Submit"); $(".submit_button").removeAttr('disabled'); } else { toastr["error"](response.message); $(".submit_button").text("Submit"); $(".submit_button").removeAttr('disabled'); } } }); }); $('.back_button').click(function(e){ e.preventDefault(); //toastr["error"]('Data is not Updated'); window.location.href = "<?php echo base_url('client-requirement-list');?>"; }); $("#project_name").keyup(function(e){ e.preventDefault(); var project_name =($('#project_name').val()); var type = "POST"; var url = '<?php echo site_url('search_project');?>'; var data = {'project_name':project_name}; $("#project_name").autocomplete({ source: function (request, callback) { $.ajax({ type: type, url: url, data: data, success:function(response) { response=jQuery.parseJSON(response); console.log(response); multiple:true; if(response.result == 1) { callback($.map(response.project_list, function(value){ //alert(value.account_name); return [ { label: value.account_name, value: value.account_id } ]; })); } minLength: 1 } }); }, focus: function( event, ui ) { event.preventDefault(); $( "#project_name").val(ui.item.label); $(".searched_project").val( ui.item.label); $(".search_content").val( ui.item.value); return false; }, select: function( event, ui ) { event.preventDefault(); $("#project_name").val( ui.item.label); $(".search_content").val( ui.item.value); var account_id = $(".search_content").val(); $.ajax({ type : 'post', url : '<?php echo site_url("get_project_account_details")?>', data : {account_id:account_id} , success:function(response){ response=jQuery.parseJSON(response); console.log(response); if(response.result == 1) { $('input[name="contact_number"]').val(response.project_details.phone); $('input[name="website"]').val(response.project_details.website); } else { $('input[name="contact_number"]').val(''); $('input[name="website"]').val(''); } } }); return { value: ui.item.value }; } }); }); }); </script> <?php $this->load->view('includes/admin_footer');?>