home *** CD-ROM | disk | FTP | other *** search
/ 74.208.221.89 / 74.208.221.89.zip / 74.208.221.89 / manage / viewstores.aspx < prev    next >
Text File  |  2015-03-13  |  8KB  |  203 lines

  1. ∩╗┐<%@ Page Language="VB" Debug="true" %>
  2. <script runat="server">
  3.     Dim mycon As New conValue()
  4.     Dim username, useremail, permissions As String
  5.     Dim userid As Integer
  6.     Sub page_load()
  7.         If (Request.Cookies("gen")("uid") Is Nothing) Then
  8.             Response.Redirect("login.aspx")
  9.         Else
  10.             userid = Request.Cookies("gen")("uid")
  11.             username = Request.Cookies("gen")("name")
  12.             useremail = Request.Cookies("gen")("email")
  13.         End If
  14.     End Sub
  15. </script>
  16. <!DOCTYPE html>
  17. <html lang="en-us">
  18.     'Header Files
  19.     <!--#include file="head.ascx" -->
  20. <body class="fixed-header fixed-navigation fixed-page-footer fixed-ribbon smart-style-1">
  21.     <!-- possible classes: minified, fixed-ribbon, fixed-header, fixed-width-->
  22.     <!-- HEADER -->
  23.   <!--#include file="header.ascx" -->
  24.     <!-- END HEADER -->
  25.     <!-- Left panel : Navigation area -->
  26.     <!-- Note: This width of the aside area can be adjusted through LESS variables -->
  27.   <!--#include file="navigation.ascx" -->
  28.     <!-- END NAVIGATION -->
  29.     <!-- MAIN PANEL -->
  30.     <div id="main" role="main">
  31.  
  32.         <!-- RIBBON -->
  33.         <div id="ribbon">
  34.  
  35.             <span class="ribbon-button-alignment">
  36.                 <span id="refresh" class="btn btn-ribbon" data-action="resetWidgets" data-title="refresh" rel="tooltip" data-placement="bottom" data-original-title="
  37.                     <i class='text-warning fa fa-warning'></i> Warning! This will reset all your widget settings." data-html="true">
  38.                     <i class="fa fa-refresh"></i>
  39.                 </span>
  40.             </span>
  41.  
  42.             <!-- breadcrumb -->
  43.             <ol class="breadcrumb">
  44.               
  45.                 <li>VIEW STORES</li>
  46.             </ol>
  47.             <!-- end breadcrumb -->
  48.             <!-- You can also add more buttons to the
  49.             ribbon for further usability
  50.  
  51.             Example below:
  52.  
  53.             <span class="ribbon-button-alignment pull-right">
  54.             <span id="search" class="btn btn-ribbon hidden-xs" data-title="search"><i class="fa-grid"></i> Change Grid</span>
  55.             <span id="add" class="btn btn-ribbon hidden-xs" data-title="add"><i class="fa-plus"></i> Add</span>
  56.             <span id="search" class="btn btn-ribbon" data-title="search"><i class="fa-search"></i> <span class="hidden-mobile">Search</span></span>
  57.             </span> -->
  58.  
  59.         </div>
  60.         <!-- END RIBBON -->
  61.         <!-- MAIN CONTENT -->
  62.         <div id="content">
  63.  
  64.  
  65.               <div class="row">
  66.                
  67.                       <!-- Widget ID (each widget will need unique ID)-->
  68.                             <div class="jarviswidget jarviswidget-color-greenDark" id="wid-id-18" data-widget-colorbutton="false" data-widget-editbutton="false">
  69.                                 <!-- widget options:
  70.                                     usage: <div class="jarviswidget" id="wid-id-0" data-widget-editbutton="false">
  71.                                     
  72.                                     data-widget-colorbutton="false"    
  73.                                     data-widget-editbutton="false"
  74.                                     data-widget-togglebutton="false"
  75.                                     data-widget-deletebutton="false"
  76.                                     data-widget-fullscreenbutton="false"
  77.                                     data-widget-custombutton="false"
  78.                                     data-widget-collapsed="true" 
  79.                                     data-widget-sortable="false"
  80.                                     
  81.                                 -->
  82.                                 <header>
  83.                                     <h2><strong>Recent</strong> <i>Orders</i></h2>                
  84.                                     
  85.                                 </header>
  86.  
  87.                                 <!-- widget div-->
  88.                                 <div>
  89.                                     
  90.                                     
  91.                                     
  92.                                     <!-- widget content -->
  93.                                     
  94.                                         
  95.                                         <div class="custom-scroll table-responsive" style="height:400px; overflow-y: scroll;">
  96.                                             
  97.  
  98.                                             <table class="table table-bordered">
  99.                                                 <thead>
  100.                                                     <tr>
  101.                                                         <th>Store Name</th>
  102.                                                         <th>Store URL</th>
  103.                                                         <th>Affiliate ID</th>
  104.                                                         <th>Use Data From</th>
  105.                                                         <th>Commission</th>
  106.                                                          <th>Cash Back</th>
  107.                                                         <th>Logo</th>
  108.                                                         
  109.                                                     </tr>
  110.                                                 </thead>
  111.                                                 <tbody>
  112.                                                     
  113.                                                     <%
  114.                                                         mycon.con("Select * from lk_stores order by id desc", 1, 1)
  115.                                                         While mycon.sql1.Read
  116.                                                         %>
  117.                                                     <tr>
  118.                                                         <td><%= mycon.sql1("storename")%> <a href="changestore.aspx?id=<%= mycon.sql1("id")%>">Change</a></td>
  119.                                                         <td><%= mycon.sql1("storeurl")%></td>
  120.                                                         <td><%= mycon.sql1("affiliateid")%></td>
  121.                                                         <td><%
  122.                                                                 If (Trim(mycon.sql1("usedatafrom")) = "0") Then
  123.                                                                     Response.Write("OMG")
  124.                                                                 Else
  125.                                                                     Response.Write("Store Feed")
  126.                                                                 End If
  127.     %>
  128.  
  129.                                                         </td>
  130.                                                         <td><%= mycon.sql1("commission")%> %</td>
  131.                                                         <td><%= mycon.sql1("cashback")%> %</td>
  132.                                                        <%
  133.                                                                 mycon.con("Select count(*) as count from lk_images where imgtype = 'Store-Logo' AND opt = '" & mycon.sql1("id") & "'", 1, 2)
  134.                                                                 If (mycon.Temp1 > 0) Then
  135.                                                                     mycon.con("Select image from lk_images where imgtype = 'Store-Logo' AND opt = '" & mycon.sql1("id") & "'", 2, 2)
  136.                                                                 %>
  137.                                                           <td>
  138.                                                            
  139.                                                            
  140.                                                             <img src="../mimages/<%= Trim(mycon.Temp2)%>" width="100"/>
  141.                                                            <a href="removelogo.aspx?image=<%= Trim(mycon.Temp2)%>">XX</a>
  142.                                                         </td>
  143.                                                          <%Else%>
  144.                                                         <td><a href="addimage1.aspx?id=<%= mycon.sql1("id")%>">Add Logo</a></td>
  145.                                                          <% End If%>
  146.                                                     </tr>
  147.                                                     <%
  148.                                                     End While
  149.                                                     mycon.sql1.Close()
  150.                                                     %>
  151.                                                     
  152.                                                 </tbody>
  153.                                             </table>
  154.                                         
  155.                                         </div>
  156.                                         
  157.                                         
  158.                                     
  159.                                     </div>
  160.                                     <!-- end widget content -->
  161.                                     
  162.                                 </div>
  163.                                 <!-- end widget div -->
  164.               
  165.             </div>
  166.  
  167.                                 
  168.                             </div>
  169.                             <!-- end widget -->
  170.  
  171.  
  172.  
  173.             
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.         </div>
  183.         <!-- END MAIN CONTENT -->
  184.  
  185.     </div>
  186.     <!-- END MAIN PANEL -->
  187.     <!-- PAGE FOOTER -->
  188.     <!--#include file="pagefooter.ascx" -->
  189.     <!-- END PAGE FOOTER -->
  190.     <!-- SHORTCUT AREA : With large tiles (activated via clicking user name tag)
  191.     Note: These tiles are completely responsive,
  192.     you can add as many as you like
  193.     -->
  194.    <!--#include file="shortcuts.ascx" -->
  195.     <!-- END SHORTCUT AREA -->
  196.     <!--================================================== -->
  197.     'Bottom Scripts
  198.    <!--#include file="bottomscripts.ascx" -->
  199.  
  200.  
  201. </body>
  202.  
  203. </html>