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 >
Wrap
Text File
|
2015-03-13
|
8KB
|
203 lines
<%@ Page Language="VB" Debug="true" %>
<script runat="server">
Dim mycon As New conValue()
Dim username, useremail, permissions As String
Dim userid As Integer
Sub page_load()
If (Request.Cookies("gen")("uid") Is Nothing) Then
Response.Redirect("login.aspx")
Else
userid = Request.Cookies("gen")("uid")
username = Request.Cookies("gen")("name")
useremail = Request.Cookies("gen")("email")
End If
End Sub
</script>
<!DOCTYPE html>
<html lang="en-us">
'Header Files
<!--#include file="head.ascx" -->
<body class="fixed-header fixed-navigation fixed-page-footer fixed-ribbon smart-style-1">
<!-- possible classes: minified, fixed-ribbon, fixed-header, fixed-width-->
<!-- HEADER -->
<!--#include file="header.ascx" -->
<!-- END HEADER -->
<!-- Left panel : Navigation area -->
<!-- Note: This width of the aside area can be adjusted through LESS variables -->
<!--#include file="navigation.ascx" -->
<!-- END NAVIGATION -->
<!-- MAIN PANEL -->
<div id="main" role="main">
<!-- RIBBON -->
<div id="ribbon">
<span class="ribbon-button-alignment">
<span id="refresh" class="btn btn-ribbon" data-action="resetWidgets" data-title="refresh" rel="tooltip" data-placement="bottom" data-original-title="
<i class='text-warning fa fa-warning'></i> Warning! This will reset all your widget settings." data-html="true">
<i class="fa fa-refresh"></i>
</span>
</span>
<!-- breadcrumb -->
<ol class="breadcrumb">
<li>VIEW STORES</li>
</ol>
<!-- end breadcrumb -->
<!-- You can also add more buttons to the
ribbon for further usability
Example below:
<span class="ribbon-button-alignment pull-right">
<span id="search" class="btn btn-ribbon hidden-xs" data-title="search"><i class="fa-grid"></i> Change Grid</span>
<span id="add" class="btn btn-ribbon hidden-xs" data-title="add"><i class="fa-plus"></i> Add</span>
<span id="search" class="btn btn-ribbon" data-title="search"><i class="fa-search"></i> <span class="hidden-mobile">Search</span></span>
</span> -->
</div>
<!-- END RIBBON -->
<!-- MAIN CONTENT -->
<div id="content">
<div class="row">
<!-- Widget ID (each widget will need unique ID)-->
<div class="jarviswidget jarviswidget-color-greenDark" id="wid-id-18" data-widget-colorbutton="false" data-widget-editbutton="false">
<!-- widget options:
usage: <div class="jarviswidget" id="wid-id-0" data-widget-editbutton="false">
data-widget-colorbutton="false"
data-widget-editbutton="false"
data-widget-togglebutton="false"
data-widget-deletebutton="false"
data-widget-fullscreenbutton="false"
data-widget-custombutton="false"
data-widget-collapsed="true"
data-widget-sortable="false"
-->
<header>
<h2><strong>Recent</strong> <i>Orders</i></h2>
</header>
<!-- widget div-->
<div>
<!-- widget content -->
<div class="custom-scroll table-responsive" style="height:400px; overflow-y: scroll;">
<table class="table table-bordered">
<thead>
<tr>
<th>Store Name</th>
<th>Store URL</th>
<th>Affiliate ID</th>
<th>Use Data From</th>
<th>Commission</th>
<th>Cash Back</th>
<th>Logo</th>
</tr>
</thead>
<tbody>
<%
mycon.con("Select * from lk_stores order by id desc", 1, 1)
While mycon.sql1.Read
%>
<tr>
<td><%= mycon.sql1("storename")%> <a href="changestore.aspx?id=<%= mycon.sql1("id")%>">Change</a></td>
<td><%= mycon.sql1("storeurl")%></td>
<td><%= mycon.sql1("affiliateid")%></td>
<td><%
If (Trim(mycon.sql1("usedatafrom")) = "0") Then
Response.Write("OMG")
Else
Response.Write("Store Feed")
End If
%>
</td>
<td><%= mycon.sql1("commission")%> %</td>
<td><%= mycon.sql1("cashback")%> %</td>
<%
mycon.con("Select count(*) as count from lk_images where imgtype = 'Store-Logo' AND opt = '" & mycon.sql1("id") & "'", 1, 2)
If (mycon.Temp1 > 0) Then
mycon.con("Select image from lk_images where imgtype = 'Store-Logo' AND opt = '" & mycon.sql1("id") & "'", 2, 2)
%>
<td>
<img src="../mimages/<%= Trim(mycon.Temp2)%>" width="100"/>
<a href="removelogo.aspx?image=<%= Trim(mycon.Temp2)%>">XX</a>
</td>
<%Else%>
<td><a href="addimage1.aspx?id=<%= mycon.sql1("id")%>">Add Logo</a></td>
<% End If%>
</tr>
<%
End While
mycon.sql1.Close()
%>
</tbody>
</table>
</div>
</div>
<!-- end widget content -->
</div>
<!-- end widget div -->
</div>
</div>
<!-- end widget -->
</div>
<!-- END MAIN CONTENT -->
</div>
<!-- END MAIN PANEL -->
<!-- PAGE FOOTER -->
<!--#include file="pagefooter.ascx" -->
<!-- END PAGE FOOTER -->
<!-- SHORTCUT AREA : With large tiles (activated via clicking user name tag)
Note: These tiles are completely responsive,
you can add as many as you like
-->
<!--#include file="shortcuts.ascx" -->
<!-- END SHORTCUT AREA -->
<!--================================================== -->
'Bottom Scripts
<!--#include file="bottomscripts.ascx" -->
</body>
</html>