<!--
<script src="{$path}/SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
<link href="{$path}/SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css">

<script src="{$path}/SpryAssets/SpryValidationSelect.js" type="text/javascript"></script>
<link href="{$path}/SpryAssets/SpryValidationSelect.css" rel="stylesheet" type="text/css" />-->

<!-- DropDownList for Workstation -->
<div id="workStationDiv" style="display:none;">
    {foreach $allWorkStation as $ws}
    <option value="{$ws->workstationid}">{$ws->workname}</option>
    {/foreach}
</div>

<!-- DropDownList for Assetes-->
<div id="assetesDiv"  style="display:none;">
    {foreach $allAsetes as $assetes}
    <option value="{$assetes->assetId}">{$assetes->assetsName}</option>
    {/foreach}
</div>


<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">

            <div class="panel-heading">
                <h3 class="panel-title">اضافة العمليه</h3>
            </div>


            <div class="panel-body">


                <form class="form-horizontal nameToBeChecked"  action="settingOperationController.php?do=add" method="post">
                    <input type="hidden" name="itr"  id="itr" value="1"/>

                    <!-- operation name-->
                    <div class="form-group">
                        <label class="col-lg-2 control-label">اسم العمليه </label>
                        <div class="col-lg-4">
                            <input type="text" class="form-control" placeholder=" اسم العمليه" name="settingOperationName1" id"settingOperationName1" required/>
                        </div>
                    </div>


                    <!--مراكز الانتاج  -->
                    <div class="form-group mg-bt5">
                        <label class="col-lg-2 control-label">مراكز الانتاج</label>
                        <div class="col-lg-4">
                            <select class="select2 " name="workstationid" id="workstationid"    onchange="workersNo(this.value);"  >

                                <option value="-1"> اختر  مركز انتاج</option>

                                {foreach $allWorkStation as $ws}

                                <option value="{$ws->workstationid}">{$ws->workname}</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"  onchange="ckeckworkernum();" class="form-control numberinput" placeholder="" name="workersNo1" id="workersNo1"   />

                        </div>

                    </div>
                    <!--  <label>  يجب ان لا يزيد عدد العمال عن الرقم الموجود</label>-->


                    <!-- الاصول-->

                    <div class="form-group"  >
                        <label class="col-lg-2 control-label">الاصول</label>
                        <div class="col-lg-4">
                            <select class="select2 " name="assetesID1" id="assetesID1">

                                <option value="-1"> اختر اصل</option>

                                {foreach $allAsetes as $assetes}

                                <option value="{$assetes->assetId}">{$assetes->assetsName}</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"  required   class="form-control numberinput" placeholder="الوقت" name="realTime1" id="realTime1" />
                        </div>
                    </div>


                    <div class="form-group">
                        <div class="col-lg-offset-2 col-lg-4">
                            <input type="submit" name="button" id="button" value="حفظ" class="btn btn-primary" />
                        </div>
                    </div>

                </form>

            </div>
        </div>

    </div> <!-- end of container-->

</div>  <!-- end of row-->
