Subversion Repositories SmartDukaan

Rev

Rev 7674 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<!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>
        <title>Recharge For Store</title>
        <link rel="stylesheet" href="css/rechargewebapp_18042013.css" type="text/css" />
        <script language="javascript" type="text/javascript" src="js/jquery-1.4.2.js"></script>
    <script language="javascript" type="text/javascript" src="js/rechargewebapp_21102013.js"></script>
        
        <style>
                table, td, th
                {
                        border:1px solid #2789C1;
                        border-collapse:collapse;
                        border-spacing:0;
                }
                th
                {
                        background-color:#2789C1;
                        color:white;
                        text-align:center;
                        padding:5px;
                }
                td
        {
                        text-align:center;
                        padding:5px;
        }
        </style>
</head>
<body style="margin: 0;min-width:1000px;">
        #set($txns=$action.getTxns())
        <div style="line-height:37px;height:37px;background-color:#333;color:white;">
        <span style="margin-left:20px;font-weight:bold;font-size:15px">Store : </span><span style="font-size:20px">$action.getStoreCode()</span>
        <span style="margin-left:20px;font-weight:bold;font-size:15px">Today's Collection : </span><span style="font-size:20px">$action.getCollectedAmount()</span>
        <a style="margin:0px 25px 0px 25px;color:white" href="/rch/home">HOME</a>
        <a style="color:white;" href="/rch/!doLogout">Logout</a>        
    </div>

    <div style="line-height:60px;height:60px;background-color:#DBEEFF;color: #333333;margin: 0px;padding-left: 35px;border-bottom:1px solid #67ABD3">
        <img style="float:left;" src="/rch/images/Hotspot-Logo.jpg"></img>
        <span style="font-size: 35px;font-family:'Times New Roman', Times, serif;float:left">Recharge Dashboard</span>
        <img style="float:right;margin-right:20px;" src="/rch/images/Saholic-Logo.jpg"></img>
</div>
        <h3>Search Orders</h3>
        #if($action.getSearchError() != "")
        <div class="padding-row" style="font-size: 16px;color: red;text-align: center;border: 1px solid red;margin: 5px;padding: 5px;">
                $action.getSearchError()
        </div>
        #end
        #if($action.getPasswordGeneration() == "SUCCESS")
                <div class="padding-row" style="font-size: 16px;color: #2789C1;text-align: center;border: 1px solid #2789C1;margin: 5px;padding: 5px;">
                Password sent to the registered emailId of this store
        </div>
        #elseif($action.getPasswordGeneration() == "FAIL")
                <div class="padding-row" style="font-size: 16px;color: red;text-align: center;border: 1px solid red;margin: 5px;padding: 5px;">
                Password generation failed. Please try again.
        </div>
        #end
        <form style="padding:20px;border-bottom:1px solid #2789C1;" id="search" action="report!search" method="POST">
                <div class="row">
                <div class="text">Device number : </div>
                <div class="input-div">
                        <input class="inputbox padding15" type="text" name="number" value="$action.getNumber()">

                </div><div class="input-div">
                        <input style="font-size:15px; font-weight:bold;height:26px;width:90px;background-color:#2789C1;border:1px solid blue;border-radius:5px;color:white" type="submit" value="Search">
                </div>
        </div>
                #if(!$action.getSearchResult().isEmpty())
                <div style="border-top: 1px solid #BBBBBB;padding: 5px 0px 5px 25px;margin: 5px 0 5px 0;color: #999999;">$action.getSearchResult().size() search results</div>
                <table width="100%">
                <thead>
                  <tr>
                    <th>Order ID</th>
                                <th>Order Date</th>
                                <th>Operator</th>
                                <th>Status</th>
                                <th>Description</th>
                                <th>Amount</th>
                                        #if($action.shouldShowReprintColumn())
                                                <th></th>
                                        #end
                  </tr>
                </thead>
                <tbody>
                        #foreach ($order in $action.getSearchResult() )
                          <tr>
                    <td>$order.getId()</td>
                                <td>$action.getDateTime($order.getTransactionTime())</td>
                                <td>$action.getOperatorName($order.getOperatorId())</td>
                                <td>$order.getStatus()</td>
                                <td>$order.getDescription()</td>
                                <td>$order.getAmount()</td>
                                        #if($order.getStatus().getValue() == 5)
                                        <td><a href='recharge-result!downloadInvoice?rechargeId=$order.getId()'>Invoice</a></td>
                                        #end
                  </tr>
                        #end
                </tbody>
                </table>
                #end

        </form>
        <br/>
        
        <div style="padding-bottom:20px;border-bottom:1px solid #2789C1;">
        <h3>Recharges for Today
        </h3>
        
        #if($txns.size() == 0)
                <div class="padding-row" style="font-size: 20px; font-weight:bold;color: #AAAAAA;text-align: center;margin: 5px;padding: 5px;">
                NO RECHARGES FOR TODAY
        </div>
        #else
                <table width="100%">
        <thead>
          <tr>
            <th>Order ID</th>
                        <th>Order Date</th>
                        <th>Operator</th>
            <th>Device</th>
                        <th>Status</th>
                        <th>Description</th>
                        <th>Amount</th>
          </tr>
        </thead>
        <tbody>
                #foreach ( $order in $txns )
                  <tr>
            <td>$order.getId()</td>
                        <td>$action.getDateTime($order.getTransactionTime())</td>
                        <td>$action.getOperatorName($order.getOperatorId())</td>
                        <td>$order.getDeviceNum()</td>
                        <td>$order.getStatus()</td>
                        <td>
                                #if($order.getDescription())
                                        $order.getDescription()
                                #else
                                        N/A
                                #end
                        </td>
                        <td>$order.getAmount()</td>
          </tr>
                #end
        </tbody>
        </table>
        #end
    </div>

        <h3 id='collectionReport'>Collection report for today</h3>
        <form style='padding:20px;border-bottom:1px solid #2789C1;' id="downloadcollection" action="report!getCollection" method="POST">
                <div>
                        <input style="height: 30px;background-color: orange;cursor: pointer;width: 190px;font-size: 19px;" type="submit" value="Collection Report"/>
                </div>
        </form>
        <br/>
        
        <h3 id='statusReport'>Download Report by Status</h3>
        <form style='padding:20px;border-bottom:1px solid #2789C1;' id="downloadrep" action="report" method="POST">
                <div>
                Status:<select name="status">
                        <option value="-1">ALL</option>
                        <option value="9">INIT</option>
                        <option value="5">SUCCESS</option>
                        <option value="4">FAILED</option>
                        <option value="6">REFUNDED</option>
                        <option value="10">UNKNOWN</option>
                </select>
                Date:<select name="dateselector" id="dateselector">
                        <option value="1" selected="selected">Today</option>
                        <option value="2">Yesterday</option>
                        <option value="3">Daterange</option>
                </select>
                <span id="daterange" style="display:none">From:<input maxlength="10" size="8" type="text" name="startDate" style="padding-left:3px"/>(dd/mm/yyyy) To:<input maxlength="10" size="8" type="text" name="endDate" style="padding-left:3px"/>(dd/mm/yyyy)</span>
                </div>
                <br>
                <div>
                        <input style="height: 30px;background-color: orange;cursor: pointer;width: 140px;font-size: 21px;" type="submit" value="Download"/>
                </div>
        </form>
        <br/>
        
        <h3 id='requestPassword'>Request new password</h3>
        <div style='padding:20px;border-bottom:1px solid #2789C1;'>
                <div style='padding:20px;'>
                        <a href="report!sendPassword">Click here</a> to request a new password.
                </div>
        </div>
        <br/>
</body>
</html>