 {literal} 
<script type="text/javascript">
function load1(){
	
	$('#sss').html('<img src="images/loader.gif/>');
   $('#sss').load('getallaccountajax.php?do=bank&bankid='+document.getElementById('ddlBank').value); 
}
  //$(document).ready(function(){
            //$("#selectionresult").hide();
        /*    $("#ddlBank").change( function() {
                $("#ddlAccount").hide();
               // $("#accountDiv").html("Retrieving …");
			   //alert($(this).val());
                $.ajax({
                    type: "POST",
                    data: "data=" + $(this).val(),
                    url: "wirhdrawalCheckCTRL.php",
                    success: function(msg){
						//alert(data);
                        if (msg != ""){
							alert(msg);
                            $("#ddlAccount").html(msg).show();
                            //$("#result").html("");
                        }
                        else{
                            $("#accountDiv").html("<em>No item result</em>");
                        }
                    }
                });
            });*/
			


/*  $('#accountid').on('change', function() {  
  alert("jhjkhkj");
    $.get('wirhdrawalCheckCTRLJquery.php?accountInfo=' + $(this).val(), function(accountNum) {
		//console.log(accountNum);
		//alert(accountNum);
        //$('div#divAccountNum').text(accountNum);
		var splitter = accountNum.indexOf('-');
	    $('input#txtAccountNum').val(accountNum.substr(0,splitter));
		$('input#txtPreviousAccount').val(accountNum.substr(splitter+1));
    });
  });


			
			
        });*/

</script> 
{/literal}
<div id="right"> 
  <!-- table -->
  <div class="box"> 
    <!-- box / title -->
    <div class="title">
      <h5>المنتـــــجات</h5>
      <ul class="links">
      </ul>
      <ul id="breadcrumb" style="float:right !important;">
        {$breadCrumb}
      </ul>
    </div>
    <div class="title"></div>
    <!-- end box / title -->
    
    <form name="form1" method="post" action="?do=add">
      <table>
        <tr>
          <th>اسم البنك </th>
          <td>
            <div id="bankdiv"> <span id="spryselect1">
              <label for="ddlBank"></label>
              <select name="ddlBank" id="ddlBank" onchange="load1();" class="select2 wdt100">
                <option value="0">اختر بنك</option>
                
          {foreach $bank as $b}
          	
                <option value="{$b -> bankid}">{$b -> bankname}</option>
                
      	  {/foreach}
        
              </select>
              <span class="selectInvalidMsg">يرجى إختيار بنك</span><span class="selectRequiredMsg">يرجى إختيار بنك</span></span> </div>
          </td>
        </tr>
        <tr>
          <th>اسم المورد</th>
          <td> <span id="spryselect2">
            <label for="ddlSupplier"></label>
            <select name="ddlSupplier" id="ddlSupplier" class="select2 wdt100">
              <option value="0">اختر مورد</option>
              
          {foreach $supplier as $sup}
          	
              <option value="{$sup -> supplierid}">{$sup -> suppliername}</option>
              
      	  {/foreach}

        
            </select>
            <span class="selectInvalidMsg">يرجى إختيار مورد</span><span class="selectRequiredMsg">يرجى إختيار مورد</span></span> </td>
        </tr>
        <tr>
          <th>اسم الحساب</th>
          <td> <span id="spryselect3">
            <div id="sss">
              <label for="ddlAccount"></label>
              <select name="ddlAccount" id="ddlAccount" class="select2 wdt100">
                <option value="0">اختر اسم الحساب</option>
              </select>
              <!--<p id="result">&nbsp;</p>--> 
            </div>
            </span> <span> <span class="selectInvalidMsg">يرجى إختيار حساب</span><span class="selectRequiredMsg">يرجى إختيار حساب</span></span> </td>
        </tr>
        <tr>
          <td colspan="2">
            <div id="ddd">
              <table width="500">
                <tr>
                  <th>رقم الحساب </th>
                  <td>
                    <input type="text" name="accountnumberDis" id="accountnumberDis"  readonly="readonly" class="form-control"/>
                    <input type="hidden" name="accountnumber" id="accountnumber"/>
                  </td>
                </tr>
                <tr>
                  <th>رصيد سابق </th>
                  <td>
                    <input type="text" name="accountbeginingbalanceDis" id="accountbeginingbalanceDis"  readonly="readonly" class="form-control"/>
                    <input type="hidden" name="accountbeginingbalance" id="accountbeginingbalance"/>
                  </td>
                </tr>
              </table>
            </div>
          </td>
        </tr>
        
        <!--tr>
<th>رقم الحساب </th>


<td>
<div id="divAccountNum" >
    <input type="text" name="txtAccountNum" id="txtAccountNum" />
    </div>

</td>
</tr>
<tr>
<th>رصيد سابق </th>

<td>
<span id="sprytextfield2">
      <label for="txtPreviousAccount"></label>
      <div id="divPreviousAccount">
      <input type="text" name="txtPreviousAccount" id="txtPreviousAccount">
      <span class="textfieldRequiredMsg">*</span><span class="textfieldInvalidFormatMsg">يرجى إدخال قيمة صحيحة</span></span>
  </div>
</td>
</tr-->
        
        <tr>
          <th>رقم الشيك</th>
          <td> <span id="sprytextfield3">
            <label for="txtcheckNum"></label>
            <input type="text" name="txtcheckNum" id="txtcheckNum" class="form-control">
            <span class="textfieldRequiredMsg">*</span><span class="textfieldInvalidFormatMsg">يرجى إدخال قيمة صحيحة</span></span> </td>
        </tr>
        <tr>
          <th>اسم المستفيد </th>
          <td>
            <input type="text" name="txtUser" id="txtUser" class="form-control">
          </td>
        </tr>
        <tr>
          <th>المبلغ المدفوع </th>
          <td> <span id="sprytextfield4">
            <input type="text" name="txtAmount" id="txtAmount" class="form-control">
            <span class="textfieldRequiredMsg">*</span><span class="textfieldInvalidFormatMsg">يرجى إدخال قيمة صحيحة</span></span> </td>
        </tr>
        <tr>
          <th> تفاصيل أخرى</th>
          <td>
            <textarea name="textNote" id="textNote" cols="45" rows="5" class="form-control"></textarea>
          </td>
        </tr>
        <tr>
          <td colspan="2">
            <input type="submit" name="button" id="button" value="حفظ" style="width:120px;"">
          </td>
        </tr>
      </table>
    </form>
  </div>
</div>