<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Setting.master.cs" Inherits="CheckSheet.setting.Setting" %>


<!DOCTYPE html>
<html lang="en">
<head runat="server">
    <meta charset="utf-8" />
    <title><%: Page.Title %> - Check Sheet Application</title>


    <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />

    
    <script type="text/javascript" src="../Scripts/jquery-1.8.9.js"></script> 
    <script type="text/javascript" src="../Scripts/jquery-1.7.2.min.js"></script> 
    <script type="text/javascript" src="../Scripts/main.js?v=12345"></script> 
    <script type="text/javascript" src="../Scripts/simplepicker.js"></script> 
    <link rel="stylesheet" type="text/css" href="../css/Site.css?v=0001"/>
    <link rel="stylesheet" href="../fonts/stylesheet.css?v=002" type="text/css" charset="utf-8" />
    <link rel="stylesheet" type="text/css" href="../css/form-basic.css?v=001"/>
    <link rel="stylesheet" type="text/css" href="../css/simplepicker.css?v=009"/> 
    <script src="../Scripts/sweetalert2.all.min.js"></script>
    <link rel="stylesheet" type="text/css" href="../css/sweetalert2.min.css"/> 



    <meta name="viewport" content="width=device-width" />
   
      <script>
          $(document).ready(function () {


              let userid = getCookie("userid");
              let username = getCookie("fullname");
              let position = getCookie("position");
              $("#lbluserid").html(userid);
              $("#lblfullname").html(username);
              $("#lblposition").html(position);


              $("span").not($(":button")).each(function () {

                  var ctlid = $(this).attr("id");
                  try
                  {
           
           
                      $("#" + ctlid).css({ 'font-size': '14px' });

                

                  }
                  catch (err) {

                  }

              });
              $("input").not($(":button")).each(function () {

                  var ctlid = $(this).attr("id");
                  try {


                      $("#" + ctlid).css({ 'font-size': '14px' });



                  }
                  catch (err) {

                  }

              });

              


          });
          function linkcsv(page)
          {
              window.open(page,'_blank');
          

          }
            </script>

</head>
<body>
    <form runat="server"  class="form-basic" >
    <asp:ScriptManager runat="server">      

    </asp:ScriptManager>
    <header>
       
    </header>
    <div id="body">
           <div id="myModal" style="z-index:99999999999999999999999999;" class="modal">
         <!-- Modal content -->
        <div class="modal-content">
             <div class="modal-header">
                 <div style="text-align:left;margin-left:1%;  position: fixed;"> <asp:TextBox ID="txtPubFilter"  runat="server" Width="100%" placeholder="Search..." style="background-image:url(../image/search.png);background-position:right;background-repeat:no-repeat;margin-top:2px;"  ></asp:TextBox> 
                 </div>
                 <span style="position:absolute;float:right;right:2px;margin-top:-10px;">
                    <asp:Button ID="btnclose" runat="server"  Text="Close"  style="height:40px;width:30px;color:white;margin-top:2px;padding:0.5em;background-color:red;"  CssClass="button" OnClientClick="javascript:closemodel();return false;"/>
               </span>
                 </div>
            <div class="modal-body">
                <div id="dataload"><img src="../loader.gif" /></div>
                <div id="mdct" class="grouplist" style="margin-top:-2px;max-height:450px;width:100%;overflow:auto;" onscroll='myscroll()'>
                <div id="popupdt"></div>
                    </div>


            </div>

        </div>

      </div>

        <div id="ModalCamare" style="z-index:99999999999999999999999999;" class="modal">

        <!-- Modal content -->
        <div class="modal-content">

            <div class="modal-body">
            
          </div>
        </div>


            </div>

 

                    <div class="form-row">
                <div class="frmrow">
                    <span>
                    <label>
                    <img src="../image/userid.png" width="30">
                    </label>
                    <label style="margin-top:-1px;position:absolute;width:100%;font-size:10px;font-weight:900">User ID:
                    <asp:Label ID="lbluserid" style="display:inline-block;font-size:10px;" Font-Bold="true" runat="server" Text="xxxx"></asp:Label>
                     
                    <asp:Label ID="lblfullname" Style ="display:inline-block;font-size:10px;"  Font-Bold="true" runat="server" Text="xxxx  xxxxx"></asp:Label>
                    Position:
                    <asp:Label ID="lblposition" style="display:inline-block;font-size:10px;" Font-Bold="true"   runat="server" Text="xxxxxxxxx"></asp:Label>
                    </label>

                    </span>

                    
                </div>
             </div>



        <section class="content-wrapper main-content clear-fix">
            <asp:ContentPlaceHolder runat="server" ID="MainContent" />
        </section>
    </div>
   


            <script type="text/javascript">
                var d="";
                var m="";
                var y="";
                var simplepicker = new SimplePicker({
                    zIndex: 10
                });
       
       
                function date(sd,sm,sy)
                {
                    d=sd;
                    m=sm;
                    y=sy;

                    simplepicker.open();
                }

                simplepicker.on('submit', function (date, readableDate) {
        
                    var ad = readableDate.toString().split(" ");
                    var month = ad[1].toString();
                    var monthstr="";
                    if(month.toLowerCase()=="january")
                    {
                        monthstr = "01";
                    }
                    else if(month.toLowerCase()=="febuary")
                    {
                        monthstr = "02";

                    }
                    else if(month.toLowerCase()=="march")
                    {
                        monthstr = "03";
                    }
                    else if(month.toLowerCase()=="april")
                    {
                        monthstr = "04";
                    }
                    else if(month.toLowerCase()=="may")
                    {
                        monthstr = "05";
                    }
                    else if(month.toLowerCase()=="june")
                    {
                        monthstr = "06";
                    }
                    else if(month.toLowerCase()=="july")
                    {
                        monthstr = "07";
                    }
                    else if(month.toLowerCase()=="august")
                    {
                        monthstr = "08";
                    }
                    else if(month.toLowerCase()=="september")
                    {
                        monthstr = "09";
                    }
                    else if(month.toLowerCase()=="october")
                    {
                        monthstr = "10";
                    }
                    else if(month.toLowerCase()=="november")
                    {
                        monthstr = "11";
                    }
                    else if(month.toLowerCase()=="december")
                    {
                        monthstr = "12";
                    }
    
                    if(ad[0].toString().length==1)
                    {
                        ad[0] = "0"+ad[0].toString();

                    }

                    $("#"+d).val(ad[0].toString());
                    $("#"+m).val(monthstr);
                    //$("#"+y).val((parseFloat(ad[2].toString())+543).toString());
                    $("#"+y).val((parseFloat(ad[2].toString())).toString());
                    $("#"+m).focus();
         
    
       
                });

                simplepicker.on('close', (date) => {
                    $eventLog.innerHTML += 'Picker Closed'  + '\n';
                });
             



     


      

</script>     

    </form>


</body>
</html>
