|
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AgentMain.aspx.cs" Inherits="Swift.web.Agent.AgentMain" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <head id="Head1" runat="server"> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <title>JME REMIT - AGENT</title> <link href="../../bootstrap/css/bootstrap.min.css" rel="stylesheet" /> <link href="../ui/css/waves.min.css" type="text/css" rel="stylesheet" /> <!-- <link rel="stylesheet" href="css/nanoscroller.css">--> <link href="../ui/css/menu.css" type="text/css" rel="stylesheet" /> <link href="../ui/css/style.css" type="text/css" rel="stylesheet" /> <link href="../ui/font-awesome/css/font-awesome.min.css" rel="stylesheet" /> <script src="../ui/js/jquery.min.js"></script> <script src="../ui/js/jquery-ui.min.js"></script> <script src="../js/functions.js"></script> <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> <style type="text/css"> .holder { /*background-color: #ccc;*/ /*width: 300px;*/ height: 250px; overflow: hidden; padding: 10px; /*font-family: Helvetica;*/ }
.holder .mask { position: relative; left: 0px; /*top: 10px;*/ /*width: 300px;*/ height: 240px; overflow: hidden; }
.holder ul { list-style: none; margin: 0; padding: 0; position: relative; }
.holder ul li { padding: 10px 0px; }
.holder ul li a { /*color: darkred;*/ text-decoration: none; } </style> <script type="text/javascript"> function GetTxnDetail(tranType) { var url; switch (tranType) { case "iSend": url = "../AgentPanel/Reports.aspx?reportName=40111600&sBranch=<%=Swift.web.Library.GetStatic.GetBranch() %>&orderBy=dot&dateField=confirmDate&from=<%=DateTime.Now.ToString("yyyy-MM-dd")%>&to=<%=DateTime.Now.ToString("yyyy-MM-dd")%>&rptType=s&displayTranNo=N"; break;
case "iCancel": url = "../AgentPanel/Reports.aspx?reportName=40111600&sBranch=<%=Swift.web.Library.GetStatic.GetBranch() %>&orderBy=dot&fromDate=<%=DateTime.Now.ToString("d")%>&toDate=<%=DateTime.Now.ToString("d")%>&dateField=paidDate&from=<%=DateTime.Now.ToString("yyyy-MM-dd")%>&to=<%=DateTime.Now.ToString("yyyy-MM-dd")%>&transType=Cancel&rptType=s&displayTranNo=N"; break; case "iPaid": url = "../AgentPanel/Reports.aspx?reportName=40111600&pCountry=NEPAL&pAgent=&sBranch=<%=Swift.web.Library.GetStatic.GetBranch() %>&dateField=paidDate&from=<%=DateTime.Now.ToString("yyyy-MM-dd")%>&to=<%=DateTime.Now.ToString("yyyy-MM-dd")%>"; break; case "iUnpaid": url = ""; break; } OpenInNewWindow(url); }
jQuery.fn.liScroll = function (settings) { settings = jQuery.extend({ travelocity: 0.03 }, settings); return this.each(function () { var $strip = jQuery(this); $strip.addClass("newsticker") var stripHeight = 1; $strip.find("li").each(function (i) { stripHeight += jQuery(this, i).outerHeight(true); // thanks to Michael Haszprunar and Fabien Volpi }); var $mask = $strip.wrap("<div class='mask'></div>"); var $tickercontainer = $strip.parent().wrap("<div class='tickercontainer'></div>"); var containerHeight = $strip.parent().parent().height(); //a.k.a. 'mask' width $strip.height(stripHeight); var totalTravel = stripHeight; var defTiming = totalTravel / settings.travelocity; // thanks to Scott Waye function scrollnews(spazio, tempo) { $strip.animate({ top: '-=' + spazio }, tempo, "linear", function () { $strip.css("top", containerHeight); scrollnews(totalTravel, defTiming); }); } scrollnews(totalTravel, defTiming); $strip.hover(function () { jQuery(this).stop(); }, function () { var offset = jQuery(this).offset(); var residualSpace = offset.top + stripHeight; var residualTime = residualSpace / settings.travelocity; scrollnews(residualSpace, residualTime); }); }); };
$(function () { $("ul#messages").liScroll(); }); </script> </head> <body> <form id="form1" runat="server"> <%-- <asp:HiddenField ID="msgID" runat="server" /> <asp:Button ID="btnMsg" runat="server" Style="display: none;" OnClick="btnMsg_Click" />--%> <div class="page-wrapper"> <div class="row"> <div class="col-sm-6 col-md-3 margin-b-30" id="sendingAgent" runat="server" visible="false"> <div class="tile blue"> <div class="tile-title clearfix"> Today's Send </div> <div class="tile-body clearfix"> <i class="fa fa-credit-card"></i> <h4 class="pull-right"><a href="#" onclick="GetTxnDetail('iSend')" style="color: white;"> <asp:Label runat="server" ID="iSend"></asp:Label></a></h4> </div> <div class="tile-footer"> <a href="#" onclick="GetTxnDetail('iSend')">View Details...</a> </div> </div> </div> <div class="col-sm-6 col-md-3 margin-b-30" id="sendingAgent1" runat="server" visible="false"> <div class="tile purple"> <div class="tile-title clearfix"> Today's Cancel </div> <div class="tile-body clearfix"> <i class="fa fa-credit-card"></i> <h4 class="pull-right"><a href="#" style="color: white;" onclick="GetTxnDetail('iCancel')"> <asp:Label runat="server" ID="iCancel"></asp:Label></a></h4> </div> <div class="tile-footer"> <a href="#" onclick="GetTxnDetail('iCancel')">View Details...</a> </div> </div> </div> <div class="col-sm-6 col-md-3 margin-b-30" id="payAgent" runat="server" visible="false"> <div class="tile red"> <div class="tile-title clearfix"> Today's Paid </div> <div class="tile-body clearfix"> <i class="fa fa-credit-card"></i> <h4 class="pull-right"><a href="#" onclick="GetTxnDetail('iPaid')" style="color: white;"> <asp:Label runat="server" ID="iPaid"></asp:Label></a></h4> </div> <div class="tile-footer"> <a href="#" onclick="GetTxnDetail('iPaid')">View Details...</a> </div> </div> </div> <div class="col-sm-6 col-md-3 margin-b-30" id="payAgent1" runat="server" visible="false"> <div class="tile green"> <div class="tile-title clearfix"> Today's Unpaid </div> <div class="tile-body clearfix"> <i class="fa fa-credit-card"></i> <h4 class="pull-right"><a href="#" onclick="GetTxnDetail('iUnpaid')" style="color: white;"> <asp:Label runat="server" ID="iUnpaid"></asp:Label></a></h4> </div> <div class="tile-footer"> <a href="#" onclick="GetTxnDetail('iUnpaid')">View Details...</a> </div> </div> </div> </div> <div class="row"> <div class="col-md-6"> <div class="panel panel-default recent-activites"> <!-- Start .panel --> <div class="panel-heading"> <h4 class="panel-title">Notification And Messages</h4> <div class="panel-actions"> </div> </div> <div class="panel-body pad-0 holder"> <ul class="list-group" id="messages" runat="server"> <li class="list-group-item"> <a href="#">Remittance Rules 1 from NRB</a> <small><i class="fa fa-clock-o"></i>13/08/2015 04:51:21</small> </li> <li class="list-group-item"> <a href="#">Remittance Rules 1 from NRB</a> <small><i class="fa fa-clock-o"></i>13/08/2015 04:51:21</small> </li> <li class="list-group-item"> <a href="#">Compliance Rules 1 from NRB</a> <small><i class="fa fa-clock-o"></i>13/08/2015 04:51:21</small> </li> <li class="list-group-item"> <a href="#">Deposit Rules 1 from NRB</a> <small><i class="fa fa-clock-o"></i>13/08/2015 04:51:21</small> </li> </ul> </div> </div> </div> </div> <%-- <div class="row"> <div class="col-md-12"> <div class="panel panel-default recent-activites"> <div class="panel-heading"> <h3 class="panel-title">Notification List </h3> <div class="panel-actions"> <a href="#" class="panel-action panel-action-toggle" data-panel-toggle></a> </div> </div> <div class="panel-body"> <div class="col-md-4"> <fieldset> <legend>Notification Panel</legend> <table class="table table-responsive table-bordered table-striped"> <thead> <tr> <th>Sno.</th> <th>Message</th> <th>Date</th> </tr> </thead> <tbody> <div id="divMsg" runat="server"></div> </tbody> </table> </fieldset> </div> <div class="col-md-8"> <fieldset> <legend>Full Notification Notification Panel</legend> <div id="viewMessage">Area to show current message</div> </fieldset> </div> </div> </div> </div> </div>--%> </div> <div class="modal fade " id="myModal" role="dialog" style="top: 150px;"> <div class="modal-dialog modal-lg"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal">×</button> <h4 class="modal-title"> <label id="createdBy" style="text-transform: uppercase;"></label> <small style="font-size: 10px;"><i class="fa fa-clock-o"></i> <label id="createdDate"></small></h4> </div> <div class="modal-body"> <label id="message"></label> </div> </div> </div> </div> </form> </body> <script> //function ShowMessage(msgId) { // if (msgId == null) { // alert("Sorry No Message Found"); // return; // }
// $.ajax({ // type: "POST", // url: "AgentMain.aspx/SetMessage", // data: "{ Id: '" + msgId + "'}", // contentType: "application/json; charset=utf-8", // dataType: "json", // async: "true", // cache: "false", // success: function (msg) { // $("#viewMessage").html(msg.d); // }, // Error: function (msg) { // alert(msg.d) // } // }); //}
//$(function () { // $.ajax({ // type: 'post', // url: 'AgentMain.aspx/getNewsFeeder', // contentType: 'application/json;charset=utf-8', // dataType: 'json', // success: function (data) { // debugger // var htmString = ''; // $(data.d).each(function (index, news) { // htmString += '<h3 style="cursor:pointer;">' + news.newsTitle + '</h3><div>' + news.newsDescription + '</div>'; // }); // $("#accordion").html(htmString).accordion({ // collapsible: true, // active: false // }); // }
// }); //}); function ShowMessage(msgId) { $.ajax({ type: "POST", url: "/AgentMain.aspx", data: { MethodName: "Messages", MessageId: msgId }, success: function (result) { PopulateData(result); } }); }; function PopulateData(data) { $('#myModal').modal('show');
var obj = jQuery.parseJSON(data); $('#message').html(obj.Message); $('#createdBy').html(obj.CreatedBy); $('#createdDate').html(obj.CreatedDate); //$('#questionDesc').html(obj.Description); //$('#forumTitle').html(obj.ForumTitle); }; </script> </html>
|