<?php /* Smarty version Smarty-3.1.11, created on 2025-01-09 02:44:19
         compiled from "../views/obgy/gtimage/add.html" */ ?>
<?php /*%%SmartyHeaderCode:1483404949677fa883ac4431-45886573%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'bfbea5f07e277d3cc88ba31375a79952e83809b3' => 
    array (
      0 => '../views/obgy/gtimage/add.html',
      1 => 1574279978,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1483404949677fa883ac4431-45886573',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'ProgramesettingData' => 0,
    'patientid' => 0,
    'patientName' => 0,
    'patientType' => 0,
    'today' => 0,
    'doctorData' => 0,
    'allGData' => 0,
    'hosturl' => 0,
    'path' => 0,
    'allGtDetail' => 0,
    'detail' => 0,
    'i' => 0,
    'itrcount' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_677fa883bb0679_40114950',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_677fa883bb0679_40114950')) {function content_677fa883bb0679_40114950($_smarty_tpl) {?>
<style>
    @media print {
        #img-out
        {
        size: auto;
        margin-top: <?php echo $_smarty_tpl->tpl_vars['ProgramesettingData']->value->above;?>
cm;
        margin-bottom: <?php echo $_smarty_tpl->tpl_vars['ProgramesettingData']->value->buttom;?>
cm;
        }
    }
</style>


<div class="page-content-wrapper">
    <div class="page-content">
        <div class="row">
            <div class="col-md-12 clinick wds1136">
                <!-- BEGIN PAGE CONTENT-->
                <div id="container" class="row-fluid">
                    <div id="main-content">
                        <input type="hidden" id="dragPage" value="1"/>
                        <input type="hidden" id="patientId" value="<?php echo $_smarty_tpl->tpl_vars['patientid']->value;?>
"/>
                        <input type="hidden" id="patientName" value="<?php echo $_smarty_tpl->tpl_vars['patientName']->value;?>
"/>
                        <input type="hidden" id="patientType" value="<?php echo $_smarty_tpl->tpl_vars['patientType']->value;?>
"/>
                        <input type="hidden" id="tdate" value="<?php echo $_smarty_tpl->tpl_vars['today']->value;?>
">
                        <input type="hidden" id="controllName" value="gtimage"/>
                        <input type="hidden" id="DocName" value="<?php echo $_smarty_tpl->tpl_vars['doctorData']->value['user_name'];?>
"/>
                        <input type="hidden" id="gtId" value="<?php if (!empty($_smarty_tpl->tpl_vars['allGData']->value)){?><?php echo $_smarty_tpl->tpl_vars['allGData']->value->id;?>
<?php }?>"/>

                        <form>

                            <div class="xxxccc wds1136">
                                <div id="allcom">

                                    <form action="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/drag/add" method="post">
                                        <div class="awtoolsdrag hidden-print" id="mytoolmain">
                                            <div class="demo_real awdrag_real" data-name="1"><img src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/aw/images/1.png" class="allimg"/></div>
                                            <div class="demo_real awdrag_real" data-name="3"><img src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/aw/images/3.png" class="allimg"/></div>
                                            <div class="demo_real awdrag_real" data-name="8"><img src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/aw/images/8.png" class="allimg"/></div>
                                            <div class="demo_real awdrag_real" data-name="5"><img src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/aw/images/5.png" class="allimg"/></div>
                                            <div class="demo_real awdrag_real" data-name="6"><img src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/aw/images/6.png" class="allimg"/></div>
                                            <div class="demo_real awdrag_real" data-name="7"><img src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/aw/images/7.png" class="allimg"/></div>
                                            <div class="demo_real awdrag_real" data-name="9"><img src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/aw/images/9.png" class="allimg"/></div>
                                            <div class="demo_real awdrag_real" data-name="10"><img src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/aw/images/10.png" class="allimg"/></div>
                                            <div class="demo_real awdrag_real" data-name="11"><img src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/aw/images/11.png" class="allimg"/></div>
                                            <div class="demo_real awdrag_real" data-name="12"><img src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/aw/images/12.png" class="allimg"/></div>
                                            <div class="demo_real awdrag_real" data-name="13"><img src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/aw/images/13.png" class="allimg"/></div>
                                            <div class="demo_real awdrag_real" data-name="14"><img src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/aw/images/14.png" class="allimg"/></div>
                                            <!--<span class="toolstitle">tools box</span>-->

                                        </div>
                                        <div id="img-out"></div>
                                        <div id="printimg">
                                            <div class="mainimage" id="containment-wrapper"> 
                                                <?php if ($_smarty_tpl->tpl_vars['allGData']->value->programview==1){?> 
                                                <img src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/aw/images/1.jpg"style="width: 100%;"/> 
                                                <?php }else{ ?>
                                                <img src="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/../upload/gtimage/<?php echo $_smarty_tpl->tpl_vars['allGData']->value->pic;?>
" style="width: 100%;"/> 
                                                <?php }?>

                                            </div>
                                            <?php if (!empty($_smarty_tpl->tpl_vars['allGtDetail']->value)){?>
                                            <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_variable(1, null, 0);?>
                                            <?php  $_smarty_tpl->tpl_vars['detail'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['detail']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allGtDetail']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['detail']->key => $_smarty_tpl->tpl_vars['detail']->value){
$_smarty_tpl->tpl_vars['detail']->_loop = true;
?>
                                            <div class="demo_real" data-name="<?php echo $_smarty_tpl->tpl_vars['detail']->value->imgno;?>
" data-id = "<?php echo $_smarty_tpl->tpl_vars['detail']->value->id;?>
" data-itr="<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" style="position: absolute; left: <?php echo $_smarty_tpl->tpl_vars['detail']->value->posx;?>
px; top: <?php echo $_smarty_tpl->tpl_vars['detail']->value->posy;?>
px; width: <?php echo $_smarty_tpl->tpl_vars['detail']->value->width;?>
px; height: <?php echo $_smarty_tpl->tpl_vars['detail']->value->height;?>
px;">
                                                <img src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/aw/images/<?php echo $_smarty_tpl->tpl_vars['detail']->value->imgno;?>
.png" style="width:<?php echo $_smarty_tpl->tpl_vars['detail']->value->width;?>
px; height:<?php echo $_smarty_tpl->tpl_vars['detail']->value->height;?>
px;" class="allimg"/>
                                                <div class="ui-resizable-handle ui-resizable-e" style="z-index: 90; display: block;"></div>
                                                <div class="ui-resizable-handle ui-resizable-s" style="z-index: 90; display: block;"></div>
                                                <div class="ui-resizable-handle ui-resizable-se ui-icon ui-icon-gripsmall-diagonal-se" style="z-index: 90; display: block;"></div>
                                                <!--<span class="noofitem"><?php echo $_smarty_tpl->tpl_vars['i']->value;?>
</span>-->
                                                <span class="closeit" id="delImg<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-id="<?php echo $_smarty_tpl->tpl_vars['detail']->value->id;?>
" data-old="0">x</span>
                                                <input type="hidden" id="posx<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" name="posx<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" value="<?php echo $_smarty_tpl->tpl_vars['detail']->value->posx;?>
">
                                                <input type="hidden" id="posy<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" name="posy<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" value="<?php echo $_smarty_tpl->tpl_vars['detail']->value->posy;?>
">
                                                <input type="hidden" id="poswidth<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" name="poswidth<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" value="<?php echo $_smarty_tpl->tpl_vars['detail']->value->width;?>
">
                                                <input type="hidden" id="posheight<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" name="posheight<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" value="<?php echo $_smarty_tpl->tpl_vars['detail']->value->height;?>
">
                                                <input type="hidden" id="nameimg<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" name="nameimg<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" value="<?php echo $_smarty_tpl->tpl_vars['detail']->value->imgno;?>
">
                                                <input type="text"  id="picComment<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" class="updateComentC" data-itr="<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
"  value="<?php echo $_smarty_tpl->tpl_vars['detail']->value->comment;?>
" />
                                                <span style="display:none;"></span>
                                            </div>
                                            <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_variable($_smarty_tpl->tpl_vars['i']->value+1, null, 0);?>
                                            <?php } ?>
                                            <?php }?>

                                            <div class="iconcomments">
                                                <div class="col-md-10">
                                                    <textarea class="form-control updateComent" rows="1" placeholder="Enter more text"><?php if (!empty($_smarty_tpl->tpl_vars['allGData']->value)){?><?php echo $_smarty_tpl->tpl_vars['allGData']->value->comment;?>
<?php }?></textarea>
                                                </div>

                                            </div>
                                        </div>
                                        <div class="clearfix"></div>
                                        <input type="hidden" name="iltr" id="iltr" value="<?php if (!empty($_smarty_tpl->tpl_vars['allGtDetail']->value)){?> <?php echo count($_smarty_tpl->tpl_vars['allGtDetail']->value);?>
 <?php }else{ ?> 0 <?php }?>">
                                        <input type="hidden" id="itrc" value="<?php echo $_smarty_tpl->tpl_vars['itrcount']->value;?>
">
                                    </form>
                                </div>
                            </div>
                        </form>
                    </div>
                    <div class="clearfix"></div>

                    <input type="submit" class="btn btn-primary green" style="margin:10px 10px;position: absolute;top: 524px;right: 115px;height: 29px;padding: 4px 13px;" value="print" id="printGt" />
                    <input type="submit" class="btn btn-primary removeAll red" style="margin:10px 10px; float: right;position: absolute; top: 524px; right: -8px; height: 29px; padding: 4px 13px;" value="Delete All" />
                    <div class="clearfix"></div>
                </div>
            </div>
        </div>

        <!-- END CONTENT-->
    </div>
</div>
<?php }} ?>