D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
shubmkcj
/
urbane.createerp.com
/
Filename :
edit_company_profile.php
back
Copy
<!DOCTYPE html> <?php $id = $_GET['id']; session_start(); include 'config.php'; $login = $_SESSION['login_email']; if($login == ''){ echo '<script>location.replace("index.php")</script>'; } ?> <html> <head> <meta charset="utf-8" /> <title>Invoice Management | Invoice</title> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> <meta content="A fully featured admin theme which can be used to build CRM, CMS, etc." name="description" /> <meta content="Coderthemes" name="author" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <!-- Font Awsome --> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> <!-- App favicon --> <link rel="shortcut icon" href="assets/images/favicon.png"> <!-- Pie Chart Css --> <link href="assets/pie charts/style.css" rel="stylesheet" type="text/css" /> <!-- App css --> <link href="assets/css/bootstrap.min.css" rel="stylesheet" type="text/css" /> <link href="assets/css/icons.css" rel="stylesheet" type="text/css" /> <link href="assets/css/metismenu.min.css" rel="stylesheet" type="text/css" /> <link href="assets/css/style.css" rel="stylesheet" type="text/css" /> <script src="assets/js/modernizr.min.js"></script> </head> <body> <!-- Begin page --> <div id="wrapper"> <!-- Top Bar Start --> <?php include 'top-header.php'; ?> <!-- Top Bar End --> <!-- ========== Left Sidebar Start ========== --> <?php include 'left-sidebar.php'; ?> <!-- Left Sidebar End --> <!-- ============================================================== --> <!-- Start right Content here --> <!-- ============================================================== --> <div class="content-page"> <!-- Start content --> <div class="content"> <div class="container-fluid"> <div class="row"> <div class="col-12"> <div class="page-title-box"> <h4 class="page-title float-left"> Edit Corporate Profile</h4> <ol class="breadcrumb float-right"> <li class="breadcrumb-item"><a href="#">Gerneral Setting</a></li> <li class="breadcrumb-item active">Edit Corporate Profile</li> </ol> <div class="clearfix"></div> </div> </div> </div> <!-- end row --> <?php $sql = "SELECT * FROM company_details where id='$id'"; $result = mysqli_query($conn,$sql); while( $row = mysqli_fetch_array($result)){ $country = $row['country']; ?> <form action="update_company_profile.php?id=<?php echo $row['id']; ?>" method="post" role="form" enctype="multipart/form-data" id="myform"> <div class="row card-box"> <div class="col-md-12"> <div class="form-group"> <label for="exampleInputPassword1">Country</label> <select class="form-control" id="country" name="country"> <option value="">-- SELECT --</option> <option value="Afganistan" <?php if($country == "Afganistan"){ echo "selected";} ?>>Afghanistan</option> <option value="Albania" <?php if($country == "Albania"){ echo "selected";} ?>>Albania</option> <option value="Algeria" <?php if($country == "Algeria"){ echo "selected";} ?>>Algeria</option> <option value="American Samoa" <?php if($country == "American Samoa"){ echo "selected";} ?>>American Samoa</option> <option value="Andorra" <?php if($country == "Andorra"){ echo "selected";} ?>>Andorra</option> <option value="Angola" <?php if($country == "Angola"){ echo "selected";} ?>>Angola</option> <option value="Anguilla" <?php if($country == "Anguilla"){ echo "selected";} ?>>Anguilla</option> <option value="Antigua & Barbuda" <?php if($country == "Antigua & Barbuda"){ echo "selected";} ?>>Antigua & Barbuda</option> <option value="Argentina" <?php if($country == "Argentina"){ echo "selected";} ?>>Argentina</option> <option value="Armenia" <?php if($country == "Armenia"){ echo "selected";} ?>>Armenia</option> <option value="Aruba" <?php if($country == "Aruba"){ echo "selected";} ?>>Aruba</option> <option value="Australia" <?php if($country == "Australia"){ echo "selected";} ?>>Australia</option> <option value="Austria" <?php if($country == "Austria"){ echo "selected";} ?>>Austria</option> <option value="Azerbaijan" <?php if($country == "Azerbaijan"){ echo "selected";} ?>>Azerbaijan</option> <option value="Bahamas" <?php if($country == "Bahamas"){ echo "selected";} ?>>Bahamas</option> <option value="Bahrain" <?php if($country == "Bahrain"){ echo "selected";} ?>>Bahrain</option> <option value="Bangladesh" <?php if($country == "Bangladesh"){ echo "selected";} ?>>Bangladesh</option> <option value="Barbados" <?php if($country == "Barbados"){ echo "selected";} ?>>Barbados</option> <option value="Belarus" <?php if($country == "Belarus"){ echo "selected";} ?>>Belarus</option> <option value="Belgium" <?php if($country == "Belgium"){ echo "selected";} ?>>Belgium</option> <option value="Belize" <?php if($country == "Belize"){ echo "selected";} ?>>Belize</option> <option value="Benin" <?php if($country == "Benin"){ echo "selected";} ?>>Benin</option> <option value="Bermuda" <?php if($country == "Bermuda"){ echo "selected";} ?>>Bermuda</option> <option value="Bhutan" <?php if($country == "Bhutan"){ echo "selected";} ?>>Bhutan</option> <option value="Bolivia" <?php if($country == "Bolivia"){ echo "selected";} ?>>Bolivia</option> <option value="Bonaire" <?php if($country == "Bonaire"){ echo "selected";} ?>>Bonaire</option> <option value="Bosnia & Herzegovina" <?php if($country == "Bosnia & Herzegovina"){ echo "selected";} ?>>Bosnia & Herzegovina</option> <option value="Botswana" <?php if($country == "Botswana"){ echo "selected";} ?>>Botswana</option> <option value="Brazil" <?php if($country == "Brazil"){ echo "selected";} ?>>Brazil</option> <option value="British Indian Ocean Ter" <?php if($country == "British Indian Ocean Ter"){ echo "selected";} ?>>British Indian Ocean Ter</option> <option value="Brunei" <?php if($country == "Brunei"){ echo "selected";} ?>>Brunei</option> <option value="Bulgaria" <?php if($country == "Bulgaria"){ echo "selected";} ?>>Bulgaria</option> <option value="Burkina Faso" <?php if($country == "Burkina Faso"){ echo "selected";} ?>>Burkina Faso</option> <option value="Burundi" <?php if($country == "Burundi"){ echo "selected";} ?>>Burundi</option> <option value="Cambodia" <?php if($country == "Cambodia"){ echo "selected";} ?>>Cambodia</option> <option value="Cameroon" <?php if($country == "Cameroon"){ echo "selected";} ?>>Cameroon</option> <option value="Canada" <?php if($country == "Canada"){ echo "selected";} ?>>Canada</option> <option value="Canary Islands" <?php if($country == "Canary Islands"){ echo "selected";} ?>>Canary Islands</option> <option value="Cape Verde" <?php if($country == "Cape Verde"){ echo "selected";} ?>>Cape Verde</option> <option value="Cayman Islands" <?php if($country == "Cayman Islands"){ echo "selected";} ?>>Cayman Islands</option> <option value="Central African Republic" <?php if($country == "Central African Republic"){ echo "selected";} ?>>Central African Republic</option> <option value="Chad" <?php if($country == "Chad"){ echo "selected";} ?>>Chad</option> <option value="Channel Islands" <?php if($country == "Channel Islands"){ echo "selected";} ?>>Channel Islands</option> <option value="Chile" <?php if($country == "Chile"){ echo "selected";} ?>>Chile</option> <option value="China" <?php if($country == "China"){ echo "selected";} ?>>China</option> <option value="Christmas Island" <?php if($country == "Christmas Island"){ echo "selected";} ?>>Christmas Island</option> <option value="Cocos Island" <?php if($country == "Cocos Island"){ echo "selected";} ?>>Cocos Island</option> <option value="Colombia" <?php if($country == "Colombia"){ echo "selected";} ?>>Colombia</option> <option value="Comoros" <?php if($country == "Comoros"){ echo "selected";} ?>>Comoros</option> <option value="Congo" <?php if($country == "Congo"){ echo "selected";} ?>>Congo</option> <option value="Cook Islands" <?php if($country == "Cook Islands"){ echo "selected";} ?>>Cook Islands</option> <option value="Costa Rica" <?php if($country == "Costa Rica"){ echo "selected";} ?>>Costa Rica</option> <option value="Cote DIvoire" <?php if($country == "Cote DIvoire"){ echo "selected";} ?>>Cote DIvoire</option> <option value="Croatia" <?php if($country == "Croatia"){ echo "selected";} ?>>Croatia</option> <option value="Cuba" <?php if($country == "Cuba"){ echo "selected";} ?>>Cuba</option> <option value="Curaco" <?php if($country == "Curaco"){ echo "selected";} ?>>Curacao</option> <option value="Cyprus" <?php if($country == "Cyprus"){ echo "selected";} ?>>Cyprus</option> <option value="Czech Republic" <?php if($country == "Czech Republic"){ echo "selected";} ?>>Czech Republic</option> <option value="Denmark" <?php if($country == "Denmark"){ echo "selected";} ?>>Denmark</option> <option value="Djibouti" <?php if($country == "Djibouti"){ echo "selected";} ?>>Djibouti</option> <option value="Dominica" <?php if($country == "Dominica"){ echo "selected";} ?>>Dominica</option> <option value="Dominican Republic" <?php if($country == "Dominican Republic"){ echo "selected";} ?>>Dominican Republic</option> <option value="East Timor" <?php if($country == "East Timor"){ echo "selected";} ?>>East Timor</option> <option value="Ecuador" <?php if($country == "Ecuador"){ echo "selected";} ?>>Ecuador</option> <option value="Egypt" <?php if($country == "Egypt"){ echo "selected";} ?>>Egypt</option> <option value="El Salvador" <?php if($country == "El Salvador"){ echo "selected";} ?>>El Salvador</option> <option value="Equatorial Guinea" <?php if($country == "Equatorial Guinea"){ echo "selected";} ?>>Equatorial Guinea</option> <option value="Eritrea" <?php if($country == "Eritrea"){ echo "selected";} ?>>Eritrea</option> <option value="Estonia" <?php if($country == "Estonia"){ echo "selected";} ?>>Estonia</option> <option value="Ethiopia" <?php if($country == "Ethiopia"){ echo "selected";} ?>>Ethiopia</option> <option value="Falkland Islands" <?php if($country == "Falkland Islands"){ echo "selected";} ?>>Falkland Islands</option> <option value="Faroe Islands" <?php if($country == "Faroe Islands"){ echo "selected";} ?>>Faroe Islands</option> <option value="Fiji" <?php if($country == "Fiji"){ echo "selected";} ?>>Fiji</option> <option value="Finland" <?php if($country == "Finland"){ echo "selected";} ?>>Finland</option> <option value="France" <?php if($country == "France"){ echo "selected";} ?>>France</option> <option value="French Guiana" <?php if($country == "French Guiana"){ echo "selected";} ?>>French Guiana</option> <option value="French Polynesia" <?php if($country == "French Polynesia"){ echo "selected";} ?>>French Polynesia</option> <option value="French Southern Ter" <?php if($country == "French Southern Ter"){ echo "selected";} ?>>French Southern Ter</option> <option value="Gabon" <?php if($country == "Gabon"){ echo "selected";} ?>>Gabon</option> <option value="Gambia" <?php if($country == "Gambia"){ echo "selected";} ?>>Gambia</option> <option value="Georgia" <?php if($country == "Georgia"){ echo "selected";} ?>>Georgia</option> <option value="Germany" <?php if($country == "Germany"){ echo "selected";} ?>>Germany</option> <option value="Ghana" <?php if($country == "Ghana"){ echo "selected";} ?>>Ghana</option> <option value="Gibraltar" <?php if($country == "Gibraltar"){ echo "selected";} ?>>Gibraltar</option> <option value="Great Britain" <?php if($country == "Great Britain"){ echo "selected";} ?>>Great Britain</option> <option value="Greece" <?php if($country == "Greece"){ echo "selected";} ?>>Greece</option> <option value="Greenland" <?php if($country == "Greenland"){ echo "selected";} ?>>Greenland</option> <option value="Grenada" <?php if($country == "Grenada"){ echo "selected";} ?>>Grenada</option> <option value="Guadeloupe" <?php if($country == "Guadeloupe"){ echo "selected";} ?>>Guadeloupe</option> <option value="Guam" <?php if($country == "Guam"){ echo "selected";} ?>>Guam</option> <option value="Guatemala" <?php if($country == "Guatemala"){ echo "selected";} ?>>Guatemala</option> <option value="Guinea" <?php if($country == "Guinea"){ echo "selected";} ?>>Guinea</option> <option value="Guyana" <?php if($country == "Guyana"){ echo "selected";} ?>>Guyana</option> <option value="Haiti" <?php if($country == "Haiti"){ echo "selected";} ?>>Haiti</option> <option value="Hawaii" <?php if($country == "Hawaii"){ echo "selected";} ?>>Hawaii</option> <option value="Honduras" <?php if($country == "Honduras"){ echo "selected";} ?>>Honduras</option> <option value="Hong Kong" <?php if($country == "Hong Kong"){ echo "selected";} ?>>Hong Kong</option> <option value="Hungary" <?php if($country == "Hungary"){ echo "selected";} ?>>Hungary</option> <option value="Iceland" <?php if($country == "Iceland"){ echo "selected";} ?>>Iceland</option> <option value="Indonesia" <?php if($country == "Indonesia"){ echo "selected";} ?>>Indonesia</option> <option value="India" <?php if($country == "India"){ echo "selected";} ?>>India</option> <option value="Iran" <?php if($country == "Iran"){ echo "selected";} ?>>Iran</option> <option value="Iraq" <?php if($country == "Iraq"){ echo "selected";} ?>>Iraq</option> <option value="Ireland" <?php if($country == "Ireland"){ echo "selected";} ?>>Ireland</option> <option value="Isle of Man" <?php if($country == "Isle of Man"){ echo "selected";} ?>>Isle of Man</option> <option value="Israel" <?php if($country == "Israel"){ echo "selected";} ?>>Israel</option> <option value="Italy" <?php if($country == "Italy"){ echo "selected";} ?>>Italy</option> <option value="Jamaica" <?php if($country == "Jamaica"){ echo "selected";} ?>>Jamaica</option> <option value="Japan" <?php if($country == "Japan"){ echo "selected";} ?>>Japan</option> <option value="Jordan" <?php if($country == "Jordan"){ echo "selected";} ?>>Jordan</option> <option value="Kazakhstan" <?php if($country == "Kazakhstan"){ echo "selected";} ?>>Kazakhstan</option> <option value="Kenya" <?php if($country == "Kenya"){ echo "selected";} ?>>Kenya</option> <option value="Kiribati" <?php if($country == "Kiribati"){ echo "selected";} ?>>Kiribati</option> <option value="Korea North" <?php if($country == "Korea North"){ echo "selected";} ?>>Korea North</option> <option value="Korea Sout" <?php if($country == "Korea Sout"){ echo "selected";} ?>>Korea South</option> <option value="Kuwait" <?php if($country == "Kuwait"){ echo "selected";} ?>>Kuwait</option> <option value="Kyrgyzstan" <?php if($country == "Kyrgyzstan"){ echo "selected";} ?>>Kyrgyzstan</option> <option value="Laos" <?php if($country == "Laos"){ echo "selected";} ?>>Laos</option> <option value="Latvia" <?php if($country == "Latvia"){ echo "selected";} ?>>Latvia</option> <option value="Lebanon" <?php if($country == "Lebanon"){ echo "selected";} ?>>Lebanon</option> <option value="Lesotho" <?php if($country == "Lesotho"){ echo "selected";} ?>>Lesotho</option> <option value="Liberia" <?php if($country == "Liberia"){ echo "selected";} ?>>Liberia</option> <option value="Libya" <?php if($country == "Libya"){ echo "selected";} ?>>Libya</option> <option value="Liechtenstein" <?php if($country == "Liechtenstein"){ echo "selected";} ?>>Liechtenstein</option> <option value="Lithuania" <?php if($country == "Lithuania"){ echo "selected";} ?>>Lithuania</option> <option value="Luxembourg" <?php if($country == "Luxembourg"){ echo "selected";} ?>>Luxembourg</option> <option value="Macau" <?php if($country == "Macau"){ echo "selected";} ?>>Macau</option> <option value="Macedonia" <?php if($country == "Macedonia"){ echo "selected";} ?>>Macedonia</option> <option value="Madagascar" <?php if($country == "Madagascar"){ echo "selected";} ?>>Madagascar</option> <option value="Malaysia" <?php if($country == "Malaysia"){ echo "selected";} ?>>Malaysia</option> <option value="Malawi" <?php if($country == "Malawi"){ echo "selected";} ?>>Malawi</option> <option value="Maldives" <?php if($country == "Maldives"){ echo "selected";} ?>>Maldives</option> <option value="Mali" <?php if($country == "Mali"){ echo "selected";} ?>>Mali</option> <option value="Malta" <?php if($country == "Malta"){ echo "selected";} ?>>Malta</option> <option value="Marshall Islands" <?php if($country == "Marshall Islands"){ echo "selected";} ?>>Marshall Islands</option> <option value="Martinique" <?php if($country == "Martinique"){ echo "selected";} ?>>Martinique</option> <option value="Mauritania" <?php if($country == "Mauritania"){ echo "selected";} ?>>Mauritania</option> <option value="Mauritius" <?php if($country == "Mauritius"){ echo "selected";} ?>>Mauritius</option> <option value="Mayotte" <?php if($country == "Mayotte"){ echo "selected";} ?>>Mayotte</option> <option value="Mexico" <?php if($country == "Mexico"){ echo "selected";} ?>>Mexico</option> <option value="Midway Islands" <?php if($country == "Midway Islands"){ echo "selected";} ?>>Midway Islands</option> <option value="Moldova" <?php if($country == "Moldova"){ echo "selected";} ?>>Moldova</option> <option value="Monaco" <?php if($country == "Monaco"){ echo "selected";} ?>>Monaco</option> <option value="Mongolia" <?php if($country == "Mongolia"){ echo "selected";} ?>>Mongolia</option> <option value="Montserrat" <?php if($country == "Montserrat"){ echo "selected";} ?>>Montserrat</option> <option value="Morocco" <?php if($country == "Morocco"){ echo "selected";} ?>>Morocco</option> <option value="Mozambique" <?php if($country == "Mozambique"){ echo "selected";} ?>>Mozambique</option> <option value="Myanmar" <?php if($country == "Myanmar"){ echo "selected";} ?>>Myanmar</option> <option value="Nambia" <?php if($country == "Nambia"){ echo "selected";} ?>>Nambia</option> <option value="Nauru" <?php if($country == "Nauru"){ echo "selected";} ?>>Nauru</option> <option value="Nepal" <?php if($country == "Nepal"){ echo "selected";} ?>>Nepal</option> <option value="Netherland Antilles" <?php if($country == "Netherland Antilles"){ echo "selected";} ?>>Netherland Antilles</option> <option value="Netherlands" <?php if($country == "Netherlands"){ echo "selected";} ?>>Netherlands (Holland, Europe)</option> <option value="Nevis" <?php if($country == "Nevis"){ echo "selected";} ?>>Nevis</option> <option value="New Caledonia" <?php if($country == "New Caledonia"){ echo "selected";} ?>>New Caledonia</option> <option value="New Zealand" <?php if($country == "New Zealand"){ echo "selected";} ?>>New Zealand</option> <option value="Nicaragua" <?php if($country == "Nicaragua"){ echo "selected";} ?>>Nicaragua</option> <option value="Niger" <?php if($country == "Niger"){ echo "selected";} ?>>Niger</option> <option value="Nigeria" <?php if($country == "Nigeria"){ echo "selected";} ?>>Nigeria</option> <option value="Niue" <?php if($country == "Niue"){ echo "selected";} ?>>Niue</option> <option value="Norfolk Island" <?php if($country == "Norfolk Island"){ echo "selected";} ?>>Norfolk Island</option> <option value="Norway" <?php if($country == "Norway"){ echo "selected";} ?>>Norway</option> <option value="Oman" <?php if($country == "Oman"){ echo "selected";} ?>>Oman</option> <option value="Pakistan" <?php if($country == "Pakistan"){ echo "selected";} ?>>Pakistan</option> <option value="Palau Island" <?php if($country == "Palau Island"){ echo "selected";} ?>>Palau Island</option> <option value="Palestine" <?php if($country == "Palestine"){ echo "selected";} ?>>Palestine</option> <option value="Panama" <?php if($country == "Panama"){ echo "selected";} ?>>Panama</option> <option value="Papua New Guinea" <?php if($country == "Papua New Guinea"){ echo "selected";} ?>>Papua New Guinea</option> <option value="Paraguay" <?php if($country == "Paraguay"){ echo "selected";} ?>>Paraguay</option> <option value="Peru" <?php if($country == "Peru"){ echo "selected";} ?>>Peru</option> <option value="Phillipines" <?php if($country == "Phillipines"){ echo "selected";} ?>>Philippines</option> <option value="Pitcairn Island" <?php if($country == "Pitcairn Island"){ echo "selected";} ?>>Pitcairn Island</option> <option value="Poland" <?php if($country == "Poland"){ echo "selected";} ?>>Poland</option> <option value="Portugal" <?php if($country == "Portugal"){ echo "selected";} ?>>Portugal</option> <option value="Puerto Rico" <?php if($country == "Puerto Rico"){ echo "selected";} ?>>Puerto Rico</option> <option value="Qatar" <?php if($country == "Qatar"){ echo "selected";} ?>>Qatar</option> <option value="Republic of Montenegro" <?php if($country == "Republic of Montenegro"){ echo "selected";} ?>>Republic of Montenegro</option> <option value="Republic of Serbia" <?php if($country == "Republic of Serbia"){ echo "selected";} ?>>Republic of Serbia</option> <option value="Reunion" <?php if($country == "Reunion"){ echo "selected";} ?>>Reunion</option> <option value="Romania" <?php if($country == "Romania"){ echo "selected";} ?>>Romania</option> <option value="Russia" <?php if($country == "Russia"){ echo "selected";} ?>>Russia</option> <option value="Rwanda" <?php if($country == "Rwanda"){ echo "selected";} ?>>Rwanda</option> <option value="St Barthelemy" <?php if($country == "St Barthelemy"){ echo "selected";} ?>>St Barthelemy</option> <option value="St Eustatius" <?php if($country == "St Eustatius"){ echo "selected";} ?>>St Eustatius</option> <option value="St Helena" <?php if($country == "St Helena"){ echo "selected";} ?>>St Helena</option> <option value="St Kitts-Nevis" <?php if($country == "St Kitts-Nevis"){ echo "selected";} ?>>St Kitts-Nevis</option> <option value="St Lucia" <?php if($country == "St Lucia"){ echo "selected";} ?>>St Lucia</option> <option value="St Maarten" <?php if($country == "St Maarten"){ echo "selected";} ?>>St Maarten</option> <option value="St Pierre & Miquelon" <?php if($country == "St Pierre & Miquelon"){ echo "selected";} ?>>St Pierre & Miquelon</option> <option value="St Vincent & Grenadines" <?php if($country == "St Vincent & Grenadines"){ echo "selected";} ?>>St Vincent & Grenadines</option> <option value="Saipan" <?php if($country == "Saipan"){ echo "selected";} ?>>Saipan</option> <option value="Samoa" <?php if($country == "Samoa"){ echo "selected";} ?>>Samoa</option> <option value="Samoa American" <?php if($country == "Samoa American"){ echo "selected";} ?>>Samoa American</option> <option value="San Marino" <?php if($country == "San Marino"){ echo "selected";} ?>>San Marino</option> <option value="Sao Tome & Principe" <?php if($country == "Sao Tome & Principe"){ echo "selected";} ?>>Sao Tome & Principe</option> <option value="Saudi Arabia" <?php if($country == "Saudi Arabia"){ echo "selected";} ?>>Saudi Arabia</option> <option value="Senegal" <?php if($country == "Senegal"){ echo "selected";} ?>>Senegal</option> <option value="Seychelles" <?php if($country == "Seychelles"){ echo "selected";} ?>>Seychelles</option> <option value="Sierra Leone" <?php if($country == "Sierra Leone"){ echo "selected";} ?>>Sierra Leone</option> <option value="Singapore" <?php if($country == "Singapore"){ echo "selected";} ?>>Singapore</option> <option value="Slovakia" <?php if($country == "Slovakia"){ echo "selected";} ?>>Slovakia</option> <option value="Slovenia" <?php if($country == "Slovenia"){ echo "selected";} ?>>Slovenia</option> <option value="Solomon Islands" <?php if($country == "Solomon Islands"){ echo "selected";} ?>>Solomon Islands</option> <option value="Somalia" <?php if($country == "Somalia"){ echo "selected";} ?>>Somalia</option> <option value="South Africa" <?php if($country == "South Africa"){ echo "selected";} ?>>South Africa</option> <option value="Spain" <?php if($country == "Spain"){ echo "selected";} ?>>Spain</option> <option value="Sri Lanka" <?php if($country == "Sri Lanka"){ echo "selected";} ?>>Sri Lanka</option> <option value="Sudan" <?php if($country == "Sudan"){ echo "selected";} ?>>Sudan</option> <option value="Suriname" <?php if($country == "Suriname"){ echo "selected";} ?>>Suriname</option> <option value="Swaziland" <?php if($country == "Swaziland"){ echo "selected";} ?>>Swaziland</option> <option value="Sweden" <?php if($country == "Sweden"){ echo "selected";} ?>>Sweden</option> <option value="Switzerland" <?php if($country == "Switzerland"){ echo "selected";} ?>>Switzerland</option> <option value="Syria" <?php if($country == "Syria"){ echo "selected";} ?>>Syria</option> <option value="Tahiti" <?php if($country == "Tahiti"){ echo "selected";} ?>>Tahiti</option> <option value="Taiwan" <?php if($country == "Taiwan"){ echo "selected";} ?>>Taiwan</option> <option value="Tajikistan" <?php if($country == "Tajikistan"){ echo "selected";} ?>>Tajikistan</option> <option value="Tanzania" <?php if($country == "Tanzania"){ echo "selected";} ?>>Tanzania</option> <option value="Thailand" <?php if($country == "Thailand"){ echo "selected";} ?>>Thailand</option> <option value="Togo" <?php if($country == "Togo"){ echo "selected";} ?>>Togo</option> <option value="Tokelau" <?php if($country == "Tokelau"){ echo "selected";} ?>>Tokelau</option> <option value="Tonga" <?php if($country == "Tonga"){ echo "selected";} ?>>Tonga</option> <option value="Trinidad & Tobago" <?php if($country == "Trinidad & Tobago"){ echo "selected";} ?>>Trinidad & Tobago</option> <option value="Tunisia" <?php if($country == "Tunisia"){ echo "selected";} ?>>Tunisia</option> <option value="Turkey" <?php if($country == "Turkey"){ echo "selected";} ?>>Turkey</option> <option value="Turkmenistan" <?php if($country == "Turkmenistan"){ echo "selected";} ?>>Turkmenistan</option> <option value="Turks & Caicos Is" <?php if($country == "Turks & Caicos Is"){ echo "selected";} ?>>Turks & Caicos Is</option> <option value="Tuvalu" <?php if($country == "Tuvalu"){ echo "selected";} ?>>Tuvalu</option> <option value="Uganda" <?php if($country == "Uganda"){ echo "selected";} ?>>Uganda</option> <option value="United Kingdom" <?php if($country == "United Kingdom"){ echo "selected";} ?>>United Kingdom</option> <option value="Ukraine" <?php if($country == "Ukraine"){ echo "selected";} ?>>Ukraine</option> <option value="United Arab Erimates" <?php if($country == "United Arab Erimates"){ echo "selected";} ?>>United Arab Emirates</option> <option value="United States of America" <?php if($country == "United States of America"){ echo "selected";} ?>>United States of America</option> <option value="Uraguay" <?php if($country == "Uraguay"){ echo "selected";} ?>>Uruguay</option> <option value="Uzbekistan" <?php if($country == "Uzbekistan"){ echo "selected";} ?>>Uzbekistan</option> <option value="Vanuatu" <?php if($country == "Vanuatu"){ echo "selected";} ?>>Vanuatu</option> <option value="Vatican City State" <?php if($country == "Vatican City State"){ echo "selected";} ?>>Vatican City State</option> <option value="Venezuela" <?php if($country == "Venezuela"){ echo "selected";} ?>>Venezuela</option> <option value="Vietnam" <?php if($country == "Vietnam"){ echo "selected";} ?>>Vietnam</option> <option value="Virgin Islands (Brit)" <?php if($country == "Virgin Islands (Brit)"){ echo "selected";} ?>>Virgin Islands (Brit)</option> <option value="Virgin Islands (USA)" <?php if($country == "Virgin Islands (USA)"){ echo "selected";} ?>>Virgin Islands (USA)</option> <option value="Wake Island" <?php if($country == "Wake Island"){ echo "selected";} ?>>Wake Island</option> <option value="Wallis & Futana Is" <?php if($country == "Wallis & Futana Is"){ echo "selected";} ?>>Wallis & Futana Is</option> <option value="Yemen" <?php if($country == "Yemen"){ echo "selected";} ?>>Yemen</option> <option value="Zaire" <?php if($country == "Zaire"){ echo "selected";} ?>>Zaire</option> <option value="Zambia" <?php if($country == "Zambia"){ echo "selected";} ?>>Zambia</option> <option value="Zimbabwe" <?php if($country == "Zimbabwe"){ echo "selected";} ?>>Zimbabwe</option> </select> </div> <?php $gstin = $row['GSTIN']; ?> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label>GSTIN</label> <input type="text" class="form-control" name="gstin" placeholder="Enter GSTIN" id="gstin" value="<?php echo $gstin ?>"> </div> </div> <div class="col-md-6"> <div class="form-group"> <label>Contact Person Name</label> <input class="form-control" name="contact_person" placeholder="Enter Contact Person Name" value="<?php echo $row['contact_person'] ?>"> </div> </div> </div> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label for="exampleInputEmail1">Company Name </label> <input type="text" class="form-control" name="company_name" placeholder="Enter company name " value="<?php echo $row['company_name'] ?>"> </div> </div> <div class="col-md-6"> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label for="exampleInputEmail1">Company Logo </label> <input type="file" class="form-control" name="image" placeholder="Enter company logo "> </div> </div> <div class="col-md-6 text-center"> <br> <img src="images/<?php echo $row['company_logo'] ?>" alt="" height="25"> <input type="hidden" name="old_image" value="<?php echo $row['company_logo'] ?>"> </div> </div> </div> </div> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label for="exampleInputEmail1">Phone</label> <input type="text" class="form-control" name="phone" placeholder="Enter phone" value="<?php echo $row['phone'] ?>"> </div> </div> <div class="col-md-6"> <div class="form-group"> <label for="exampleInputEmail1">Email</label> <input type="text" class="form-control" name="reference" placeholder="Enter email" value="<?php echo $row['email'] ?>"> </div> </div> </div> <div class="form-group"> <label for="exampleInputEmail1">Address</label> <textarea type="text" class="form-control" name="address" placeholder="Enter address" row="6"><?php echo $row['address'] ?></textarea> </div> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label for="exampleInputEmail1">City</label> <input type="text" class="form-control" name="city" placeholder="Enter city" value="<?php echo $row['city'] ?>"> </div> </div> <div class="col-md-6"> <div class="form-group"> <label for="exampleInputEmail1">State</label> <input type="text" class="form-control" name="state" placeholder="Enter state" value="<?php echo $row['state'] ?>"> </div> </div> </div> </div> <!-- end col --> </div> <div class="row card-box"> <div class="col-md-12"> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label for="exampleInputEmail1">Account Name</label> <input type="text" class="form-control" name="account_name" placeholder="Enter account name" value="<?php echo $row['account_name'] ?>"> </div> </div> <div class="col-md-6"> <div class="form-group"> <label for="exampleInputEmail1">Account No.</label> <input type="text" class="form-control" name="account_no" placeholder="Enter account no." value="<?php echo $row['account_no'] ?>"> </div> </div> </div> <div class="form-group"> <label>Bank Name</label> <input type="text" class="form-control" name="bank_name" placeholder="Enter bank name " value="<?php echo $row['bank_name'] ?>"> </div> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label for="exampleInputEmail1">IFSC Code </label> <input type="text" class="form-control" name="ifsc" placeholder="Enter IFSC code" value="<?php echo $row['ifsc'] ?>"> </div> </div> <div class="col-md-6"> <div class="form-group"> <label for="exampleInputEmail1">Shift Code</label> <input type="text" class="form-control" name="shift" placeholder="Enter shift" value="<?php echo $row['shift'] ?>"> </div> </div> </div> <div class="form-group"> <label>Branch</label> <input type="text" class="form-control" name="branch" placeholder="Enter branch name" value="<?php echo $row['branch'] ?>"> </div> </div> </div> <div class="card-box"> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label for="exampleInputEmail1">Invoice Color</label> <input class="form-control" type="color" name="company_color" value="<?php echo $row['company_color'] ?>"> </div> </div> <div class="col-md-6"> <label>Currency</label> <select class="form-control" name="currency" required> <?php $currency = $row['currency']; ?> <option value="">-- SELECT --</option> <option value="INR" <?php if($currency == "INR"){echo "selected";} ?>>India Rupees</option> <option value="USD" <?php if($currency == "USD"){echo "selected";} ?>>United States Dollars</option> <option value="EUR" <?php if($currency == "EUR"){echo "selected";} ?>>Euro</option> </select> </div> </div> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label>Invoice Prifix</label> <input type="text" class="form-control" name="invoice_prifix" placeholder="Enter invoice prifix" value="<?php echo $row['invoice_prifix'] ?>"> </div> </div> <div class="col-md-3"> <div class="form-group"> <label>Signature</label> <input type="file" class="form-control" name="signature"> </div> </div> <div class="col-md-3 text-center"> <br> <img src="signature/<?php echo $row['signature'] ?>" alt="" height="60" width="60"> <input type="hidden" name="old_signature" value="<?php echo $row['signature'] ?>"> </div> </div> </div> <div class="card-box"> <div class="row"> <div class="col-md-12"> <div class="form-group"> <label>Invoice Note</label> <textarea class="form-control" name="invoice_note" rows="2"><?php echo $row['invoice_note'] ?></textarea> </div> </div> </div> </div> <div class="card-box"> <div class="col-md-12"> <label>Inventory</label> <hr> </div> <div class="col-md-12"> <label>Item Type</label> <div class="field_wrapper"> <div class="row form-group"> <div class="col-md-12 p-0"> <a href="javascript:void(0);" class="btn btn-primary add_button w-100" title="Add field">Add +</a> </div> </div> <?php $itemtype = explode(',',$row['item_type']); foreach($itemtype as $itemtypea){ if($itemtypea != ''){ ?> <div class="col-md-12 p-0 form-group" style="display:flex"><input type="text" class="form-control" name="itemtype[]" value="<?php echo $itemtypea ?>"> <a href="javascript:void(0);" class="remove_button btn btn-danger">Delete -</a></div> <?php } } ?> </div> </div> </div> <div class="card-box"> <div class="col-md-12"> <label>Payment Method</label> <hr> </div> <div class="col-md-12"> <label>Add Payment Method</label> <div class="field_wrapper1"> <div class="row form-group"> <div class="col-md-12 p-0"> <a href="javascript:void(0);" class="btn btn-primary add_button1 w-100" title="Add field">Add +</a> </div> </div> <?php $payment_method = explode(',',$row['payment_method']); foreach($payment_method as $payment_methoda){ if($payment_methoda != ''){ ?> <div class="col-md-12 p-0 form-group" style="display:flex"><input type="text" class="form-control" name="payment[]" value="<?php echo $payment_methoda ?>"> <a href="javascript:void(0);" class="remove_button1 btn btn-danger">Delete -</a></div> <?php } } ?> </div> </div> </div> <div class="card-box"> <div class="col-md-12"> <label>Contact | Payment Terms & Condition</label> <hr> </div> <div class="col-md-12"> <label>Payment Terms & Condition</label> <div class="field_wrapper2"> <div class="row form-group"> <div class="col-md-12 p-0"> <a href="javascript:void(0);" class="btn btn-primary add_button2 w-100" title="Add field">Add +</a> </div> </div> <?php $terms = explode('--',$row['terms']); foreach($terms as $termsa){ if($termsa != ''){ ?> <div class="col-md-12 p-0 form-group" style="display:flex"><input type="text" class="form-control" name="c_terms[]" value="<?php echo $termsa ?>"> <a href="javascript:void(0);" class="remove_button2 btn btn-danger">Delete -</a></div> <?php } } ?> </div> </div> </div> <div class="card-box"> <div class="col-md-12"> <label>Port Of Loading</label> <hr> </div> <div class="col-md-12"> <label>Port Of Loading</label> <div class="field_wrapper3"> <div class="row form-group"> <div class="col-md-12 p-0"> <a href="javascript:void(0);" class="btn btn-primary add_button3 w-100" title="Add field">Add +</a> </div> </div> <?php $p_loading = explode('--',$row['port_loading']); foreach($p_loading as $p_loadinga){ if($p_loadinga != ''){ ?> <div class="col-md-12 p-0 form-group" style="display:flex"><input type="text" class="form-control" name="p_loading[]" value="<?php echo $p_loadinga ?>"> <a href="javascript:void(0);" class="remove_button3 btn btn-danger">Delete -</a></div> <?php } } ?> </div> </div> </div> <div class="card-box"> <div class="col-md-12"> <label>Port Of Delivery</label> <hr> </div> <div class="col-md-12"> <label>Port Of Delivery</label> <div class="field_wrapper4"> <div class="row form-group"> <div class="col-md-12 p-0"> <a href="javascript:void(0);" class="btn btn-primary add_button4 w-100" title="Add field">Add +</a> </div> </div> <?php $p_delivery = explode('--',$row['port_delivery']); foreach($p_delivery as $p_deliverya){ if($p_deliverya != ''){ ?> <div class="col-md-12 p-0 form-group" style="display:flex"><input type="text" class="form-control" name="p_delivery[]" value="<?php echo $p_deliverya ?>"> <a href="javascript:void(0);" class="remove_button4 btn btn-danger">Delete -</a></div> <?php } } ?> </div> </div> </div> <div class="card-box"> <button type="submit" class="btn btn-purple waves-effect waves-light w-100">Submit</button> </div> </form> <?php } ?> </div> <!-- container --> </div> <!-- content --> <?php include 'copyrignt.php' ?> </div> <!-- ============================================================== --> <!-- End Right content here --> <!-- ============================================================== --> </div> <!-- END wrapper --> <!-- Chart Js --> <script src='https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.17/d3.min.js'></script> <script src='https://cdnjs.cloudflare.com/ajax/libs/c3/0.4.11/c3.min.js'></script> <script src='https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.1.3/Chart.js'></script> <!-- jQuery --> <script src="assets/js/jquery.min.js"></script> <script src="assets/js/popper.min.js"></script><!-- Popper for Bootstrap --> <script src="assets/js/bootstrap.min.js"></script> <script src="assets/js/metisMenu.min.js"></script> <script src="assets/js/waves.js"></script> <script src="assets/js/jquery.slimscroll.js"></script> <!-- Dashboard init --> <script src="assets/pages/jquery.dashboard.js"></script> <!-- App js --> <script src="assets/js/jquery.core.js"></script> <script src="assets/js/jquery.app.js"></script> <!-- Chart Js --> <!-- <script src="assets/pie charts/script.js"></script> --> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.17.0/jquery.validate.js"></script> <script> $(document).ready(function(){ $.validator.addMethod("gstin", function(value3, element3) { var gst_value = value3.toUpperCase(); var reg = /^([0-9]{2}[a-zA-Z]{4}([a-zA-Z]{1}|[0-9]{1})[0-9]{4}[a-zA-Z]{1}([a-zA-Z]|[0-9]){3}){0,15}$/; if (this.optional(element3)) { return true; } if (gst_value.match(reg)) { return true; } else { return false; } }, "<p style='color:red'>* Please specify a valid GSTTIN Number</p>"); $('#myform').validate({ // initialize the plugin rules: { gstin: { gstin: true } }, }); }); $("#btnSubmit").click(function(){ }); </script> <script type="text/javascript"> $(document).ready(function(){ var maxField = 10; //Input fields increment limitation var addButton = $('.add_button'); //Add button selector var wrapper = $('.field_wrapper'); //Input field wrapper var fieldHTML = '<div class="col-md-12 p-0 form-group" style="display:flex"><input type="text" class="form-control" name="itemtype[]" placeholder="Enter Item Type"/> <a href="javascript:void(0);" class="remove_button btn btn-danger">Delete -</a></div>'; //New input field html var x = 1; //Initial field counter is 1 //Once add button is clicked $(addButton).click(function(){ //Check maximum number of input fields if(x < maxField){ x++; //Increment field counter $(wrapper).append(fieldHTML); //Add field html } }); //Once remove button is clicked $(wrapper).on('click', '.remove_button', function(e){ e.preventDefault(); $(this).parent('div').remove(); //Remove field html x--; //Decrement field counter }); }); // Payment Method $(document).ready(function(){ var maxField1 = 10; //Input fields increment limitation var addButton1 = $('.add_button1'); //Add button selector var wrapper1 = $('.field_wrapper1'); //Input field wrapper var fieldHTML1 = '<div class="col-md-12 p-0 form-group" style="display:flex"><input type="text" class="form-control" name="payment[]" placeholder="Enter Payment Method"/> <a href="javascript:void(0);" class="remove_button1 btn btn-danger">Delete -</a></div>'; //New input field html var x1 = 1; //Initial field counter is 1 //Once add button is clicked $(addButton1).click(function(){ //Check maximum number of input fields if(x1 < maxField1){ x1++; //Increment field counter $(wrapper1).append(fieldHTML1); //Add field html } }); //Once remove button is clicked $(wrapper1).on('click', '.remove_button1', function(e){ e.preventDefault(); $(this).parent('div').remove(); //Remove field html x1--; //Decrement field counter }); }); // Payment Terms & Condition $(document).ready(function(){ var maxField2 = 10; //Input fields increment limitation var addButton2 = $('.add_button2'); //Add button selector var wrapper2 = $('.field_wrapper2'); //Input field wrapper var fieldHTML2 = '<div class="col-md-12 p-0 form-group" style="display:flex"><input type="text" class="form-control" name="c_terms[]" placeholder="Enter Payment Terms & Condition"/> <a href="javascript:void(0);" class="remove_button2 btn btn-danger">Delete -</a></div>'; //New input field html var x2 = 1; //Initial field counter is 1 //Once add button is clicked $(addButton2).click(function(){ //Check maximum number of input fields if(x2 < maxField2){ x2++; //Increment field counter $(wrapper2).append(fieldHTML2); //Add field html } }); //Once remove button is clicked $(wrapper2).on('click', '.remove_button2', function(e){ e.preventDefault(); $(this).parent('div').remove(); //Remove field html x2--; //Decrement field counter }); }); // Port of loading $(document).ready(function(){ var maxField3 = 10; //Input fields increment limitation var addButton3 = $('.add_button3'); //Add button selector var wrapper3 = $('.field_wrapper3'); //Input field wrapper var fieldHTML3 = '<div class="col-md-12 p-0 form-group" style="display:flex"><input type="text" class="form-control" name="p_loading[]" placeholder="Enter Port of loading"/> <a href="javascript:void(0);" class="remove_button3 btn btn-danger">Delete -</a></div>'; //New input field html var x3 = 1; //Initial field counter is 1 //Once add button is clicked $(addButton3).click(function(){ //Check maximum number of input fields if(x3 < maxField3){ x3++; //Increment field counter $(wrapper3).append(fieldHTML3); //Add field html } }); //Once remove button is clicked $(wrapper3).on('click', '.remove_button3', function(e){ e.preventDefault(); $(this).parent('div').remove(); //Remove field html x3--; //Decrement field counter }); }); // Port of Delivery $(document).ready(function(){ var maxField4 = 10; //Input fields increment limitation var addButton4 = $('.add_button4'); //Add button selector var wrapper4 = $('.field_wrapper4'); //Input field wrapper var fieldHTML4 = '<div class="col-md-12 p-0 form-group" style="display:flex"><input type="text" class="form-control" name="p_delivery[]" placeholder="Enter Port of delivery"/> <a href="javascript:void(0);" class="remove_button4 btn btn-danger">Delete -</a></div>'; //New input field html var x4 = 1; //Initial field counter is 1 //Once add button is clicked $(addButton4).click(function(){ //Check maximum number of input fields if(x4 < maxField4){ x4++; //Increment field counter $(wrapper4).append(fieldHTML4); //Add field html } }); //Once remove button is clicked $(wrapper4).on('click', '.remove_button4', function(e){ e.preventDefault(); $(this).parent('div').remove(); //Remove field html x4--; //Decrement field counter }); }); </script> </body> </html>