<?php
session_start();
// ============
include("../../php_crud/my_class.php");
$obj=new my_class();
extract($_REQUEST);
//echo $mod_id;

// ============
?>
<style type="text/css">
i{
	cursor:pointer;
}

.select_list{
	width: 200px;
}

.input_sub{
	width: 185px;
}
.select_list1{
	width: 100px;
	float: left;
	margin-left: 3px;
	margin-right: 3px;
}


</style>


<script src="module/general_notice/js/sms_account_setup.js" type="text/javascript"></script>


<div class="row-fluid" id="first_part" style="background-color:#f5f5f5;-webkit-box-shadow: 0 8px 6px -6px black; -moz-box-shadow: 0 8px 6px -6px black; box-shadow: 0 8px 6px -6px black;">
	<form class="form-vertical" >
		<input type="hidden" id="branchid" name="branchid" value="<?php echo $_SESSION['LOGIN_BRANCH'];?>"/>
		<legend>
			<div class="widget-header header-color-green2">
				<h4 class="lighter smaller" style="font-weight:bold;">SMS Allocation</h4>
			</div>
		</legend>

		<div class="row-fluid">
			<div class="span3">
				<div class="control-group" >
					<label class="control-label" for="form-field-1">&nbsp;&nbsp;Free SMS<font color="#FF0000">*</font></label>
					<div class="controls">&nbsp;&nbsp;
						<input id="free_sms" name="free_sms"   type="text" placeholder="Free SMS"  />
					</div>
				</div>	
			</div>	

			<div class="span3">
				<div class="control-group" >
					<label class="control-label" for="form-field-1">Paid SMS<font color="#FF0000">*</font></label>
					<div class="controls" id="branch_control">
						<input id="paid_sms" name="paid_sms"   type="text" placeholder="Paid SMS"   />
					</div>
				</div>
			</div>
	
			<div class="span3">
				<div class="control-group" >
					<label class="control-label" for="form-field-1">SMS rate<font color="#FF0000">*</font></label>
					<div class="controls" id="branch_control">
						<input id="sms_rate" name="sms_rate"   type="text" placeholder="SMS rate"   />
					</div>
				</div>
			</div>
	
			<div class="span3">
				<div class="control-group" >
					<label class="control-label" for="form-field-1"> Year <font color="#FF0000">*</font></label>
					<div class="controls" id="branch_control">
						<select class="select_list" name="atd_from_year" id="atd_from_year">
							<option value="">- - Year - -</option>
							<?php
								for ($x = date('Y'); $x <= date('Y')+1; $x++) {
							?>
								<option <?php if($x==date('Y')) echo 'selected'; ?> value="<?php echo $x; ?>"><?php echo $x; ?></option>
							<?php } ?>		   		
						</select>
					</div>
				</div>
			</div>
		</div>

		<div class="row-fluid">
			<div class="span4">
				<div class="control-group">
					<label class="control-label" for="form-field-1">&nbsp;</label>
					<div class="controls">&nbsp;&nbsp;
						<button class="btn btn-small btn-success" type="button" id="std_Section_trabulation">
							<i class="icon-ok bigger-100"></i>
							Submit
						</button>
					</div>
				</div>
			</div>
		</div>	
	</form>
</div>

<!-- ============================================================================ -->

<div class="row-fluid show_Section_trabulation" id="second_part" style="margin-top: 25px;"></div>

	
<script type="text/javascript">	
	/*var oTable1 = $('#sample_table').dataTable( {
	"aoColumns": [
	  { "bSortable": true },
	  null,null, null,null,null,null, null, 
	  { "bSortable": true }
	] } );*/
					

	$('.date-picker').datepicker().next().on(ace.click_event, function(){
     $(this).prev().focus();
    });
	
	
</script>

<div id="modal-table" class="modal hide fade bs-example-modal-lg" style=" width:80%;margin-left:-500px; padding:10px;" tabindex="-1">
	<form class="form-vertical" >
		<div class="modal-header no-padding">
			<div class="table-header">
				<button type="button" class="close" data-dismiss="modal">&times;</button>
				SMS Allocation Edit
			</div>
		</div>
		<div class="modal-body " id="model_table_value">
			<div class="span3">
				<div class="control-group" >
					<label class="control-label" for="form-field-1">Free SMS<font color="#FF0000">*</font></label>
					<div class="controls">
						<input id="free_sms_edit" name="free_sms_edit" value=""  type="text" placeholder="Free No. of SMS "  />
						<input id="id_edit" name="id_edit"   type="hidden" value=""  />
					</div>
				</div>				
			</div>	
			<div class="span3">
				<div class="control-group" >
					<label class="control-label" for="form-field-1">Paid SMS<font color="#FF0000">*</font></label>
					<div class="controls" id="branch_control">
						<input id="paid_sms_edit" name="paid_sms_edit" value=""  type="text" placeholder="Paid No. of SMS "   />
					</div>
				</div>
			</div>
			<div class="span3">
				<div class="control-group" >
					<label class="control-label" for="form-field-1">SMS rate<font color="#FF0000">*</font></label>
					<div class="controls" id="branch_control">
						<input id="sms_rate_edit" name="sms_rate_edit" value=""  type="text" placeholder="SMS rate"   />
					</div>
				</div>
			</div>	
		</div>
		<div class="modal-footer">
			<div class="span3">
				<div class="control-group" >			
					<div class="controls" id="branch_control">
						<button class="btn btn-small btn-success pull-left"  style="float: left;" id="edit_submit">
							<i class="icon-remove"></i>
							Submit
						</button>		
					</div>
				</div>					
			</div>
			<div class="span3" style="display:none;" id="resultUpdateShow">
				<div class="control-group" >			
					<div class="controls" id="resultUpdate">
					</div>
				</div>					
			</div>
		</div>
	</form>							
</div>

