

<div class="modal fade" tabindex="-1" role="dialog" aria-hidden="false" data-backdrop="static" data-keyboard="false"   id="editTTTInst" style="min-width:1000px;">
    <div class="modal-dialog  modal-lg wds90">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close closeDrug" data-dismiss="modal" aria-hidden="true"></button>
                <h4 class="modal-title"> TTT </h4>
            </div>
            <div class="modal-body">
                <div class="portlet-body form">
                    <form class="form-horizontal" role="form" action="" method="post" id="editTTTInstForm" enctype="multipart/form-data">
                        <div class="row">
                            <div class="col-md-12">
                                <div class="portlet blue-hoki box" style="margin-bottom: 15px;">

                                    <div class="portlet-body  scroll_y showNum isheight580">

                                        <table class="table table-striped table-hover table-bordered" style="margin: 2%; width: 96%;">
                                            <tbody>
                                                <tr>
                                                    <th class="col-md-1">Doctor</th>
                                                    <td class="col-md-11">
                                                        <select class="form-control  select2me "  id="docAddIdEdit"  name="docAddIdEdit" data-placeholder="Select..." >
                                                            <option></option>
                                                            {foreach  $doctors as $data}
                                                            <option value="{$data.user_id}" {if $doc_instruction->doctorid == $data.user_id } selected {/if}  >{$data.name}</option>
                                                            {/foreach}
                                                        </select>
                                                    </td>
                                                </tr>

                                                <tr>
                                                    <th class="col-md-1">File Name</th>
                                                    <td class="col-md-11">
                                                        <input type="text" class="form-control" value="{$doc_instruction->name}" placeholder="Enter Name" id="fileNameEdit" name="fileNameEdit" >
                                                    </td>
                                                </tr>

                                                <tr>
                                                    <th class="col-md-1">Content</th>
                                                    <td class="col-md-11">
                                                        <textarea class="form-control has-info ckeditor" rows="3" placeholder="Enter more text" id="contentEdit"  name="contentEdit" >
                                                            {$doc_instruction->content}
                                                        </textarea>
                                                    </td>
                                                </tr>
                                        </table>

                                    </div>

                                    <div id="instPrintE">
                                    </div>

                                </div>
                            </div>
                            <div class="modal-footer">
                                <input type="hidden" id="insId" name="insId" value="{$doc_instruction->id}"/>
                                <input type="hidden" id="insFollowId" name="insFollowId" value=""/>
                                <input type="hidden" id="insSend" name="insSend" value=""/>
                                {if $save == 1 } 
                                <div id="husbandFor" style=" margin: 9px;left: 70%;">
                                    <label class="bold" style="font-size: 16px;">Husband 
                                        <input type="checkbox" id="preForNo" name="preForNo"  value="1" >
                                    </label>
                                </div>

                                <button type="button" class="btn default  " id="printInstWithoutSave"> Print  </button>
                                <a href="#"  class="btn green-haze " id="sendInstWithoutSave" data-send="1" > Send</a>
                                <img src="{$hosturl}/../upload/loading.gif" id="sendLoadingW" style="display: none;">
                                <i class="fa fa-check green" id="sendDoneW" style="display: none;color: green;font-size: large; "></i>
                                <i class="fa fa-exclamation-triangle red" id="sendErrorW" style="display: none;color: red;font-size: large; "></i>
                                {else}
                                <button type="button" class="btn default "  id="updateTTTInstBtn"> Save  </button>
                                {/if}
                                <button type="button" class="btn default" id="closemodel" data-dismiss="modal"> Close</button>

                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>


{literal}
<script type="text/javascript" >
    $('#docAddIdEdit').select2();
    CKEDITOR.replace('contentEdit');
</script>
{/literal}



