<style type="text/css">
.new_tab .inside_tab {
    background-image: url("../../images/tab_1_img.jpg");
    background-repeat: repeat-x;
    height: 32px;
    margin-left: 2px;
    margin-right: 2px;
    margin-top: 2px;
    padding: 0;
}
.inside_tab ul {
    list-style-type: none;
    margin: 0;
    padding-bottom: 5px;
    padding-left: 5px;
    padding-top: 4px;
}
.inside_tab li {
    float: left;
    margin: 0;
    padding: 0;
}
.inside_tab ul a {
    background-image: url("../../images/tab_2_img.jpg");
    background-repeat: repeat-x;
    border: 1px solid #666666;
    color: #000000;
    display: block;
    margin: 0 1px 0 0;
    padding: 3px 10px 4px;
    text-decoration: none;
}
.inside_tab ul a:hover {
    background-image: url("../../images/tab_2_img_hover.jpg");
    background-repeat: repeat-x;
    color: #000000;
    display: block;
    margin: 0 1px 0 0;
    padding: 6px 10px;
    text-decoration: none;
}
</style>
</style>
<link href="css/new_mxerp.css" rel="stylesheet" />
<div class="body_contain">
<div class="tab_div">
<h3><strong><?php echo $s->GetFieldValue("modules_form","id='".$_REQUEST['frmid']."' and moduleid='".$_REQUEST['modid']."'","frm_name"); ?></strong></h3>
<div class="new_tab">
<div class="inside_tab">
  <ul>
  <?php if($_SESSION['frmcreate']=='1') {?><li><a href="index.php?route=DMS/dmsTransaction&modid=<?php echo $_REQUEST['modid']; ?>&frmid=<?php echo $_REQUEST['frmid']; ?>">Add New</a></li><?php } ?>
    <li><a href="index.php?route=DMS/doc_type_index&modid=<?php echo  $_REQUEST['modid']?>&frmid=<?php echo $_REQUEST['frmid']?>&tab=1&type=pend_doc_type">Pending</a></li>
    <li><a href="index.php?route=DMS/doc_type_index&modid=<?php  echo $_REQUEST['modid']?>&frmid=<?php echo $_REQUEST['frmid']?>&tab=2&type=closed_type_index">Closed</a></li>
    <div style="clear:both;"></div>
  </ul>
</div>
</div>
<div style="height:3px;"></div>

<div style="width:100%; ">

  <?php 
  
    
      if($_REQUEST['route']!='' && $_REQUEST['type']!='')
      {
        include($_REQUEST['type'].".php");
      } 
  
  else{
  include("pend_doc_type.php");
  }
  ?>
</div>
</div>
</div>
