

<div class="modal fade" tabindex="-1" role="dialog" aria-hidden="false" data-backdrop="static" data-keyboard="false"   id="addFollowTTT" 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="gynaDrugs" enctype="multipart/form-data">
                        <div class="row">
                            <div class="col-md-12">
                                <div class="portlet blue-hoki box">

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

                                        <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-3">
                                                        <select class="form-control  select2me "  id="docId" data-placeholder="Select..." >
                                                            <option></option>
                                                            {foreach  $doctors as $data}
                                                            <option value="{$data.user_id}" >{$data.name}</option>
                                                            {/foreach}
                                                        </select>
                                                    </td>

                                                    <th class="col-md-1">
                                                        <a href="javascript:;" class="btn btn-primary btn-sm" id="addInsToFollow">
                                                            <i class="fa fa-plus"></i> Add New </a>
                                                    </th>
                                                </tr>
                                        </table>

                                        <input type="hidden" id="followupId" value="{$followupId}"/>

                                        <div > 
                                            <table class="table table-striped table-hover table-bordered" style="margin: 2%; width: 96%;">
                                                <thead>
                                                    <tr>
                                                        <th class="table-checkbox">
                                                            <input type="checkbox" class="ttttttAll" data-set="#sample_3 .checkboxes"/>
                                                        </th>
                                                        <th width="7%">No</th>
                                                        <th>Name</th>
                                                        <th width="5%"></th>
                                                        <th width="5%"></th>
                                                        <th width="5%"></th>
                                                        <th width="5%"></th>
                                                        <th width="5%"></th>
                                                    </tr>
                                                </thead>
                                                <tbody id="instDiv">

                                                </tbody>
                                            </table>
                                        </div>

                                        <div id="instPrint">
                                        </div>

                                    </div>

                                </div>
                            </div>
                            <div class="modal-footer">
                                <div id="husbandFor" style=" margin: 9px;left: 70%;">
                                    <label class="bold" style="font-size: 16px;">Husband <input type="checkbox" id="forHusband" name="forHusband"  value="1" ></label>
                                </div>
                                <button type="button" class="btn default printTTTInstruction "> Print  </button>
                                <button type="button" class="btn default" id="closemodel" data-dismiss="modal"> Close</button>

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

<div class="modal fade" tabindex="-1" role="dialog" aria-hidden="false" data-backdrop="static" 
     data-keyboard="false"   id="addTTTInst" style="min-width:1000px; ">
    <div class="modal-dialog  modal-lg wds90" >
        <div class="modal-content" style="height: 700px;">
            <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="addTTTInstForm" enctype="multipart/form-data">

                        <div class="row">
                            <div class="col-md-12">
                                <div class="portlet blue-hoki box" style="margin-bottom: 0px;">

                                    <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="docAddId"  name="docAddId" data-placeholder="Select..." >
                                                            <option></option>
                                                            {foreach  $doctorsAll as $data}
                                                            <option value="{$data.user_id}" >{$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" placeholder="Enter Name" id="fileName" name="fileName" >
                                                    </td>
                                                </tr>

                                                <tr>
                                                    <th class="col-md-1">Content</th>
                                                    <td class="col-md-11">
                                                        <textarea class="form-control has-info ckeditor" rows="10" 
                                                                  placeholder="Enter more text" id="content"  name="content" >

                                                        </textarea>
                                                    </td>
                                                </tr>
                                        </table>

                                    </div>

                                </div>
                            </div>

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

            <div class="modal-footer">

                <button type="button" class="btn default "  id="addTTTInstBtn"> Save  </button>
                <button type="button" class="btn default" id="closemodel" data-dismiss="modal"> Close</button>

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


<div id="editInsDiv"></div>


{literal}
<script type="text/javascript" >
    $('#docAddId').select2();
    $('#docId').select2();
    $('#instId').select2();
    CKEDITOR.replace('content');
</script>
{/literal}



