<form  action=""  method="post" class="form-horizontal" id="expenseEditForm" name="expenseEditForm"  onsubmit="submitEditForm(event, this);">
<div class="form-group">
    <label for="inputEmail1" class="col-lg-2 control-label">نوع المصروف</label>
    <div class="col-lg-4">
      <select name="expensetype" id="expensetype" data-placeholder="" class="select2_custom wdt100">
        
            
        
        {foreach $alldata as $data }
      
      
        
            
        <option  {if {$Expensealldata->expensestypeid} eq {$data->expensestypeid}}  selected="selected" {/if} value="{$data->expensestypeid}">{$data->expensestypename}</option>
        
            
        
									    
        {/foreach}
    
    
      
          
      </select>
    </div>
  </div>
  <div class="form-group">
    <label class="col-lg-2 control-label">إسم المصروف</label>
    <div class="col-lg-4">
      <input type="text" name="expensesname" id="expensesname" class="form-control" required="required" value="{$Expensealldata->expensesname}"  onchange="checkExpenseNameForEdit(this.value, {$Expensealldata->expensesid});"/>
    </div>
  </div>
  <div class="form-group">
    <label for="inputEmail1" class="col-lg-2 control-label">قيمة المصروف</label>
    <div class="col-lg-4"> <span id="name">
      <input type="text" value="{$Expensealldata->expensesValue}" name="expensevalue" id="expensevalue" class="form-control"  readonly="readonly" />
      <input name="expenseid" type="hidden" value="{$Expensealldata->expensesid}" />
      <span class="textfieldInvalidFormatMsg">يجب ادخال قيمه المصروف رقم.....</span></span> </div>
  </div>
  
  <div class="form-group">
    <label for="inputEmail1" class="col-lg-2 control-label">التعليق</label>
    <div class="col-lg-4">
      <textarea  name="expensecomment" id="expensecomment" class="form-control" >{$Expensealldata->expensesdetails}</textarea>
    </div>
  </div>
  <div class="form-group">
    <label for="inputEmail1" class="col-lg-2 control-label">حذف مؤقت</label>
    <div class="col-lg-4">
      <div class="radio-inline">
        <label>
          <input name="conditions" type="radio" value="1" {if {$Expensealldata->
          conditions} eq 1} checked="checked" {/if} />
          نعم </label>
      </div>
      <div class="radio-inline">
        <label>
          <input name="conditions" type="radio" {if {$Expensealldata->
          conditions} eq 0} checked="checked" {/if} value="0" />
          لا </label>
      </div>
    </div>
  </div>
  <div class="form-group">
    <div class="col-lg-offset-2 col-lg-4">
      <input type="submit" id="ss" name="ss" class="btn btn-primary pull-left" value="حفظ"/>
    </div>
  </div>
</form>
<div id="result"></div>
{literal} 
<script type="text/javascript">
var name = new Spry.Widget.ValidationTextField("name", "currency");
</script> 
{/literal}