function get_customer($email_address) { $customers = get_all_customers(); foreach ($customers as &$customer) { if ($customer['email'] == $email_address) { return $customer; } } return NULL; }
</div>--> <div class="pull-right"> <a href="<?php echo base_url();?>user/logout" class="btn btn-default btn-flat">Sign out</a> </div> </li> </ul> </li> </ul> </div> </nav> </header> <div id="estimation_details" style="width:900px;display: none;margin-top:-75px;"> <div style="width: 900px; margin: 0 auto; padding: 120px 0 40px;"> <div id="create_estimate"> <?php $all_customer = get_all_customers(); ?> <center> <a href="javascript:void(0);" onclick="show_calculator();" class="btn btn-success btn-lg">Calculator</a> </center> <ul class="tabs" data-persist="true"> <li><a href="#regular_customers">Regular Customers</a></li> <li><a href="#new_customers">New Customer</a></li> </ul> <div class="tabcontents"> <div id="regular_customers"> <table align="center" border="2" width="80%"> <tr> <td align="right"> Select Customer :</td> <td> <select class="form-control" name="customer" id="customer" onchange="show_sms_mobile();"> <option value="0" selected="selected">Select Customer</option>