<?php
 ob_start();
 session_set_cookie_params(10000000);
 error_reporting(0);
 session_start();
 if(!isset($_SESSION['user']))
	{
	//echo "<script>window.location='index.php'</script>";
		 
	}
  ?>
 <link rel="stylesheet" href="jquery.datetimepicker.css">
 <script src="jquery-1.8.2.min.js"></script>
<script src="jquery-ui.js"></script>
<script src="jquery.datetimepicker.js"></script>
<script src="jquery.validate.min.js"></script>

<script>
$(document).ready(function() {
//alert("hello");
jQuery('#bday').datetimepicker();

jQuery('#frm').validate();


 //jQuery("#bday").datepicker();
});
</script>
<style>
.error{color:red}
</style>
<form action="insert.php" method="post" id="frm">


<caption><center>DLR Details</center></caption>
<a href="index.php?lg=1">Logout</a><br />
<a href="email_report.php">Email Report</a>
<table width="980" border="0" style="margin:0 auto">
 <tr>
    <td>Sender Id</td>
    <td><input type="text" name="senderid" id="senderid"/></td>
  </tr>
  <tr>
    <td>Client Name </td>
    <td><input type="text" name="cname" id="cname"/></td>
  </tr>
  <tr>
    <td>Send Date </td>
    <td><input type="text" name="bday" id="bday"></td>
  </tr>
  <tr>
    <td>SMS Text </td>
    <td><textarea name="smstext" id="smstext"></textarea></td>
  </tr>
  <tr>
    <td>SMS Type </td>
    <td><select name="smstype" id="smstype">
	<option>--Please Select--</option>
	<option value="unicode">Unicode</option>
	<option value="text">Text</option>
	
	</select></td>
  </tr>
  <tr>
  <td>Delivered</td>
    <td><input type="text" name="delivered" id="delivered" class="required number" /> </td>
    
  </tr>
  
   <tr>
  <td>Undelivered  </td>
    <td> <input type="text" name="undelivered" id="undelivered" class="required number" /></td>
    
  </tr>
  <tr>
    <td>Submitted to Operator </td>
    <td>
	<input type="text" name="yes" id="yes" class="required number" />
	</td>
  </tr>
  
  
  <tr>
  <td>Country</td>
  <td><select class="required valid" name="countryid" id="countryid">
		<option value="United Kingdom" asd="+44">United Kingdom</option>
				<option asd="+93" value="Afghanistan">Afghanistan</option>		<option asd="+355" value="Albania">Albania</option>		<option asd="+213 " value="Algeria">Algeria</option>		<option asd="+1 684 " value="American Samoa">American Samoa</option>		<option asd="+376" value="Andorra">Andorra</option>		<option asd="+244 " value="Angola">Angola</option>		<option asd="+1 264 " value="Anguilla">Anguilla</option>		<option asd="+6721 " value="Antarctica">Antarctica</option>		<option asd="+1268" value="Antigua and Barbuda">Antigua and Barbuda</option>		<option asd="+54" value="Argentina">Argentina</option>		<option asd="+374" value="Armenia">Armenia</option>		<option asd="+297" value="Aruba">Aruba</option>		<option asd="+247" value="Ascension">Ascension</option>		<option asd="+61" value="Australia">Australia</option>		<option asd="+43" value="Austria">Austria</option>		<option asd="+994" value="Azerbaijan">Azerbaijan</option>		<option asd="+1242" value="Bahamas">Bahamas</option>		<option asd="+973" value="Bahrain">Bahrain</option>		<option asd="+880" value="Bangladesh">Bangladesh</option>		<option asd="+1246" value="Barbados">Barbados</option>		<option asd="+375" value="Belarus">Belarus</option>		<option asd="+32" value="Belgium">Belgium</option>		<option asd="+501" value="Belize">Belize</option>		<option asd="+229" value="Benin ">Benin </option>		<option asd="+1441" value="Bermuda">Bermuda</option>		<option asd="+975" value="Bhutan">Bhutan</option>		<option asd="+591" value="Bolivia">Bolivia</option>		<option asd="+387" value="Bosnia and Herzegovina">Bosnia and Herzegovina</option>		<option asd="+267" value="Botswana">Botswana</option>		<option asd="+55" value="Brazil">Brazil</option>		<option asd="+246" value="British Indian Ocean Territory">British Indian Ocean Territory</option>		<option asd="+1284" value="British Virgin Islands">British Virgin Islands</option>		<option asd="+673" value="Brunei">Brunei</option>		<option asd="+359" value="Bulgaria">Bulgaria</option>		<option asd="+226" value="Burkina Faso">Burkina Faso</option>		<option asd="+257" value="Burund">Burund</option>		<option asd="+855" value="Cambodia">Cambodia</option>		<option asd="+237" value="Cameroon">Cameroon</option>		<option asd="+237" value="Cameroon">Cameroon</option>		<option asd="+1" value="Canada ">Canada </option>		<option asd="+238" value="Cape Verde">Cape Verde</option>		<option asd="+1345" value="Cayman Islands">Cayman Islands</option>		<option asd="+236" value="Central African Republic">Central African Republic</option>		<option asd="+235" value="Chad">Chad</option>		<option asd="+56" value="Chile">Chile</option>		<option asd="+86" value="China">China</option>		<option asd="+57" value="Colombia">Colombia</option>		<option asd="+269" value="Comoros">Comoros</option>		<option asd="+243" value="Congo, Democratic Republic of the">Congo, Democratic Republic of the</option>		<option asd="+242" value="Congo, Republic of the">Congo, Republic of the</option>		<option asd="+682" value="Cook Islands">Cook Islands</option>		<option asd="+506" value="Costa Rica">Costa Rica</option>		<option asd="+225" value="Cote d'Ivoire">Cote d`Ivoire</option>		<option asd="+385" value="Croatia">Croatia</option>		<option asd="+53" value="Cuba">Cuba</option>		<option asd="+599" value="Cura?ao">Cura?ao</option>		<option asd="+357" value="Cyprus">Cyprus</option>		<option asd="+420" value="Czech Republic">Czech Republic</option>		<option asd="+45" value="Denmark">Denmark</option>		<option asd="+253" value="Djibouti">Djibouti</option>		<option asd="+1767" value="Dominica">Dominica</option>		<option asd="+1 809, 1 829, and 1 849 " value="Dominican Republic">Dominican Republic</option>		<option asd="+670" value="East Timor">East Timor</option>		<option asd="+593" value="Ecuador">Ecuador</option>		<option asd="+20" value="Egypt">Egypt</option>		<option asd="+503" value="El Salvador">El Salvador</option>		<option asd="+240" value="Equatorial Guinea">Equatorial Guinea</option>		<option asd="+291" value="Eritrea">Eritrea</option>		<option asd="+372" value="Estonia">Estonia</option>		<option asd="+251" value="Ethiopia">Ethiopia</option>		<option asd="+500" value="Falkland Islands">Falkland Islands</option>		<option asd="+298" value="Faroe Islands">Faroe Islands</option>		<option asd="+679" value="Fiji">Fiji</option>		<option asd="+358" value="Finland">Finland</option>		<option asd="+33" value="France">France</option>		<option asd="+594" value="French Guiana">French Guiana</option>		<option asd="+689" value="French Polynesia">French Polynesia</option>		<option asd="+263" value="Zimbabwe">Zimbabwe</option>		<option asd="+260" value="Zambia">Zambia</option>		<option asd="+967" value="Yemen">Yemen</option>		<option asd="+970" value="West Bank">West Bank</option>		<option asd="+681" value="Wallis and Futuna">Wallis and Futuna</option>		<option asd="+1340" value="U.S. Virgin Islands">U.S. Virgin Islands</option>		<option asd="+241" value="Gabon">Gabon</option>		<option asd="+220" value="Gambia ">Gambia </option>		<option asd="+970" value="Gaza Strip">Gaza Strip</option>		<option asd="+995" value="Georgia ">Georgia </option>		<option asd="+49" value="Germany">Germany</option>		<option asd="+233" value="Ghana">Ghana</option>		<option asd="+350" value="Gibraltar">Gibraltar</option>		<option asd="+30" value="Greece">Greece</option>		<option asd="+299 " value="Greenland">Greenland</option>		<option asd="+1473" value="Grenada">Grenada</option>		<option asd="+590" value="Guadeloupe">Guadeloupe</option>		<option asd="+1671" value="Guam ">Guam </option>		<option asd="+502" value="Guatemala">Guatemala</option>		<option asd="+224" value="Guinea ">Guinea </option>		<option asd="+245" value="Guinea-Bissau">Guinea-Bissau</option>		<option asd="+592" value="Guyana">Guyana</option>		<option asd="+509" value="Haiti">Haiti</option>		<option asd="+504" value="Honduras">Honduras</option>		<option asd="+852" value="Hong Kong">Hong Kong</option>		<option asd="+36" value="Hungary">Hungary</option>		<option asd="+354" value="Iceland">Iceland</option>		<option asd="+91" value="India">India</option>		<option asd="+62" value="Indonesia">Indonesia</option>		<option asd="+964" value="Iraq">Iraq</option>		<option asd="+98" value="Iran">Iran</option>		<option asd="+353" value="Ireland (Eire)">Ireland (Eire)</option>		<option asd="+972" value="Israel">Israel</option>		<option asd="+39" value="Italy">Italy</option>		<option asd="+1876" value="Jamaica ">Jamaica </option>		<option asd="+81" value="Japan">Japan</option>		<option asd="+962" value="Jordan">Jordan</option>		<option asd="+7" value="Kazakhstan">Kazakhstan</option>		<option asd="+254" value="Kenya">Kenya</option>		<option asd="+686" value="Kiribati">Kiribati</option>		<option asd="+965" value="Kuwait">Kuwait</option>		<option asd="+996" value="Kyrgyzstan">Kyrgyzstan</option>		<option asd="+856" value="Laos">Laos</option>		<option asd="+371" value="Latvia">Latvia</option>		<option asd="+961" value="Lebanon">Lebanon</option>		<option asd="+266" value="Lesotho">Lesotho</option>		<option asd="+231" value="Liberia">Liberia</option>		<option asd="+218" value="Libya">Libya</option>		<option asd="+423" value="Liechtenstein">Liechtenstein</option>		<option asd="+370" value="Lithuania ">Lithuania </option>		<option asd="+352" value="Luxembourg">Luxembourg</option>		<option asd="+853" value="Macau">Macau</option>		<option asd="+389" value="Macedonia, Republic of">Macedonia, Republic of</option>		<option asd="+261" value="Madagascar">Madagascar</option>		<option asd="+265" value="Malawi">Malawi</option>		<option asd="+60" value="Malaysia">Malaysia</option>		<option asd="+960" value="Maldives">Maldives</option>		<option asd="+223" value="Mali">Mali</option>		<option asd="+356" value="Malta">Malta</option>		<option asd="+692" value="Marshall Islands">Marshall Islands</option>		<option asd="+596" value="Martinique">Martinique</option>		<option asd="+222" value="Mauritania">Mauritania</option>		<option asd="+230" value="Mauritius">Mauritius</option>		<option asd="+262" value="Mayotte">Mayotte</option>		<option asd="+52" value="Mexico">Mexico</option>		<option asd="+691" value="Micronesia, Federated States of">Micronesia, Federated States of</option>		<option asd="+373" value="Moldova">Moldova</option>		<option asd="+377" value="Monaco">Monaco</option>		<option asd="+976" value="Mongolia">Mongolia</option>		<option asd="+382" value="Montenegro">Montenegro</option>		<option asd="+1664" value="Montserrat">Montserrat</option>		<option asd="+212" value="Morocco">Morocco</option>		<option asd="+258" value="Mozambique">Mozambique</option>		<option asd="+95" value="Myanmar">Myanmar</option>		<option asd="+264" value="Namibia">Namibia</option>		<option asd="+674" value="Nauru">Nauru</option>		<option asd="+31" value="Netherlands">Netherlands</option>		<option asd="+599" value="Netherlands Antilles">Netherlands Antilles</option>		<option asd="+977" value="Nepal">Nepal</option>		<option asd="+687" value="New Caledonia">New Caledonia</option>		<option asd="+64" value="New Zealand">New Zealand</option>		<option asd="+505" value="Nicaragua">Nicaragua</option>		<option asd="+227" value="Niger ">Niger </option>		<option asd="+234" value="Nigeria">Nigeria</option>		<option asd="+683" value="Niue">Niue</option>		<option asd="+6723" value="Norfolk Island">Norfolk Island</option>		<option asd="+850" value="North Korea">North Korea</option>		<option asd="+4428" value="Northern Ireland">Northern Ireland</option>		<option asd="+1670" value="Northern Mariana Islands">Northern Mariana Islands</option>		<option asd="+47" value="Norway">Norway</option>		<option asd="+968" value="Oman">Oman</option>		<option asd="+92" value="Pakistan">Pakistan</option>		<option asd="+680" value="Palau">Palau</option>		<option asd="+507" value="Panama">Panama</option>		<option asd="+675" value="Papua New Guinea">Papua New Guinea</option>		<option asd="+595" value="Paraguay">Paraguay</option>		<option asd="+51" value="Peru">Peru</option>		<option asd="+63" value="Philippines">Philippines</option>		<option asd="+48" value="Poland">Poland</option>		<option asd="+351" value="Portugal">Portugal</option>		<option asd="+1 787 and 1 939 " value="Puerto Rico">Puerto Rico</option>		<option asd="+974" value="Qatar">Qatar</option>		<option asd="+262" value="Reunion">Reunion</option>		<option asd="+40" value="Romania">Romania</option>		<option asd="+7" value="Russia">Russia</option>		<option asd="+250" value="Rwanda">Rwanda</option>		<option asd="+590" value="Saint-Barth?lemy">Saint-Barth?lemy</option>		<option asd="+290" value="Saint Helena">Saint Helena</option>		<option asd="+1869" value="Saint Kitts and Nevis ">Saint Kitts and Nevis </option>		<option asd="+1758" value="Saint Lucia">Saint Lucia</option>		<option asd="+590" value="Saint Martin (French side)">Saint Martin (French side)</option>		<option asd="+508" value="Saint Pierre and Miquelon">Saint Pierre and Miquelon</option>		<option asd="+1784" value="Saint Vincent and the Grenadines">Saint Vincent and the Grenadines</option>		<option asd="+685" value="Samoa">Samoa</option>		<option asd="+239" value="Sao Tome and Principe">Sao Tome and Principe</option>		<option asd="+966" value="Saudi Arabia">Saudi Arabia</option>		<option asd="+221" value="Senegal">Senegal</option>		<option asd="+381" value="Serbia">Serbia</option>		<option asd="+248" value="Seychelles">Seychelles</option>		<option asd="+232" value="Sierra Leone">Sierra Leone</option>		<option asd="+1721" value="Sint Maarten (Dutch side)">Sint Maarten (Dutch side)</option>		<option asd="+65" value="Singapore">Singapore</option>		<option asd="+421" value="Slovakia ">Slovakia </option>		<option asd="+386" value="Slovenia">Slovenia</option>		<option asd="+677" value="Solomon Islands">Solomon Islands</option>		<option asd="+252" value="Somalia">Somalia</option>		<option asd="+27" value="South Africa">South Africa</option>		<option asd="+82" value="South Korea">South Korea</option>		<option asd="+211" value="South Sudan">South Sudan</option>		<option asd="+34" value="Spain">Spain</option>		<option asd="+94" value="Sri Lanka">Sri Lanka</option>		<option asd="+249" value="Sudan">Sudan</option>		<option asd="+597" value="Suriname">Suriname</option>		<option asd="+268" value="Swaziland">Swaziland</option>		<option asd="+46" value="Sweden">Sweden</option>		<option asd="+41" value="Switzerland">Switzerland</option>		<option asd="+963" value="Syria">Syria</option>		<option asd="+886" value="Taiwan">Taiwan</option>		<option asd="+992" value="Tajikistan">Tajikistan</option>		<option asd="+255" value="Tanzania">Tanzania</option>		<option asd="+66" value="Thailand">Thailand</option>		<option asd="+228" value="Togo">Togo</option>		<option asd="+690" value="Tokelau">Tokelau</option>		<option asd="+676" value="Tonga">Tonga</option>		<option asd="+1868" value="Trinidad and Tobago">Trinidad and Tobago</option>		<option asd="+216" value="Tunisia">Tunisia</option>		<option asd="+90" value="Turkey">Turkey</option>		<option asd="+993" value="Turkmenistan">Turkmenistan</option>		<option asd="+1649" value="Turks and Caicos Islands">Turks and Caicos Islands</option>		<option asd="+688" value="Tuvalu">Tuvalu</option>		<option asd="+256" value="Uganda">Uganda</option>		<option asd="+380" value="Ukraine">Ukraine</option>		<option asd="+971" value="United Arab Emirates">United Arab Emirates</option>		<option asd="+44" value="United Kingdom">United Kingdom</option>		<option asd="+1" value="United States of America ">United States of America </option>		<option asd="+598" value="Uruguay">Uruguay</option>		<option asd="+998" value="Uzbekistan">Uzbekistan</option>		<option asd="+678" value="Vanuatu">Vanuatu</option>		<option asd="+58" value="Venezuela">Venezuela</option>		<option asd="+84" value="Vietnam">Vietnam</option>	</select></td>
  </tr>
   <tr>
    <td>Price</td>
    <td><input type="radio" name="state_type" value="1" checked>Enable<br>
	<input type="radio" name="state_type" value="0">Disable</td>
  </tr>
  <tr>
    <td>Charges per SMS </td>
    <td><input type="text" name="charges" class="required number"  ></td>
  </tr>
  <tr>
    <td> Total SMS Submitted</td>
    <td><input type="text" name="total" class="required number" ></td>
  </tr>
   <tr>
    
    <td><center><input type="submit" name="submit" value="submit"></center></td>
  </tr>
</table></form>