<link rel="stylesheet" href="css/new_mxerp.css">
<div class="body_contain">
<div class="tab_div"> 
<form name="search" action="" method="post">
<div id="PickedItems" style="display:none"></div>
<h1>Temporary Logo</h1>

<?php  $url='&modid='.$_REQUEST['modid'].'&frmid='.$_REQUEST['frmid'];?>

 <table width="100%" cellpadding="3" cellspacing="0" border="1" style="border:#808080 1px solid; border-collapse:collapse;">
 
<tr>
  <th width="3%"><strong>S. No.</strong></th>
  <th><strong>Logo</strong></th>
  <th width="5%" style="text-align:center;"><strong>Action</strong></th>
 
</tr>
<?php 
$i=1;
$SQL=DB_query("SELECT * FROM hr_temporary_logo",$db);


while($GetRec=DB_fetch_array($SQL)) {
  $applicantid=$GetRec['id'];
 // $qt=DB_num_rows(DB_query("SELECT * FROM hr_applcnt_rgstn_ref where hr_applcnt_rgstn_id='".$GetRec['mainid']."' and akk_status='ok'",$db));
//if($qt>=2){
  ?>
  <tr bgcolor="#fff">
        <td><?php echo $i; ?></td>         
        <td><img src="uploaded_docs/HR/temp_logo/<?php echo$GetRec['logo']; ?>" height="40" width="40"></td>
        <td style="text-align:center;"><a href="#" onclick="pop(<?php echo $GetRec['id']; ?>,<?php echo $_REQUEST['frmid']; ?>,<?php echo $_REQUEST['modid']; ?>)"><img width="15" height="15" src="images/icon-edit.png" title="Edit Document"></a></td>
             
        </tr>
        <?php $i++; }// } ?>
</table>
</form>
</div>
</div>

<?php

?>
<script type="text/javascript" language="javascript">
//$.noConflict();
function pop(id,frmid,modid){
 // alert(id);
  //alert(str);
  $("#PickedItems").dialog({
                title:'Document Uploading',
                modal: true,
                resizable: false,
                width:900,
                height:400,
                closeText: 'fechar',
                draggable: true,
                show: 'fade',
                hide: 'fade',
                dialogClass: 'main-dialog-class',
                buttons: {
                        Exit: function()
                        {
                                $(this).dialog("close");
                        }
                }

            });
   Getemployeelist(id,frmid,modid);
}

    
function Getemployeelist(id,frmid,modid)
{ 
  var xmlhttp;
    if (window.XMLHttpRequest)
    {// code for IE7+, Firefox, Chrome, Opera, Safari
    xmlhttp=new XMLHttpRequest();
    }
    else
    {// code for IE6, IE5
    xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
    xmlhttp.onreadystatechange=function()
    {
    if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
       // alert(xmlhttp.responseText);
    document.getElementById("PickedItems").innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("POST",'ajax_temporary_logo.php?id='+id+'&modid='+modid+'&frmid='+frmid,true);
xmlhttp.send();
}

function pop1(id,frmid,modid){

  $("#PickedItems").dialog({
                title:'Document Uploading View',
                modal: true,
                resizable: false,
                width:900,
                height:400,
                closeText: 'fechar',
                draggable: true,
                show: 'fade',
                hide: 'fade',
                dialogClass: 'main-dialog-class',
                buttons: {
                        Exit: function()
                        {
                                $(this).dialog("close");
                        }
                }

            });
   Getemployeelist1(id,frmid,modid);
}
    
function Getemployeelist1(id,frmid,modid)
{ 
  var xmlhttp;
    if (window.XMLHttpRequest)
    {// code for IE7+, Firefox, Chrome, Opera, Safari
    xmlhttp=new XMLHttpRequest();
    }
    else
    {// code for IE6, IE5
    xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
    xmlhttp.onreadystatechange=function()
    {
    if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
       // alert(xmlhttp.responseText);
    document.getElementById("PickedItems").innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("POST",'ajax_invest_doc_updating_view.php?id='+id+'&modid='+modid+'&frmid='+frmid,true);
xmlhttp.send();
}


</script>
