<?php /* Smarty version Smarty-3.1.11, created on 2024-07-15 17:49:55
         compiled from "..\views\default\cashTransferview\add.html" */ ?>
<?php /*%%SmartyHeaderCode:17316695452388ccb9-32272810%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '5da9a208ca59a605d87dc2fcab5a3d86c63963e8' => 
    array (
      0 => '..\\views\\default\\cashTransferview\\add.html',
      1 => 1672089199,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '17316695452388ccb9-32272810',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'savesData' => 0,
    'save' => 0,
    'bank' => 0,
    'b' => 0,
    'currency' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_669545238d19d7_31112867',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_669545238d19d7_31112867')) {function content_669545238d19d7_31112867($_smarty_tpl) {?>

<div class="row">
    <div class="container">
        <ol class="breadcrumb">
            <li><a href="#">المصروفات والايرادات</a></li>
            <li class="active">تحويل نقدي</li>
        </ol>
        <div class="panel panel-default panel-m">
            <!-- Default panel contents -->
            <div class="panel-heading">
                <h3 class="panel-title">تحويل  نقدي</h3>
            </div>
            <div class="panel-body">
                <form id="myTransferForm" class="form-horizontal" id="saveform" action="cashTransferController.php?do=add" method="post" >
                    <div class="form-group">
                        <label for="transfer" class="col-lg-2 control-label">التحويل</label>
                        <div class="col-lg-4">
                            <select class="select2 wdt100" name="transfer" id="transfer">
                                <option value="-1"> -- اختر -</option>
                                <option value="1">من البنك إلى الخزنة</option>
                                <option value="2">من الخزنة إلى البنك</option>
                            </select>
                            <div id="transferTypeError" style="display:none;"></div>

                        </div>

                    </div>

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

                    <div class="form-group">
                        <label for="save" class="col-lg-2 control-label">الخزنة</label>
                        <div class="col-lg-4">
                            <select class="select2 wdt100" name="save" id="save" onchange="loadSaveCurrentValue(this.value);">
                                <option value="-1">اختر خزنة</option>
                                <?php  $_smarty_tpl->tpl_vars['save'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['save']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['savesData']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['save']->key => $_smarty_tpl->tpl_vars['save']->value){
$_smarty_tpl->tpl_vars['save']->_loop = true;
?>
                                <option value="<?php echo $_smarty_tpl->tpl_vars['save']->value->saveid;?>
"><?php echo $_smarty_tpl->tpl_vars['save']->value->savename;?>
</option>
                                <?php } ?>
                            </select>
                            <div id="saveError" style="display:none;"></div>

                        </div>

                    </div>



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

                    <div class="form-group">
                        <label for="ddlBank" class="col-lg-2 control-label">البنك</label>
                        <div class="col-lg-4">
                            <select class="select2 wdt100" name="ddlBank" id="ddlBank" onchange="loadAccount(this.value);">
                                <option value="-1">اختر بنك</option>
                                <?php  $_smarty_tpl->tpl_vars['b'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['b']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['bank']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['b']->key => $_smarty_tpl->tpl_vars['b']->value){
$_smarty_tpl->tpl_vars['b']->_loop = true;
?>
                                <option value="<?php echo $_smarty_tpl->tpl_vars['b']->value->bankid;?>
"><?php echo $_smarty_tpl->tpl_vars['b']->value->bankname;?>
</option>
                                <?php } ?>
                            </select>
                            <div id="bankError" style="display:none;"></div>

                        </div>

                    </div>



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

                    <div class="form-group">
                        <label for="accountid" class="col-lg-2 control-label">اسم الحساب</label>
                        <div class="col-lg-4">
                            <div id="accountName">
                                <select class="select2 wdt100" name="accountid" id="accountid">
                                    <option value="-1">اختر حساب</option>
                                </select>
                                <div id="accountError" style="display:none;"></div>

                            </div>

                        </div>
                    </div>
                    <div id="accountnumber">
                        <!-- =================================================   -->

                        <div class="form-group">
                            <label for="accountnumberDis" class="col-lg-2 control-label">رقم الحساب</label>
                            <div class="col-lg-4">
                                <input type="text" id="accountnumberDis" name="accountnumberDis"   class="numberinput form-control" placeholder="رقم الحساب" readonly="readonly"/>
                                <input type="hidden" name="accountnumber" id="accountnumber"/>
                            </div>
                        </div>

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

                        <div class="form-group">
                            <label for="accountbeginingbalanceDis" class="col-lg-2 control-label">رصيد سابق</label>
                            <div class="col-lg-4">
                                <div class="input-group">
                                    <input type="text" name="accountbeginingbalanceDis" id="accountbeginingbalanceDis" class="form-control numberinput" readonly="readonly" placeholder="رصيد سابق"/>
                                    <span class="input-group-addon"><?php echo $_smarty_tpl->tpl_vars['currency']->value;?>
</span> </div>
                                <input type="hidden" name="accountbeginingbalance" id="accountbeginingbalance"/>
                            </div>
                        </div>

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

                    </div>
                    <div class="form-group">
                        <label for="txtcheckNum" class="col-lg-2 control-label">رقم الشيك</label>
                        <div class="col-lg-4">
                            <input type="text" name="txtcheckNum" id="txtcheckNum" class="form-control numberinput" placeholder="رقم الشيك"/>
                            <div id="chckNoError" style="display:none;"></div>
                        </div>
                    </div>

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

                    <div class="form-group">
                        <label for="txtUser" class="col-lg-2 control-label">اسم المستفيد</label>
                        <div class="col-lg-4">
                            <input type="text" name="txtUser" id="txtUser" class="form-control " placeholder="اسم المستفيد" />
                            <div id="nameError" style="display:none"></div>
                        </div>
                    </div>

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

                    <div class="form-group">
                        <label for="txtAmount" class="col-lg-2 control-label">قيمة الشيك</label>
                        <div class="col-lg-4">
                            <input type="text" name="txtAmount" id="txtAmount" class="form-control numberinput" placeholder="قيمة الشيك"/>
                            <div id="valueError" style="display:none"></div>
                        </div>

                    </div>

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

                    <div class="form-group">
                        <label for="textNote" class="col-lg-2 control-label">تفاصيل اخرى</label>
                        <div class="col-lg-4">
                            <textarea  class="form-control" rows="3" name="textNote"></textarea>
                        </div>
                    </div>

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

                    <div class="form-group">
                        <div class="col-lg-offset-2 col-lg-4">
                            <button  type="button" id="saveTranBtn"  class="btn btn-primary pull-left">حفظ</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>

<?php }} ?>